]> git.saurik.com Git - wxWidgets.git/blame - configure
don't use fall back if we had already found the MIME type (patch 769826)
[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
4d264332 314ac_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 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 wxUSE_ZLIB wxUSE_REGEX wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_GUI UNICODE BUILD SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX DLLPREFIX AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING COND_BUILD_DEBUG COND_BUILD_RELEASE COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_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_USE_SOVERSION_1 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_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_GTK_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_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_MSW_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_OS2 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_PLATFORM_MAC_1 COND_SHARED_1 COND_SHARED_0 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 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 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_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 ESD_LINK LIBOBJS LTLIBOBJS'
e6cc62c6 315ac_subst_files=''
10f2d63a
VZ
316
317# Initialize some variables set by options.
e6cc62c6
VS
318ac_init_help=
319ac_init_version=false
10f2d63a
VZ
320# The variables have the same names as the options, with
321# dashes changed to underlines.
e6cc62c6 322cache_file=/dev/null
10f2d63a 323exec_prefix=NONE
10f2d63a 324no_create=
10f2d63a
VZ
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
10f2d63a
VZ
333verbose=
334x_includes=NONE
335x_libraries=NONE
e6cc62c6
VS
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
10f2d63a
VZ
355ac_prev=
356for ac_option
357do
10f2d63a
VZ
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
e6cc62c6 365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
e6cc62c6 369 case $ac_option in
10f2d63a
VZ
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 374 bindir=$ac_optarg ;;
10f2d63a
VZ
375
376 -build | --build | --buil | --bui | --bu)
e6cc62c6 377 ac_prev=build_alias ;;
10f2d63a 378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 379 build_alias=$ac_optarg ;;
10f2d63a
VZ
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
10f2d63a
VZ
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
e6cc62c6 395 datadir=$ac_optarg ;;
10f2d63a
VZ
396
397 -disable-* | --disable-*)
e6cc62c6 398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 399 # Reject names that are not valid shell variable names.
e6cc62c6
VS
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
405
406 -enable-* | --enable-*)
e6cc62c6 407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 408 # Reject names that are not valid shell variable names.
e6cc62c6
VS
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
415 *) ac_optarg=yes ;;
416 esac
e6cc62c6 417 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
e6cc62c6 426 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
e6cc62c6
VS
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
10f2d63a
VZ
438
439 -host | --host | --hos | --ho)
e6cc62c6 440 ac_prev=host_alias ;;
10f2d63a 441 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 442 host_alias=$ac_optarg ;;
10f2d63a
VZ
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 449 includedir=$ac_optarg ;;
10f2d63a
VZ
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 454 infodir=$ac_optarg ;;
10f2d63a
VZ
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 459 libdir=$ac_optarg ;;
10f2d63a
VZ
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 466 libexecdir=$ac_optarg ;;
10f2d63a
VZ
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 475 localstatedir=$ac_optarg ;;
10f2d63a
VZ
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 480 mandir=$ac_optarg ;;
10f2d63a
VZ
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 487 | --no-cr | --no-c | -n)
10f2d63a
VZ
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 501 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 506 prefix=$ac_optarg ;;
10f2d63a
VZ
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 513 program_prefix=$ac_optarg ;;
10f2d63a
VZ
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 520 program_suffix=$ac_optarg ;;
10f2d63a
VZ
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 537 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
e6cc62c6 547 sbindir=$ac_optarg ;;
10f2d63a
VZ
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
e6cc62c6 558 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
e6cc62c6 563 site=$ac_optarg ;;
10f2d63a
VZ
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 568 srcdir=$ac_optarg ;;
10f2d63a
VZ
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 575 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 578 ac_prev=target_alias ;;
10f2d63a 579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 580 target_alias=$ac_optarg ;;
10f2d63a
VZ
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
e6cc62c6
VS
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
10f2d63a
VZ
587
588 -with-* | --with-*)
e6cc62c6 589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 590 # Reject names that are not valid shell variable names.
e6cc62c6
VS
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
10f2d63a 594 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
597 *) ac_optarg=yes ;;
598 esac
e6cc62c6 599 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
600
601 -without-* | --without-*)
e6cc62c6 602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 603 # Reject names that are not valid shell variable names.
e6cc62c6
VS
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
10f2d63a
VZ
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 619 x_includes=$ac_optarg ;;
10f2d63a
VZ
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 626 x_libraries=$ac_optarg ;;
10f2d63a 627
e6cc62c6
VS
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
10f2d63a
VZ
631 ;;
632
e6cc62c6
VS
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
10f2d63a 643 *)
e6cc62c6
VS
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
e6cc62c6
VS
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
a0b9e27f 658fi
a0b9e27f 659
e6cc62c6
VS
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669done
8284b0c5 670
e6cc62c6
VS
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 674do
e6cc62c6
VS
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
10f2d63a
VZ
680 esac
681done
682
e6cc62c6
VS
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
247f5006 700
e6cc62c6
VS
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
10f2d63a 705
10f2d63a
VZ
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
e6cc62c6
VS
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
10f2d63a
VZ
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
10f2d63a 734 else
e6cc62c6
VS
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
10f2d63a
VZ
737 fi
738fi
e6cc62c6
VS
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775ac_env_CXX_set=${CXX+set}
776ac_env_CXX_value=$CXX
777ac_cv_env_CXX_set=${CXX+set}
778ac_cv_env_CXX_value=$CXX
779ac_env_CXXFLAGS_set=${CXXFLAGS+set}
780ac_env_CXXFLAGS_value=$CXXFLAGS
781ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_cv_env_CXXFLAGS_value=$CXXFLAGS
783ac_env_CXXCPP_set=${CXXCPP+set}
784ac_env_CXXCPP_value=$CXXCPP
785ac_cv_env_CXXCPP_set=${CXXCPP+set}
786ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 787
e6cc62c6
VS
788#
789# Report the --help message.
790#
791if test "$ac_init_help" = "long"; then
792 # Omit some internal or obsolete options to make the list less imposing.
793 # This message is too long to be a string in the A/UX 3.1 sh.
794 cat <<_ACEOF
795\`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
10f2d63a 796
e6cc62c6 797Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 798
e6cc62c6
VS
799To assign environment variables (e.g., CC, CFLAGS...), specify them as
800VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 801
e6cc62c6
VS
802Defaults for the options are specified in brackets.
803
804Configuration:
805 -h, --help display this help and exit
806 --help=short display options specific to this package
807 --help=recursive display the short help of all the included packages
808 -V, --version display version information and exit
809 -q, --quiet, --silent do not print \`checking...' messages
810 --cache-file=FILE cache test results in FILE [disabled]
811 -C, --config-cache alias for \`--cache-file=config.cache'
812 -n, --no-create do not create output files
813 --srcdir=DIR find the sources in DIR [configure dir or \`..']
814
815_ACEOF
816
817 cat <<_ACEOF
818Installation directories:
819 --prefix=PREFIX install architecture-independent files in PREFIX
820 [$ac_default_prefix]
821 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
822 [PREFIX]
823
824By default, \`make install' will install all the files in
825\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
826an installation prefix other than \`$ac_default_prefix' using \`--prefix',
827for instance \`--prefix=\$HOME'.
828
829For better control, use the options below.
830
831Fine tuning of the installation directories:
832 --bindir=DIR user executables [EPREFIX/bin]
833 --sbindir=DIR system admin executables [EPREFIX/sbin]
834 --libexecdir=DIR program executables [EPREFIX/libexec]
835 --datadir=DIR read-only architecture-independent data [PREFIX/share]
836 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
837 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
838 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
839 --libdir=DIR object code libraries [EPREFIX/lib]
840 --includedir=DIR C header files [PREFIX/include]
841 --oldincludedir=DIR C header files for non-gcc [/usr/include]
842 --infodir=DIR info documentation [PREFIX/info]
843 --mandir=DIR man documentation [PREFIX/man]
844_ACEOF
845
846 cat <<\_ACEOF
847
848X features:
849 --x-includes=DIR X include files are in DIR
850 --x-libraries=DIR X library files are in DIR
851
852System types:
853 --build=BUILD configure for building on BUILD [guessed]
854 --host=HOST cross-compile to build programs to run on HOST [BUILD]
855 --target=TARGET configure for building compilers for TARGET [HOST]
856_ACEOF
857fi
858
859if test -n "$ac_init_help"; then
860 case $ac_init_help in
861 short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
862 esac
863 cat <<\_ACEOF
864
865Optional Features:
866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 --enable-gui use GUI classes
9747f85d 869 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
870 --enable-universal use wxWindows GUI controls instead of native ones
871 --enable-nanox use NanoX
872 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
873 --enable-shared create shared library code
e6cc62c6
VS
874 --enable-optimise create optimised code
875 --enable-debug same as debug_flag and debug_info
df5168c4 876 --enable-stl use STL for containers
e6cc62c6
VS
877 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
878 --enable-debug_info create code with debugging information
879 --enable-debug_gdb create code with extra GDB debugging information
880 --enable-debug_cntxt use wxDebugContext
881 --enable-mem_tracing create code with memory tracing
882 --enable-profile create code with profiling information
883 --enable-no_rtti create code without RTTI information
884 --enable-no_exceptions create code without C++ exceptions handling
885 --enable-permissive compile code disregarding strict ANSI
886 --enable-no_deps create code without dependency information
887 --enable-compat20 enable wxWindows 2.0 compatibility
888 --enable-compat22 enable wxWindows 2.2 compatibility
889 --disable-compat24 disable wxWindows 2.4 compatibility
890 --enable-rpath=DIR output the rpath flag from wx-config
891 --enable-intl use internationalization system
892 --enable-config use wxConfig (and derived) classes
893 --enable-protocols use wxProtocol and derived classes
894 --enable-ftp use wxFTP (requires wxProtocol
895 --enable-http use wxHTTP (requires wxProtocol
896 --enable-fileproto use wxFileProto class (requires wxProtocol
897 --enable-sockets use socket/network classes
898 --enable-ole use OLE classes
899 --enable-dataobj use data object classes
900 --enable-ipc use interprocess communication (wxSocket etc.)
901 --enable-cmdline use wxCmdLineParser class
902 --enable-datetime use wxDateTime class
903 --enable-stopwatch use wxStopWatch class
904 --enable-dialupman use dialup network classes
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-timer use wxTimer class
907 --enable-wave use wxWave class
908 --enable-fraction use wxFraction class
909 --enable-dynlib use wxLibrary class for DLL loading
910 --enable-dynamicloader use (new) wxDynamicLibrary class
911 --enable-longlong use wxLongLong class
912 --enable-geometry use geometry class
913 --enable-log use logging system
914 --enable-streams use wxStream etc classes
915 --enable-file use wxFile classes
916 --enable-ffile use wxFFile classes
917 --enable-textbuf use wxTextBuffer class
918 --enable-textfile use wxTextFile class
919 --enable-fontmap use font encodings conversion classes
920 --enable-unicode compile wxString with Unicode support
921 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
922 --enable-wxprintfv use wxWindows implementation of vprintf()
923 --enable-std_iostreams use standard C++ stream classes
924 --enable-filesystem use virtual file systems classes
925 --enable-fs_inet use virtual HTTP/FTP filesystems
926 --enable-fs_zip use virtual ZIP filesystems
927 --enable-zipstream use wxZipInputStream
928 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
929 --enable-snglinst use wxSingleInstanceChecker class
930 --enable-mimetype use wxMimeTypesManager
931 --enable-sysoptions use wxSystemOptions
932 --enable-url use wxURL class
933 --enable-protocol use wxProtocol class
934 --enable-protocol-http HTTP support in wxProtocol
935 --enable-protocol-ftp FTP support in wxProtocol
936 --enable-protocol-file FILE support in wxProtocol
937 --enable-threads use threads
938 --enable-docview use document view architecture
939 --enable-help use help subsystem
940 --enable-mshtmlhelp use MS HTML Help (win32)
941 --enable-html use wxHTML sub-library
942 --enable-htmlhelp use wxHTML-based help
943 --enable-constraints use layout-constraints system
944 --enable-printarch use printing architecture
945 --enable-mdi use multiple document interface architecture
946 --enable-loggui use standard GUI logger
947 --enable-logwin use wxLogWindow
948 --enable-logdialog use wxLogDialog
949 --enable-postscript use wxPostscriptDC device context (default for gtk+)
950 --enable-prologio not available; see contrib
951 --enable-resources not available; see contrib
952 --enable-clipboard use wxClipboard class
953 --enable-dnd use Drag'n'Drop classes
954 --enable-metafile use win32 metafiles
955 --enable-controls use all usual controls
956 --enable-accel use accelerators
957 --enable-button use wxButton class
958 --enable-bmpbutton use wxBitmapButton class
959 --enable-calendar use wxCalendarCtrl class
960 --enable-caret use wxCaret class
961 --enable-checkbox use wxCheckBox class
962 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
963 --enable-choice use wxChoice class
964 --enable-combobox use wxComboBox class
965 --enable-display use wxDisplay class
966 --enable-gauge use wxGauge class
967 --enable-grid use wxGrid class
968 --enable-imaglist use wxImageList class
969 --enable-listbox use wxListBox class
970 --enable-listctrl use wxListCtrl class
971 --enable-notebook use wxNotebook class
972 --enable-radiobox use wxRadioBox class
973 --enable-radiobtn use wxRadioButton class
974 --enable-sash use wxSashWindow class
975 --enable-scrollbar use wxScrollBar class and scrollable windows
976 --enable-slider use wxSlider class
977 --enable-spinbtn use wxSpinButton class
978 --enable-spinctrl use wxSpinCtrl class
979 --enable-splitter use wxSplitterWindow class
980 --enable-statbmp use wxStaticBitmap class
981 --enable-statbox use wxStaticBox class
982 --enable-statline use wxStaticLine class
983 --enable-stattext use wxStaticText class
984 --enable-statusbar use wxStatusBar class
985 --enable-tabdialog use wxTabControl class
986 --enable-textctrl use wxTextCtrl class
987 --enable-togglebtn use wxToggleButton class
988 --enable-toolbar use wxToolBar class
989 --enable-tbarnative use native wxToolBar class
990 --enable-tbarsmpl use wxToolBarSimple class
991 --enable-treectrl use wxTreeCtrl class
992 --enable-tipwindow use wxTipWindow class
993 --enable-popupwin use wxPopUpWindow class
994 --enable-commondlg use all common dialogs
995 --enable-choicedlg use wxChoiceDialog
996 --enable-coldlg use wxColourDialog
997 --enable-filedlg use wxFileDialog
998 --enable-finddlg use wxFindReplaceDialog
999 --enable-fontdlg use wxFontDialog
1000 --enable-dirdlg use wxDirDialog
1001 --enable-msgdlg use wxMessageDialog
1002 --enable-numberdlg use wxNumberEntryDialog
1003 --enable-splash use wxSplashScreen
1004 --enable-textdlg use wxTextDialog
1005 --enable-tipdlg use startup tips
1006 --enable-progressdlg use wxProgressDialog
1007 --enable-wizarddlg use wxWizard
1008 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1009 --enable-miniframe use wxMiniFrame class
1010 --enable-tooltips use wxToolTip class
1011 --enable-splines use spline drawing code
1012 --enable-validators use wxValidator and derived classes
1013 --enable-busyinfo use wxBusyInfo
1014 --enable-joystick use wxJoystick (Linux only)
1015 --enable-metafiles use wxMetaFile (Windows only)
1016 --enable-dragimage use wxDragImage
1017 --enable-accessibility enable accessibility support
1018 --enable-palette use wxPalette class
1019 --enable-image use wxImage class
1020 --enable-gif use gif images (GIF file format)
1021 --enable-pcx use pcx images (PCX file format)
1022 --enable-iff use iff images (IFF file format)
1023 --enable-pnm use pnm images (PNM file format)
1024 --enable-xpm use xpm images (XPM file format)
1025 --enable-icocur use Windows ICO and CUR formats
1026 --disable-largefile omit support for large files
1027 --disable-gtktest do not try to compile and run a test GTK+ program
1028 --disable-gtktest Do not try to compile and run a test GTK program
1029
1030Optional Packages:
1031 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1032 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1033 --with-gtk use GTK+
1034 --with-motif use Motif/Lesstif
1035 --with-mac use Mac OS X
1036 --with-cocoa use Cocoa
1037 --with-wine use Wine
1038 --with-msw use MS-Windows
1039 --with-pm use OS/2 Presentation Manager
1040 --with-mgl use SciTech MGL
1041 --with-microwin use MicroWindows
1042 --with-x11 use X11
1043 --with-libpng use libpng (PNG image format)
1044 --with-libjpeg use libjpeg (JPEG file format)
1045 --with-libtiff use libtiff (TIFF file format)
1046 --with-opengl use OpenGL (or Mesa)
1047 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1048 --with-regex enable support for wxRegEx class
1049 --with-zlib use zlib for LZW compression
1050 --with-odbc use the IODBC and wxODBC classes
1051 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1052 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1053 --with-x use the X Window System
1054 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1055
1056Some influential environment variables:
1057 CC C compiler command
1058 CFLAGS C compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CPP C preprocessor
1064 CXX C++ compiler command
1065 CXXFLAGS C++ compiler flags
1066 CXXCPP C++ preprocessor
1067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <wx-dev@lists.wxwindows.org>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
8284b0c5 1130
e6cc62c6
VS
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
1134wxWindows configure 2.5.0
1135generated by GNU Autoconf 2.57
10f2d63a 1136
e6cc62c6
VS
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
7c66a493 1143fi
e6cc62c6
VS
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by wxWindows $as_me 2.5.0, which was
1150generated by GNU Autoconf 2.57. Invocation command line was
1151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
1202# Strip out --silent because we don't want to record it for future runs.
1203# Also quote any args containing shell meta-characters.
1204# Make two passes to allow for proper duplicate-argument suppression.
1205ac_configure_args=
1206ac_configure_args0=
1207ac_configure_args1=
1208ac_sep=
1209ac_must_keep_next=false
1210for ac_pass in 1 2
1211do
1212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
1247done
1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
1260
1261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
1283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
1312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
1319 sed "/^$/d" confdefs.h | sort
1320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
698dcdb6 1475
8284b0c5 1476
7c66a493 1477
a0b9e27f
MB
1478
1479
a0b9e27f 1480
a0b9e27f 1481
a0b9e27f 1482
a0b9e27f 1483
a0b9e27f 1484
a0b9e27f 1485
e6cc62c6
VS
1486
1487
1488ac_aux_dir=
1489for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1502 fi
1503done
1504if test -z "$ac_aux_dir"; then
1505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1507 { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513# Make sure we can run config.sub.
1514$ac_config_sub sun4 >/dev/null 2>&1 ||
1515 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1516echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1517 { (exit 1); exit 1; }; }
1518
1519echo "$as_me:$LINENO: checking build system type" >&5
1520echo $ECHO_N "checking build system type... $ECHO_C" >&6
1521if test "${ac_cv_build+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523else
1524 ac_cv_build_alias=$build_alias
1525test -z "$ac_cv_build_alias" &&
1526 ac_cv_build_alias=`$ac_config_guess`
1527test -z "$ac_cv_build_alias" &&
1528 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1529echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1530 { (exit 1); exit 1; }; }
1531ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1532 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1533echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1534 { (exit 1); exit 1; }; }
1535
1536fi
1537echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1538echo "${ECHO_T}$ac_cv_build" >&6
1539build=$ac_cv_build
1540build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543
1544
1545echo "$as_me:$LINENO: checking host system type" >&5
1546echo $ECHO_N "checking host system type... $ECHO_C" >&6
1547if test "${ac_cv_host+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549else
1550 ac_cv_host_alias=$host_alias
1551test -z "$ac_cv_host_alias" &&
1552 ac_cv_host_alias=$ac_cv_build_alias
1553ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1555echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1557
1558fi
1559echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1560echo "${ECHO_T}$ac_cv_host" >&6
1561host=$ac_cv_host
1562host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565
1566
1567echo "$as_me:$LINENO: checking target system type" >&5
1568echo $ECHO_N "checking target system type... $ECHO_C" >&6
1569if test "${ac_cv_target+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571else
1572 ac_cv_target_alias=$target_alias
1573test "x$ac_cv_target_alias" = "x" &&
1574 ac_cv_target_alias=$ac_cv_host_alias
1575ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1577echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580fi
1581echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1582echo "${ECHO_T}$ac_cv_target" >&6
1583target=$ac_cv_target
1584target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589# The aliases save the names the user supplied, while $host etc.
1590# will get canonicalized.
1591test -n "$target_alias" &&
7c66a493
VZ
1592 test "$program_prefix$program_suffix$program_transform_name" = \
1593 NONENONEs,x,x, &&
1594 program_prefix=${target_alias}-
8284b0c5
MB
1595
1596
a0b9e27f 1597
10f2d63a 1598WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1599WX_MINOR_VERSION_NUMBER=5
1600WX_RELEASE_NUMBER=0
10f2d63a 1601
10f2d63a 1602WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1603WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1604
978f1259
RL
1605WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1606
34bed6d9 1607WX_CURRENT=0
6426998c
RL
1608WX_REVISION=0
1609WX_AGE=0
1610
8284b0c5
MB
1611
1612
10f2d63a
VZ
1613USE_UNIX=1
1614USE_WIN32=0
f9bc1684 1615USE_DOS=0
b12915c1 1616USE_BEOS=0
1216f52d 1617USE_MAC=0
b12915c1 1618
10f2d63a 1619USE_AIX=
fe0895cf
VS
1620USE_BSD= USE_DARWIN= USE_FREEBSD=
1621USE_GNU= USE_HPUX=
89e3b3e4 1622USE_LINUX=
f6bcfd97 1623USE_NETBSD=
89e3b3e4 1624USE_OPENBSD=
fe0895cf
VS
1625USE_OSF= USE_SGI=
1626USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1627USE_ULTRIX=
89e3b3e4
VZ
1628USE_UNIXWARE=
1629
1630USE_ALPHA=
10f2d63a 1631
ab9b9eab
VZ
1632NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1633
ac0c4cc3 1634ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1635
ac0c4cc3 1636DEFAULT_wxUSE_COCOA=0
10f2d63a 1637DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1638DEFAULT_wxUSE_MAC=0
1639DEFAULT_wxUSE_MGL=0
1725144d 1640DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1641DEFAULT_wxUSE_MOTIF=0
1642DEFAULT_wxUSE_MSW=0
e07802fc 1643DEFAULT_wxUSE_PM=0
f79bd02d 1644DEFAULT_wxUSE_X11=0
10f2d63a 1645
ac0c4cc3 1646DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1647DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1648DEFAULT_DEFAULT_wxUSE_MAC=0
1649DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1650DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1651DEFAULT_DEFAULT_wxUSE_MOTIF=0
1652DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1653DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1654DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1655
d6a55c4b 1656PROGRAM_EXT=
3a922bb4 1657SO_SUFFIX=so
fe0895cf 1658SAMPLES_RPATH_FLAG=
d6a55c4b 1659
10f2d63a
VZ
1660case "${host}" in
1661 *-hp-hpux* )
1662 USE_HPUX=1
1663 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1664 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1665 SO_SUFFIX=sl
e6cc62c6 1666 cat >>confdefs.h <<\_ACEOF
10f2d63a 1667#define __HPUX__ 1
e6cc62c6 1668_ACEOF
10f2d63a
VZ
1669
1670 ;;
1671 *-*-linux* )
1672 USE_LINUX=1
e6cc62c6 1673 cat >>confdefs.h <<\_ACEOF
10f2d63a 1674#define __LINUX__ 1
e6cc62c6 1675_ACEOF
10f2d63a
VZ
1676
1677 TMP=`uname -m`
1678 if test "x$TMP" = "xalpha"; then
1679 USE_ALPHA=1
e6cc62c6 1680 cat >>confdefs.h <<\_ACEOF
10f2d63a 1681#define __ALPHA__ 1
e6cc62c6 1682_ACEOF
fe0895cf
VS
1683
1684 fi
1685 DEFAULT_DEFAULT_wxUSE_GTK=1
1686 ;;
1687 *-*-gnu* )
1688 USE_GNU=1
e6cc62c6 1689 cat >>confdefs.h <<\_ACEOF
fe0895cf 1690#define __GNU__ 1
e6cc62c6 1691_ACEOF
fe0895cf
VS
1692
1693 TMP=`uname -m`
1694 if test "x$TMP" = "xalpha"; then
1695 USE_ALPHA=1
e6cc62c6 1696 cat >>confdefs.h <<\_ACEOF
fe0895cf 1697#define __ALPHA__ 1
e6cc62c6 1698_ACEOF
10f2d63a
VZ
1699
1700 fi
1701 DEFAULT_DEFAULT_wxUSE_GTK=1
1702 ;;
1703 *-*-irix5* | *-*-irix6* )
1704 USE_SGI=1
1705 USE_SVR4=1
e6cc62c6 1706 cat >>confdefs.h <<\_ACEOF
10f2d63a 1707#define __SGI__ 1
e6cc62c6 1708_ACEOF
10f2d63a 1709
e6cc62c6 1710 cat >>confdefs.h <<\_ACEOF
10f2d63a 1711#define __SVR4__ 1
e6cc62c6 1712_ACEOF
10f2d63a
VZ
1713
1714 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1715 ;;
1716 *-*-solaris2* )
1717 USE_SUN=1
1718 USE_SOLARIS=1
1719 USE_SVR4=1
e6cc62c6 1720 cat >>confdefs.h <<\_ACEOF
10f2d63a 1721#define __SUN__ 1
e6cc62c6 1722_ACEOF
10f2d63a 1723
e6cc62c6 1724 cat >>confdefs.h <<\_ACEOF
10f2d63a 1725#define __SOLARIS__ 1
e6cc62c6 1726_ACEOF
10f2d63a 1727
e6cc62c6 1728 cat >>confdefs.h <<\_ACEOF
10f2d63a 1729#define __SVR4__ 1
e6cc62c6 1730_ACEOF
10f2d63a
VZ
1731
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1734 ;;
1735 *-*-sunos4* )
1736 USE_SUN=1
1737 USE_SUNOS=1
1738 USE_BSD=1
e6cc62c6 1739 cat >>confdefs.h <<\_ACEOF
10f2d63a 1740#define __SUN__ 1
e6cc62c6 1741_ACEOF
10f2d63a 1742
e6cc62c6 1743 cat >>confdefs.h <<\_ACEOF
10f2d63a 1744#define __SUNOS__ 1
e6cc62c6 1745_ACEOF
10f2d63a 1746
e6cc62c6 1747 cat >>confdefs.h <<\_ACEOF
10f2d63a 1748#define __BSD__ 1
e6cc62c6 1749_ACEOF
10f2d63a
VZ
1750
1751 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1752 ;;
f6bcfd97 1753 *-*-freebsd*)
10f2d63a
VZ
1754 USE_BSD=1
1755 USE_FREEBSD=1
e6cc62c6 1756 cat >>confdefs.h <<\_ACEOF
10f2d63a 1757#define __FREEBSD__ 1
e6cc62c6 1758_ACEOF
10f2d63a 1759
e6cc62c6 1760 cat >>confdefs.h <<\_ACEOF
10f2d63a 1761#define __BSD__ 1
e6cc62c6 1762_ACEOF
95c8801c
VS
1763
1764 DEFAULT_DEFAULT_wxUSE_GTK=1
1765 ;;
1766 *-*-openbsd*)
1767 USE_BSD=1
1768 USE_OPENBSD=1
e6cc62c6 1769 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1770#define __OPENBSD__ 1
e6cc62c6 1771_ACEOF
95c8801c 1772
e6cc62c6 1773 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1774#define __BSD__ 1
e6cc62c6 1775_ACEOF
f6bcfd97
BP
1776
1777 DEFAULT_DEFAULT_wxUSE_GTK=1
1778 ;;
1779 *-*-netbsd*)
1780 USE_BSD=1
1781 USE_NETBSD=1
e6cc62c6 1782 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1783#define __NETBSD__ 1
e6cc62c6 1784_ACEOF
f6bcfd97 1785
e6cc62c6 1786 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1787#define __BSD__ 1
e6cc62c6 1788_ACEOF
10f2d63a
VZ
1789
1790 DEFAULT_DEFAULT_wxUSE_GTK=1
1791 ;;
1792 *-*-osf* )
1793 USE_ALPHA=1
1794 USE_OSF=1
e6cc62c6 1795 cat >>confdefs.h <<\_ACEOF
10f2d63a 1796#define __ALPHA__ 1
e6cc62c6 1797_ACEOF
10f2d63a 1798
e6cc62c6 1799 cat >>confdefs.h <<\_ACEOF
10f2d63a 1800#define __OSF__ 1
e6cc62c6 1801_ACEOF
10f2d63a
VZ
1802
1803 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1804 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1805 ;;
1806 *-*-dgux5* )
1807 USE_ALPHA=1
1808 USE_SVR4=1
e6cc62c6 1809 cat >>confdefs.h <<\_ACEOF
10f2d63a 1810#define __ALPHA__ 1
e6cc62c6 1811_ACEOF
10f2d63a 1812
e6cc62c6 1813 cat >>confdefs.h <<\_ACEOF
10f2d63a 1814#define __SVR4__ 1
e6cc62c6 1815_ACEOF
10f2d63a
VZ
1816
1817 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1818 ;;
1819 *-*-sysv5* )
1820 USE_SYSV=1
1821 USE_SVR4=1
e6cc62c6 1822 cat >>confdefs.h <<\_ACEOF
10f2d63a 1823#define __SYSV__ 1
e6cc62c6 1824_ACEOF
10f2d63a 1825
e6cc62c6 1826 cat >>confdefs.h <<\_ACEOF
10f2d63a 1827#define __SVR4__ 1
e6cc62c6 1828_ACEOF
10f2d63a
VZ
1829
1830 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1831 ;;
1832 *-*-aix* )
1833 USE_AIX=1
1834 USE_SYSV=1
1835 USE_SVR4=1
2b5f62a0 1836 SO_SUFFIX=a
e6cc62c6 1837 cat >>confdefs.h <<\_ACEOF
10f2d63a 1838#define __AIX__ 1
e6cc62c6 1839_ACEOF
10f2d63a 1840
e6cc62c6 1841 cat >>confdefs.h <<\_ACEOF
10f2d63a 1842#define __SYSV__ 1
e6cc62c6 1843_ACEOF
10f2d63a 1844
e6cc62c6 1845 cat >>confdefs.h <<\_ACEOF
10f2d63a 1846#define __SVR4__ 1
e6cc62c6 1847_ACEOF
10f2d63a
VZ
1848
1849 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1850 ;;
1851
89e3b3e4
VZ
1852 *-*-*UnixWare*)
1853 USE_SYSV=1
1854 USE_SVR4=1
1855 USE_UNIXWARE=1
e6cc62c6 1856 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1857#define __UNIXWARE__ 1
e6cc62c6 1858_ACEOF
89e3b3e4
VZ
1859
1860 ;;
1861
1c8183e2 1862 *-*-cygwin* | *-*-mingw32* )
17234b26 1863 SO_SUFFIX=dll
cf27ef00 1864 PROGRAM_EXT=".exe"
7b7a7637 1865 RESCOMP=windres
10f2d63a
VZ
1866 DEFAULT_DEFAULT_wxUSE_MSW=1
1867 ;;
1868
f9bc1684
VS
1869 *-pc-msdosdjgpp )
1870 USE_UNIX=0
1871 USE_DOS=1
e6cc62c6 1872 cat >>confdefs.h <<\_ACEOF
f9bc1684 1873#define __DOS__ 1
e6cc62c6 1874_ACEOF
f9bc1684
VS
1875
1876 PROGRAM_EXT=".exe"
1877 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1878 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1879 ;;
1880
6fa882bd 1881 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1882 cat >>confdefs.h <<\_ACEOF
10f2d63a 1883#define __EMX__ 1
e6cc62c6 1884_ACEOF
10f2d63a 1885
cf27ef00 1886 PROGRAM_EXT=".exe"
e07802fc 1887 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1888 ;;
1889
d08b457b
GD
1890 powerpc-*-darwin* )
1891 USE_BSD=1
f11bdd03 1892 USE_DARWIN=1
3a922bb4 1893 SO_SUFFIX=dylib
e6cc62c6 1894 cat >>confdefs.h <<\_ACEOF
f11bdd03 1895#define __BSD__ 1
e6cc62c6 1896_ACEOF
b4085ce6 1897
e6cc62c6 1898 cat >>confdefs.h <<\_ACEOF
f11bdd03 1899#define __DARWIN__ 1
e6cc62c6 1900_ACEOF
d08b457b 1901
e6cc62c6 1902 cat >>confdefs.h <<\_ACEOF
d08b457b 1903#define __POWERPC__ 1
e6cc62c6 1904_ACEOF
82d43113 1905
e6cc62c6 1906 cat >>confdefs.h <<\_ACEOF
82d43113 1907#define TARGET_CARBON 1
e6cc62c6 1908_ACEOF
b4085ce6
GD
1909
1910 DEFAULT_DEFAULT_wxUSE_MAC=1
1911 ;;
1912
b12915c1
VZ
1913 *-*-beos* )
1914 USE_BEOS=1
e6cc62c6 1915 cat >>confdefs.h <<\_ACEOF
b12915c1 1916#define __BEOS__ 1
e6cc62c6 1917_ACEOF
b12915c1
VZ
1918
1919 ;;
1920
10f2d63a 1921 *)
e6cc62c6
VS
1922 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1923echo "$as_me: error: unknown system type ${host}." >&2;}
1924 { (exit 1); exit 1; }; }
10f2d63a
VZ
1925esac
1926
8284b0c5
MB
1927
1928
1929
1930 wx_arg_cache_file="configarg.cache"
1931 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1932 rm -f ${wx_arg_cache_file}.tmp
1933 touch ${wx_arg_cache_file}.tmp
1934 touch ${wx_arg_cache_file}
e6cc62c6 1935
10f2d63a
VZ
1936
1937DEBUG_CONFIGURE=0
1938if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1939 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1940 DEFAULT_wxUSE_STL=no
1e6feb95 1941
d8356fa3
VZ
1942 DEFAULT_wxUSE_NANOX=no
1943
10f2d63a
VZ
1944 DEFAULT_wxUSE_THREADS=yes
1945
1946 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1947 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1948 DEFAULT_wxUSE_PROFILE=no
1949 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1950 DEFAULT_wxUSE_NO_RTTI=no
1951 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1952 DEFAULT_wxUSE_PERMISSIVE=no
1953 DEFAULT_wxUSE_DEBUG_FLAG=yes
1954 DEFAULT_wxUSE_DEBUG_INFO=yes
1955 DEFAULT_wxUSE_DEBUG_GDB=yes
1956 DEFAULT_wxUSE_MEM_TRACING=no
1957 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1958 DEFAULT_wxUSE_DMALLOC=no
1959 DEFAULT_wxUSE_APPLE_IEEE=no
1960
1961 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1962 DEFAULT_wxUSE_LOGWINDOW=no
1963 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1964 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1965
1966 DEFAULT_wxUSE_GUI=yes
1e6feb95 1967 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1968
3e44f09d 1969 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1970 DEFAULT_wxUSE_ZLIB=no
1971 DEFAULT_wxUSE_LIBPNG=no
1972 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1973 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1974 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1975 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1976
eb4efbdc 1977 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1978 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1979 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1980 DEFAULT_wxUSE_CMDLINE_PARSER=no
1981 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1982 DEFAULT_wxUSE_TIMER=no
1983 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1984 DEFAULT_wxUSE_FILE=no
1e6feb95 1985 DEFAULT_wxUSE_FFILE=no
a3a584a7 1986 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1987 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1988 DEFAULT_wxUSE_WAVE=no
1989 DEFAULT_wxUSE_INTL=no
1990 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1991 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1992 DEFAULT_wxUSE_STREAMS=no
1993 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1994 DEFAULT_wxUSE_OLE=no
1995 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1996 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1997 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1998 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1999 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2000 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2001 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2002
2003 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2004 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2005 DEFAULT_wxUSE_POSTSCRIPT=no
2006
10f2d63a
VZ
2007 DEFAULT_wxUSE_CLIPBOARD=no
2008 DEFAULT_wxUSE_TOOLTIPS=no
2009 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2010 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2011 DEFAULT_wxUSE_SPLINES=no
2012
2013 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2014 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2015 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2016
10f2d63a
VZ
2017 DEFAULT_wxUSE_RESOURCES=no
2018 DEFAULT_wxUSE_CONSTRAINTS=no
2019 DEFAULT_wxUSE_IPC=no
2020 DEFAULT_wxUSE_HELP=no
29fd3c0c 2021 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2022 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2023 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2024 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2025 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2026 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2027 DEFAULT_wxUSE_PROTOCOL=no
2028 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2029 DEFAULT_wxUSE_PROTOCOL_FTP=no
2030 DEFAULT_wxUSE_PROTOCOL_FILE=no
2031 DEFAULT_wxUSE_URL=no
3bd8fb5f 2032
10f2d63a 2033 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2034 DEFAULT_wxUSE_CHOICEDLG=no
2035 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2036 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2037 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2038 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2039 DEFAULT_wxUSE_FONTDLG=no
2040 DEFAULT_wxUSE_MSGDLG=no
2041 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2042 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2043 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2044 DEFAULT_wxUSE_STARTUP_TIPS=no
2045 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2046 DEFAULT_wxUSE_WIZARDDLG=no
2047
1e6feb95 2048 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2049 DEFAULT_wxUSE_MINIFRAME=no
2050 DEFAULT_wxUSE_HTML=no
24528b0c 2051 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2052 DEFAULT_wxUSE_FS_INET=no
2053 DEFAULT_wxUSE_FS_ZIP=no
2054 DEFAULT_wxUSE_BUSYINFO=no
2055 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2056 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2057
2058 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2059 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2060 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2061 DEFAULT_wxUSE_CALCTRL=no
2062 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2063 DEFAULT_wxUSE_CHECKBOX=no
2064 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2065 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2066 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2067 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2068 DEFAULT_wxUSE_GAUGE=no
2069 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2070 DEFAULT_wxUSE_IMAGLIST=no
2071 DEFAULT_wxUSE_LISTBOX=no
2072 DEFAULT_wxUSE_LISTCTRL=no
2073 DEFAULT_wxUSE_NOTEBOOK=no
2074 DEFAULT_wxUSE_RADIOBOX=no
2075 DEFAULT_wxUSE_RADIOBTN=no
2076 DEFAULT_wxUSE_SASH=no
2077 DEFAULT_wxUSE_SCROLLBAR=no
2078 DEFAULT_wxUSE_SLIDER=no
2079 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2080 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2081 DEFAULT_wxUSE_SPLITTER=no
2082 DEFAULT_wxUSE_STATBMP=no
2083 DEFAULT_wxUSE_STATBOX=no
2084 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2085 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2086 DEFAULT_wxUSE_STATUSBAR=yes
2087 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2088 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2089 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2090 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2091 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2092 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2093 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2094 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2095 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2096
2097 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2098 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2099 DEFAULT_wxUSE_WCSRTOMBS=no
2100
edae8572 2101 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2102 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2103 DEFAULT_wxUSE_GIF=no
2104 DEFAULT_wxUSE_PCX=no
2105 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2106 DEFAULT_wxUSE_IFF=no
0046ff7c 2107 DEFAULT_wxUSE_XPM=no
658974ae 2108 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2109 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2110
2111 DEFAULT_wxUSE_MONOLITHIC=yes
10f2d63a 2112else
1e6feb95 2113 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2114 DEFAULT_wxUSE_STL=no
1e6feb95 2115
d8356fa3
VZ
2116 DEFAULT_wxUSE_NANOX=no
2117
10f2d63a
VZ
2118 DEFAULT_wxUSE_THREADS=yes
2119
2120 DEFAULT_wxUSE_SHARED=yes
2121 DEFAULT_wxUSE_OPTIMISE=yes
2122 DEFAULT_wxUSE_PROFILE=no
2123 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2124 DEFAULT_wxUSE_NO_RTTI=no
2125 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2126 DEFAULT_wxUSE_PERMISSIVE=no
2127 DEFAULT_wxUSE_DEBUG_FLAG=no
2128 DEFAULT_wxUSE_DEBUG_INFO=no
2129 DEFAULT_wxUSE_DEBUG_GDB=no
2130 DEFAULT_wxUSE_MEM_TRACING=no
2131 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2132 DEFAULT_wxUSE_DMALLOC=no
2133 DEFAULT_wxUSE_APPLE_IEEE=yes
2134
2135 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2136 DEFAULT_wxUSE_LOGWINDOW=yes
2137 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2138 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2139
2140 DEFAULT_wxUSE_GUI=yes
2141
831b3152 2142 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
2143 DEFAULT_wxUSE_ZLIB=yes
2144 DEFAULT_wxUSE_LIBPNG=yes
2145 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2146 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2147 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2148 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2149
eb4efbdc 2150 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2151 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2152 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2153 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2154 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2155 DEFAULT_wxUSE_TIMER=yes
2156 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2157 DEFAULT_wxUSE_FILE=yes
1e6feb95 2158 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2159 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2160 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2161 DEFAULT_wxUSE_WAVE=no
2162 DEFAULT_wxUSE_INTL=yes
2163 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2164 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2165 DEFAULT_wxUSE_STREAMS=yes
2166 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2167 DEFAULT_wxUSE_OLE=yes
2168 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2169 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2170 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2171 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2172 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2173 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2174 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2175
2176 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2177 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2178 DEFAULT_wxUSE_POSTSCRIPT=yes
2179
10f2d63a
VZ
2180 DEFAULT_wxUSE_CLIPBOARD=yes
2181 DEFAULT_wxUSE_TOOLTIPS=yes
2182 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2183 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2184 DEFAULT_wxUSE_SPLINES=yes
2185
2186 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2187 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2188 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2189
2b5f62a0 2190 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2191 DEFAULT_wxUSE_CONSTRAINTS=yes
2192 DEFAULT_wxUSE_IPC=yes
2193 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2194 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2195 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2196 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2197 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2198 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2199 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2200 DEFAULT_wxUSE_PROTOCOL=yes
2201 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2202 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2203 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2204 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2205
2206 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2207 DEFAULT_wxUSE_CHOICEDLG=yes
2208 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2209 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2210 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2211 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2212 DEFAULT_wxUSE_FONTDLG=yes
2213 DEFAULT_wxUSE_MSGDLG=yes
2214 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2215 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2216 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2217 DEFAULT_wxUSE_STARTUP_TIPS=yes
2218 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2219 DEFAULT_wxUSE_WIZARDDLG=yes
2220
1e6feb95 2221 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2222 DEFAULT_wxUSE_MINIFRAME=yes
2223 DEFAULT_wxUSE_HTML=yes
24528b0c 2224 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2225 DEFAULT_wxUSE_FS_INET=yes
2226 DEFAULT_wxUSE_FS_ZIP=yes
2227 DEFAULT_wxUSE_BUSYINFO=yes
2228 DEFAULT_wxUSE_ZIPSTREAM=yes
2229 DEFAULT_wxUSE_VALIDATORS=yes
2230
2231 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2232 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2233 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2234 DEFAULT_wxUSE_CALCTRL=yes
2235 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2236 DEFAULT_wxUSE_CHECKBOX=yes
2237 DEFAULT_wxUSE_CHECKLST=yes
2238 DEFAULT_wxUSE_CHOICE=yes
2239 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2240 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2241 DEFAULT_wxUSE_GAUGE=yes
2242 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2243 DEFAULT_wxUSE_IMAGLIST=yes
2244 DEFAULT_wxUSE_LISTBOX=yes
2245 DEFAULT_wxUSE_LISTCTRL=yes
2246 DEFAULT_wxUSE_NOTEBOOK=yes
2247 DEFAULT_wxUSE_RADIOBOX=yes
2248 DEFAULT_wxUSE_RADIOBTN=yes
2249 DEFAULT_wxUSE_SASH=yes
2250 DEFAULT_wxUSE_SCROLLBAR=yes
2251 DEFAULT_wxUSE_SLIDER=yes
2252 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2253 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2254 DEFAULT_wxUSE_SPLITTER=yes
2255 DEFAULT_wxUSE_STATBMP=yes
2256 DEFAULT_wxUSE_STATBOX=yes
2257 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2258 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2259 DEFAULT_wxUSE_STATUSBAR=yes
2260 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2261 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2262 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2263 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2264 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2265 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2266 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2267 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2268 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2269
2270 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2271 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2272 DEFAULT_wxUSE_WCSRTOMBS=no
2273
edae8572 2274 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2275 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2276 DEFAULT_wxUSE_GIF=yes
2277 DEFAULT_wxUSE_PCX=yes
cc0e8480 2278 DEFAULT_wxUSE_IFF=no
10f2d63a 2279 DEFAULT_wxUSE_PNM=yes
0046ff7c 2280 DEFAULT_wxUSE_XPM=yes
658974ae 2281 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2282 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2283
2284 DEFAULT_wxUSE_MONOLITHIC=yes
10f2d63a
VZ
2285fi
2286
8284b0c5
MB
2287
2288
10f2d63a 2289for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2290 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2291 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2292 has_toolkit_in_cache=1
2293 eval "DEFAULT_$LINE"
2294 eval "CACHE_$toolkit=1"
2295 fi
2296done
2297
8284b0c5
MB
2298
2299
5005acfe 2300 enablestring=
e6cc62c6
VS
2301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2302echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2303 no_cache=0
2304 # Check whether --enable-gui or --disable-gui was given.
2305if test "${enable_gui+set}" = set; then
2306 enableval="$enable_gui"
e6cc62c6 2307
10f2d63a
VZ
2308 if test "$enableval" = yes; then
2309 ac_cv_use_gui='wxUSE_GUI=yes'
2310 else
2311 ac_cv_use_gui='wxUSE_GUI=no'
2312 fi
e6cc62c6 2313
10f2d63a 2314else
e6cc62c6 2315
10f2d63a
VZ
2316 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2317 if test "x$LINE" != x ; then
2318 eval "DEFAULT_$LINE"
2319 else
2320 no_cache=1
2321 fi
2322
2323 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2324
e6cc62c6 2325fi;
10f2d63a
VZ
2326
2327 eval "$ac_cv_use_gui"
2328 if test "$no_cache" != 1; then
2329 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2330 fi
2331
2332 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2333 echo "$as_me:$LINENO: result: yes" >&5
2334echo "${ECHO_T}yes" >&6
10f2d63a 2335 else
e6cc62c6
VS
2336 echo "$as_me:$LINENO: result: no" >&5
2337echo "${ECHO_T}no" >&6
10f2d63a 2338 fi
e6cc62c6 2339
10f2d63a 2340
9747f85d
VS
2341 enablestring=
2342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2343echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2344 no_cache=0
2345 # Check whether --enable-monolithic or --disable-monolithic was given.
2346if test "${enable_monolithic+set}" = set; then
2347 enableval="$enable_monolithic"
2348
2349 if test "$enableval" = yes; then
2350 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2351 else
2352 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2353 fi
2354
2355else
2356
2357 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2358 if test "x$LINE" != x ; then
2359 eval "DEFAULT_$LINE"
2360 else
2361 no_cache=1
2362 fi
2363
2364 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2365
2366fi;
2367
2368 eval "$ac_cv_use_monolithic"
2369 if test "$no_cache" != 1; then
2370 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2371 fi
2372
2373 if test "$wxUSE_MONOLITHIC" = yes; then
2374 echo "$as_me:$LINENO: result: yes" >&5
2375echo "${ECHO_T}yes" >&6
2376 else
2377 echo "$as_me:$LINENO: result: no" >&5
2378echo "${ECHO_T}no" >&6
2379 fi
2380
2381
b12915c1 2382if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2383
8284b0c5 2384
5005acfe 2385 enablestring=
e6cc62c6
VS
2386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2387echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2388 no_cache=0
2389 # Check whether --enable-universal or --disable-universal was given.
2390if test "${enable_universal+set}" = set; then
2391 enableval="$enable_universal"
e6cc62c6 2392
1e6feb95
VZ
2393 if test "$enableval" = yes; then
2394 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2395 else
2396 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2397 fi
e6cc62c6 2398
1e6feb95 2399else
e6cc62c6 2400
1e6feb95
VZ
2401 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2402 if test "x$LINE" != x ; then
2403 eval "DEFAULT_$LINE"
2404 else
2405 no_cache=1
2406 fi
2407
2408 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2409
e6cc62c6 2410fi;
1e6feb95
VZ
2411
2412 eval "$ac_cv_use_universal"
2413 if test "$no_cache" != 1; then
2414 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2415 fi
2416
2417 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2418 echo "$as_me:$LINENO: result: yes" >&5
2419echo "${ECHO_T}yes" >&6
1e6feb95 2420 else
e6cc62c6
VS
2421 echo "$as_me:$LINENO: result: no" >&5
2422echo "${ECHO_T}no" >&6
1e6feb95 2423 fi
e6cc62c6
VS
2424
2425
10f2d63a
VZ
2426# Check whether --with-gtk or --without-gtk was given.
2427if test "${with_gtk+set}" = set; then
2428 withval="$with_gtk"
2429 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2430fi;
10f2d63a
VZ
2431
2432# Check whether --with-motif or --without-motif was given.
2433if test "${with_motif+set}" = set; then
2434 withval="$with_motif"
2435 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2436fi;
10f2d63a 2437
b4085ce6
GD
2438# Check whether --with-mac or --without-mac was given.
2439if test "${with_mac+set}" = set; then
2440 withval="$with_mac"
2441 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2442fi;
b4085ce6 2443
ac0c4cc3
DE
2444# Check whether --with-cocoa or --without-cocoa was given.
2445if test "${with_cocoa+set}" = set; then
2446 withval="$with_cocoa"
2447 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2448fi;
ac0c4cc3 2449
10f2d63a
VZ
2450# Check whether --with-wine or --without-wine was given.
2451if test "${with_wine+set}" = set; then
2452 withval="$with_wine"
89e6bf6d 2453 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2454fi;
10f2d63a 2455
77e13408
RL
2456# Check whether --with-msw or --without-msw was given.
2457if test "${with_msw+set}" = set; then
2458 withval="$with_msw"
b4efce5e 2459 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2460fi;
10f2d63a 2461
e07802fc
VZ
2462# Check whether --with-pm or --without-pm was given.
2463if test "${with_pm+set}" = set; then
2464 withval="$with_pm"
2465 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2466fi;
698dcdb6 2467
1e6feb95
VZ
2468# Check whether --with-mgl or --without-mgl was given.
2469if test "${with_mgl+set}" = set; then
2470 withval="$with_mgl"
6c657b52 2471 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2472fi;
1e6feb95 2473
1725144d
RR
2474# Check whether --with-microwin or --without-microwin was given.
2475if test "${with_microwin+set}" = set; then
2476 withval="$with_microwin"
2477 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2478fi;
1725144d 2479
f79bd02d
JS
2480# Check whether --with-x11 or --without-x11 was given.
2481if test "${with_x11+set}" = set; then
2482 withval="$with_x11"
3c011993 2483 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2484fi;
a0b9e27f 2485
5005acfe 2486 enablestring=
e6cc62c6
VS
2487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2488echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2489 no_cache=0
ba875e66
VZ
2490 # Check whether --enable-nanox or --disable-nanox was given.
2491if test "${enable_nanox+set}" = set; then
2492 enableval="$enable_nanox"
e6cc62c6 2493
d8356fa3 2494 if test "$enableval" = yes; then
ba875e66 2495 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2496 else
ba875e66 2497 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2498 fi
e6cc62c6 2499
d8356fa3 2500else
e6cc62c6 2501
d8356fa3
VZ
2502 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
ba875e66 2509 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2510
e6cc62c6 2511fi;
d8356fa3 2512
ba875e66 2513 eval "$ac_cv_use_nanox"
d8356fa3 2514 if test "$no_cache" != 1; then
ba875e66 2515 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2516 fi
2517
2518 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2519 echo "$as_me:$LINENO: result: yes" >&5
2520echo "${ECHO_T}yes" >&6
d8356fa3 2521 else
e6cc62c6
VS
2522 echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
d8356fa3 2524 fi
e6cc62c6 2525
8284b0c5 2526
d74f4b5a 2527
5005acfe 2528 enablestring=
e6cc62c6
VS
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2530echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2531 no_cache=0
2532 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2533if test "${enable_gtk2+set}" = set; then
2534 enableval="$enable_gtk2"
e6cc62c6 2535
d74f4b5a
VZ
2536 if test "$enableval" = yes; then
2537 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2538 else
2539 ac_cv_use_gtk2='wxUSE_GTK2=no'
2540 fi
e6cc62c6 2541
10f2d63a 2542else
e6cc62c6 2543
d74f4b5a
VZ
2544 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2552
e6cc62c6 2553fi;
328a083c 2554
d74f4b5a
VZ
2555 eval "$ac_cv_use_gtk2"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
d74f4b5a 2563 else
e6cc62c6
VS
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
d74f4b5a 2566 fi
d74f4b5a 2567
5c6fa7d2 2568
e6cc62c6
VS
2569
2570 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2571echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2572 no_cache=0
e6cc62c6
VS
2573
2574# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2575if test "${with_libpng+set}" = set; then
2576 withval="$with_libpng"
e6cc62c6 2577
10f2d63a 2578 if test "$withval" = yes; then
b12915c1 2579 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2580 elif test "$withval" = no; then
b12915c1 2581 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2582 elif test "$withval" = sys; then
2583 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2584 elif test "$withval" = builtin; then
2585 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2586 else
e6cc62c6
VS
2587 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2588echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2589 { (exit 1); exit 1; }; }
10f2d63a 2590 fi
e6cc62c6 2591
10f2d63a 2592else
e6cc62c6 2593
b12915c1 2594 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2595 if test "x$LINE" != x ; then
2596 eval "DEFAULT_$LINE"
2597 else
2598 no_cache=1
2599 fi
2600
b12915c1 2601 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2602
e6cc62c6 2603fi;
10f2d63a 2604
b12915c1 2605 eval "$ac_cv_use_libpng"
10f2d63a 2606 if test "$no_cache" != 1; then
b12915c1 2607 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2608 fi
2609
b12915c1 2610 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2611 echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6
422107f9 2613 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2614 echo "$as_me:$LINENO: result: no" >&5
2615echo "${ECHO_T}no" >&6
422107f9 2616 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2617 echo "$as_me:$LINENO: result: system version" >&5
2618echo "${ECHO_T}system version" >&6
4f14bcd8 2619 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2620 echo "$as_me:$LINENO: result: builtin version" >&5
2621echo "${ECHO_T}builtin version" >&6
422107f9 2622 else
e6cc62c6
VS
2623 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2624echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2625 { (exit 1); exit 1; }; }
10f2d63a 2626 fi
10f2d63a 2627
e6cc62c6
VS
2628
2629 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2630echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2631 no_cache=0
e6cc62c6
VS
2632
2633# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2634if test "${with_libjpeg+set}" = set; then
2635 withval="$with_libjpeg"
e6cc62c6 2636
10f2d63a 2637 if test "$withval" = yes; then
b12915c1 2638 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2639 elif test "$withval" = no; then
b12915c1 2640 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2641 elif test "$withval" = sys; then
2642 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2643 elif test "$withval" = builtin; then
2644 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2645 else
e6cc62c6
VS
2646 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2647echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2648 { (exit 1); exit 1; }; }
10f2d63a 2649 fi
e6cc62c6 2650
10f2d63a 2651else
e6cc62c6 2652
b12915c1 2653 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2654 if test "x$LINE" != x ; then
2655 eval "DEFAULT_$LINE"
2656 else
2657 no_cache=1
2658 fi
2659
b12915c1 2660 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2661
e6cc62c6 2662fi;
10f2d63a 2663
b12915c1 2664 eval "$ac_cv_use_libjpeg"
10f2d63a 2665 if test "$no_cache" != 1; then
b12915c1 2666 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2667 fi
2668
b12915c1 2669 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2670 echo "$as_me:$LINENO: result: yes" >&5
2671echo "${ECHO_T}yes" >&6
422107f9 2672 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2673 echo "$as_me:$LINENO: result: no" >&5
2674echo "${ECHO_T}no" >&6
422107f9 2675 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2676 echo "$as_me:$LINENO: result: system version" >&5
2677echo "${ECHO_T}system version" >&6
4f14bcd8 2678 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2679 echo "$as_me:$LINENO: result: builtin version" >&5
2680echo "${ECHO_T}builtin version" >&6
422107f9 2681 else
e6cc62c6
VS
2682 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2683echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2684 { (exit 1); exit 1; }; }
10f2d63a 2685 fi
10f2d63a 2686
e6cc62c6
VS
2687
2688 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2689echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2690 no_cache=0
e6cc62c6
VS
2691
2692# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2693if test "${with_libtiff+set}" = set; then
2694 withval="$with_libtiff"
e6cc62c6 2695
10f2d63a 2696 if test "$withval" = yes; then
b12915c1 2697 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2698 elif test "$withval" = no; then
b12915c1 2699 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2700 elif test "$withval" = sys; then
2701 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2702 elif test "$withval" = builtin; then
2703 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2704 else
e6cc62c6
VS
2705 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2706echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2707 { (exit 1); exit 1; }; }
10f2d63a 2708 fi
e6cc62c6 2709
10f2d63a 2710else
e6cc62c6 2711
b12915c1 2712 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2713 if test "x$LINE" != x ; then
2714 eval "DEFAULT_$LINE"
2715 else
2716 no_cache=1
2717 fi
2718
b12915c1 2719 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2720
e6cc62c6 2721fi;
10f2d63a 2722
b12915c1 2723 eval "$ac_cv_use_libtiff"
10f2d63a 2724 if test "$no_cache" != 1; then
b12915c1 2725 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2726 fi
2727
b12915c1 2728 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2729 echo "$as_me:$LINENO: result: yes" >&5
2730echo "${ECHO_T}yes" >&6
0dcf9893 2731 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2732 echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6
0dcf9893 2734 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2735 echo "$as_me:$LINENO: result: system version" >&5
2736echo "${ECHO_T}system version" >&6
4f14bcd8 2737 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2738 echo "$as_me:$LINENO: result: builtin version" >&5
2739echo "${ECHO_T}builtin version" >&6
0dcf9893 2740 else
e6cc62c6
VS
2741 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2742echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2743 { (exit 1); exit 1; }; }
10f2d63a 2744 fi
10f2d63a 2745
e6cc62c6
VS
2746
2747 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2748echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2749 no_cache=0
e6cc62c6
VS
2750
2751# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2752if test "${with_opengl+set}" = set; then
2753 withval="$with_opengl"
e6cc62c6 2754
10f2d63a 2755 if test "$withval" = yes; then
b12915c1 2756 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2757 else
b12915c1 2758 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2759 fi
e6cc62c6 2760
10f2d63a 2761else
e6cc62c6 2762
b12915c1 2763 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2764 if test "x$LINE" != x ; then
2765 eval "DEFAULT_$LINE"
2766 else
2767 no_cache=1
2768 fi
2769
b12915c1 2770 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2771
e6cc62c6 2772fi;
10f2d63a 2773
b12915c1 2774 eval "$ac_cv_use_opengl"
10f2d63a 2775 if test "$no_cache" != 1; then
b12915c1 2776 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2777 fi
2778
b12915c1 2779 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2780 echo "$as_me:$LINENO: result: yes" >&5
2781echo "${ECHO_T}yes" >&6
10f2d63a 2782 else
e6cc62c6
VS
2783 echo "$as_me:$LINENO: result: no" >&5
2784echo "${ECHO_T}no" >&6
10f2d63a 2785 fi
e6cc62c6 2786
10f2d63a 2787
b12915c1
VZ
2788fi
2789
5c6fa7d2 2790
e6cc62c6
VS
2791 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2792echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2793 no_cache=0
e6cc62c6
VS
2794
2795# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2796if test "${with_dmalloc+set}" = set; then
2797 withval="$with_dmalloc"
e6cc62c6 2798
c7a2bf27 2799 if test "$withval" = yes; then
b12915c1 2800 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2801 else
b12915c1 2802 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2803 fi
e6cc62c6 2804
c7a2bf27 2805else
e6cc62c6 2806
b12915c1 2807 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2808 if test "x$LINE" != x ; then
2809 eval "DEFAULT_$LINE"
2810 else
2811 no_cache=1
2812 fi
2813
b12915c1 2814 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2815
e6cc62c6 2816fi;
c7a2bf27 2817
b12915c1 2818 eval "$ac_cv_use_dmalloc"
c7a2bf27 2819 if test "$no_cache" != 1; then
b12915c1 2820 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2821 fi
2822
b12915c1 2823 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2824 echo "$as_me:$LINENO: result: yes" >&5
2825echo "${ECHO_T}yes" >&6
c7a2bf27 2826 else
e6cc62c6
VS
2827 echo "$as_me:$LINENO: result: no" >&5
2828echo "${ECHO_T}no" >&6
c7a2bf27 2829 fi
c7a2bf27 2830
e6cc62c6
VS
2831
2832 echo "$as_me:$LINENO: checking for --with-regex" >&5
2833echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2834 no_cache=0
e6cc62c6
VS
2835
2836# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2837if test "${with_regex+set}" = set; then
2838 withval="$with_regex"
e6cc62c6 2839
3e44f09d
VZ
2840 if test "$withval" = yes; then
2841 ac_cv_use_regex='wxUSE_REGEX=yes'
2842 elif test "$withval" = no; then
2843 ac_cv_use_regex='wxUSE_REGEX=no'
2844 elif test "$withval" = sys; then
2845 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2846 elif test "$withval" = builtin; then
2847 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2848 else
e6cc62c6
VS
2849 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2850echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2851 { (exit 1); exit 1; }; }
3e44f09d 2852 fi
e6cc62c6 2853
3e44f09d 2854else
e6cc62c6 2855
3e44f09d
VZ
2856 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2857 if test "x$LINE" != x ; then
2858 eval "DEFAULT_$LINE"
2859 else
2860 no_cache=1
2861 fi
2862
2863 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2864
e6cc62c6 2865fi;
3e44f09d
VZ
2866
2867 eval "$ac_cv_use_regex"
2868 if test "$no_cache" != 1; then
2869 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2870 fi
2871
2872 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2873 echo "$as_me:$LINENO: result: yes" >&5
2874echo "${ECHO_T}yes" >&6
3e44f09d 2875 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2876 echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
3e44f09d 2878 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2879 echo "$as_me:$LINENO: result: system version" >&5
2880echo "${ECHO_T}system version" >&6
4f14bcd8 2881 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2882 echo "$as_me:$LINENO: result: builtin version" >&5
2883echo "${ECHO_T}builtin version" >&6
3e44f09d 2884 else
e6cc62c6
VS
2885 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2886echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2887 { (exit 1); exit 1; }; }
3e44f09d 2888 fi
3e44f09d 2889
e6cc62c6
VS
2890
2891 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2892echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2893 no_cache=0
e6cc62c6
VS
2894
2895# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2896if test "${with_zlib+set}" = set; then
2897 withval="$with_zlib"
e6cc62c6 2898
10f2d63a 2899 if test "$withval" = yes; then
b12915c1 2900 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2901 elif test "$withval" = no; then
b12915c1 2902 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2903 elif test "$withval" = sys; then
2904 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2905 elif test "$withval" = builtin; then
2906 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2907 else
e6cc62c6
VS
2908 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2909echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2910 { (exit 1); exit 1; }; }
10f2d63a 2911 fi
e6cc62c6 2912
10f2d63a 2913else
e6cc62c6 2914
b12915c1 2915 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2916 if test "x$LINE" != x ; then
2917 eval "DEFAULT_$LINE"
2918 else
2919 no_cache=1
2920 fi
2921
b12915c1 2922 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2923
e6cc62c6 2924fi;
10f2d63a 2925
b12915c1 2926 eval "$ac_cv_use_zlib"
10f2d63a 2927 if test "$no_cache" != 1; then
b12915c1 2928 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2929 fi
2930
b12915c1 2931 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2932 echo "$as_me:$LINENO: result: yes" >&5
2933echo "${ECHO_T}yes" >&6
422107f9 2934 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2935 echo "$as_me:$LINENO: result: no" >&5
2936echo "${ECHO_T}no" >&6
422107f9 2937 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2938 echo "$as_me:$LINENO: result: system version" >&5
2939echo "${ECHO_T}system version" >&6
4f14bcd8 2940 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2941 echo "$as_me:$LINENO: result: builtin version" >&5
2942echo "${ECHO_T}builtin version" >&6
422107f9 2943 else
e6cc62c6
VS
2944 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2945echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2946 { (exit 1); exit 1; }; }
10f2d63a 2947 fi
10f2d63a 2948
e6cc62c6
VS
2949
2950 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2951echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2952 no_cache=0
e6cc62c6
VS
2953
2954# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2955if test "${with_odbc+set}" = set; then
2956 withval="$with_odbc"
e6cc62c6 2957
10f2d63a
VZ
2958 if test "$withval" = yes; then
2959 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2960 elif test "$withval" = no; then
10f2d63a 2961 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2962 elif test "$withval" = sys; then
2963 ac_cv_use_odbc='wxUSE_ODBC=sys'
2964 elif test "$withval" = builtin; then
2965 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2966 else
e6cc62c6
VS
2967 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2968echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2969 { (exit 1); exit 1; }; }
10f2d63a 2970 fi
e6cc62c6 2971
10f2d63a 2972else
e6cc62c6 2973
10f2d63a
VZ
2974 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2975 if test "x$LINE" != x ; then
2976 eval "DEFAULT_$LINE"
2977 else
2978 no_cache=1
2979 fi
2980
2981 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2982
e6cc62c6 2983fi;
10f2d63a
VZ
2984
2985 eval "$ac_cv_use_odbc"
2986 if test "$no_cache" != 1; then
2987 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2988 fi
2989
2990 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
2991 echo "$as_me:$LINENO: result: yes" >&5
2992echo "${ECHO_T}yes" >&6
8647bec6 2993 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
2994 echo "$as_me:$LINENO: result: no" >&5
2995echo "${ECHO_T}no" >&6
8647bec6 2996 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
2997 echo "$as_me:$LINENO: result: system version" >&5
2998echo "${ECHO_T}system version" >&6
8647bec6 2999 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3000 echo "$as_me:$LINENO: result: builtin version" >&5
3001echo "${ECHO_T}builtin version" >&6
8647bec6 3002 else
e6cc62c6
VS
3003 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3004echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3005 { (exit 1); exit 1; }; }
10f2d63a 3006 fi
e6cc62c6 3007
52127426 3008
8284b0c5
MB
3009
3010
5005acfe 3011 enablestring=
e6cc62c6
VS
3012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3013echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3014 no_cache=0
3015 # Check whether --enable-shared or --disable-shared was given.
3016if test "${enable_shared+set}" = set; then
3017 enableval="$enable_shared"
e6cc62c6 3018
10f2d63a
VZ
3019 if test "$enableval" = yes; then
3020 ac_cv_use_shared='wxUSE_SHARED=yes'
3021 else
3022 ac_cv_use_shared='wxUSE_SHARED=no'
3023 fi
e6cc62c6 3024
10f2d63a 3025else
e6cc62c6 3026
10f2d63a
VZ
3027 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3028 if test "x$LINE" != x ; then
3029 eval "DEFAULT_$LINE"
3030 else
3031 no_cache=1
3032 fi
3033
3034 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3035
e6cc62c6 3036fi;
10f2d63a
VZ
3037
3038 eval "$ac_cv_use_shared"
3039 if test "$no_cache" != 1; then
3040 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3041 fi
3042
3043 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3044 echo "$as_me:$LINENO: result: yes" >&5
3045echo "${ECHO_T}yes" >&6
10f2d63a 3046 else
e6cc62c6
VS
3047 echo "$as_me:$LINENO: result: no" >&5
3048echo "${ECHO_T}no" >&6
10f2d63a 3049 fi
e6cc62c6 3050
10f2d63a 3051
5005acfe 3052 enablestring=
e6cc62c6
VS
3053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3054echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3055 no_cache=0
3056 # Check whether --enable-optimise or --disable-optimise was given.
3057if test "${enable_optimise+set}" = set; then
3058 enableval="$enable_optimise"
e6cc62c6 3059
10f2d63a
VZ
3060 if test "$enableval" = yes; then
3061 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3062 else
3063 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3064 fi
e6cc62c6 3065
10f2d63a 3066else
e6cc62c6 3067
10f2d63a
VZ
3068 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3069 if test "x$LINE" != x ; then
3070 eval "DEFAULT_$LINE"
3071 else
3072 no_cache=1
3073 fi
3074
3075 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3076
e6cc62c6 3077fi;
10f2d63a
VZ
3078
3079 eval "$ac_cv_use_optimise"
3080 if test "$no_cache" != 1; then
3081 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3082 fi
3083
3084 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3085 echo "$as_me:$LINENO: result: yes" >&5
3086echo "${ECHO_T}yes" >&6
10f2d63a 3087 else
e6cc62c6
VS
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
10f2d63a 3090 fi
e6cc62c6 3091
10f2d63a 3092
5005acfe 3093 enablestring=
e6cc62c6
VS
3094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3095echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3096 no_cache=0
3097 # Check whether --enable-debug or --disable-debug was given.
3098if test "${enable_debug+set}" = set; then
3099 enableval="$enable_debug"
e6cc62c6 3100
10f2d63a
VZ
3101 if test "$enableval" = yes; then
3102 ac_cv_use_debug='wxUSE_DEBUG=yes'
3103 else
3104 ac_cv_use_debug='wxUSE_DEBUG=no'
3105 fi
e6cc62c6 3106
10f2d63a 3107else
e6cc62c6 3108
10f2d63a
VZ
3109 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3110 if test "x$LINE" != x ; then
3111 eval "DEFAULT_$LINE"
3112 else
3113 no_cache=1
3114 fi
3115
3116 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3117
e6cc62c6 3118fi;
10f2d63a
VZ
3119
3120 eval "$ac_cv_use_debug"
3121 if test "$no_cache" != 1; then
3122 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3123 fi
3124
3125 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3126 echo "$as_me:$LINENO: result: yes" >&5
3127echo "${ECHO_T}yes" >&6
10f2d63a 3128 else
e6cc62c6
VS
3129 echo "$as_me:$LINENO: result: no" >&5
3130echo "${ECHO_T}no" >&6
10f2d63a 3131 fi
e6cc62c6 3132
52127426 3133
df5168c4
MB
3134 enablestring=
3135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3136echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3137 no_cache=0
3138 # Check whether --enable-stl or --disable-stl was given.
3139if test "${enable_stl+set}" = set; then
3140 enableval="$enable_stl"
3141
3142 if test "$enableval" = yes; then
3143 ac_cv_use_stl='wxUSE_STL=yes'
3144 else
3145 ac_cv_use_stl='wxUSE_STL=no'
3146 fi
3147
3148else
3149
3150 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3151 if test "x$LINE" != x ; then
3152 eval "DEFAULT_$LINE"
3153 else
3154 no_cache=1
3155 fi
3156
3157 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3158
3159fi;
3160
3161 eval "$ac_cv_use_stl"
3162 if test "$no_cache" != 1; then
3163 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3164 fi
3165
3166 if test "$wxUSE_STL" = yes; then
3167 echo "$as_me:$LINENO: result: yes" >&5
3168echo "${ECHO_T}yes" >&6
3169 else
3170 echo "$as_me:$LINENO: result: no" >&5
3171echo "${ECHO_T}no" >&6
3172 fi
3173
3174
10f2d63a
VZ
3175if test "$wxUSE_DEBUG" = "yes"; then
3176 DEFAULT_wxUSE_DEBUG_FLAG=yes
3177 DEFAULT_wxUSE_DEBUG_INFO=yes
3178elif test "$wxUSE_DEBUG" = "no"; then
3179 DEFAULT_wxUSE_DEBUG_FLAG=no
3180 DEFAULT_wxUSE_DEBUG_INFO=no
3181fi
3182
8284b0c5 3183
5005acfe 3184 enablestring=
e6cc62c6
VS
3185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3186echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3187 no_cache=0
3188 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3189if test "${enable_debug_flag+set}" = set; then
3190 enableval="$enable_debug_flag"
e6cc62c6 3191
10f2d63a
VZ
3192 if test "$enableval" = yes; then
3193 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3194 else
3195 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3196 fi
e6cc62c6 3197
10f2d63a 3198else
e6cc62c6 3199
10f2d63a
VZ
3200 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3201 if test "x$LINE" != x ; then
3202 eval "DEFAULT_$LINE"
3203 else
3204 no_cache=1
3205 fi
3206
3207 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3208
e6cc62c6 3209fi;
10f2d63a
VZ
3210
3211 eval "$ac_cv_use_debug_flag"
3212 if test "$no_cache" != 1; then
3213 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3214 fi
3215
3216 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3217 echo "$as_me:$LINENO: result: yes" >&5
3218echo "${ECHO_T}yes" >&6
10f2d63a 3219 else
e6cc62c6
VS
3220 echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
10f2d63a 3222 fi
e6cc62c6 3223
10f2d63a 3224
5005acfe 3225 enablestring=
e6cc62c6
VS
3226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3227echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3228 no_cache=0
3229 # Check whether --enable-debug_info or --disable-debug_info was given.
3230if test "${enable_debug_info+set}" = set; then
3231 enableval="$enable_debug_info"
e6cc62c6 3232
10f2d63a
VZ
3233 if test "$enableval" = yes; then
3234 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3235 else
3236 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3237 fi
e6cc62c6 3238
10f2d63a 3239else
e6cc62c6 3240
10f2d63a
VZ
3241 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3249
e6cc62c6 3250fi;
10f2d63a
VZ
3251
3252 eval "$ac_cv_use_debug_info"
3253 if test "$no_cache" != 1; then
3254 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3255 fi
3256
3257 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3258 echo "$as_me:$LINENO: result: yes" >&5
3259echo "${ECHO_T}yes" >&6
10f2d63a 3260 else
e6cc62c6
VS
3261 echo "$as_me:$LINENO: result: no" >&5
3262echo "${ECHO_T}no" >&6
10f2d63a 3263 fi
e6cc62c6 3264
10f2d63a 3265
5005acfe 3266 enablestring=
e6cc62c6
VS
3267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3268echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3269 no_cache=0
3270 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3271if test "${enable_debug_gdb+set}" = set; then
3272 enableval="$enable_debug_gdb"
e6cc62c6 3273
10f2d63a
VZ
3274 if test "$enableval" = yes; then
3275 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3276 else
3277 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3278 fi
e6cc62c6 3279
10f2d63a 3280else
e6cc62c6 3281
10f2d63a
VZ
3282 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3283 if test "x$LINE" != x ; then
3284 eval "DEFAULT_$LINE"
3285 else
3286 no_cache=1
3287 fi
3288
3289 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3290
e6cc62c6 3291fi;
10f2d63a
VZ
3292
3293 eval "$ac_cv_use_debug_gdb"
3294 if test "$no_cache" != 1; then
3295 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3296 fi
3297
3298 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3299 echo "$as_me:$LINENO: result: yes" >&5
3300echo "${ECHO_T}yes" >&6
10f2d63a 3301 else
e6cc62c6
VS
3302 echo "$as_me:$LINENO: result: no" >&5
3303echo "${ECHO_T}no" >&6
10f2d63a 3304 fi
e6cc62c6 3305
10f2d63a 3306
5005acfe 3307 enablestring=
e6cc62c6
VS
3308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3309echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3310 no_cache=0
3311 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3312if test "${enable_debug_cntxt+set}" = set; then
3313 enableval="$enable_debug_cntxt"
e6cc62c6 3314
10f2d63a
VZ
3315 if test "$enableval" = yes; then
3316 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3317 else
3318 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3319 fi
e6cc62c6 3320
10f2d63a 3321else
e6cc62c6 3322
10f2d63a
VZ
3323 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3324 if test "x$LINE" != x ; then
3325 eval "DEFAULT_$LINE"
3326 else
3327 no_cache=1
3328 fi
3329
3330 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3331
e6cc62c6 3332fi;
10f2d63a
VZ
3333
3334 eval "$ac_cv_use_debug_cntxt"
3335 if test "$no_cache" != 1; then
3336 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3337 fi
3338
3339 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3340 echo "$as_me:$LINENO: result: yes" >&5
3341echo "${ECHO_T}yes" >&6
10f2d63a 3342 else
e6cc62c6
VS
3343 echo "$as_me:$LINENO: result: no" >&5
3344echo "${ECHO_T}no" >&6
10f2d63a 3345 fi
e6cc62c6 3346
10f2d63a 3347
5005acfe 3348 enablestring=
e6cc62c6
VS
3349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3350echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3351 no_cache=0
3352 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3353if test "${enable_mem_tracing+set}" = set; then
3354 enableval="$enable_mem_tracing"
e6cc62c6 3355
10f2d63a
VZ
3356 if test "$enableval" = yes; then
3357 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3358 else
3359 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3360 fi
e6cc62c6 3361
10f2d63a 3362else
e6cc62c6 3363
10f2d63a
VZ
3364 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3365 if test "x$LINE" != x ; then
3366 eval "DEFAULT_$LINE"
3367 else
3368 no_cache=1
3369 fi
3370
3371 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3372
e6cc62c6 3373fi;
10f2d63a
VZ
3374
3375 eval "$ac_cv_use_mem_tracing"
3376 if test "$no_cache" != 1; then
3377 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3378 fi
3379
3380 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3381 echo "$as_me:$LINENO: result: yes" >&5
3382echo "${ECHO_T}yes" >&6
10f2d63a 3383 else
e6cc62c6
VS
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
10f2d63a 3386 fi
e6cc62c6 3387
10f2d63a 3388
5005acfe 3389 enablestring=
e6cc62c6
VS
3390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3391echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3392 no_cache=0
3393 # Check whether --enable-profile or --disable-profile was given.
3394if test "${enable_profile+set}" = set; then
3395 enableval="$enable_profile"
e6cc62c6 3396
10f2d63a
VZ
3397 if test "$enableval" = yes; then
3398 ac_cv_use_profile='wxUSE_PROFILE=yes'
3399 else
3400 ac_cv_use_profile='wxUSE_PROFILE=no'
3401 fi
e6cc62c6 3402
10f2d63a 3403else
e6cc62c6 3404
10f2d63a
VZ
3405 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3413
e6cc62c6 3414fi;
10f2d63a
VZ
3415
3416 eval "$ac_cv_use_profile"
3417 if test "$no_cache" != 1; then
3418 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3419 fi
3420
3421 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3422 echo "$as_me:$LINENO: result: yes" >&5
3423echo "${ECHO_T}yes" >&6
10f2d63a 3424 else
e6cc62c6
VS
3425 echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6
10f2d63a 3427 fi
e6cc62c6 3428
10f2d63a 3429
5005acfe 3430 enablestring=
e6cc62c6
VS
3431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3432echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3433 no_cache=0
3434 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3435if test "${enable_no_rtti+set}" = set; then
3436 enableval="$enable_no_rtti"
e6cc62c6 3437
10f2d63a
VZ
3438 if test "$enableval" = yes; then
3439 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3440 else
3441 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3442 fi
e6cc62c6 3443
10f2d63a 3444else
e6cc62c6 3445
10f2d63a
VZ
3446 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3454
e6cc62c6 3455fi;
10f2d63a
VZ
3456
3457 eval "$ac_cv_use_no_rtti"
3458 if test "$no_cache" != 1; then
3459 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3460 fi
3461
3462 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3463 echo "$as_me:$LINENO: result: yes" >&5
3464echo "${ECHO_T}yes" >&6
10f2d63a 3465 else
e6cc62c6
VS
3466 echo "$as_me:$LINENO: result: no" >&5
3467echo "${ECHO_T}no" >&6
10f2d63a 3468 fi
e6cc62c6 3469
10f2d63a 3470
5005acfe 3471 enablestring=
e6cc62c6
VS
3472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3473echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3474 no_cache=0
3475 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3476if test "${enable_no_exceptions+set}" = set; then
3477 enableval="$enable_no_exceptions"
e6cc62c6 3478
10f2d63a
VZ
3479 if test "$enableval" = yes; then
3480 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3481 else
3482 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3483 fi
e6cc62c6 3484
10f2d63a 3485else
e6cc62c6 3486
10f2d63a
VZ
3487 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3488 if test "x$LINE" != x ; then
3489 eval "DEFAULT_$LINE"
3490 else
3491 no_cache=1
3492 fi
3493
3494 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3495
e6cc62c6 3496fi;
10f2d63a
VZ
3497
3498 eval "$ac_cv_use_no_exceptions"
3499 if test "$no_cache" != 1; then
3500 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3501 fi
3502
3503 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3504 echo "$as_me:$LINENO: result: yes" >&5
3505echo "${ECHO_T}yes" >&6
10f2d63a 3506 else
e6cc62c6
VS
3507 echo "$as_me:$LINENO: result: no" >&5
3508echo "${ECHO_T}no" >&6
10f2d63a 3509 fi
e6cc62c6 3510
10f2d63a 3511
5005acfe 3512 enablestring=
e6cc62c6
VS
3513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3514echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3515 no_cache=0
3516 # Check whether --enable-permissive or --disable-permissive was given.
3517if test "${enable_permissive+set}" = set; then
3518 enableval="$enable_permissive"
e6cc62c6 3519
10f2d63a
VZ
3520 if test "$enableval" = yes; then
3521 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3522 else
3523 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3524 fi
e6cc62c6 3525
10f2d63a 3526else
e6cc62c6 3527
10f2d63a
VZ
3528 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3529 if test "x$LINE" != x ; then
3530 eval "DEFAULT_$LINE"
3531 else
3532 no_cache=1
3533 fi
3534
3535 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3536
e6cc62c6 3537fi;
10f2d63a
VZ
3538
3539 eval "$ac_cv_use_permissive"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3545 echo "$as_me:$LINENO: result: yes" >&5
3546echo "${ECHO_T}yes" >&6
10f2d63a 3547 else
e6cc62c6
VS
3548 echo "$as_me:$LINENO: result: no" >&5
3549echo "${ECHO_T}no" >&6
10f2d63a 3550 fi
e6cc62c6 3551
10f2d63a 3552
5005acfe 3553 enablestring=
e6cc62c6
VS
3554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3555echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3556 no_cache=0
3557 # Check whether --enable-no_deps or --disable-no_deps was given.
3558if test "${enable_no_deps+set}" = set; then
3559 enableval="$enable_no_deps"
e6cc62c6 3560
10f2d63a
VZ
3561 if test "$enableval" = yes; then
3562 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3563 else
3564 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3565 fi
e6cc62c6 3566
10f2d63a 3567else
e6cc62c6 3568
10f2d63a
VZ
3569 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3570 if test "x$LINE" != x ; then
3571 eval "DEFAULT_$LINE"
3572 else
3573 no_cache=1
3574 fi
3575
3576 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3577
e6cc62c6 3578fi;
10f2d63a
VZ
3579
3580 eval "$ac_cv_use_no_deps"
3581 if test "$no_cache" != 1; then
3582 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3583 fi
3584
3585 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3586 echo "$as_me:$LINENO: result: yes" >&5
3587echo "${ECHO_T}yes" >&6
10f2d63a 3588 else
e6cc62c6
VS
3589 echo "$as_me:$LINENO: result: no" >&5
3590echo "${ECHO_T}no" >&6
10f2d63a 3591 fi
e6cc62c6 3592
52127426 3593
8284b0c5 3594
5005acfe 3595 enablestring=
e6cc62c6
VS
3596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3597echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
54276ccf
VZ
3598 no_cache=0
3599 # Check whether --enable-compat20 or --disable-compat20 was given.
3600if test "${enable_compat20+set}" = set; then
3601 enableval="$enable_compat20"
e6cc62c6 3602
54276ccf
VZ
3603 if test "$enableval" = yes; then
3604 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3605 else
3606 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3607 fi
e6cc62c6 3608
54276ccf 3609else
e6cc62c6 3610
54276ccf
VZ
3611 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3612 if test "x$LINE" != x ; then
3613 eval "DEFAULT_$LINE"
3614 else
3615 no_cache=1
3616 fi
3617
3618 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3619
e6cc62c6 3620fi;
54276ccf
VZ
3621
3622 eval "$ac_cv_use_compat20"
3623 if test "$no_cache" != 1; then
3624 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3625 fi
3626
3627 if test "$WXWIN_COMPATIBILITY_2" = yes; then
e6cc62c6
VS
3628 echo "$as_me:$LINENO: result: yes" >&5
3629echo "${ECHO_T}yes" >&6
54276ccf 3630 else
e6cc62c6
VS
3631 echo "$as_me:$LINENO: result: no" >&5
3632echo "${ECHO_T}no" >&6
54276ccf 3633 fi
e6cc62c6 3634
54276ccf 3635
65d8ef1e 3636 enablestring=
e6cc62c6
VS
3637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3638echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3639 no_cache=0
3640 # Check whether --enable-compat22 or --disable-compat22 was given.
3641if test "${enable_compat22+set}" = set; then
3642 enableval="$enable_compat22"
e6cc62c6 3643
54276ccf
VZ
3644 if test "$enableval" = yes; then
3645 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3646 else
3647 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3648 fi
e6cc62c6 3649
54276ccf 3650else
e6cc62c6 3651
54276ccf
VZ
3652 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3653 if test "x$LINE" != x ; then
3654 eval "DEFAULT_$LINE"
3655 else
3656 no_cache=1
3657 fi
3658
3659 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3660
e6cc62c6 3661fi;
54276ccf
VZ
3662
3663 eval "$ac_cv_use_compat22"
3664 if test "$no_cache" != 1; then
3665 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3666 fi
3667
3668 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3669 echo "$as_me:$LINENO: result: yes" >&5
3670echo "${ECHO_T}yes" >&6
54276ccf 3671 else
e6cc62c6
VS
3672 echo "$as_me:$LINENO: result: no" >&5
3673echo "${ECHO_T}no" >&6
54276ccf 3674 fi
e6cc62c6 3675
54276ccf 3676
65d8ef1e 3677 enablestring=disable
e6cc62c6
VS
3678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3679echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3680 no_cache=0
3681 # Check whether --enable-compat24 or --disable-compat24 was given.
3682if test "${enable_compat24+set}" = set; then
3683 enableval="$enable_compat24"
e6cc62c6 3684
65d8ef1e
VS
3685 if test "$enableval" = yes; then
3686 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3687 else
3688 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3689 fi
e6cc62c6 3690
65d8ef1e 3691else
e6cc62c6 3692
65d8ef1e
VS
3693 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3701
e6cc62c6 3702fi;
65d8ef1e
VS
3703
3704 eval "$ac_cv_use_compat24"
3705 if test "$no_cache" != 1; then
3706 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3707 fi
3708
3709 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3710 echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6
65d8ef1e 3712 else
e6cc62c6
VS
3713 echo "$as_me:$LINENO: result: no" >&5
3714echo "${ECHO_T}no" >&6
65d8ef1e 3715 fi
e6cc62c6 3716
65d8ef1e 3717
3bd8fb5f
RD
3718# Check whether --enable-rpath or --disable-rpath was given.
3719if test "${enable_rpath+set}" = set; then
3720 enableval="$enable_rpath"
3721 wxRPATH_DIR="$enableval"
e6cc62c6 3722fi;
3bd8fb5f
RD
3723
3724if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3725 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3726fi
3727
8284b0c5
MB
3728
3729
3730
5005acfe 3731 enablestring=
e6cc62c6
VS
3732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3733echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3734 no_cache=0
3735 # Check whether --enable-intl or --disable-intl was given.
3736if test "${enable_intl+set}" = set; then
3737 enableval="$enable_intl"
e6cc62c6 3738
10f2d63a
VZ
3739 if test "$enableval" = yes; then
3740 ac_cv_use_intl='wxUSE_INTL=yes'
3741 else
3742 ac_cv_use_intl='wxUSE_INTL=no'
3743 fi
e6cc62c6 3744
10f2d63a 3745else
e6cc62c6 3746
10f2d63a
VZ
3747 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3748 if test "x$LINE" != x ; then
3749 eval "DEFAULT_$LINE"
3750 else
3751 no_cache=1
3752 fi
3753
3754 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3755
e6cc62c6 3756fi;
10f2d63a
VZ
3757
3758 eval "$ac_cv_use_intl"
3759 if test "$no_cache" != 1; then
3760 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3761 fi
3762
3763 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3764 echo "$as_me:$LINENO: result: yes" >&5
3765echo "${ECHO_T}yes" >&6
10f2d63a 3766 else
e6cc62c6
VS
3767 echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6
10f2d63a 3769 fi
e6cc62c6 3770
10f2d63a 3771
5005acfe 3772 enablestring=
e6cc62c6
VS
3773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3774echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3775 no_cache=0
3776 # Check whether --enable-config or --disable-config was given.
3777if test "${enable_config+set}" = set; then
3778 enableval="$enable_config"
e6cc62c6 3779
10f2d63a
VZ
3780 if test "$enableval" = yes; then
3781 ac_cv_use_config='wxUSE_CONFIG=yes'
3782 else
3783 ac_cv_use_config='wxUSE_CONFIG=no'
3784 fi
e6cc62c6 3785
10f2d63a 3786else
e6cc62c6 3787
10f2d63a
VZ
3788 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3789 if test "x$LINE" != x ; then
3790 eval "DEFAULT_$LINE"
3791 else
3792 no_cache=1
3793 fi
3794
3795 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3796
e6cc62c6 3797fi;
10f2d63a
VZ
3798
3799 eval "$ac_cv_use_config"
3800 if test "$no_cache" != 1; then
3801 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3802 fi
3803
3804 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3805 echo "$as_me:$LINENO: result: yes" >&5
3806echo "${ECHO_T}yes" >&6
10f2d63a 3807 else
e6cc62c6
VS
3808 echo "$as_me:$LINENO: result: no" >&5
3809echo "${ECHO_T}no" >&6
10f2d63a 3810 fi
e6cc62c6 3811
52127426 3812
8284b0c5 3813
5005acfe 3814 enablestring=
e6cc62c6
VS
3815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3816echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3817 no_cache=0
3818 # Check whether --enable-protocols or --disable-protocols was given.
3819if test "${enable_protocols+set}" = set; then
3820 enableval="$enable_protocols"
e6cc62c6 3821
a1622950
VZ
3822 if test "$enableval" = yes; then
3823 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3824 else
3825 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3826 fi
e6cc62c6 3827
a1622950 3828else
e6cc62c6 3829
a1622950
VZ
3830 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3831 if test "x$LINE" != x ; then
3832 eval "DEFAULT_$LINE"
3833 else
3834 no_cache=1
3835 fi
3836
3837 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3838
e6cc62c6 3839fi;
a1622950
VZ
3840
3841 eval "$ac_cv_use_protocols"
3842 if test "$no_cache" != 1; then
3843 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3844 fi
3845
3846 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3847 echo "$as_me:$LINENO: result: yes" >&5
3848echo "${ECHO_T}yes" >&6
a1622950 3849 else
e6cc62c6
VS
3850 echo "$as_me:$LINENO: result: no" >&5
3851echo "${ECHO_T}no" >&6
a1622950 3852 fi
e6cc62c6 3853
a1622950 3854
5005acfe 3855 enablestring=
e6cc62c6
VS
3856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3857echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3858 no_cache=0
3859 # Check whether --enable-ftp or --disable-ftp was given.
3860if test "${enable_ftp+set}" = set; then
3861 enableval="$enable_ftp"
e6cc62c6 3862
a1622950
VZ
3863 if test "$enableval" = yes; then
3864 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3865 else
3866 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3867 fi
e6cc62c6 3868
a1622950 3869else
e6cc62c6 3870
a1622950
VZ
3871 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3872 if test "x$LINE" != x ; then
3873 eval "DEFAULT_$LINE"
3874 else
3875 no_cache=1
3876 fi
3877
3878 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3879
e6cc62c6 3880fi;
a1622950
VZ
3881
3882 eval "$ac_cv_use_ftp"
3883 if test "$no_cache" != 1; then
3884 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3885 fi
3886
3887 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3888 echo "$as_me:$LINENO: result: yes" >&5
3889echo "${ECHO_T}yes" >&6
a1622950 3890 else
e6cc62c6
VS
3891 echo "$as_me:$LINENO: result: no" >&5
3892echo "${ECHO_T}no" >&6
a1622950 3893 fi
e6cc62c6 3894
a1622950 3895
5005acfe 3896 enablestring=
e6cc62c6
VS
3897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3898echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3899 no_cache=0
3900 # Check whether --enable-http or --disable-http was given.
3901if test "${enable_http+set}" = set; then
3902 enableval="$enable_http"
e6cc62c6 3903
a1622950
VZ
3904 if test "$enableval" = yes; then
3905 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3906 else
3907 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3908 fi
e6cc62c6 3909
a1622950 3910else
e6cc62c6 3911
a1622950
VZ
3912 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3913 if test "x$LINE" != x ; then
3914 eval "DEFAULT_$LINE"
3915 else
3916 no_cache=1
3917 fi
3918
3919 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3920
e6cc62c6 3921fi;
a1622950
VZ
3922
3923 eval "$ac_cv_use_http"
3924 if test "$no_cache" != 1; then
3925 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3926 fi
3927
3928 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3929 echo "$as_me:$LINENO: result: yes" >&5
3930echo "${ECHO_T}yes" >&6
a1622950 3931 else
e6cc62c6
VS
3932 echo "$as_me:$LINENO: result: no" >&5
3933echo "${ECHO_T}no" >&6
a1622950 3934 fi
e6cc62c6 3935
a1622950 3936
5005acfe 3937 enablestring=
e6cc62c6
VS
3938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3939echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
3940 no_cache=0
3941 # Check whether --enable-fileproto or --disable-fileproto was given.
3942if test "${enable_fileproto+set}" = set; then
3943 enableval="$enable_fileproto"
e6cc62c6 3944
a1622950
VZ
3945 if test "$enableval" = yes; then
3946 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3947 else
3948 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3949 fi
e6cc62c6 3950
a1622950 3951else
e6cc62c6 3952
a1622950
VZ
3953 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 3961
e6cc62c6 3962fi;
a1622950
VZ
3963
3964 eval "$ac_cv_use_fileproto"
3965 if test "$no_cache" != 1; then
3966 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3967 fi
3968
3969 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
3970 echo "$as_me:$LINENO: result: yes" >&5
3971echo "${ECHO_T}yes" >&6
a1622950 3972 else
e6cc62c6
VS
3973 echo "$as_me:$LINENO: result: no" >&5
3974echo "${ECHO_T}no" >&6
a1622950 3975 fi
e6cc62c6 3976
a1622950 3977
5005acfe 3978 enablestring=
e6cc62c6
VS
3979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
3980echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
3981 no_cache=0
3982 # Check whether --enable-sockets or --disable-sockets was given.
3983if test "${enable_sockets+set}" = set; then
3984 enableval="$enable_sockets"
e6cc62c6 3985
10f2d63a
VZ
3986 if test "$enableval" = yes; then
3987 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3988 else
3989 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3990 fi
e6cc62c6 3991
10f2d63a 3992else
e6cc62c6 3993
10f2d63a
VZ
3994 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3995 if test "x$LINE" != x ; then
3996 eval "DEFAULT_$LINE"
3997 else
3998 no_cache=1
3999 fi
4000
4001 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4002
e6cc62c6 4003fi;
10f2d63a
VZ
4004
4005 eval "$ac_cv_use_sockets"
4006 if test "$no_cache" != 1; then
4007 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4008 fi
4009
4010 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4011 echo "$as_me:$LINENO: result: yes" >&5
4012echo "${ECHO_T}yes" >&6
10f2d63a 4013 else
e6cc62c6
VS
4014 echo "$as_me:$LINENO: result: no" >&5
4015echo "${ECHO_T}no" >&6
10f2d63a 4016 fi
e6cc62c6 4017
8284b0c5 4018
5005acfe 4019 enablestring=
e6cc62c6
VS
4020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4021echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4022 no_cache=0
4023 # Check whether --enable-ole or --disable-ole was given.
4024if test "${enable_ole+set}" = set; then
4025 enableval="$enable_ole"
e6cc62c6 4026
3bce6687
JS
4027 if test "$enableval" = yes; then
4028 ac_cv_use_ole='wxUSE_OLE=yes'
4029 else
4030 ac_cv_use_ole='wxUSE_OLE=no'
4031 fi
e6cc62c6 4032
3bce6687 4033else
e6cc62c6 4034
3bce6687
JS
4035 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4036 if test "x$LINE" != x ; then
4037 eval "DEFAULT_$LINE"
4038 else
4039 no_cache=1
4040 fi
4041
4042 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4043
e6cc62c6 4044fi;
3bce6687
JS
4045
4046 eval "$ac_cv_use_ole"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4052 echo "$as_me:$LINENO: result: yes" >&5
4053echo "${ECHO_T}yes" >&6
3bce6687 4054 else
e6cc62c6
VS
4055 echo "$as_me:$LINENO: result: no" >&5
4056echo "${ECHO_T}no" >&6
3bce6687 4057 fi
e6cc62c6 4058
3bce6687 4059
5005acfe 4060 enablestring=
e6cc62c6
VS
4061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4062echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4063 no_cache=0
4064 # Check whether --enable-dataobj or --disable-dataobj was given.
4065if test "${enable_dataobj+set}" = set; then
4066 enableval="$enable_dataobj"
e6cc62c6 4067
3bce6687
JS
4068 if test "$enableval" = yes; then
4069 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4070 else
4071 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4072 fi
e6cc62c6 4073
3bce6687 4074else
e6cc62c6 4075
3bce6687
JS
4076 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4084
e6cc62c6 4085fi;
3bce6687
JS
4086
4087 eval "$ac_cv_use_dataobj"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4093 echo "$as_me:$LINENO: result: yes" >&5
4094echo "${ECHO_T}yes" >&6
3bce6687 4095 else
e6cc62c6
VS
4096 echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6
3bce6687 4098 fi
e6cc62c6 4099
3bce6687 4100
52127426 4101
5005acfe 4102 enablestring=
e6cc62c6
VS
4103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4104echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4105 no_cache=0
eb4efbdc
VZ
4106 # Check whether --enable-ipc or --disable-ipc was given.
4107if test "${enable_ipc+set}" = set; then
4108 enableval="$enable_ipc"
e6cc62c6 4109
10f2d63a 4110 if test "$enableval" = yes; then
eb4efbdc 4111 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4112 else
eb4efbdc 4113 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4114 fi
e6cc62c6 4115
10f2d63a 4116else
e6cc62c6 4117
eb4efbdc 4118 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4119 if test "x$LINE" != x ; then
4120 eval "DEFAULT_$LINE"
4121 else
4122 no_cache=1
4123 fi
4124
eb4efbdc 4125 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4126
e6cc62c6 4127fi;
10f2d63a 4128
eb4efbdc 4129 eval "$ac_cv_use_ipc"
10f2d63a 4130 if test "$no_cache" != 1; then
eb4efbdc 4131 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4132 fi
4133
eb4efbdc 4134 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4135 echo "$as_me:$LINENO: result: yes" >&5
4136echo "${ECHO_T}yes" >&6
10f2d63a 4137 else
e6cc62c6
VS
4138 echo "$as_me:$LINENO: result: no" >&5
4139echo "${ECHO_T}no" >&6
10f2d63a 4140 fi
e6cc62c6 4141
52127426 4142
8284b0c5 4143
5005acfe 4144 enablestring=
e6cc62c6
VS
4145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4146echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4147 no_cache=0
4148 # Check whether --enable-cmdline or --disable-cmdline was given.
4149if test "${enable_cmdline+set}" = set; then
4150 enableval="$enable_cmdline"
e6cc62c6 4151
1e6feb95
VZ
4152 if test "$enableval" = yes; then
4153 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4154 else
4155 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4156 fi
e6cc62c6 4157
1e6feb95 4158else
e6cc62c6 4159
1e6feb95
VZ
4160 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4161 if test "x$LINE" != x ; then
4162 eval "DEFAULT_$LINE"
4163 else
4164 no_cache=1
4165 fi
4166
4167 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4168
e6cc62c6 4169fi;
1e6feb95
VZ
4170
4171 eval "$ac_cv_use_cmdline"
4172 if test "$no_cache" != 1; then
4173 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4174 fi
4175
4176 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4177 echo "$as_me:$LINENO: result: yes" >&5
4178echo "${ECHO_T}yes" >&6
1e6feb95 4179 else
e6cc62c6
VS
4180 echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
1e6feb95 4182 fi
e6cc62c6 4183
1e6feb95 4184
5005acfe 4185 enablestring=
e6cc62c6
VS
4186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4187echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4188 no_cache=0
4189 # Check whether --enable-datetime or --disable-datetime was given.
4190if test "${enable_datetime+set}" = set; then
4191 enableval="$enable_datetime"
e6cc62c6 4192
1e6feb95
VZ
4193 if test "$enableval" = yes; then
4194 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4195 else
4196 ac_cv_use_datetime='wxUSE_DATETIME=no'
4197 fi
e6cc62c6 4198
1e6feb95 4199else
e6cc62c6 4200
1e6feb95
VZ
4201 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4202 if test "x$LINE" != x ; then
4203 eval "DEFAULT_$LINE"
4204 else
4205 no_cache=1
4206 fi
4207
4208 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4209
e6cc62c6 4210fi;
1e6feb95
VZ
4211
4212 eval "$ac_cv_use_datetime"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4218 echo "$as_me:$LINENO: result: yes" >&5
4219echo "${ECHO_T}yes" >&6
1e6feb95 4220 else
e6cc62c6
VS
4221 echo "$as_me:$LINENO: result: no" >&5
4222echo "${ECHO_T}no" >&6
1e6feb95 4223 fi
e6cc62c6 4224
1e6feb95 4225
5005acfe 4226 enablestring=
e6cc62c6
VS
4227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4228echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4229 no_cache=0
4230 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4231if test "${enable_stopwatch+set}" = set; then
4232 enableval="$enable_stopwatch"
e6cc62c6 4233
1e6feb95
VZ
4234 if test "$enableval" = yes; then
4235 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4236 else
4237 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4238 fi
e6cc62c6 4239
1e6feb95 4240else
e6cc62c6 4241
1e6feb95
VZ
4242 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4243 if test "x$LINE" != x ; then
4244 eval "DEFAULT_$LINE"
4245 else
4246 no_cache=1
4247 fi
4248
4249 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4250
e6cc62c6 4251fi;
1e6feb95
VZ
4252
4253 eval "$ac_cv_use_stopwatch"
4254 if test "$no_cache" != 1; then
4255 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4256 fi
4257
4258 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4259 echo "$as_me:$LINENO: result: yes" >&5
4260echo "${ECHO_T}yes" >&6
1e6feb95 4261 else
e6cc62c6
VS
4262 echo "$as_me:$LINENO: result: no" >&5
4263echo "${ECHO_T}no" >&6
1e6feb95 4264 fi
e6cc62c6 4265
1e6feb95 4266
5005acfe 4267 enablestring=
e6cc62c6
VS
4268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4269echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4270 no_cache=0
eb4efbdc
VZ
4271 # Check whether --enable-dialupman or --disable-dialupman was given.
4272if test "${enable_dialupman+set}" = set; then
4273 enableval="$enable_dialupman"
e6cc62c6 4274
10f2d63a 4275 if test "$enableval" = yes; then
eb4efbdc 4276 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4277 else
eb4efbdc 4278 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4279 fi
e6cc62c6 4280
10f2d63a 4281else
e6cc62c6 4282
eb4efbdc 4283 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
eb4efbdc 4290 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4291
e6cc62c6 4292fi;
10f2d63a 4293
eb4efbdc 4294 eval "$ac_cv_use_dialupman"
10f2d63a 4295 if test "$no_cache" != 1; then
eb4efbdc 4296 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4297 fi
4298
eb4efbdc 4299 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4300 echo "$as_me:$LINENO: result: yes" >&5
4301echo "${ECHO_T}yes" >&6
10f2d63a 4302 else
e6cc62c6
VS
4303 echo "$as_me:$LINENO: result: no" >&5
4304echo "${ECHO_T}no" >&6
10f2d63a 4305 fi
e6cc62c6 4306
10f2d63a 4307
5005acfe 4308 enablestring=
e6cc62c6
VS
4309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4310echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4311 no_cache=0
4312 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4313if test "${enable_apple_ieee+set}" = set; then
4314 enableval="$enable_apple_ieee"
e6cc62c6 4315
10f2d63a
VZ
4316 if test "$enableval" = yes; then
4317 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4318 else
4319 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4320 fi
e6cc62c6 4321
10f2d63a 4322else
e6cc62c6 4323
10f2d63a
VZ
4324 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4325 if test "x$LINE" != x ; then
4326 eval "DEFAULT_$LINE"
4327 else
4328 no_cache=1
4329 fi
4330
4331 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4332
e6cc62c6 4333fi;
10f2d63a
VZ
4334
4335 eval "$ac_cv_use_apple_ieee"
4336 if test "$no_cache" != 1; then
4337 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4338 fi
4339
4340 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4341 echo "$as_me:$LINENO: result: yes" >&5
4342echo "${ECHO_T}yes" >&6
10f2d63a 4343 else
e6cc62c6
VS
4344 echo "$as_me:$LINENO: result: no" >&5
4345echo "${ECHO_T}no" >&6
10f2d63a 4346 fi
e6cc62c6 4347
10f2d63a 4348
5005acfe 4349 enablestring=
e6cc62c6
VS
4350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4351echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4352 no_cache=0
1e6feb95
VZ
4353 # Check whether --enable-timer or --disable-timer was given.
4354if test "${enable_timer+set}" = set; then
4355 enableval="$enable_timer"
e6cc62c6 4356
10f2d63a 4357 if test "$enableval" = yes; then
1e6feb95 4358 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4359 else
1e6feb95 4360 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4361 fi
e6cc62c6 4362
10f2d63a 4363else
e6cc62c6 4364
1e6feb95 4365 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4366 if test "x$LINE" != x ; then
4367 eval "DEFAULT_$LINE"
4368 else
4369 no_cache=1
4370 fi
4371
1e6feb95 4372 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4373
e6cc62c6 4374fi;
10f2d63a 4375
1e6feb95 4376 eval "$ac_cv_use_timer"
10f2d63a 4377 if test "$no_cache" != 1; then
1e6feb95 4378 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4379 fi
4380
1e6feb95 4381 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4382 echo "$as_me:$LINENO: result: yes" >&5
4383echo "${ECHO_T}yes" >&6
10f2d63a 4384 else
e6cc62c6
VS
4385 echo "$as_me:$LINENO: result: no" >&5
4386echo "${ECHO_T}no" >&6
10f2d63a 4387 fi
e6cc62c6 4388
10f2d63a 4389
5005acfe 4390 enablestring=
e6cc62c6
VS
4391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4392echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4393 no_cache=0
4394 # Check whether --enable-wave or --disable-wave was given.
4395if test "${enable_wave+set}" = set; then
4396 enableval="$enable_wave"
e6cc62c6 4397
10f2d63a
VZ
4398 if test "$enableval" = yes; then
4399 ac_cv_use_wave='wxUSE_WAVE=yes'
4400 else
4401 ac_cv_use_wave='wxUSE_WAVE=no'
4402 fi
e6cc62c6 4403
10f2d63a 4404else
e6cc62c6 4405
10f2d63a
VZ
4406 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4407 if test "x$LINE" != x ; then
4408 eval "DEFAULT_$LINE"
4409 else
4410 no_cache=1
4411 fi
4412
4413 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4414
e6cc62c6 4415fi;
10f2d63a
VZ
4416
4417 eval "$ac_cv_use_wave"
4418 if test "$no_cache" != 1; then
4419 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4420 fi
4421
4422 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4423 echo "$as_me:$LINENO: result: yes" >&5
4424echo "${ECHO_T}yes" >&6
10f2d63a 4425 else
e6cc62c6
VS
4426 echo "$as_me:$LINENO: result: no" >&5
4427echo "${ECHO_T}no" >&6
10f2d63a 4428 fi
e6cc62c6 4429
10f2d63a 4430
5005acfe 4431 enablestring=
e6cc62c6
VS
4432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4433echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4434 no_cache=0
4435 # Check whether --enable-fraction or --disable-fraction was given.
4436if test "${enable_fraction+set}" = set; then
4437 enableval="$enable_fraction"
e6cc62c6 4438
10f2d63a
VZ
4439 if test "$enableval" = yes; then
4440 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4441 else
4442 ac_cv_use_fraction='wxUSE_FRACTION=no'
4443 fi
e6cc62c6 4444
10f2d63a 4445else
e6cc62c6 4446
10f2d63a
VZ
4447 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4448 if test "x$LINE" != x ; then
4449 eval "DEFAULT_$LINE"
4450 else
4451 no_cache=1
4452 fi
4453
4454 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4455
e6cc62c6 4456fi;
10f2d63a
VZ
4457
4458 eval "$ac_cv_use_fraction"
4459 if test "$no_cache" != 1; then
4460 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4461 fi
4462
4463 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4464 echo "$as_me:$LINENO: result: yes" >&5
4465echo "${ECHO_T}yes" >&6
10f2d63a 4466 else
e6cc62c6
VS
4467 echo "$as_me:$LINENO: result: no" >&5
4468echo "${ECHO_T}no" >&6
10f2d63a 4469 fi
e6cc62c6 4470
10f2d63a 4471
5005acfe 4472 enablestring=
e6cc62c6
VS
4473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4474echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4475 no_cache=0
4476 # Check whether --enable-dynlib or --disable-dynlib was given.
4477if test "${enable_dynlib+set}" = set; then
4478 enableval="$enable_dynlib"
e6cc62c6 4479
10f2d63a
VZ
4480 if test "$enableval" = yes; then
4481 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4482 else
4483 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4484 fi
e6cc62c6 4485
10f2d63a 4486else
e6cc62c6 4487
10f2d63a
VZ
4488 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4489 if test "x$LINE" != x ; then
4490 eval "DEFAULT_$LINE"
4491 else
4492 no_cache=1
4493 fi
4494
4495 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4496
e6cc62c6 4497fi;
10f2d63a
VZ
4498
4499 eval "$ac_cv_use_dynlib"
4500 if test "$no_cache" != 1; then
4501 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4502 fi
4503
4504 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4505 echo "$as_me:$LINENO: result: yes" >&5
4506echo "${ECHO_T}yes" >&6
10f2d63a 4507 else
e6cc62c6
VS
4508 echo "$as_me:$LINENO: result: no" >&5
4509echo "${ECHO_T}no" >&6
10f2d63a 4510 fi
e6cc62c6 4511
10f2d63a 4512
5005acfe 4513 enablestring=
e6cc62c6
VS
4514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4515echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4516 no_cache=0
4517 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4518if test "${enable_dynamicloader+set}" = set; then
4519 enableval="$enable_dynamicloader"
e6cc62c6 4520
0b9ab0bd
RL
4521 if test "$enableval" = yes; then
4522 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4523 else
4524 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4525 fi
e6cc62c6 4526
0b9ab0bd 4527else
e6cc62c6 4528
0b9ab0bd
RL
4529 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4530 if test "x$LINE" != x ; then
4531 eval "DEFAULT_$LINE"
4532 else
4533 no_cache=1
4534 fi
4535
4536 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4537
e6cc62c6 4538fi;
0b9ab0bd
RL
4539
4540 eval "$ac_cv_use_dynamicloader"
4541 if test "$no_cache" != 1; then
4542 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4543 fi
4544
4545 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4546 echo "$as_me:$LINENO: result: yes" >&5
4547echo "${ECHO_T}yes" >&6
0b9ab0bd 4548 else
e6cc62c6
VS
4549 echo "$as_me:$LINENO: result: no" >&5
4550echo "${ECHO_T}no" >&6
0b9ab0bd 4551 fi
e6cc62c6 4552
0b9ab0bd 4553
5005acfe 4554 enablestring=
e6cc62c6
VS
4555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4556echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4557 no_cache=0
4558 # Check whether --enable-longlong or --disable-longlong was given.
4559if test "${enable_longlong+set}" = set; then
4560 enableval="$enable_longlong"
e6cc62c6 4561
10f2d63a
VZ
4562 if test "$enableval" = yes; then
4563 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4564 else
4565 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4566 fi
e6cc62c6 4567
10f2d63a 4568else
e6cc62c6 4569
10f2d63a
VZ
4570 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4571 if test "x$LINE" != x ; then
4572 eval "DEFAULT_$LINE"
4573 else
4574 no_cache=1
4575 fi
4576
4577 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4578
e6cc62c6 4579fi;
10f2d63a
VZ
4580
4581 eval "$ac_cv_use_longlong"
4582 if test "$no_cache" != 1; then
4583 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4584 fi
4585
4586 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4587 echo "$as_me:$LINENO: result: yes" >&5
4588echo "${ECHO_T}yes" >&6
10f2d63a 4589 else
e6cc62c6
VS
4590 echo "$as_me:$LINENO: result: no" >&5
4591echo "${ECHO_T}no" >&6
10f2d63a 4592 fi
e6cc62c6 4593
10f2d63a 4594
5005acfe 4595 enablestring=
e6cc62c6
VS
4596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4597echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4598 no_cache=0
4599 # Check whether --enable-geometry or --disable-geometry was given.
4600if test "${enable_geometry+set}" = set; then
4601 enableval="$enable_geometry"
e6cc62c6 4602
e8f65ba6
RR
4603 if test "$enableval" = yes; then
4604 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4605 else
4606 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4607 fi
e6cc62c6 4608
e8f65ba6 4609else
e6cc62c6 4610
e8f65ba6
RR
4611 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4612 if test "x$LINE" != x ; then
4613 eval "DEFAULT_$LINE"
4614 else
4615 no_cache=1
4616 fi
4617
4618 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4619
e6cc62c6 4620fi;
e8f65ba6
RR
4621
4622 eval "$ac_cv_use_geometry"
4623 if test "$no_cache" != 1; then
4624 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4625 fi
4626
4627 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4628 echo "$as_me:$LINENO: result: yes" >&5
4629echo "${ECHO_T}yes" >&6
e8f65ba6 4630 else
e6cc62c6
VS
4631 echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6
e8f65ba6 4633 fi
e6cc62c6 4634
e8f65ba6 4635
5005acfe 4636 enablestring=
e6cc62c6
VS
4637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4638echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4639 no_cache=0
4640 # Check whether --enable-log or --disable-log was given.
4641if test "${enable_log+set}" = set; then
4642 enableval="$enable_log"
e6cc62c6 4643
10f2d63a
VZ
4644 if test "$enableval" = yes; then
4645 ac_cv_use_log='wxUSE_LOG=yes'
4646 else
4647 ac_cv_use_log='wxUSE_LOG=no'
4648 fi
e6cc62c6 4649
10f2d63a 4650else
e6cc62c6 4651
10f2d63a
VZ
4652 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4653 if test "x$LINE" != x ; then
4654 eval "DEFAULT_$LINE"
4655 else
4656 no_cache=1
4657 fi
4658
4659 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4660
e6cc62c6 4661fi;
10f2d63a
VZ
4662
4663 eval "$ac_cv_use_log"
4664 if test "$no_cache" != 1; then
4665 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4666 fi
4667
4668 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4669 echo "$as_me:$LINENO: result: yes" >&5
4670echo "${ECHO_T}yes" >&6
10f2d63a 4671 else
e6cc62c6
VS
4672 echo "$as_me:$LINENO: result: no" >&5
4673echo "${ECHO_T}no" >&6
10f2d63a 4674 fi
e6cc62c6 4675
10f2d63a 4676
5005acfe 4677 enablestring=
e6cc62c6
VS
4678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4679echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4680 no_cache=0
4681 # Check whether --enable-streams or --disable-streams was given.
4682if test "${enable_streams+set}" = set; then
4683 enableval="$enable_streams"
e6cc62c6 4684
10f2d63a
VZ
4685 if test "$enableval" = yes; then
4686 ac_cv_use_streams='wxUSE_STREAMS=yes'
4687 else
4688 ac_cv_use_streams='wxUSE_STREAMS=no'
4689 fi
e6cc62c6 4690
10f2d63a 4691else
e6cc62c6 4692
10f2d63a
VZ
4693 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4694 if test "x$LINE" != x ; then
4695 eval "DEFAULT_$LINE"
4696 else
4697 no_cache=1
4698 fi
4699
4700 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4701
e6cc62c6 4702fi;
10f2d63a
VZ
4703
4704 eval "$ac_cv_use_streams"
4705 if test "$no_cache" != 1; then
4706 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4707 fi
4708
4709 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4710 echo "$as_me:$LINENO: result: yes" >&5
4711echo "${ECHO_T}yes" >&6
10f2d63a 4712 else
e6cc62c6
VS
4713 echo "$as_me:$LINENO: result: no" >&5
4714echo "${ECHO_T}no" >&6
10f2d63a 4715 fi
e6cc62c6 4716
10f2d63a 4717
5005acfe 4718 enablestring=
e6cc62c6
VS
4719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4720echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4721 no_cache=0
4722 # Check whether --enable-file or --disable-file was given.
4723if test "${enable_file+set}" = set; then
4724 enableval="$enable_file"
e6cc62c6 4725
10f2d63a
VZ
4726 if test "$enableval" = yes; then
4727 ac_cv_use_file='wxUSE_FILE=yes'
4728 else
4729 ac_cv_use_file='wxUSE_FILE=no'
4730 fi
e6cc62c6 4731
10f2d63a 4732else
e6cc62c6 4733
10f2d63a
VZ
4734 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
4741 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4742
e6cc62c6 4743fi;
10f2d63a
VZ
4744
4745 eval "$ac_cv_use_file"
4746 if test "$no_cache" != 1; then
4747 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4748 fi
4749
4750 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4751 echo "$as_me:$LINENO: result: yes" >&5
4752echo "${ECHO_T}yes" >&6
10f2d63a 4753 else
e6cc62c6
VS
4754 echo "$as_me:$LINENO: result: no" >&5
4755echo "${ECHO_T}no" >&6
10f2d63a 4756 fi
e6cc62c6 4757
10f2d63a 4758
5005acfe 4759 enablestring=
e6cc62c6
VS
4760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4761echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4762 no_cache=0
1e6feb95
VZ
4763 # Check whether --enable-ffile or --disable-ffile was given.
4764if test "${enable_ffile+set}" = set; then
4765 enableval="$enable_ffile"
e6cc62c6 4766
10f2d63a 4767 if test "$enableval" = yes; then
1e6feb95 4768 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4769 else
1e6feb95 4770 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4771 fi
e6cc62c6 4772
10f2d63a 4773else
e6cc62c6 4774
1e6feb95 4775 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4776 if test "x$LINE" != x ; then
4777 eval "DEFAULT_$LINE"
4778 else
4779 no_cache=1
4780 fi
4781
1e6feb95 4782 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4783
e6cc62c6 4784fi;
10f2d63a 4785
1e6feb95 4786 eval "$ac_cv_use_ffile"
10f2d63a 4787 if test "$no_cache" != 1; then
1e6feb95 4788 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4789 fi
4790
1e6feb95 4791 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4792 echo "$as_me:$LINENO: result: yes" >&5
4793echo "${ECHO_T}yes" >&6
10f2d63a 4794 else
e6cc62c6
VS
4795 echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6
10f2d63a 4797 fi
e6cc62c6 4798
10f2d63a 4799
5005acfe 4800 enablestring=
e6cc62c6
VS
4801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4802echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4803 no_cache=0
4804 # Check whether --enable-textbuf or --disable-textbuf was given.
4805if test "${enable_textbuf+set}" = set; then
4806 enableval="$enable_textbuf"
e6cc62c6 4807
a3a584a7
VZ
4808 if test "$enableval" = yes; then
4809 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4810 else
4811 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4812 fi
e6cc62c6 4813
a3a584a7 4814else
e6cc62c6 4815
a3a584a7
VZ
4816 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4817 if test "x$LINE" != x ; then
4818 eval "DEFAULT_$LINE"
4819 else
4820 no_cache=1
4821 fi
4822
4823 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4824
e6cc62c6 4825fi;
a3a584a7
VZ
4826
4827 eval "$ac_cv_use_textbuf"
4828 if test "$no_cache" != 1; then
4829 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4830 fi
4831
4832 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4833 echo "$as_me:$LINENO: result: yes" >&5
4834echo "${ECHO_T}yes" >&6
a3a584a7 4835 else
e6cc62c6
VS
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
a3a584a7 4838 fi
e6cc62c6 4839
a3a584a7 4840
5005acfe 4841 enablestring=
e6cc62c6
VS
4842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4843echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4844 no_cache=0
1e6feb95
VZ
4845 # Check whether --enable-textfile or --disable-textfile was given.
4846if test "${enable_textfile+set}" = set; then
4847 enableval="$enable_textfile"
e6cc62c6 4848
10f2d63a 4849 if test "$enableval" = yes; then
1e6feb95 4850 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4851 else
1e6feb95 4852 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4853 fi
e6cc62c6 4854
10f2d63a 4855else
e6cc62c6 4856
1e6feb95 4857 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4858 if test "x$LINE" != x ; then
4859 eval "DEFAULT_$LINE"
4860 else
4861 no_cache=1
4862 fi
4863
1e6feb95 4864 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4865
e6cc62c6 4866fi;
10f2d63a 4867
1e6feb95 4868 eval "$ac_cv_use_textfile"
10f2d63a 4869 if test "$no_cache" != 1; then
1e6feb95 4870 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4871 fi
4872
1e6feb95 4873 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4874 echo "$as_me:$LINENO: result: yes" >&5
4875echo "${ECHO_T}yes" >&6
10f2d63a 4876 else
e6cc62c6
VS
4877 echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6
10f2d63a 4879 fi
e6cc62c6 4880
10f2d63a 4881
5005acfe 4882 enablestring=
e6cc62c6
VS
4883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4884echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4885 no_cache=0
1e6feb95
VZ
4886 # Check whether --enable-fontmap or --disable-fontmap was given.
4887if test "${enable_fontmap+set}" = set; then
4888 enableval="$enable_fontmap"
e6cc62c6 4889
10f2d63a 4890 if test "$enableval" = yes; then
1e6feb95 4891 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4892 else
1e6feb95 4893 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4894 fi
e6cc62c6 4895
10f2d63a 4896else
e6cc62c6 4897
1e6feb95 4898 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4899 if test "x$LINE" != x ; then
4900 eval "DEFAULT_$LINE"
4901 else
4902 no_cache=1
4903 fi
4904
1e6feb95 4905 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4906
e6cc62c6 4907fi;
10f2d63a 4908
1e6feb95 4909 eval "$ac_cv_use_fontmap"
10f2d63a 4910 if test "$no_cache" != 1; then
1e6feb95 4911 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4912 fi
4913
1e6feb95 4914 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4915 echo "$as_me:$LINENO: result: yes" >&5
4916echo "${ECHO_T}yes" >&6
10f2d63a 4917 else
e6cc62c6
VS
4918 echo "$as_me:$LINENO: result: no" >&5
4919echo "${ECHO_T}no" >&6
10f2d63a 4920 fi
e6cc62c6 4921
10f2d63a 4922
5005acfe 4923 enablestring=
e6cc62c6
VS
4924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4925echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4926 no_cache=0
1e6feb95
VZ
4927 # Check whether --enable-unicode or --disable-unicode was given.
4928if test "${enable_unicode+set}" = set; then
4929 enableval="$enable_unicode"
e6cc62c6 4930
1e6feb95
VZ
4931 if test "$enableval" = yes; then
4932 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4933 else
4934 ac_cv_use_unicode='wxUSE_UNICODE=no'
4935 fi
e6cc62c6 4936
1e6feb95 4937else
e6cc62c6 4938
1e6feb95
VZ
4939 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4940 if test "x$LINE" != x ; then
4941 eval "DEFAULT_$LINE"
4942 else
4943 no_cache=1
4944 fi
4945
4946 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 4947
e6cc62c6 4948fi;
1e6feb95
VZ
4949
4950 eval "$ac_cv_use_unicode"
4951 if test "$no_cache" != 1; then
4952 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4953 fi
4954
4955 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
4956 echo "$as_me:$LINENO: result: yes" >&5
4957echo "${ECHO_T}yes" >&6
1e6feb95 4958 else
e6cc62c6
VS
4959 echo "$as_me:$LINENO: result: no" >&5
4960echo "${ECHO_T}no" >&6
1e6feb95 4961 fi
e6cc62c6 4962
1e6feb95 4963
5005acfe 4964 enablestring=
e6cc62c6
VS
4965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4966echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
4967 no_cache=0
4968 # Check whether --enable-mslu or --disable-mslu was given.
4969if test "${enable_mslu+set}" = set; then
4970 enableval="$enable_mslu"
e6cc62c6 4971
a72a4bfa
VS
4972 if test "$enableval" = yes; then
4973 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4974 else
4975 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4976 fi
e6cc62c6 4977
a72a4bfa 4978else
e6cc62c6 4979
a72a4bfa
VS
4980 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 4988
e6cc62c6 4989fi;
a72a4bfa
VS
4990
4991 eval "$ac_cv_use_mslu"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
4997 echo "$as_me:$LINENO: result: yes" >&5
4998echo "${ECHO_T}yes" >&6
a72a4bfa 4999 else
e6cc62c6
VS
5000 echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6
a72a4bfa 5002 fi
e6cc62c6 5003
a72a4bfa 5004
5005acfe 5005 enablestring=
e6cc62c6
VS
5006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5007echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5008 no_cache=0
5009 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5010if test "${enable_wxprintfv+set}" = set; then
5011 enableval="$enable_wxprintfv"
e6cc62c6 5012
1e6feb95 5013 if test "$enableval" = yes; then
10f2d63a
VZ
5014 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5015 else
5016 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5017 fi
e6cc62c6 5018
10f2d63a 5019else
e6cc62c6 5020
10f2d63a
VZ
5021 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5022 if test "x$LINE" != x ; then
5023 eval "DEFAULT_$LINE"
5024 else
5025 no_cache=1
5026 fi
5027
5028 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5029
e6cc62c6 5030fi;
10f2d63a
VZ
5031
5032 eval "$ac_cv_use_wxprintfv"
5033 if test "$no_cache" != 1; then
5034 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5035 fi
5036
5037 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5038 echo "$as_me:$LINENO: result: yes" >&5
5039echo "${ECHO_T}yes" >&6
10f2d63a 5040 else
e6cc62c6
VS
5041 echo "$as_me:$LINENO: result: no" >&5
5042echo "${ECHO_T}no" >&6
10f2d63a 5043 fi
e6cc62c6 5044
10f2d63a 5045
5005acfe 5046 enablestring=
e6cc62c6
VS
5047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5048echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5049 no_cache=0
5050 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5051if test "${enable_std_iostreams+set}" = set; then
5052 enableval="$enable_std_iostreams"
e6cc62c6 5053
10f2d63a
VZ
5054 if test "$enableval" = yes; then
5055 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5056 else
5057 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5058 fi
e6cc62c6 5059
10f2d63a 5060else
e6cc62c6 5061
10f2d63a
VZ
5062 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5063 if test "x$LINE" != x ; then
5064 eval "DEFAULT_$LINE"
5065 else
5066 no_cache=1
5067 fi
5068
5069 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5070
e6cc62c6 5071fi;
10f2d63a
VZ
5072
5073 eval "$ac_cv_use_std_iostreams"
5074 if test "$no_cache" != 1; then
5075 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5076 fi
5077
5078 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5079 echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
10f2d63a 5081 else
e6cc62c6
VS
5082 echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
10f2d63a 5084 fi
e6cc62c6 5085
10f2d63a 5086
5005acfe 5087 enablestring=
e6cc62c6
VS
5088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5089echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5090 no_cache=0
5091 # Check whether --enable-filesystem or --disable-filesystem was given.
5092if test "${enable_filesystem+set}" = set; then
5093 enableval="$enable_filesystem"
e6cc62c6 5094
24528b0c
VS
5095 if test "$enableval" = yes; then
5096 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5097 else
5098 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5099 fi
e6cc62c6 5100
24528b0c 5101else
e6cc62c6 5102
24528b0c
VS
5103 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5104 if test "x$LINE" != x ; then
5105 eval "DEFAULT_$LINE"
5106 else
5107 no_cache=1
5108 fi
5109
5110 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5111
e6cc62c6 5112fi;
24528b0c
VS
5113
5114 eval "$ac_cv_use_filesystem"
5115 if test "$no_cache" != 1; then
5116 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5117 fi
5118
5119 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5120 echo "$as_me:$LINENO: result: yes" >&5
5121echo "${ECHO_T}yes" >&6
24528b0c 5122 else
e6cc62c6
VS
5123 echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
24528b0c 5125 fi
e6cc62c6 5126
24528b0c 5127
5005acfe 5128 enablestring=
e6cc62c6
VS
5129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5130echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5131 no_cache=0
5132 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5133if test "${enable_fs_inet+set}" = set; then
5134 enableval="$enable_fs_inet"
e6cc62c6 5135
10f2d63a
VZ
5136 if test "$enableval" = yes; then
5137 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5138 else
5139 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5140 fi
e6cc62c6 5141
10f2d63a 5142else
e6cc62c6 5143
10f2d63a
VZ
5144 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5152
e6cc62c6 5153fi;
10f2d63a
VZ
5154
5155 eval "$ac_cv_use_fs_inet"
5156 if test "$no_cache" != 1; then
5157 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5158 fi
5159
5160 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5161 echo "$as_me:$LINENO: result: yes" >&5
5162echo "${ECHO_T}yes" >&6
10f2d63a 5163 else
e6cc62c6
VS
5164 echo "$as_me:$LINENO: result: no" >&5
5165echo "${ECHO_T}no" >&6
10f2d63a 5166 fi
e6cc62c6 5167
10f2d63a 5168
5005acfe 5169 enablestring=
e6cc62c6
VS
5170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5171echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5172 no_cache=0
5173 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5174if test "${enable_fs_zip+set}" = set; then
5175 enableval="$enable_fs_zip"
e6cc62c6 5176
10f2d63a
VZ
5177 if test "$enableval" = yes; then
5178 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5179 else
5180 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5181 fi
e6cc62c6 5182
10f2d63a 5183else
e6cc62c6 5184
10f2d63a
VZ
5185 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5193
e6cc62c6 5194fi;
10f2d63a
VZ
5195
5196 eval "$ac_cv_use_fs_zip"
5197 if test "$no_cache" != 1; then
5198 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5199 fi
5200
5201 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5202 echo "$as_me:$LINENO: result: yes" >&5
5203echo "${ECHO_T}yes" >&6
10f2d63a 5204 else
e6cc62c6
VS
5205 echo "$as_me:$LINENO: result: no" >&5
5206echo "${ECHO_T}no" >&6
10f2d63a 5207 fi
e6cc62c6 5208
10f2d63a 5209
5005acfe 5210 enablestring=
e6cc62c6
VS
5211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5212echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5213 no_cache=0
5214 # Check whether --enable-zipstream or --disable-zipstream was given.
5215if test "${enable_zipstream+set}" = set; then
5216 enableval="$enable_zipstream"
e6cc62c6 5217
10f2d63a
VZ
5218 if test "$enableval" = yes; then
5219 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5220 else
5221 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5222 fi
e6cc62c6 5223
10f2d63a 5224else
e6cc62c6 5225
10f2d63a
VZ
5226 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5227 if test "x$LINE" != x ; then
5228 eval "DEFAULT_$LINE"
5229 else
5230 no_cache=1
5231 fi
5232
5233 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5234
e6cc62c6 5235fi;
10f2d63a
VZ
5236
5237 eval "$ac_cv_use_zipstream"
5238 if test "$no_cache" != 1; then
5239 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5240 fi
5241
5242 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5243 echo "$as_me:$LINENO: result: yes" >&5
5244echo "${ECHO_T}yes" >&6
10f2d63a 5245 else
e6cc62c6
VS
5246 echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
10f2d63a 5248 fi
e6cc62c6 5249
8284b0c5 5250
52127426 5251
5005acfe 5252 enablestring=
e6cc62c6
VS
5253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5254echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5255 no_cache=0
5256 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5257if test "${enable_catch_segvs+set}" = set; then
5258 enableval="$enable_catch_segvs"
e6cc62c6 5259
eb4efbdc
VZ
5260 if test "$enableval" = yes; then
5261 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5262 else
5263 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5264 fi
e6cc62c6 5265
eb4efbdc 5266else
e6cc62c6 5267
eb4efbdc
VZ
5268 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5276
e6cc62c6 5277fi;
eb4efbdc
VZ
5278
5279 eval "$ac_cv_use_catch_segvs"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5285 echo "$as_me:$LINENO: result: yes" >&5
5286echo "${ECHO_T}yes" >&6
eb4efbdc 5287 else
e6cc62c6
VS
5288 echo "$as_me:$LINENO: result: no" >&5
5289echo "${ECHO_T}no" >&6
eb4efbdc 5290 fi
e6cc62c6 5291
eb4efbdc 5292
5005acfe 5293 enablestring=
e6cc62c6
VS
5294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5295echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5296 no_cache=0
5297 # Check whether --enable-snglinst or --disable-snglinst was given.
5298if test "${enable_snglinst+set}" = set; then
5299 enableval="$enable_snglinst"
e6cc62c6 5300
4f3c5f06
VZ
5301 if test "$enableval" = yes; then
5302 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5303 else
5304 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5305 fi
e6cc62c6 5306
4f3c5f06 5307else
e6cc62c6 5308
4f3c5f06
VZ
5309 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5310 if test "x$LINE" != x ; then
5311 eval "DEFAULT_$LINE"
5312 else
5313 no_cache=1
5314 fi
5315
5316 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5317
e6cc62c6 5318fi;
4f3c5f06
VZ
5319
5320 eval "$ac_cv_use_snglinst"
5321 if test "$no_cache" != 1; then
5322 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5323 fi
5324
5325 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5326 echo "$as_me:$LINENO: result: yes" >&5
5327echo "${ECHO_T}yes" >&6
4f3c5f06 5328 else
e6cc62c6
VS
5329 echo "$as_me:$LINENO: result: no" >&5
5330echo "${ECHO_T}no" >&6
4f3c5f06 5331 fi
e6cc62c6 5332
52127426 5333
8284b0c5 5334
5005acfe 5335 enablestring=
e6cc62c6
VS
5336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5337echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5338 no_cache=0
5339 # Check whether --enable-mimetype or --disable-mimetype was given.
5340if test "${enable_mimetype+set}" = set; then
5341 enableval="$enable_mimetype"
e6cc62c6 5342
1e6feb95
VZ
5343 if test "$enableval" = yes; then
5344 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5345 else
5346 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5347 fi
e6cc62c6 5348
1e6feb95 5349else
e6cc62c6 5350
1e6feb95
VZ
5351 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5352 if test "x$LINE" != x ; then
5353 eval "DEFAULT_$LINE"
5354 else
5355 no_cache=1
5356 fi
5357
5358 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5359
e6cc62c6 5360fi;
1e6feb95
VZ
5361
5362 eval "$ac_cv_use_mimetype"
5363 if test "$no_cache" != 1; then
5364 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5365 fi
5366
5367 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5368 echo "$as_me:$LINENO: result: yes" >&5
5369echo "${ECHO_T}yes" >&6
1e6feb95 5370 else
e6cc62c6
VS
5371 echo "$as_me:$LINENO: result: no" >&5
5372echo "${ECHO_T}no" >&6
1e6feb95 5373 fi
e6cc62c6 5374
1e6feb95 5375
5005acfe 5376 enablestring=
e6cc62c6
VS
5377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5378echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5379 no_cache=0
5380 # Check whether --enable-system_options or --disable-system_options was given.
5381if test "${enable_system_options+set}" = set; then
5382 enableval="$enable_system_options"
e6cc62c6 5383
3e44f09d
VZ
5384 if test "$enableval" = yes; then
5385 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5386 else
5387 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5388 fi
e6cc62c6 5389
3e44f09d 5390else
e6cc62c6 5391
3e44f09d
VZ
5392 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5393 if test "x$LINE" != x ; then
5394 eval "DEFAULT_$LINE"
5395 else
5396 no_cache=1
5397 fi
5398
5399 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5400
e6cc62c6 5401fi;
3e44f09d
VZ
5402
5403 eval "$ac_cv_use_system_options"
5404 if test "$no_cache" != 1; then
5405 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5406 fi
5407
5408 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5409 echo "$as_me:$LINENO: result: yes" >&5
5410echo "${ECHO_T}yes" >&6
3e44f09d 5411 else
e6cc62c6
VS
5412 echo "$as_me:$LINENO: result: no" >&5
5413echo "${ECHO_T}no" >&6
3e44f09d 5414 fi
e6cc62c6 5415
8284b0c5 5416
52127426 5417
5005acfe 5418 enablestring=
e6cc62c6
VS
5419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5420echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5421 no_cache=0
5422 # Check whether --enable-url or --disable-url was given.
5423if test "${enable_url+set}" = set; then
5424 enableval="$enable_url"
e6cc62c6 5425
4cdb0ab0
VS
5426 if test "$enableval" = yes; then
5427 ac_cv_use_url='wxUSE_URL=yes'
5428 else
5429 ac_cv_use_url='wxUSE_URL=no'
5430 fi
e6cc62c6 5431
4cdb0ab0 5432else
e6cc62c6 5433
4cdb0ab0
VS
5434 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5435 if test "x$LINE" != x ; then
5436 eval "DEFAULT_$LINE"
5437 else
5438 no_cache=1
5439 fi
5440
5441 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5442
e6cc62c6 5443fi;
4cdb0ab0
VS
5444
5445 eval "$ac_cv_use_url"
5446 if test "$no_cache" != 1; then
5447 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5448 fi
5449
5450 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5451 echo "$as_me:$LINENO: result: yes" >&5
5452echo "${ECHO_T}yes" >&6
4cdb0ab0 5453 else
e6cc62c6
VS
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
4cdb0ab0 5456 fi
e6cc62c6 5457
4cdb0ab0 5458
5005acfe 5459 enablestring=
e6cc62c6
VS
5460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5461echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5462 no_cache=0
5463 # Check whether --enable-protocol or --disable-protocol was given.
5464if test "${enable_protocol+set}" = set; then
5465 enableval="$enable_protocol"
e6cc62c6 5466
4cdb0ab0
VS
5467 if test "$enableval" = yes; then
5468 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5469 else
5470 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5471 fi
e6cc62c6 5472
4cdb0ab0 5473else
e6cc62c6 5474
4cdb0ab0
VS
5475 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5476 if test "x$LINE" != x ; then
5477 eval "DEFAULT_$LINE"
5478 else
5479 no_cache=1
5480 fi
5481
5482 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5483
e6cc62c6 5484fi;
4cdb0ab0
VS
5485
5486 eval "$ac_cv_use_protocol"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5492 echo "$as_me:$LINENO: result: yes" >&5
5493echo "${ECHO_T}yes" >&6
4cdb0ab0 5494 else
e6cc62c6
VS
5495 echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6
4cdb0ab0 5497 fi
e6cc62c6 5498
4cdb0ab0 5499
5005acfe 5500 enablestring=
e6cc62c6
VS
5501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5502echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5503 no_cache=0
5504 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5505if test "${enable_protocol_http+set}" = set; then
5506 enableval="$enable_protocol_http"
e6cc62c6 5507
4cdb0ab0
VS
5508 if test "$enableval" = yes; then
5509 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5510 else
5511 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5512 fi
e6cc62c6 5513
4cdb0ab0 5514else
e6cc62c6 5515
4cdb0ab0
VS
5516 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5517 if test "x$LINE" != x ; then
5518 eval "DEFAULT_$LINE"
5519 else
5520 no_cache=1
5521 fi
5522
5523 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5524
e6cc62c6 5525fi;
4cdb0ab0
VS
5526
5527 eval "$ac_cv_use_protocol_http"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5533 echo "$as_me:$LINENO: result: yes" >&5
5534echo "${ECHO_T}yes" >&6
4cdb0ab0 5535 else
e6cc62c6
VS
5536 echo "$as_me:$LINENO: result: no" >&5
5537echo "${ECHO_T}no" >&6
4cdb0ab0 5538 fi
e6cc62c6 5539
4cdb0ab0 5540
5005acfe 5541 enablestring=
e6cc62c6
VS
5542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5543echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5544 no_cache=0
5545 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5546if test "${enable_protocol_ftp+set}" = set; then
5547 enableval="$enable_protocol_ftp"
e6cc62c6 5548
4cdb0ab0
VS
5549 if test "$enableval" = yes; then
5550 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5551 else
5552 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5553 fi
e6cc62c6 5554
4cdb0ab0 5555else
e6cc62c6 5556
4cdb0ab0
VS
5557 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5558 if test "x$LINE" != x ; then
5559 eval "DEFAULT_$LINE"
5560 else
5561 no_cache=1
5562 fi
5563
5564 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5565
e6cc62c6 5566fi;
4cdb0ab0
VS
5567
5568 eval "$ac_cv_use_protocol_ftp"
5569 if test "$no_cache" != 1; then
5570 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5571 fi
5572
5573 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5574 echo "$as_me:$LINENO: result: yes" >&5
5575echo "${ECHO_T}yes" >&6
4cdb0ab0 5576 else
e6cc62c6
VS
5577 echo "$as_me:$LINENO: result: no" >&5
5578echo "${ECHO_T}no" >&6
4cdb0ab0 5579 fi
e6cc62c6 5580
4cdb0ab0 5581
5005acfe 5582 enablestring=
e6cc62c6
VS
5583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5584echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5585 no_cache=0
5586 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5587if test "${enable_protocol_file+set}" = set; then
5588 enableval="$enable_protocol_file"
e6cc62c6 5589
4cdb0ab0
VS
5590 if test "$enableval" = yes; then
5591 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5592 else
5593 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5594 fi
e6cc62c6 5595
4cdb0ab0 5596else
e6cc62c6 5597
4cdb0ab0
VS
5598 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5606
e6cc62c6 5607fi;
4cdb0ab0
VS
5608
5609 eval "$ac_cv_use_protocol_file"
5610 if test "$no_cache" != 1; then
5611 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5612 fi
5613
5614 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5615 echo "$as_me:$LINENO: result: yes" >&5
5616echo "${ECHO_T}yes" >&6
4cdb0ab0 5617 else
e6cc62c6
VS
5618 echo "$as_me:$LINENO: result: no" >&5
5619echo "${ECHO_T}no" >&6
4cdb0ab0 5620 fi
e6cc62c6 5621
52127426 5622
8284b0c5
MB
5623
5624
5625
5005acfe 5626 enablestring=
e6cc62c6
VS
5627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5628echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5629 no_cache=0
5630 # Check whether --enable-threads or --disable-threads was given.
5631if test "${enable_threads+set}" = set; then
5632 enableval="$enable_threads"
e6cc62c6 5633
10f2d63a
VZ
5634 if test "$enableval" = yes; then
5635 ac_cv_use_threads='wxUSE_THREADS=yes'
5636 else
5637 ac_cv_use_threads='wxUSE_THREADS=no'
5638 fi
e6cc62c6 5639
10f2d63a 5640else
e6cc62c6 5641
10f2d63a
VZ
5642 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5643 if test "x$LINE" != x ; then
5644 eval "DEFAULT_$LINE"
5645 else
5646 no_cache=1
5647 fi
5648
5649 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5650
e6cc62c6 5651fi;
10f2d63a
VZ
5652
5653 eval "$ac_cv_use_threads"
5654 if test "$no_cache" != 1; then
5655 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5656 fi
5657
5658 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5659 echo "$as_me:$LINENO: result: yes" >&5
5660echo "${ECHO_T}yes" >&6
10f2d63a 5661 else
e6cc62c6
VS
5662 echo "$as_me:$LINENO: result: no" >&5
5663echo "${ECHO_T}no" >&6
10f2d63a 5664 fi
e6cc62c6 5665
10f2d63a 5666
b12915c1
VZ
5667if test "$wxUSE_GUI" = "yes"; then
5668
8284b0c5
MB
5669
5670
5005acfe 5671 enablestring=
e6cc62c6
VS
5672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5673echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5674 no_cache=0
5675 # Check whether --enable-docview or --disable-docview was given.
5676if test "${enable_docview+set}" = set; then
5677 enableval="$enable_docview"
e6cc62c6 5678
10f2d63a
VZ
5679 if test "$enableval" = yes; then
5680 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5681 else
5682 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5683 fi
e6cc62c6 5684
10f2d63a 5685else
e6cc62c6 5686
10f2d63a
VZ
5687 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 else
5691 no_cache=1
5692 fi
5693
5694 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5695
e6cc62c6 5696fi;
10f2d63a
VZ
5697
5698 eval "$ac_cv_use_docview"
5699 if test "$no_cache" != 1; then
5700 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5701 fi
5702
5703 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5704 echo "$as_me:$LINENO: result: yes" >&5
5705echo "${ECHO_T}yes" >&6
10f2d63a 5706 else
e6cc62c6
VS
5707 echo "$as_me:$LINENO: result: no" >&5
5708echo "${ECHO_T}no" >&6
10f2d63a 5709 fi
e6cc62c6 5710
10f2d63a 5711
5005acfe 5712 enablestring=
e6cc62c6
VS
5713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5714echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5715 no_cache=0
5716 # Check whether --enable-help or --disable-help was given.
5717if test "${enable_help+set}" = set; then
5718 enableval="$enable_help"
e6cc62c6 5719
10f2d63a
VZ
5720 if test "$enableval" = yes; then
5721 ac_cv_use_help='wxUSE_HELP=yes'
5722 else
5723 ac_cv_use_help='wxUSE_HELP=no'
5724 fi
e6cc62c6 5725
10f2d63a 5726else
e6cc62c6 5727
10f2d63a
VZ
5728 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5729 if test "x$LINE" != x ; then
5730 eval "DEFAULT_$LINE"
5731 else
5732 no_cache=1
5733 fi
5734
5735 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5736
e6cc62c6 5737fi;
10f2d63a
VZ
5738
5739 eval "$ac_cv_use_help"
5740 if test "$no_cache" != 1; then
5741 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5742 fi
5743
5744 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5745 echo "$as_me:$LINENO: result: yes" >&5
5746echo "${ECHO_T}yes" >&6
10f2d63a 5747 else
e6cc62c6
VS
5748 echo "$as_me:$LINENO: result: no" >&5
5749echo "${ECHO_T}no" >&6
10f2d63a 5750 fi
e6cc62c6 5751
10f2d63a 5752
5005acfe 5753 enablestring=
e6cc62c6
VS
5754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5755echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5756 no_cache=0
5757 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5758if test "${enable_mshtmlhelp+set}" = set; then
5759 enableval="$enable_mshtmlhelp"
e6cc62c6 5760
29fd3c0c
VS
5761 if test "$enableval" = yes; then
5762 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5763 else
5764 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5765 fi
e6cc62c6 5766
29fd3c0c 5767else
e6cc62c6 5768
29fd3c0c
VS
5769 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5770 if test "x$LINE" != x ; then
5771 eval "DEFAULT_$LINE"
5772 else
5773 no_cache=1
5774 fi
5775
5776 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5777
e6cc62c6 5778fi;
29fd3c0c
VS
5779
5780 eval "$ac_cv_use_mshtmlhelp"
5781 if test "$no_cache" != 1; then
5782 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5783 fi
5784
5785 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5786 echo "$as_me:$LINENO: result: yes" >&5
5787echo "${ECHO_T}yes" >&6
29fd3c0c 5788 else
e6cc62c6
VS
5789 echo "$as_me:$LINENO: result: no" >&5
5790echo "${ECHO_T}no" >&6
29fd3c0c 5791 fi
e6cc62c6 5792
29fd3c0c 5793
5005acfe 5794 enablestring=
e6cc62c6
VS
5795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5796echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5797 no_cache=0
5798 # Check whether --enable-html or --disable-html was given.
5799if test "${enable_html+set}" = set; then
5800 enableval="$enable_html"
e6cc62c6 5801
3379ed37
VZ
5802 if test "$enableval" = yes; then
5803 ac_cv_use_html='wxUSE_HTML=yes'
5804 else
5805 ac_cv_use_html='wxUSE_HTML=no'
5806 fi
e6cc62c6 5807
3379ed37 5808else
e6cc62c6 5809
3379ed37
VZ
5810 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5811 if test "x$LINE" != x ; then
5812 eval "DEFAULT_$LINE"
5813 else
5814 no_cache=1
5815 fi
5816
5817 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5818
e6cc62c6 5819fi;
3379ed37
VZ
5820
5821 eval "$ac_cv_use_html"
5822 if test "$no_cache" != 1; then
5823 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5824 fi
5825
5826 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5827 echo "$as_me:$LINENO: result: yes" >&5
5828echo "${ECHO_T}yes" >&6
3379ed37 5829 else
e6cc62c6
VS
5830 echo "$as_me:$LINENO: result: no" >&5
5831echo "${ECHO_T}no" >&6
3379ed37 5832 fi
e6cc62c6 5833
3379ed37 5834
5005acfe 5835 enablestring=
e6cc62c6
VS
5836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5837echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5838 no_cache=0
5839 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5840if test "${enable_htmlhelp+set}" = set; then
5841 enableval="$enable_htmlhelp"
e6cc62c6 5842
3379ed37
VZ
5843 if test "$enableval" = yes; then
5844 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5845 else
5846 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5847 fi
e6cc62c6 5848
3379ed37 5849else
e6cc62c6 5850
3379ed37
VZ
5851 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5852 if test "x$LINE" != x ; then
5853 eval "DEFAULT_$LINE"
5854 else
5855 no_cache=1
5856 fi
5857
5858 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5859
e6cc62c6 5860fi;
3379ed37
VZ
5861
5862 eval "$ac_cv_use_htmlhelp"
5863 if test "$no_cache" != 1; then
5864 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5865 fi
5866
5867 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5868 echo "$as_me:$LINENO: result: yes" >&5
5869echo "${ECHO_T}yes" >&6
3379ed37 5870 else
e6cc62c6
VS
5871 echo "$as_me:$LINENO: result: no" >&5
5872echo "${ECHO_T}no" >&6
3379ed37 5873 fi
e6cc62c6 5874
3379ed37 5875
5005acfe 5876 enablestring=
e6cc62c6
VS
5877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5878echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5879 no_cache=0
5880 # Check whether --enable-constraints or --disable-constraints was given.
5881if test "${enable_constraints+set}" = set; then
5882 enableval="$enable_constraints"
e6cc62c6 5883
10f2d63a
VZ
5884 if test "$enableval" = yes; then
5885 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5886 else
5887 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5888 fi
e6cc62c6 5889
10f2d63a 5890else
e6cc62c6 5891
10f2d63a
VZ
5892 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5893 if test "x$LINE" != x ; then
5894 eval "DEFAULT_$LINE"
5895 else
5896 no_cache=1
5897 fi
5898
5899 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5900
e6cc62c6 5901fi;
10f2d63a
VZ
5902
5903 eval "$ac_cv_use_constraints"
5904 if test "$no_cache" != 1; then
5905 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5906 fi
5907
5908 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5909 echo "$as_me:$LINENO: result: yes" >&5
5910echo "${ECHO_T}yes" >&6
10f2d63a 5911 else
e6cc62c6
VS
5912 echo "$as_me:$LINENO: result: no" >&5
5913echo "${ECHO_T}no" >&6
10f2d63a 5914 fi
e6cc62c6 5915
10f2d63a 5916
5005acfe 5917 enablestring=
e6cc62c6
VS
5918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5919echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5920 no_cache=0
5921 # Check whether --enable-printarch or --disable-printarch was given.
5922if test "${enable_printarch+set}" = set; then
5923 enableval="$enable_printarch"
e6cc62c6 5924
10f2d63a
VZ
5925 if test "$enableval" = yes; then
5926 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5927 else
5928 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5929 fi
e6cc62c6 5930
10f2d63a 5931else
e6cc62c6 5932
10f2d63a
VZ
5933 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5934 if test "x$LINE" != x ; then
5935 eval "DEFAULT_$LINE"
5936 else
5937 no_cache=1
5938 fi
5939
5940 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5941
e6cc62c6 5942fi;
10f2d63a
VZ
5943
5944 eval "$ac_cv_use_printarch"
5945 if test "$no_cache" != 1; then
5946 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5947 fi
5948
5949 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
5950 echo "$as_me:$LINENO: result: yes" >&5
5951echo "${ECHO_T}yes" >&6
10f2d63a 5952 else
e6cc62c6
VS
5953 echo "$as_me:$LINENO: result: no" >&5
5954echo "${ECHO_T}no" >&6
10f2d63a 5955 fi
e6cc62c6 5956
10f2d63a 5957
5005acfe 5958 enablestring=
e6cc62c6
VS
5959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
5960echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
5961 no_cache=0
5962 # Check whether --enable-mdi or --disable-mdi was given.
5963if test "${enable_mdi+set}" = set; then
5964 enableval="$enable_mdi"
e6cc62c6 5965
10f2d63a
VZ
5966 if test "$enableval" = yes; then
5967 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5968 else
5969 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5970 fi
e6cc62c6 5971
10f2d63a 5972else
e6cc62c6 5973
10f2d63a
VZ
5974 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5975 if test "x$LINE" != x ; then
5976 eval "DEFAULT_$LINE"
5977 else
5978 no_cache=1
5979 fi
5980
5981 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 5982
e6cc62c6 5983fi;
10f2d63a
VZ
5984
5985 eval "$ac_cv_use_mdi"
5986 if test "$no_cache" != 1; then
5987 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5988 fi
5989
5990 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
5991 echo "$as_me:$LINENO: result: yes" >&5
5992echo "${ECHO_T}yes" >&6
10f2d63a 5993 else
e6cc62c6
VS
5994 echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6
10f2d63a 5996 fi
e6cc62c6 5997
698dcdb6 5998
5005acfe 5999 enablestring=
e6cc62c6
VS
6000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6001echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6002 no_cache=0
6003 # Check whether --enable-loggui or --disable-loggui was given.
6004if test "${enable_loggui+set}" = set; then
6005 enableval="$enable_loggui"
e6cc62c6 6006
1e6feb95
VZ
6007 if test "$enableval" = yes; then
6008 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6009 else
6010 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6011 fi
e6cc62c6 6012
1e6feb95 6013else
e6cc62c6 6014
1e6feb95
VZ
6015 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6016 if test "x$LINE" != x ; then
6017 eval "DEFAULT_$LINE"
6018 else
6019 no_cache=1
6020 fi
6021
6022 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6023
e6cc62c6 6024fi;
1e6feb95
VZ
6025
6026 eval "$ac_cv_use_loggui"
6027 if test "$no_cache" != 1; then
6028 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6029 fi
6030
6031 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6032 echo "$as_me:$LINENO: result: yes" >&5
6033echo "${ECHO_T}yes" >&6
1e6feb95 6034 else
e6cc62c6
VS
6035 echo "$as_me:$LINENO: result: no" >&5
6036echo "${ECHO_T}no" >&6
1e6feb95 6037 fi
e6cc62c6 6038
1e6feb95 6039
5005acfe 6040 enablestring=
e6cc62c6
VS
6041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6042echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6043 no_cache=0
6044 # Check whether --enable-logwin or --disable-logwin was given.
6045if test "${enable_logwin+set}" = set; then
6046 enableval="$enable_logwin"
e6cc62c6 6047
1e6feb95
VZ
6048 if test "$enableval" = yes; then
6049 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6050 else
6051 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6052 fi
e6cc62c6 6053
1e6feb95 6054else
e6cc62c6 6055
1e6feb95
VZ
6056 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6057 if test "x$LINE" != x ; then
6058 eval "DEFAULT_$LINE"
6059 else
6060 no_cache=1
6061 fi
6062
6063 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6064
e6cc62c6 6065fi;
1e6feb95
VZ
6066
6067 eval "$ac_cv_use_logwin"
6068 if test "$no_cache" != 1; then
6069 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6070 fi
6071
6072 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6073 echo "$as_me:$LINENO: result: yes" >&5
6074echo "${ECHO_T}yes" >&6
1e6feb95 6075 else
e6cc62c6
VS
6076 echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6
1e6feb95 6078 fi
e6cc62c6 6079
1e6feb95 6080
5005acfe 6081 enablestring=
e6cc62c6
VS
6082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6083echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6084 no_cache=0
6085 # Check whether --enable-logdialog or --disable-logdialog was given.
6086if test "${enable_logdialog+set}" = set; then
6087 enableval="$enable_logdialog"
e6cc62c6 6088
69d27ff7
MB
6089 if test "$enableval" = yes; then
6090 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6091 else
6092 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6093 fi
e6cc62c6 6094
69d27ff7 6095else
e6cc62c6 6096
69d27ff7
MB
6097 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6098 if test "x$LINE" != x ; then
6099 eval "DEFAULT_$LINE"
6100 else
6101 no_cache=1
6102 fi
6103
6104 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6105
e6cc62c6 6106fi;
69d27ff7
MB
6107
6108 eval "$ac_cv_use_logdialog"
6109 if test "$no_cache" != 1; then
6110 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6111 fi
6112
6113 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6114 echo "$as_me:$LINENO: result: yes" >&5
6115echo "${ECHO_T}yes" >&6
69d27ff7 6116 else
e6cc62c6
VS
6117 echo "$as_me:$LINENO: result: no" >&5
6118echo "${ECHO_T}no" >&6
69d27ff7 6119 fi
e6cc62c6 6120
8284b0c5 6121
52127426 6122
5005acfe 6123 enablestring=
e6cc62c6
VS
6124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6125echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6126 no_cache=0
6127 # Check whether --enable-postscript or --disable-postscript was given.
6128if test "${enable_postscript+set}" = set; then
6129 enableval="$enable_postscript"
e6cc62c6 6130
10f2d63a
VZ
6131 if test "$enableval" = yes; then
6132 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6133 else
6134 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6135 fi
e6cc62c6 6136
10f2d63a 6137else
e6cc62c6 6138
10f2d63a
VZ
6139 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6140 if test "x$LINE" != x ; then
6141 eval "DEFAULT_$LINE"
6142 else
6143 no_cache=1
6144 fi
6145
6146 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6147
e6cc62c6 6148fi;
10f2d63a
VZ
6149
6150 eval "$ac_cv_use_postscript"
6151 if test "$no_cache" != 1; then
6152 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6153 fi
6154
6155 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6156 echo "$as_me:$LINENO: result: yes" >&5
6157echo "${ECHO_T}yes" >&6
10f2d63a 6158 else
e6cc62c6
VS
6159 echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6
10f2d63a 6161 fi
e6cc62c6 6162
8284b0c5
MB
6163
6164
52127426 6165
8284b0c5 6166
5005acfe 6167 enablestring=
e6cc62c6
VS
6168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6169echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6170 no_cache=0
3c907f20
VZ
6171 # Check whether --enable-prologio or --disable-prologio was given.
6172if test "${enable_prologio+set}" = set; then
6173 enableval="$enable_prologio"
e6cc62c6 6174
10f2d63a 6175 if test "$enableval" = yes; then
3c907f20 6176 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6177 else
3c907f20 6178 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6179 fi
e6cc62c6 6180
10f2d63a 6181else
e6cc62c6 6182
3c907f20 6183 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6184 if test "x$LINE" != x ; then
6185 eval "DEFAULT_$LINE"
6186 else
6187 no_cache=1
6188 fi
6189
3c907f20 6190 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6191
e6cc62c6 6192fi;
10f2d63a 6193
3c907f20 6194 eval "$ac_cv_use_prologio"
10f2d63a 6195 if test "$no_cache" != 1; then
3c907f20 6196 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6197 fi
6198
3c907f20 6199 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6200 echo "$as_me:$LINENO: result: yes" >&5
6201echo "${ECHO_T}yes" >&6
10f2d63a 6202 else
e6cc62c6
VS
6203 echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6
10f2d63a 6205 fi
e6cc62c6 6206
8284b0c5 6207
5005acfe 6208 enablestring=
e6cc62c6
VS
6209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6210echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6211 no_cache=0
3c907f20
VZ
6212 # Check whether --enable-resources or --disable-resources was given.
6213if test "${enable_resources+set}" = set; then
6214 enableval="$enable_resources"
e6cc62c6 6215
10f2d63a 6216 if test "$enableval" = yes; then
3c907f20 6217 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6218 else
3c907f20 6219 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6220 fi
e6cc62c6 6221
10f2d63a 6222else
e6cc62c6 6223
3c907f20 6224 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6225 if test "x$LINE" != x ; then
6226 eval "DEFAULT_$LINE"
6227 else
6228 no_cache=1
6229 fi
6230
3c907f20 6231 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6232
e6cc62c6 6233fi;
10f2d63a 6234
3c907f20 6235 eval "$ac_cv_use_resources"
10f2d63a 6236 if test "$no_cache" != 1; then
3c907f20 6237 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6238 fi
6239
3c907f20 6240 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6241 echo "$as_me:$LINENO: result: yes" >&5
6242echo "${ECHO_T}yes" >&6
10f2d63a 6243 else
e6cc62c6
VS
6244 echo "$as_me:$LINENO: result: no" >&5
6245echo "${ECHO_T}no" >&6
10f2d63a 6246 fi
e6cc62c6 6247
8284b0c5
MB
6248
6249
52127426 6250
5005acfe 6251 enablestring=
e6cc62c6
VS
6252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6253echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6254 no_cache=0
6255 # Check whether --enable-clipboard or --disable-clipboard was given.
6256if test "${enable_clipboard+set}" = set; then
6257 enableval="$enable_clipboard"
e6cc62c6 6258
10f2d63a
VZ
6259 if test "$enableval" = yes; then
6260 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6261 else
6262 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6263 fi
e6cc62c6 6264
10f2d63a 6265else
e6cc62c6 6266
10f2d63a
VZ
6267 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6268 if test "x$LINE" != x ; then
6269 eval "DEFAULT_$LINE"
6270 else
6271 no_cache=1
6272 fi
6273
6274 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6275
e6cc62c6 6276fi;
10f2d63a
VZ
6277
6278 eval "$ac_cv_use_clipboard"
6279 if test "$no_cache" != 1; then
6280 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6281 fi
6282
6283 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6284 echo "$as_me:$LINENO: result: yes" >&5
6285echo "${ECHO_T}yes" >&6
10f2d63a 6286 else
e6cc62c6
VS
6287 echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6
10f2d63a 6289 fi
e6cc62c6 6290
10f2d63a 6291
5005acfe 6292 enablestring=
e6cc62c6
VS
6293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6294echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6295 no_cache=0
6296 # Check whether --enable-dnd or --disable-dnd was given.
6297if test "${enable_dnd+set}" = set; then
6298 enableval="$enable_dnd"
e6cc62c6 6299
10f2d63a
VZ
6300 if test "$enableval" = yes; then
6301 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6302 else
6303 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6304 fi
e6cc62c6 6305
10f2d63a 6306else
e6cc62c6 6307
10f2d63a
VZ
6308 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6309 if test "x$LINE" != x ; then
6310 eval "DEFAULT_$LINE"
6311 else
6312 no_cache=1
6313 fi
6314
6315 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6316
e6cc62c6 6317fi;
10f2d63a
VZ
6318
6319 eval "$ac_cv_use_dnd"
6320 if test "$no_cache" != 1; then
6321 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6322 fi
6323
6324 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6325 echo "$as_me:$LINENO: result: yes" >&5
6326echo "${ECHO_T}yes" >&6
10f2d63a 6327 else
e6cc62c6
VS
6328 echo "$as_me:$LINENO: result: no" >&5
6329echo "${ECHO_T}no" >&6
10f2d63a 6330 fi
e6cc62c6 6331
10f2d63a 6332
5005acfe 6333 enablestring=
e6cc62c6
VS
6334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6335echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6336 no_cache=0
6337 # Check whether --enable-metafile or --disable-metafile was given.
6338if test "${enable_metafile+set}" = set; then
6339 enableval="$enable_metafile"
e6cc62c6 6340
b64f0a5f
RL
6341 if test "$enableval" = yes; then
6342 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6343 else
6344 ac_cv_use_metafile='wxUSE_METAFILE=no'
6345 fi
e6cc62c6 6346
b64f0a5f 6347else
e6cc62c6 6348
b64f0a5f
RL
6349 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
6356 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6357
e6cc62c6 6358fi;
b64f0a5f
RL
6359
6360 eval "$ac_cv_use_metafile"
6361 if test "$no_cache" != 1; then
6362 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6363 fi
6364
6365 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6366 echo "$as_me:$LINENO: result: yes" >&5
6367echo "${ECHO_T}yes" >&6
b64f0a5f 6368 else
e6cc62c6
VS
6369 echo "$as_me:$LINENO: result: no" >&5
6370echo "${ECHO_T}no" >&6
b64f0a5f 6371 fi
e6cc62c6 6372
52127426 6373
8284b0c5 6374
52127426 6375
8284b0c5 6376
5005acfe 6377 enablestring=
e6cc62c6
VS
6378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6379echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6380 no_cache=0
6381 # Check whether --enable-controls or --disable-controls was given.
6382if test "${enable_controls+set}" = set; then
6383 enableval="$enable_controls"
e6cc62c6 6384
10f2d63a
VZ
6385 if test "$enableval" = yes; then
6386 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6387 else
6388 ac_cv_use_controls='wxUSE_CONTROLS=no'
6389 fi
e6cc62c6 6390
10f2d63a 6391else
e6cc62c6 6392
10f2d63a
VZ
6393 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6394 if test "x$LINE" != x ; then
6395 eval "DEFAULT_$LINE"
6396 else
6397 no_cache=1
6398 fi
6399
6400 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6401
e6cc62c6 6402fi;
10f2d63a
VZ
6403
6404 eval "$ac_cv_use_controls"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6410 echo "$as_me:$LINENO: result: yes" >&5
6411echo "${ECHO_T}yes" >&6
10f2d63a 6412 else
e6cc62c6
VS
6413 echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6
10f2d63a 6415 fi
e6cc62c6 6416
10f2d63a
VZ
6417
6418if test "$wxUSE_CONTROLS" = "yes"; then
6419 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6420 DEFAULT_wxUSE_BMPBUTTON=yes
6421 DEFAULT_wxUSE_BUTTON=yes
6422 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6423 DEFAULT_wxUSE_CARET=yes
6424 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6425 DEFAULT_wxUSE_CHECKBOX=yes
6426 DEFAULT_wxUSE_CHECKLISTBOX=yes
6427 DEFAULT_wxUSE_CHOICE=yes
6428 DEFAULT_wxUSE_GAUGE=yes
6429 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6430 DEFAULT_wxUSE_IMAGLIST=yes
6431 DEFAULT_wxUSE_LISTBOX=yes
6432 DEFAULT_wxUSE_LISTCTRL=yes
6433 DEFAULT_wxUSE_NOTEBOOK=yes
6434 DEFAULT_wxUSE_RADIOBOX=yes
6435 DEFAULT_wxUSE_RADIOBTN=yes
6436 DEFAULT_wxUSE_SASH=yes
6437 DEFAULT_wxUSE_SCROLLBAR=yes
6438 DEFAULT_wxUSE_SLIDER=yes
6439 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6440 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6441 DEFAULT_wxUSE_SPLITTER=yes
6442 DEFAULT_wxUSE_STATBMP=yes
6443 DEFAULT_wxUSE_STATBOX=yes
6444 DEFAULT_wxUSE_STATLINE=yes
6445 DEFAULT_wxUSE_STATUSBAR=yes
6446 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6447 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6448 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6449 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6450 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6451 DEFAULT_wxUSE_TOOLTIPS=yes
6452 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6453 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6454 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6455elif test "$wxUSE_CONTROLS" = "no"; then
6456 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6457 DEFAULT_wxUSE_BMPBUTTON=no
6458 DEFAULT_wxUSE_BUTTON=no
6459 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6460 DEFAULT_wxUSE_CARET=no
6461 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6462 DEFAULT_wxUSE_CHECKBOX=no
6463 DEFAULT_wxUSE_CHECKLISTBOX=no
6464 DEFAULT_wxUSE_CHOICE=no
6465 DEFAULT_wxUSE_GAUGE=no
6466 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6467 DEFAULT_wxUSE_IMAGLIST=no
6468 DEFAULT_wxUSE_LISTBOX=no
6469 DEFAULT_wxUSE_LISTCTRL=no
6470 DEFAULT_wxUSE_NOTEBOOK=no
6471 DEFAULT_wxUSE_RADIOBOX=no
6472 DEFAULT_wxUSE_RADIOBTN=no
6473 DEFAULT_wxUSE_SASH=no
6474 DEFAULT_wxUSE_SCROLLBAR=no
6475 DEFAULT_wxUSE_SLIDER=no
6476 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6477 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6478 DEFAULT_wxUSE_SPLITTER=no
6479 DEFAULT_wxUSE_STATBMP=no
6480 DEFAULT_wxUSE_STATBOX=no
6481 DEFAULT_wxUSE_STATLINE=no
6482 DEFAULT_wxUSE_STATUSBAR=no
6483 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6484 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6485 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6486 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6487 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6488 DEFAULT_wxUSE_TOOLTIPS=no
6489 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6490 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6491 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6492fi
6493
ac0c4cc3
DE
6494## FIXME: This is a blatant hack
6495if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6496 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3
DE
6497 wxUSE_CLIPBOARD=no
6498 wxUSE_DRAG_AND_DROP=no
6499 wxUSE_DATAOBJ=no
8b389fab
DE
6500 # Generic notebook requires tab dialog
6501 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6502 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6503 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6504 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6505 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6506fi
6507
8284b0c5 6508
5005acfe 6509 enablestring=
e6cc62c6
VS
6510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6511echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6512 no_cache=0
6513 # Check whether --enable-accel or --disable-accel was given.
6514if test "${enable_accel+set}" = set; then
6515 enableval="$enable_accel"
e6cc62c6 6516
10f2d63a
VZ
6517 if test "$enableval" = yes; then
6518 ac_cv_use_accel='wxUSE_ACCEL=yes'
6519 else
6520 ac_cv_use_accel='wxUSE_ACCEL=no'
6521 fi
e6cc62c6 6522
10f2d63a 6523else
e6cc62c6 6524
10f2d63a
VZ
6525 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6526 if test "x$LINE" != x ; then
6527 eval "DEFAULT_$LINE"
6528 else
6529 no_cache=1
6530 fi
6531
6532 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6533
e6cc62c6 6534fi;
10f2d63a
VZ
6535
6536 eval "$ac_cv_use_accel"
6537 if test "$no_cache" != 1; then
6538 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6539 fi
6540
6541 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6542 echo "$as_me:$LINENO: result: yes" >&5
6543echo "${ECHO_T}yes" >&6
10f2d63a 6544 else
e6cc62c6
VS
6545 echo "$as_me:$LINENO: result: no" >&5
6546echo "${ECHO_T}no" >&6
10f2d63a 6547 fi
e6cc62c6 6548
10f2d63a 6549
5005acfe 6550 enablestring=
e6cc62c6
VS
6551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6552echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6553 no_cache=0
1e6feb95
VZ
6554 # Check whether --enable-button or --disable-button was given.
6555if test "${enable_button+set}" = set; then
6556 enableval="$enable_button"
e6cc62c6 6557
10f2d63a 6558 if test "$enableval" = yes; then
1e6feb95 6559 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6560 else
1e6feb95 6561 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6562 fi
e6cc62c6 6563
10f2d63a 6564else
e6cc62c6 6565
1e6feb95 6566 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6567 if test "x$LINE" != x ; then
6568 eval "DEFAULT_$LINE"
6569 else
6570 no_cache=1
6571 fi
6572
1e6feb95 6573 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6574
e6cc62c6 6575fi;
10f2d63a 6576
1e6feb95 6577 eval "$ac_cv_use_button"
10f2d63a 6578 if test "$no_cache" != 1; then
1e6feb95 6579 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6580 fi
6581
1e6feb95 6582 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6583 echo "$as_me:$LINENO: result: yes" >&5
6584echo "${ECHO_T}yes" >&6
10f2d63a 6585 else
e6cc62c6
VS
6586 echo "$as_me:$LINENO: result: no" >&5
6587echo "${ECHO_T}no" >&6
10f2d63a 6588 fi
e6cc62c6 6589
10f2d63a 6590
5005acfe 6591 enablestring=
e6cc62c6
VS
6592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6593echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6594 no_cache=0
6595 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6596if test "${enable_bmpbutton+set}" = set; then
6597 enableval="$enable_bmpbutton"
e6cc62c6 6598
10f2d63a
VZ
6599 if test "$enableval" = yes; then
6600 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6601 else
6602 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6603 fi
e6cc62c6 6604
10f2d63a 6605else
e6cc62c6 6606
10f2d63a
VZ
6607 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6608 if test "x$LINE" != x ; then
6609 eval "DEFAULT_$LINE"
6610 else
6611 no_cache=1
6612 fi
6613
6614 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6615
e6cc62c6 6616fi;
10f2d63a
VZ
6617
6618 eval "$ac_cv_use_bmpbutton"
6619 if test "$no_cache" != 1; then
6620 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6621 fi
6622
6623 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6624 echo "$as_me:$LINENO: result: yes" >&5
6625echo "${ECHO_T}yes" >&6
10f2d63a 6626 else
e6cc62c6
VS
6627 echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6
10f2d63a 6629 fi
e6cc62c6 6630
10f2d63a 6631
5005acfe 6632 enablestring=
e6cc62c6
VS
6633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6634echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6635 no_cache=0
6636 # Check whether --enable-calendar or --disable-calendar was given.
6637if test "${enable_calendar+set}" = set; then
6638 enableval="$enable_calendar"
e6cc62c6 6639
1e6feb95
VZ
6640 if test "$enableval" = yes; then
6641 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6642 else
6643 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6644 fi
e6cc62c6 6645
1e6feb95 6646else
e6cc62c6 6647
1e6feb95
VZ
6648 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6649 if test "x$LINE" != x ; then
6650 eval "DEFAULT_$LINE"
6651 else
6652 no_cache=1
6653 fi
6654
6655 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6656
e6cc62c6 6657fi;
1e6feb95
VZ
6658
6659 eval "$ac_cv_use_calendar"
6660 if test "$no_cache" != 1; then
6661 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6662 fi
6663
6664 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6665 echo "$as_me:$LINENO: result: yes" >&5
6666echo "${ECHO_T}yes" >&6
1e6feb95 6667 else
e6cc62c6
VS
6668 echo "$as_me:$LINENO: result: no" >&5
6669echo "${ECHO_T}no" >&6
1e6feb95 6670 fi
e6cc62c6 6671
1e6feb95 6672
5005acfe 6673 enablestring=
e6cc62c6
VS
6674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6675echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6676 no_cache=0
6677 # Check whether --enable-caret or --disable-caret was given.
6678if test "${enable_caret+set}" = set; then
6679 enableval="$enable_caret"
e6cc62c6 6680
1e6feb95
VZ
6681 if test "$enableval" = yes; then
6682 ac_cv_use_caret='wxUSE_CARET=yes'
6683 else
6684 ac_cv_use_caret='wxUSE_CARET=no'
6685 fi
e6cc62c6 6686
1e6feb95 6687else
e6cc62c6 6688
1e6feb95
VZ
6689 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6690 if test "x$LINE" != x ; then
6691 eval "DEFAULT_$LINE"
6692 else
6693 no_cache=1
6694 fi
6695
6696 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6697
e6cc62c6 6698fi;
1e6feb95
VZ
6699
6700 eval "$ac_cv_use_caret"
6701 if test "$no_cache" != 1; then
6702 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6703 fi
6704
6705 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6706 echo "$as_me:$LINENO: result: yes" >&5
6707echo "${ECHO_T}yes" >&6
1e6feb95 6708 else
e6cc62c6
VS
6709 echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6
1e6feb95 6711 fi
e6cc62c6 6712
1e6feb95 6713
5005acfe 6714 enablestring=
e6cc62c6
VS
6715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6716echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6717 no_cache=0
6718 # Check whether --enable-checkbox or --disable-checkbox was given.
6719if test "${enable_checkbox+set}" = set; then
6720 enableval="$enable_checkbox"
e6cc62c6 6721
10f2d63a
VZ
6722 if test "$enableval" = yes; then
6723 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6724 else
6725 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6726 fi
e6cc62c6 6727
10f2d63a 6728else
e6cc62c6 6729
10f2d63a
VZ
6730 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6731 if test "x$LINE" != x ; then
6732 eval "DEFAULT_$LINE"
6733 else
6734 no_cache=1
6735 fi
6736
6737 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6738
e6cc62c6 6739fi;
10f2d63a
VZ
6740
6741 eval "$ac_cv_use_checkbox"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6747 echo "$as_me:$LINENO: result: yes" >&5
6748echo "${ECHO_T}yes" >&6
10f2d63a 6749 else
e6cc62c6
VS
6750 echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6
10f2d63a 6752 fi
e6cc62c6 6753
10f2d63a 6754
5005acfe 6755 enablestring=
e6cc62c6
VS
6756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6757echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6758 no_cache=0
6759 # Check whether --enable-checklst or --disable-checklst was given.
6760if test "${enable_checklst+set}" = set; then
6761 enableval="$enable_checklst"
e6cc62c6 6762
10f2d63a
VZ
6763 if test "$enableval" = yes; then
6764 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6765 else
6766 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6767 fi
e6cc62c6 6768
10f2d63a 6769else
e6cc62c6 6770
10f2d63a
VZ
6771 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
6778 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6779
e6cc62c6 6780fi;
10f2d63a
VZ
6781
6782 eval "$ac_cv_use_checklst"
6783 if test "$no_cache" != 1; then
6784 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6785 fi
6786
6787 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6788 echo "$as_me:$LINENO: result: yes" >&5
6789echo "${ECHO_T}yes" >&6
10f2d63a 6790 else
e6cc62c6
VS
6791 echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6
10f2d63a 6793 fi
e6cc62c6 6794
10f2d63a 6795
5005acfe 6796 enablestring=
e6cc62c6
VS
6797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6798echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6799 no_cache=0
6800 # Check whether --enable-choice or --disable-choice was given.
6801if test "${enable_choice+set}" = set; then
6802 enableval="$enable_choice"
e6cc62c6 6803
10f2d63a
VZ
6804 if test "$enableval" = yes; then
6805 ac_cv_use_choice='wxUSE_CHOICE=yes'
6806 else
6807 ac_cv_use_choice='wxUSE_CHOICE=no'
6808 fi
e6cc62c6 6809
10f2d63a 6810else
e6cc62c6 6811
10f2d63a
VZ
6812 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6813 if test "x$LINE" != x ; then
6814 eval "DEFAULT_$LINE"
6815 else
6816 no_cache=1
6817 fi
6818
6819 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6820
e6cc62c6 6821fi;
10f2d63a
VZ
6822
6823 eval "$ac_cv_use_choice"
6824 if test "$no_cache" != 1; then
6825 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6826 fi
6827
6828 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6829 echo "$as_me:$LINENO: result: yes" >&5
6830echo "${ECHO_T}yes" >&6
10f2d63a 6831 else
e6cc62c6
VS
6832 echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6
10f2d63a 6834 fi
e6cc62c6 6835
10f2d63a 6836
5005acfe 6837 enablestring=
e6cc62c6
VS
6838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6839echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6840 no_cache=0
6841 # Check whether --enable-combobox or --disable-combobox was given.
6842if test "${enable_combobox+set}" = set; then
6843 enableval="$enable_combobox"
e6cc62c6 6844
10f2d63a
VZ
6845 if test "$enableval" = yes; then
6846 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6847 else
6848 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6849 fi
e6cc62c6 6850
10f2d63a 6851else
e6cc62c6 6852
10f2d63a
VZ
6853 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6854 if test "x$LINE" != x ; then
6855 eval "DEFAULT_$LINE"
6856 else
6857 no_cache=1
6858 fi
6859
6860 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6861
e6cc62c6 6862fi;
10f2d63a
VZ
6863
6864 eval "$ac_cv_use_combobox"
6865 if test "$no_cache" != 1; then
6866 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6867 fi
6868
6869 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6870 echo "$as_me:$LINENO: result: yes" >&5
6871echo "${ECHO_T}yes" >&6
10f2d63a 6872 else
e6cc62c6
VS
6873 echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6
10f2d63a 6875 fi
e6cc62c6 6876
10f2d63a 6877
da494b40 6878 enablestring=
e6cc62c6
VS
6879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6880echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6881 no_cache=0
6882 # Check whether --enable-display or --disable-display was given.
6883if test "${enable_display+set}" = set; then
6884 enableval="$enable_display"
e6cc62c6 6885
da494b40
MB
6886 if test "$enableval" = yes; then
6887 ac_cv_use_display='wxUSE_DISPLAY=yes'
6888 else
6889 ac_cv_use_display='wxUSE_DISPLAY=no'
6890 fi
e6cc62c6 6891
da494b40 6892else
e6cc62c6 6893
da494b40
MB
6894 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6895 if test "x$LINE" != x ; then
6896 eval "DEFAULT_$LINE"
6897 else
6898 no_cache=1
6899 fi
6900
6901 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6902
e6cc62c6 6903fi;
da494b40
MB
6904
6905 eval "$ac_cv_use_display"
6906 if test "$no_cache" != 1; then
6907 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6908 fi
6909
6910 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6911 echo "$as_me:$LINENO: result: yes" >&5
6912echo "${ECHO_T}yes" >&6
da494b40 6913 else
e6cc62c6
VS
6914 echo "$as_me:$LINENO: result: no" >&5
6915echo "${ECHO_T}no" >&6
da494b40 6916 fi
e6cc62c6 6917
da494b40 6918
5005acfe 6919 enablestring=
e6cc62c6
VS
6920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6921echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6922 no_cache=0
6923 # Check whether --enable-gauge or --disable-gauge was given.
6924if test "${enable_gauge+set}" = set; then
6925 enableval="$enable_gauge"
e6cc62c6 6926
10f2d63a
VZ
6927 if test "$enableval" = yes; then
6928 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6929 else
6930 ac_cv_use_gauge='wxUSE_GAUGE=no'
6931 fi
e6cc62c6 6932
10f2d63a 6933else
e6cc62c6 6934
10f2d63a
VZ
6935 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6936 if test "x$LINE" != x ; then
6937 eval "DEFAULT_$LINE"
6938 else
6939 no_cache=1
6940 fi
6941
6942 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 6943
e6cc62c6 6944fi;
10f2d63a
VZ
6945
6946 eval "$ac_cv_use_gauge"
6947 if test "$no_cache" != 1; then
6948 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6949 fi
6950
6951 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
6952 echo "$as_me:$LINENO: result: yes" >&5
6953echo "${ECHO_T}yes" >&6
10f2d63a 6954 else
e6cc62c6
VS
6955 echo "$as_me:$LINENO: result: no" >&5
6956echo "${ECHO_T}no" >&6
10f2d63a 6957 fi
e6cc62c6 6958
10f2d63a 6959
5005acfe 6960 enablestring=
e6cc62c6
VS
6961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
6962echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
6963 no_cache=0
6964 # Check whether --enable-grid or --disable-grid was given.
6965if test "${enable_grid+set}" = set; then
6966 enableval="$enable_grid"
e6cc62c6 6967
10f2d63a
VZ
6968 if test "$enableval" = yes; then
6969 ac_cv_use_grid='wxUSE_GRID=yes'
6970 else
6971 ac_cv_use_grid='wxUSE_GRID=no'
6972 fi
e6cc62c6 6973
10f2d63a 6974else
e6cc62c6 6975
10f2d63a
VZ
6976 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 6984
e6cc62c6 6985fi;
10f2d63a
VZ
6986
6987 eval "$ac_cv_use_grid"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
6993 echo "$as_me:$LINENO: result: yes" >&5
6994echo "${ECHO_T}yes" >&6
10f2d63a 6995 else
e6cc62c6
VS
6996 echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6
10f2d63a 6998 fi
e6cc62c6 6999
10f2d63a 7000
5005acfe 7001 enablestring=
e6cc62c6
VS
7002 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7003echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7004 no_cache=0
7005 # Check whether --enable-imaglist or --disable-imaglist was given.
7006if test "${enable_imaglist+set}" = set; then
7007 enableval="$enable_imaglist"
e6cc62c6 7008
10f2d63a
VZ
7009 if test "$enableval" = yes; then
7010 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7011 else
7012 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7013 fi
e6cc62c6 7014
10f2d63a 7015else
e6cc62c6 7016
10f2d63a
VZ
7017 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7018 if test "x$LINE" != x ; then
7019 eval "DEFAULT_$LINE"
7020 else
7021 no_cache=1
7022 fi
7023
7024 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7025
e6cc62c6 7026fi;
10f2d63a
VZ
7027
7028 eval "$ac_cv_use_imaglist"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7034 echo "$as_me:$LINENO: result: yes" >&5
7035echo "${ECHO_T}yes" >&6
10f2d63a 7036 else
e6cc62c6
VS
7037 echo "$as_me:$LINENO: result: no" >&5
7038echo "${ECHO_T}no" >&6
10f2d63a 7039 fi
e6cc62c6 7040
10f2d63a 7041
5005acfe 7042 enablestring=
e6cc62c6
VS
7043 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7044echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7045 no_cache=0
7046 # Check whether --enable-listbox or --disable-listbox was given.
7047if test "${enable_listbox+set}" = set; then
7048 enableval="$enable_listbox"
e6cc62c6 7049
10f2d63a
VZ
7050 if test "$enableval" = yes; then
7051 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7052 else
7053 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7054 fi
e6cc62c6 7055
10f2d63a 7056else
e6cc62c6 7057
10f2d63a
VZ
7058 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7059 if test "x$LINE" != x ; then
7060 eval "DEFAULT_$LINE"
7061 else
7062 no_cache=1
7063 fi
7064
7065 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7066
e6cc62c6 7067fi;
10f2d63a
VZ
7068
7069 eval "$ac_cv_use_listbox"
7070 if test "$no_cache" != 1; then
7071 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7072 fi
7073
7074 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7075 echo "$as_me:$LINENO: result: yes" >&5
7076echo "${ECHO_T}yes" >&6
10f2d63a 7077 else
e6cc62c6
VS
7078 echo "$as_me:$LINENO: result: no" >&5
7079echo "${ECHO_T}no" >&6
10f2d63a 7080 fi
e6cc62c6 7081
10f2d63a 7082
5005acfe 7083 enablestring=
e6cc62c6
VS
7084 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7085echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7086 no_cache=0
7087 # Check whether --enable-listctrl or --disable-listctrl was given.
7088if test "${enable_listctrl+set}" = set; then
7089 enableval="$enable_listctrl"
e6cc62c6 7090
10f2d63a
VZ
7091 if test "$enableval" = yes; then
7092 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7093 else
7094 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7095 fi
e6cc62c6 7096
10f2d63a 7097else
e6cc62c6 7098
10f2d63a
VZ
7099 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7100 if test "x$LINE" != x ; then
7101 eval "DEFAULT_$LINE"
7102 else
7103 no_cache=1
7104 fi
7105
7106 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7107
e6cc62c6 7108fi;
10f2d63a
VZ
7109
7110 eval "$ac_cv_use_listctrl"
7111 if test "$no_cache" != 1; then
7112 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7113 fi
7114
7115 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7116 echo "$as_me:$LINENO: result: yes" >&5
7117echo "${ECHO_T}yes" >&6
10f2d63a 7118 else
e6cc62c6
VS
7119 echo "$as_me:$LINENO: result: no" >&5
7120echo "${ECHO_T}no" >&6
10f2d63a 7121 fi
e6cc62c6 7122
10f2d63a 7123
5005acfe 7124 enablestring=
e6cc62c6
VS
7125 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7126echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7127 no_cache=0
7128 # Check whether --enable-notebook or --disable-notebook was given.
7129if test "${enable_notebook+set}" = set; then
7130 enableval="$enable_notebook"
e6cc62c6 7131
10f2d63a
VZ
7132 if test "$enableval" = yes; then
7133 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7134 else
7135 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7136 fi
e6cc62c6 7137
10f2d63a 7138else
e6cc62c6 7139
10f2d63a
VZ
7140 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7141 if test "x$LINE" != x ; then
7142 eval "DEFAULT_$LINE"
7143 else
7144 no_cache=1
7145 fi
7146
7147 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7148
e6cc62c6 7149fi;
10f2d63a
VZ
7150
7151 eval "$ac_cv_use_notebook"
7152 if test "$no_cache" != 1; then
7153 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7154 fi
7155
7156 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7157 echo "$as_me:$LINENO: result: yes" >&5
7158echo "${ECHO_T}yes" >&6
10f2d63a 7159 else
e6cc62c6
VS
7160 echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6
10f2d63a 7162 fi
e6cc62c6 7163
10f2d63a 7164
5005acfe 7165 enablestring=
e6cc62c6
VS
7166 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7167echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7168 no_cache=0
7169 # Check whether --enable-radiobox or --disable-radiobox was given.
7170if test "${enable_radiobox+set}" = set; then
7171 enableval="$enable_radiobox"
e6cc62c6 7172
10f2d63a
VZ
7173 if test "$enableval" = yes; then
7174 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7175 else
7176 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7177 fi
e6cc62c6 7178
10f2d63a 7179else
e6cc62c6 7180
10f2d63a
VZ
7181 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7182 if test "x$LINE" != x ; then
7183 eval "DEFAULT_$LINE"
7184 else
7185 no_cache=1
7186 fi
7187
7188 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7189
e6cc62c6 7190fi;
10f2d63a
VZ
7191
7192 eval "$ac_cv_use_radiobox"
7193 if test "$no_cache" != 1; then
7194 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7195 fi
7196
7197 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7198 echo "$as_me:$LINENO: result: yes" >&5
7199echo "${ECHO_T}yes" >&6
10f2d63a 7200 else
e6cc62c6
VS
7201 echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6
10f2d63a 7203 fi
e6cc62c6 7204
10f2d63a 7205
5005acfe 7206 enablestring=
e6cc62c6
VS
7207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7208echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7209 no_cache=0
7210 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7211if test "${enable_radiobtn+set}" = set; then
7212 enableval="$enable_radiobtn"
e6cc62c6 7213
10f2d63a
VZ
7214 if test "$enableval" = yes; then
7215 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7216 else
7217 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7218 fi
e6cc62c6 7219
10f2d63a 7220else
e6cc62c6 7221
10f2d63a
VZ
7222 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7223 if test "x$LINE" != x ; then
7224 eval "DEFAULT_$LINE"
7225 else
7226 no_cache=1
7227 fi
7228
7229 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7230
e6cc62c6 7231fi;
10f2d63a
VZ
7232
7233 eval "$ac_cv_use_radiobtn"
7234 if test "$no_cache" != 1; then
7235 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7236 fi
7237
7238 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7239 echo "$as_me:$LINENO: result: yes" >&5
7240echo "${ECHO_T}yes" >&6
10f2d63a 7241 else
e6cc62c6
VS
7242 echo "$as_me:$LINENO: result: no" >&5
7243echo "${ECHO_T}no" >&6
10f2d63a 7244 fi
e6cc62c6 7245
10f2d63a 7246
5005acfe 7247 enablestring=
e6cc62c6
VS
7248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7249echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7250 no_cache=0
7251 # Check whether --enable-sash or --disable-sash was given.
7252if test "${enable_sash+set}" = set; then
7253 enableval="$enable_sash"
e6cc62c6 7254
10f2d63a
VZ
7255 if test "$enableval" = yes; then
7256 ac_cv_use_sash='wxUSE_SASH=yes'
7257 else
7258 ac_cv_use_sash='wxUSE_SASH=no'
7259 fi
e6cc62c6 7260
10f2d63a 7261else
e6cc62c6 7262
10f2d63a
VZ
7263 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7264 if test "x$LINE" != x ; then
7265 eval "DEFAULT_$LINE"
7266 else
7267 no_cache=1
7268 fi
7269
7270 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7271
e6cc62c6 7272fi;
10f2d63a
VZ
7273
7274 eval "$ac_cv_use_sash"
7275 if test "$no_cache" != 1; then
7276 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7277 fi
7278
7279 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7280 echo "$as_me:$LINENO: result: yes" >&5
7281echo "${ECHO_T}yes" >&6
10f2d63a 7282 else
e6cc62c6
VS
7283 echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6
10f2d63a 7285 fi
e6cc62c6 7286
10f2d63a 7287
5005acfe 7288 enablestring=
e6cc62c6
VS
7289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7290echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7291 no_cache=0
7292 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7293if test "${enable_scrollbar+set}" = set; then
7294 enableval="$enable_scrollbar"
e6cc62c6 7295
10f2d63a
VZ
7296 if test "$enableval" = yes; then
7297 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7298 else
7299 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7300 fi
e6cc62c6 7301
10f2d63a 7302else
e6cc62c6 7303
10f2d63a
VZ
7304 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7312
e6cc62c6 7313fi;
10f2d63a
VZ
7314
7315 eval "$ac_cv_use_scrollbar"
7316 if test "$no_cache" != 1; then
7317 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7318 fi
7319
7320 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7321 echo "$as_me:$LINENO: result: yes" >&5
7322echo "${ECHO_T}yes" >&6
10f2d63a 7323 else
e6cc62c6
VS
7324 echo "$as_me:$LINENO: result: no" >&5
7325echo "${ECHO_T}no" >&6
10f2d63a 7326 fi
e6cc62c6 7327
10f2d63a 7328
5005acfe 7329 enablestring=
e6cc62c6
VS
7330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7331echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7332 no_cache=0
7333 # Check whether --enable-slider or --disable-slider was given.
7334if test "${enable_slider+set}" = set; then
7335 enableval="$enable_slider"
e6cc62c6 7336
10f2d63a
VZ
7337 if test "$enableval" = yes; then
7338 ac_cv_use_slider='wxUSE_SLIDER=yes'
7339 else
7340 ac_cv_use_slider='wxUSE_SLIDER=no'
7341 fi
e6cc62c6 7342
10f2d63a 7343else
e6cc62c6 7344
10f2d63a
VZ
7345 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7346 if test "x$LINE" != x ; then
7347 eval "DEFAULT_$LINE"
7348 else
7349 no_cache=1
7350 fi
7351
7352 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7353
e6cc62c6 7354fi;
10f2d63a
VZ
7355
7356 eval "$ac_cv_use_slider"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7362 echo "$as_me:$LINENO: result: yes" >&5
7363echo "${ECHO_T}yes" >&6
10f2d63a 7364 else
e6cc62c6
VS
7365 echo "$as_me:$LINENO: result: no" >&5
7366echo "${ECHO_T}no" >&6
10f2d63a 7367 fi
e6cc62c6 7368
10f2d63a 7369
5005acfe 7370 enablestring=
e6cc62c6
VS
7371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7372echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7373 no_cache=0
7374 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7375if test "${enable_spinbtn+set}" = set; then
7376 enableval="$enable_spinbtn"
e6cc62c6 7377
10f2d63a
VZ
7378 if test "$enableval" = yes; then
7379 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7380 else
7381 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7382 fi
e6cc62c6 7383
10f2d63a 7384else
e6cc62c6 7385
10f2d63a
VZ
7386 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7387 if test "x$LINE" != x ; then
7388 eval "DEFAULT_$LINE"
7389 else
7390 no_cache=1
7391 fi
7392
7393 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7394
e6cc62c6 7395fi;
10f2d63a
VZ
7396
7397 eval "$ac_cv_use_spinbtn"
7398 if test "$no_cache" != 1; then
7399 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7400 fi
7401
7402 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7403 echo "$as_me:$LINENO: result: yes" >&5
7404echo "${ECHO_T}yes" >&6
10f2d63a 7405 else
e6cc62c6
VS
7406 echo "$as_me:$LINENO: result: no" >&5
7407echo "${ECHO_T}no" >&6
10f2d63a 7408 fi
e6cc62c6 7409
10f2d63a 7410
5005acfe 7411 enablestring=
e6cc62c6
VS
7412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7413echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7414 no_cache=0
7415 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7416if test "${enable_spinctrl+set}" = set; then
7417 enableval="$enable_spinctrl"
e6cc62c6 7418
56cfaa52
RR
7419 if test "$enableval" = yes; then
7420 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7421 else
7422 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7423 fi
e6cc62c6 7424
56cfaa52 7425else
e6cc62c6 7426
56cfaa52
RR
7427 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7428 if test "x$LINE" != x ; then
7429 eval "DEFAULT_$LINE"
7430 else
7431 no_cache=1
7432 fi
7433
7434 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7435
e6cc62c6 7436fi;
56cfaa52
RR
7437
7438 eval "$ac_cv_use_spinctrl"
7439 if test "$no_cache" != 1; then
7440 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7441 fi
7442
7443 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7444 echo "$as_me:$LINENO: result: yes" >&5
7445echo "${ECHO_T}yes" >&6
56cfaa52 7446 else
e6cc62c6
VS
7447 echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6
56cfaa52 7449 fi
e6cc62c6 7450
56cfaa52 7451
5005acfe 7452 enablestring=
e6cc62c6
VS
7453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7454echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7455 no_cache=0
7456 # Check whether --enable-splitter or --disable-splitter was given.
7457if test "${enable_splitter+set}" = set; then
7458 enableval="$enable_splitter"
e6cc62c6 7459
10f2d63a
VZ
7460 if test "$enableval" = yes; then
7461 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7462 else
7463 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7464 fi
e6cc62c6 7465
10f2d63a 7466else
e6cc62c6 7467
10f2d63a
VZ
7468 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7469 if test "x$LINE" != x ; then
7470 eval "DEFAULT_$LINE"
7471 else
7472 no_cache=1
7473 fi
7474
7475 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7476
e6cc62c6 7477fi;
10f2d63a
VZ
7478
7479 eval "$ac_cv_use_splitter"
7480 if test "$no_cache" != 1; then
7481 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7482 fi
7483
7484 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7485 echo "$as_me:$LINENO: result: yes" >&5
7486echo "${ECHO_T}yes" >&6
10f2d63a 7487 else
e6cc62c6
VS
7488 echo "$as_me:$LINENO: result: no" >&5
7489echo "${ECHO_T}no" >&6
10f2d63a 7490 fi
e6cc62c6 7491
10f2d63a 7492
5005acfe 7493 enablestring=
e6cc62c6
VS
7494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7495echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7496 no_cache=0
7497 # Check whether --enable-statbmp or --disable-statbmp was given.
7498if test "${enable_statbmp+set}" = set; then
7499 enableval="$enable_statbmp"
e6cc62c6 7500
10f2d63a
VZ
7501 if test "$enableval" = yes; then
7502 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7503 else
7504 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7505 fi
e6cc62c6 7506
10f2d63a 7507else
e6cc62c6 7508
10f2d63a
VZ
7509 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7510 if test "x$LINE" != x ; then
7511 eval "DEFAULT_$LINE"
7512 else
7513 no_cache=1
7514 fi
7515
7516 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7517
e6cc62c6 7518fi;
10f2d63a
VZ
7519
7520 eval "$ac_cv_use_statbmp"
7521 if test "$no_cache" != 1; then
7522 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7523 fi
7524
7525 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7526 echo "$as_me:$LINENO: result: yes" >&5
7527echo "${ECHO_T}yes" >&6
10f2d63a 7528 else
e6cc62c6
VS
7529 echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6
10f2d63a 7531 fi
e6cc62c6 7532
10f2d63a 7533
5005acfe 7534 enablestring=
e6cc62c6
VS
7535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7536echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7537 no_cache=0
7538 # Check whether --enable-statbox or --disable-statbox was given.
7539if test "${enable_statbox+set}" = set; then
7540 enableval="$enable_statbox"
e6cc62c6 7541
10f2d63a
VZ
7542 if test "$enableval" = yes; then
7543 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7544 else
7545 ac_cv_use_statbox='wxUSE_STATBOX=no'
7546 fi
e6cc62c6 7547
10f2d63a 7548else
e6cc62c6 7549
10f2d63a
VZ
7550 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7551 if test "x$LINE" != x ; then
7552 eval "DEFAULT_$LINE"
7553 else
7554 no_cache=1
7555 fi
7556
7557 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7558
e6cc62c6 7559fi;
10f2d63a
VZ
7560
7561 eval "$ac_cv_use_statbox"
7562 if test "$no_cache" != 1; then
7563 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7564 fi
7565
7566 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7567 echo "$as_me:$LINENO: result: yes" >&5
7568echo "${ECHO_T}yes" >&6
10f2d63a 7569 else
e6cc62c6
VS
7570 echo "$as_me:$LINENO: result: no" >&5
7571echo "${ECHO_T}no" >&6
10f2d63a 7572 fi
e6cc62c6 7573
10f2d63a 7574
5005acfe 7575 enablestring=
e6cc62c6
VS
7576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7577echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7578 no_cache=0
7579 # Check whether --enable-statline or --disable-statline was given.
7580if test "${enable_statline+set}" = set; then
7581 enableval="$enable_statline"
e6cc62c6 7582
10f2d63a
VZ
7583 if test "$enableval" = yes; then
7584 ac_cv_use_statline='wxUSE_STATLINE=yes'
7585 else
7586 ac_cv_use_statline='wxUSE_STATLINE=no'
7587 fi
e6cc62c6 7588
10f2d63a 7589else
e6cc62c6 7590
10f2d63a
VZ
7591 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7592 if test "x$LINE" != x ; then
7593 eval "DEFAULT_$LINE"
7594 else
7595 no_cache=1
7596 fi
7597
7598 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7599
e6cc62c6 7600fi;
10f2d63a
VZ
7601
7602 eval "$ac_cv_use_statline"
7603 if test "$no_cache" != 1; then
7604 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7605 fi
7606
7607 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7608 echo "$as_me:$LINENO: result: yes" >&5
7609echo "${ECHO_T}yes" >&6
10f2d63a 7610 else
e6cc62c6
VS
7611 echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6
10f2d63a 7613 fi
e6cc62c6 7614
10f2d63a 7615
5005acfe 7616 enablestring=
e6cc62c6
VS
7617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7618echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7619 no_cache=0
7620 # Check whether --enable-stattext or --disable-stattext was given.
7621if test "${enable_stattext+set}" = set; then
7622 enableval="$enable_stattext"
e6cc62c6 7623
1e6feb95
VZ
7624 if test "$enableval" = yes; then
7625 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7626 else
7627 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7628 fi
e6cc62c6 7629
1e6feb95 7630else
e6cc62c6 7631
1e6feb95
VZ
7632 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7633 if test "x$LINE" != x ; then
7634 eval "DEFAULT_$LINE"
7635 else
7636 no_cache=1
7637 fi
7638
7639 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7640
e6cc62c6 7641fi;
1e6feb95
VZ
7642
7643 eval "$ac_cv_use_stattext"
7644 if test "$no_cache" != 1; then
7645 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7646 fi
7647
7648 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7649 echo "$as_me:$LINENO: result: yes" >&5
7650echo "${ECHO_T}yes" >&6
1e6feb95 7651 else
e6cc62c6
VS
7652 echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6
1e6feb95 7654 fi
e6cc62c6 7655
1e6feb95 7656
5005acfe 7657 enablestring=
e6cc62c6
VS
7658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7659echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7660 no_cache=0
7661 # Check whether --enable-statusbar or --disable-statusbar was given.
7662if test "${enable_statusbar+set}" = set; then
7663 enableval="$enable_statusbar"
e6cc62c6 7664
10f2d63a
VZ
7665 if test "$enableval" = yes; then
7666 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7667 else
7668 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7669 fi
e6cc62c6 7670
10f2d63a 7671else
e6cc62c6 7672
10f2d63a
VZ
7673 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7674 if test "x$LINE" != x ; then
7675 eval "DEFAULT_$LINE"
7676 else
7677 no_cache=1
7678 fi
7679
7680 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7681
e6cc62c6 7682fi;
10f2d63a
VZ
7683
7684 eval "$ac_cv_use_statusbar"
7685 if test "$no_cache" != 1; then
7686 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7687 fi
7688
7689 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7690 echo "$as_me:$LINENO: result: yes" >&5
7691echo "${ECHO_T}yes" >&6
10f2d63a 7692 else
e6cc62c6
VS
7693 echo "$as_me:$LINENO: result: no" >&5
7694echo "${ECHO_T}no" >&6
10f2d63a 7695 fi
e6cc62c6 7696
10f2d63a 7697
5005acfe 7698 enablestring=
e6cc62c6
VS
7699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7700echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7701 no_cache=0
7702 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7703if test "${enable_tabdialog+set}" = set; then
7704 enableval="$enable_tabdialog"
e6cc62c6 7705
10f2d63a
VZ
7706 if test "$enableval" = yes; then
7707 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7708 else
7709 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7710 fi
e6cc62c6 7711
10f2d63a 7712else
e6cc62c6 7713
10f2d63a
VZ
7714 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7715 if test "x$LINE" != x ; then
7716 eval "DEFAULT_$LINE"
7717 else
7718 no_cache=1
7719 fi
7720
7721 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7722
e6cc62c6 7723fi;
10f2d63a
VZ
7724
7725 eval "$ac_cv_use_tabdialog"
7726 if test "$no_cache" != 1; then
7727 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7728 fi
7729
7730 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7731 echo "$as_me:$LINENO: result: yes" >&5
7732echo "${ECHO_T}yes" >&6
10f2d63a 7733 else
e6cc62c6
VS
7734 echo "$as_me:$LINENO: result: no" >&5
7735echo "${ECHO_T}no" >&6
10f2d63a 7736 fi
e6cc62c6 7737
10f2d63a 7738
5005acfe 7739 enablestring=
e6cc62c6
VS
7740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7741echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7742 no_cache=0
7743 # Check whether --enable-textctrl or --disable-textctrl was given.
7744if test "${enable_textctrl+set}" = set; then
7745 enableval="$enable_textctrl"
e6cc62c6 7746
1e6feb95
VZ
7747 if test "$enableval" = yes; then
7748 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7749 else
7750 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7751 fi
e6cc62c6 7752
1e6feb95 7753else
e6cc62c6 7754
1e6feb95
VZ
7755 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7756 if test "x$LINE" != x ; then
7757 eval "DEFAULT_$LINE"
7758 else
7759 no_cache=1
7760 fi
7761
7762 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7763
e6cc62c6 7764fi;
1e6feb95
VZ
7765
7766 eval "$ac_cv_use_textctrl"
7767 if test "$no_cache" != 1; then
7768 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7769 fi
7770
7771 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7772 echo "$as_me:$LINENO: result: yes" >&5
7773echo "${ECHO_T}yes" >&6
1e6feb95 7774 else
e6cc62c6
VS
7775 echo "$as_me:$LINENO: result: no" >&5
7776echo "${ECHO_T}no" >&6
1e6feb95 7777 fi
e6cc62c6 7778
1e6feb95 7779
5005acfe 7780 enablestring=
e6cc62c6
VS
7781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7782echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7783 no_cache=0
7784 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7785if test "${enable_togglebtn+set}" = set; then
7786 enableval="$enable_togglebtn"
e6cc62c6 7787
1db8dc4a
VZ
7788 if test "$enableval" = yes; then
7789 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7790 else
7791 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7792 fi
e6cc62c6 7793
1db8dc4a 7794else
e6cc62c6 7795
1db8dc4a
VZ
7796 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7797 if test "x$LINE" != x ; then
7798 eval "DEFAULT_$LINE"
7799 else
7800 no_cache=1
7801 fi
7802
7803 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7804
e6cc62c6 7805fi;
1db8dc4a
VZ
7806
7807 eval "$ac_cv_use_togglebtn"
7808 if test "$no_cache" != 1; then
7809 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7810 fi
7811
7812 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7813 echo "$as_me:$LINENO: result: yes" >&5
7814echo "${ECHO_T}yes" >&6
1db8dc4a 7815 else
e6cc62c6
VS
7816 echo "$as_me:$LINENO: result: no" >&5
7817echo "${ECHO_T}no" >&6
1db8dc4a 7818 fi
e6cc62c6 7819
1db8dc4a 7820
5005acfe 7821 enablestring=
e6cc62c6
VS
7822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7823echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7824 no_cache=0
7825 # Check whether --enable-toolbar or --disable-toolbar was given.
7826if test "${enable_toolbar+set}" = set; then
7827 enableval="$enable_toolbar"
e6cc62c6 7828
10f2d63a
VZ
7829 if test "$enableval" = yes; then
7830 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7831 else
7832 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7833 fi
e6cc62c6 7834
10f2d63a 7835else
e6cc62c6 7836
10f2d63a
VZ
7837 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7838 if test "x$LINE" != x ; then
7839 eval "DEFAULT_$LINE"
7840 else
7841 no_cache=1
7842 fi
7843
7844 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7845
e6cc62c6 7846fi;
10f2d63a
VZ
7847
7848 eval "$ac_cv_use_toolbar"
7849 if test "$no_cache" != 1; then
7850 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7851 fi
7852
7853 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7854 echo "$as_me:$LINENO: result: yes" >&5
7855echo "${ECHO_T}yes" >&6
10f2d63a 7856 else
e6cc62c6
VS
7857 echo "$as_me:$LINENO: result: no" >&5
7858echo "${ECHO_T}no" >&6
10f2d63a 7859 fi
e6cc62c6 7860
10f2d63a 7861
5005acfe 7862 enablestring=
e6cc62c6
VS
7863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7864echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7865 no_cache=0
7866 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7867if test "${enable_tbarnative+set}" = set; then
7868 enableval="$enable_tbarnative"
e6cc62c6 7869
360d6699
VZ
7870 if test "$enableval" = yes; then
7871 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7872 else
7873 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7874 fi
e6cc62c6 7875
360d6699 7876else
e6cc62c6 7877
360d6699
VZ
7878 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7879 if test "x$LINE" != x ; then
7880 eval "DEFAULT_$LINE"
7881 else
7882 no_cache=1
7883 fi
7884
7885 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7886
e6cc62c6 7887fi;
360d6699
VZ
7888
7889 eval "$ac_cv_use_tbarnative"
7890 if test "$no_cache" != 1; then
7891 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7892 fi
7893
7894 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7895 echo "$as_me:$LINENO: result: yes" >&5
7896echo "${ECHO_T}yes" >&6
360d6699 7897 else
e6cc62c6
VS
7898 echo "$as_me:$LINENO: result: no" >&5
7899echo "${ECHO_T}no" >&6
360d6699 7900 fi
e6cc62c6 7901
360d6699 7902
5005acfe 7903 enablestring=
e6cc62c6
VS
7904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7905echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7906 no_cache=0
7907 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7908if test "${enable_tbarsmpl+set}" = set; then
7909 enableval="$enable_tbarsmpl"
e6cc62c6 7910
360d6699
VZ
7911 if test "$enableval" = yes; then
7912 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7913 else
7914 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7915 fi
e6cc62c6 7916
360d6699 7917else
e6cc62c6 7918
360d6699
VZ
7919 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7920 if test "x$LINE" != x ; then
7921 eval "DEFAULT_$LINE"
7922 else
7923 no_cache=1
7924 fi
7925
7926 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7927
e6cc62c6 7928fi;
360d6699
VZ
7929
7930 eval "$ac_cv_use_tbarsmpl"
7931 if test "$no_cache" != 1; then
7932 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7933 fi
7934
7935 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
7936 echo "$as_me:$LINENO: result: yes" >&5
7937echo "${ECHO_T}yes" >&6
360d6699 7938 else
e6cc62c6
VS
7939 echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6
360d6699 7941 fi
e6cc62c6 7942
360d6699 7943
5005acfe 7944 enablestring=
e6cc62c6
VS
7945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
7946echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
7947 no_cache=0
7948 # Check whether --enable-treectrl or --disable-treectrl was given.
7949if test "${enable_treectrl+set}" = set; then
7950 enableval="$enable_treectrl"
e6cc62c6 7951
10f2d63a
VZ
7952 if test "$enableval" = yes; then
7953 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7954 else
7955 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7956 fi
e6cc62c6 7957
10f2d63a 7958else
e6cc62c6 7959
10f2d63a
VZ
7960 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7961 if test "x$LINE" != x ; then
7962 eval "DEFAULT_$LINE"
7963 else
7964 no_cache=1
7965 fi
7966
7967 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 7968
e6cc62c6 7969fi;
10f2d63a 7970
1e6feb95
VZ
7971 eval "$ac_cv_use_treectrl"
7972 if test "$no_cache" != 1; then
7973 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7974 fi
7975
7976 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
7977 echo "$as_me:$LINENO: result: yes" >&5
7978echo "${ECHO_T}yes" >&6
1e6feb95 7979 else
e6cc62c6
VS
7980 echo "$as_me:$LINENO: result: no" >&5
7981echo "${ECHO_T}no" >&6
1e6feb95 7982 fi
e6cc62c6 7983
1e6feb95 7984
5005acfe 7985 enablestring=
e6cc62c6
VS
7986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
7987echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
7988 no_cache=0
7989 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7990if test "${enable_tipwindow+set}" = set; then
7991 enableval="$enable_tipwindow"
e6cc62c6 7992
9926e4a4
VZ
7993 if test "$enableval" = yes; then
7994 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7995 else
7996 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7997 fi
e6cc62c6 7998
9926e4a4 7999else
e6cc62c6 8000
9926e4a4
VZ
8001 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8002 if test "x$LINE" != x ; then
8003 eval "DEFAULT_$LINE"
8004 else
8005 no_cache=1
8006 fi
8007
8008 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8009
e6cc62c6 8010fi;
9926e4a4
VZ
8011
8012 eval "$ac_cv_use_tipwindow"
8013 if test "$no_cache" != 1; then
8014 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8015 fi
8016
8017 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8018 echo "$as_me:$LINENO: result: yes" >&5
8019echo "${ECHO_T}yes" >&6
9926e4a4 8020 else
e6cc62c6
VS
8021 echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6
9926e4a4 8023 fi
e6cc62c6 8024
9926e4a4 8025
5005acfe 8026 enablestring=
e6cc62c6
VS
8027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8028echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8029 no_cache=0
8030 # Check whether --enable-popupwin or --disable-popupwin was given.
8031if test "${enable_popupwin+set}" = set; then
8032 enableval="$enable_popupwin"
e6cc62c6 8033
9f41d601
RR
8034 if test "$enableval" = yes; then
8035 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8036 else
8037 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8038 fi
e6cc62c6 8039
9f41d601 8040else
e6cc62c6 8041
9f41d601
RR
8042 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8043 if test "x$LINE" != x ; then
8044 eval "DEFAULT_$LINE"
8045 else
8046 no_cache=1
8047 fi
8048
8049 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8050
e6cc62c6 8051fi;
9f41d601
RR
8052
8053 eval "$ac_cv_use_popupwin"
8054 if test "$no_cache" != 1; then
8055 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8056 fi
8057
8058 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8059 echo "$as_me:$LINENO: result: yes" >&5
8060echo "${ECHO_T}yes" >&6
9f41d601 8061 else
e6cc62c6
VS
8062 echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6
9f41d601 8064 fi
e6cc62c6 8065
52127426 8066
8284b0c5
MB
8067
8068
5005acfe 8069 enablestring=
e6cc62c6
VS
8070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8071echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8072 no_cache=0
8073 # Check whether --enable-commondlg or --disable-commondlg was given.
8074if test "${enable_commondlg+set}" = set; then
8075 enableval="$enable_commondlg"
e6cc62c6 8076
1e6feb95
VZ
8077 if test "$enableval" = yes; then
8078 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8079 else
8080 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8081 fi
e6cc62c6 8082
1e6feb95 8083else
e6cc62c6 8084
1e6feb95
VZ
8085 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8086 if test "x$LINE" != x ; then
8087 eval "DEFAULT_$LINE"
8088 else
8089 no_cache=1
8090 fi
8091
8092 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8093
e6cc62c6 8094fi;
1e6feb95
VZ
8095
8096 eval "$ac_cv_use_commondlg"
8097 if test "$no_cache" != 1; then
8098 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8099 fi
8100
8101 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8102 echo "$as_me:$LINENO: result: yes" >&5
8103echo "${ECHO_T}yes" >&6
1e6feb95 8104 else
e6cc62c6
VS
8105 echo "$as_me:$LINENO: result: no" >&5
8106echo "${ECHO_T}no" >&6
1e6feb95 8107 fi
e6cc62c6 8108
1e6feb95 8109
5005acfe 8110 enablestring=
e6cc62c6
VS
8111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8112echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8113 no_cache=0
8114 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8115if test "${enable_choicedlg+set}" = set; then
8116 enableval="$enable_choicedlg"
e6cc62c6 8117
1e6feb95
VZ
8118 if test "$enableval" = yes; then
8119 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8120 else
8121 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8122 fi
e6cc62c6 8123
1e6feb95 8124else
e6cc62c6 8125
1e6feb95
VZ
8126 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8127 if test "x$LINE" != x ; then
8128 eval "DEFAULT_$LINE"
8129 else
8130 no_cache=1
8131 fi
8132
8133 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8134
e6cc62c6 8135fi;
1e6feb95
VZ
8136
8137 eval "$ac_cv_use_choicedlg"
8138 if test "$no_cache" != 1; then
8139 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8140 fi
8141
8142 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8143 echo "$as_me:$LINENO: result: yes" >&5
8144echo "${ECHO_T}yes" >&6
1e6feb95 8145 else
e6cc62c6
VS
8146 echo "$as_me:$LINENO: result: no" >&5
8147echo "${ECHO_T}no" >&6
1e6feb95 8148 fi
e6cc62c6 8149
1e6feb95 8150
5005acfe 8151 enablestring=
e6cc62c6
VS
8152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8153echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8154 no_cache=0
8155 # Check whether --enable-coldlg or --disable-coldlg was given.
8156if test "${enable_coldlg+set}" = set; then
8157 enableval="$enable_coldlg"
e6cc62c6 8158
1e6feb95
VZ
8159 if test "$enableval" = yes; then
8160 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8161 else
8162 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8163 fi
e6cc62c6 8164
1e6feb95 8165else
e6cc62c6 8166
1e6feb95
VZ
8167 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8168 if test "x$LINE" != x ; then
8169 eval "DEFAULT_$LINE"
8170 else
8171 no_cache=1
8172 fi
8173
8174 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8175
e6cc62c6 8176fi;
1e6feb95
VZ
8177
8178 eval "$ac_cv_use_coldlg"
8179 if test "$no_cache" != 1; then
8180 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8181 fi
8182
8183 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8184 echo "$as_me:$LINENO: result: yes" >&5
8185echo "${ECHO_T}yes" >&6
1e6feb95 8186 else
e6cc62c6
VS
8187 echo "$as_me:$LINENO: result: no" >&5
8188echo "${ECHO_T}no" >&6
1e6feb95 8189 fi
e6cc62c6 8190
1e6feb95 8191
5005acfe 8192 enablestring=
e6cc62c6
VS
8193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8194echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8195 no_cache=0
8196 # Check whether --enable-filedlg or --disable-filedlg was given.
8197if test "${enable_filedlg+set}" = set; then
8198 enableval="$enable_filedlg"
e6cc62c6 8199
1e6feb95
VZ
8200 if test "$enableval" = yes; then
8201 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8202 else
8203 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8204 fi
e6cc62c6 8205
1e6feb95 8206else
e6cc62c6 8207
1e6feb95
VZ
8208 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8209 if test "x$LINE" != x ; then
8210 eval "DEFAULT_$LINE"
8211 else
8212 no_cache=1
8213 fi
8214
8215 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8216
e6cc62c6 8217fi;
1e6feb95
VZ
8218
8219 eval "$ac_cv_use_filedlg"
8220 if test "$no_cache" != 1; then
8221 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8222 fi
8223
8224 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8225 echo "$as_me:$LINENO: result: yes" >&5
8226echo "${ECHO_T}yes" >&6
1e6feb95 8227 else
e6cc62c6
VS
8228 echo "$as_me:$LINENO: result: no" >&5
8229echo "${ECHO_T}no" >&6
1e6feb95 8230 fi
e6cc62c6 8231
1e6feb95 8232
5005acfe 8233 enablestring=
e6cc62c6
VS
8234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8235echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8236 no_cache=0
69d27ff7
MB
8237 # Check whether --enable-finddlg or --disable-finddlg was given.
8238if test "${enable_finddlg+set}" = set; then
8239 enableval="$enable_finddlg"
e6cc62c6 8240
8db37e06 8241 if test "$enableval" = yes; then
69d27ff7 8242 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8243 else
69d27ff7 8244 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8245 fi
e6cc62c6 8246
8db37e06 8247else
e6cc62c6 8248
8db37e06
VZ
8249 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8250 if test "x$LINE" != x ; then
8251 eval "DEFAULT_$LINE"
8252 else
8253 no_cache=1
8254 fi
8255
69d27ff7 8256 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8257
e6cc62c6 8258fi;
8db37e06 8259
69d27ff7 8260 eval "$ac_cv_use_finddlg"
8db37e06 8261 if test "$no_cache" != 1; then
69d27ff7 8262 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8263 fi
8264
8265 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8266 echo "$as_me:$LINENO: result: yes" >&5
8267echo "${ECHO_T}yes" >&6
8db37e06 8268 else
e6cc62c6
VS
8269 echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6
8db37e06 8271 fi
e6cc62c6 8272
8db37e06 8273
5005acfe 8274 enablestring=
e6cc62c6
VS
8275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8276echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8277 no_cache=0
8278 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8279if test "${enable_fontdlg+set}" = set; then
8280 enableval="$enable_fontdlg"
e6cc62c6 8281
1e6feb95
VZ
8282 if test "$enableval" = yes; then
8283 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8284 else
8285 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8286 fi
e6cc62c6 8287
1e6feb95 8288else
e6cc62c6 8289
1e6feb95
VZ
8290 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8291 if test "x$LINE" != x ; then
8292 eval "DEFAULT_$LINE"
8293 else
8294 no_cache=1
8295 fi
8296
8297 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8298
e6cc62c6 8299fi;
1e6feb95
VZ
8300
8301 eval "$ac_cv_use_fontdlg"
8302 if test "$no_cache" != 1; then
8303 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8304 fi
8305
8306 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8307 echo "$as_me:$LINENO: result: yes" >&5
8308echo "${ECHO_T}yes" >&6
1e6feb95 8309 else
e6cc62c6
VS
8310 echo "$as_me:$LINENO: result: no" >&5
8311echo "${ECHO_T}no" >&6
1e6feb95 8312 fi
e6cc62c6 8313
1e6feb95 8314
5005acfe 8315 enablestring=
e6cc62c6
VS
8316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8317echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8318 no_cache=0
8319 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8320if test "${enable_dirdlg+set}" = set; then
8321 enableval="$enable_dirdlg"
e6cc62c6 8322
1e6feb95
VZ
8323 if test "$enableval" = yes; then
8324 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8325 else
8326 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8327 fi
e6cc62c6 8328
1e6feb95 8329else
e6cc62c6 8330
1e6feb95
VZ
8331 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8332 if test "x$LINE" != x ; then
8333 eval "DEFAULT_$LINE"
8334 else
8335 no_cache=1
8336 fi
8337
8338 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8339
e6cc62c6 8340fi;
1e6feb95
VZ
8341
8342 eval "$ac_cv_use_dirdlg"
10f2d63a 8343 if test "$no_cache" != 1; then
1e6feb95 8344 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8345 fi
8346
1e6feb95 8347 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8348 echo "$as_me:$LINENO: result: yes" >&5
8349echo "${ECHO_T}yes" >&6
10f2d63a 8350 else
e6cc62c6
VS
8351 echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6
10f2d63a 8353 fi
e6cc62c6 8354
698dcdb6 8355
5005acfe 8356 enablestring=
e6cc62c6
VS
8357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8358echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8359 no_cache=0
1e6feb95
VZ
8360 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8361if test "${enable_msgdlg+set}" = set; then
8362 enableval="$enable_msgdlg"
e6cc62c6 8363
10f2d63a 8364 if test "$enableval" = yes; then
1e6feb95 8365 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8366 else
1e6feb95 8367 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8368 fi
e6cc62c6 8369
10f2d63a 8370else
e6cc62c6 8371
1e6feb95 8372 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8373 if test "x$LINE" != x ; then
8374 eval "DEFAULT_$LINE"
8375 else
8376 no_cache=1
8377 fi
8378
1e6feb95 8379 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8380
e6cc62c6 8381fi;
10f2d63a 8382
1e6feb95 8383 eval "$ac_cv_use_msgdlg"
10f2d63a 8384 if test "$no_cache" != 1; then
1e6feb95 8385 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8386 fi
8387
1e6feb95 8388 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8389 echo "$as_me:$LINENO: result: yes" >&5
8390echo "${ECHO_T}yes" >&6
10f2d63a 8391 else
e6cc62c6
VS
8392 echo "$as_me:$LINENO: result: no" >&5
8393echo "${ECHO_T}no" >&6
10f2d63a 8394 fi
e6cc62c6 8395
10f2d63a 8396
5005acfe 8397 enablestring=
e6cc62c6
VS
8398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8399echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8400 no_cache=0
1e6feb95
VZ
8401 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8402if test "${enable_numberdlg+set}" = set; then
8403 enableval="$enable_numberdlg"
e6cc62c6 8404
10f2d63a 8405 if test "$enableval" = yes; then
1e6feb95 8406 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8407 else
1e6feb95 8408 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8409 fi
e6cc62c6 8410
10f2d63a 8411else
e6cc62c6 8412
1e6feb95 8413 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8414 if test "x$LINE" != x ; then
8415 eval "DEFAULT_$LINE"
8416 else
8417 no_cache=1
8418 fi
8419
1e6feb95 8420 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8421
e6cc62c6 8422fi;
10f2d63a 8423
1e6feb95 8424 eval "$ac_cv_use_numberdlg"
10f2d63a 8425 if test "$no_cache" != 1; then
1e6feb95 8426 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8427 fi
8428
1e6feb95 8429 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8430 echo "$as_me:$LINENO: result: yes" >&5
8431echo "${ECHO_T}yes" >&6
10f2d63a 8432 else
e6cc62c6
VS
8433 echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6
10f2d63a 8435 fi
e6cc62c6 8436
10f2d63a 8437
5005acfe 8438 enablestring=
e6cc62c6
VS
8439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8440echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8441 no_cache=0
8442 # Check whether --enable-splash or --disable-splash was given.
8443if test "${enable_splash+set}" = set; then
8444 enableval="$enable_splash"
e6cc62c6 8445
cbca9943
VZ
8446 if test "$enableval" = yes; then
8447 ac_cv_use_splash='wxUSE_SPLASH=yes'
8448 else
8449 ac_cv_use_splash='wxUSE_SPLASH=no'
8450 fi
e6cc62c6 8451
cbca9943 8452else
e6cc62c6 8453
cbca9943
VZ
8454 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8455 if test "x$LINE" != x ; then
8456 eval "DEFAULT_$LINE"
8457 else
8458 no_cache=1
8459 fi
8460
8461 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8462
e6cc62c6 8463fi;
cbca9943
VZ
8464
8465 eval "$ac_cv_use_splash"
8466 if test "$no_cache" != 1; then
8467 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8468 fi
8469
8470 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8471 echo "$as_me:$LINENO: result: yes" >&5
8472echo "${ECHO_T}yes" >&6
cbca9943 8473 else
e6cc62c6
VS
8474 echo "$as_me:$LINENO: result: no" >&5
8475echo "${ECHO_T}no" >&6
cbca9943 8476 fi
e6cc62c6 8477
cbca9943 8478
5005acfe 8479 enablestring=
e6cc62c6
VS
8480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8481echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8482 no_cache=0
8483 # Check whether --enable-textdlg or --disable-textdlg was given.
8484if test "${enable_textdlg+set}" = set; then
8485 enableval="$enable_textdlg"
e6cc62c6 8486
10f2d63a
VZ
8487 if test "$enableval" = yes; then
8488 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8489 else
8490 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8491 fi
e6cc62c6 8492
10f2d63a 8493else
e6cc62c6 8494
10f2d63a
VZ
8495 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8496 if test "x$LINE" != x ; then
8497 eval "DEFAULT_$LINE"
8498 else
8499 no_cache=1
8500 fi
8501
8502 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8503
e6cc62c6 8504fi;
10f2d63a
VZ
8505
8506 eval "$ac_cv_use_textdlg"
8507 if test "$no_cache" != 1; then
8508 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8509 fi
8510
8511 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8512 echo "$as_me:$LINENO: result: yes" >&5
8513echo "${ECHO_T}yes" >&6
10f2d63a 8514 else
e6cc62c6
VS
8515 echo "$as_me:$LINENO: result: no" >&5
8516echo "${ECHO_T}no" >&6
10f2d63a 8517 fi
e6cc62c6 8518
10f2d63a 8519
5005acfe 8520 enablestring=
e6cc62c6
VS
8521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8522echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8523 no_cache=0
8524 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8525if test "${enable_tipdlg+set}" = set; then
8526 enableval="$enable_tipdlg"
e6cc62c6 8527
10f2d63a
VZ
8528 if test "$enableval" = yes; then
8529 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8530 else
8531 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8532 fi
e6cc62c6 8533
10f2d63a 8534else
e6cc62c6 8535
10f2d63a
VZ
8536 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8537 if test "x$LINE" != x ; then
8538 eval "DEFAULT_$LINE"
8539 else
8540 no_cache=1
8541 fi
8542
8543 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8544
e6cc62c6 8545fi;
10f2d63a
VZ
8546
8547 eval "$ac_cv_use_tipdlg"
8548 if test "$no_cache" != 1; then
8549 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8550 fi
8551
8552 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8553 echo "$as_me:$LINENO: result: yes" >&5
8554echo "${ECHO_T}yes" >&6
10f2d63a 8555 else
e6cc62c6
VS
8556 echo "$as_me:$LINENO: result: no" >&5
8557echo "${ECHO_T}no" >&6
10f2d63a 8558 fi
e6cc62c6 8559
10f2d63a 8560
5005acfe 8561 enablestring=
e6cc62c6
VS
8562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8563echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8564 no_cache=0
8565 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8566if test "${enable_progressdlg+set}" = set; then
8567 enableval="$enable_progressdlg"
e6cc62c6 8568
10f2d63a
VZ
8569 if test "$enableval" = yes; then
8570 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8571 else
8572 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8573 fi
e6cc62c6 8574
10f2d63a 8575else
e6cc62c6 8576
10f2d63a
VZ
8577 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8578 if test "x$LINE" != x ; then
8579 eval "DEFAULT_$LINE"
8580 else
8581 no_cache=1
8582 fi
8583
8584 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8585
e6cc62c6 8586fi;
10f2d63a
VZ
8587
8588 eval "$ac_cv_use_progressdlg"
8589 if test "$no_cache" != 1; then
8590 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8591 fi
8592
8593 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8594 echo "$as_me:$LINENO: result: yes" >&5
8595echo "${ECHO_T}yes" >&6
10f2d63a 8596 else
e6cc62c6
VS
8597 echo "$as_me:$LINENO: result: no" >&5
8598echo "${ECHO_T}no" >&6
10f2d63a 8599 fi
e6cc62c6 8600
10f2d63a 8601
5005acfe 8602 enablestring=
e6cc62c6
VS
8603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8604echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8605 no_cache=0
8606 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8607if test "${enable_wizarddlg+set}" = set; then
8608 enableval="$enable_wizarddlg"
e6cc62c6 8609
b1f5d087
VZ
8610 if test "$enableval" = yes; then
8611 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8612 else
8613 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8614 fi
e6cc62c6 8615
b1f5d087 8616else
e6cc62c6 8617
b1f5d087
VZ
8618 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8619 if test "x$LINE" != x ; then
8620 eval "DEFAULT_$LINE"
8621 else
8622 no_cache=1
8623 fi
8624
8625 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8626
e6cc62c6 8627fi;
b1f5d087
VZ
8628
8629 eval "$ac_cv_use_wizarddlg"
8630 if test "$no_cache" != 1; then
8631 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8632 fi
8633
8634 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8635 echo "$as_me:$LINENO: result: yes" >&5
8636echo "${ECHO_T}yes" >&6
b1f5d087 8637 else
e6cc62c6
VS
8638 echo "$as_me:$LINENO: result: no" >&5
8639echo "${ECHO_T}no" >&6
b1f5d087 8640 fi
e6cc62c6 8641
8284b0c5
MB
8642
8643
52127426 8644
5005acfe 8645 enablestring=
e6cc62c6
VS
8646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8647echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8648 no_cache=0
8649 # Check whether --enable-menus or --disable-menus was given.
8650if test "${enable_menus+set}" = set; then
8651 enableval="$enable_menus"
e6cc62c6 8652
1e6feb95
VZ
8653 if test "$enableval" = yes; then
8654 ac_cv_use_menus='wxUSE_MENUS=yes'
8655 else
8656 ac_cv_use_menus='wxUSE_MENUS=no'
8657 fi
e6cc62c6 8658
1e6feb95 8659else
e6cc62c6 8660
1e6feb95
VZ
8661 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8662 if test "x$LINE" != x ; then
8663 eval "DEFAULT_$LINE"
8664 else
8665 no_cache=1
8666 fi
8667
8668 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8669
e6cc62c6 8670fi;
1e6feb95
VZ
8671
8672 eval "$ac_cv_use_menus"
8673 if test "$no_cache" != 1; then
8674 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8675 fi
8676
8677 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8678 echo "$as_me:$LINENO: result: yes" >&5
8679echo "${ECHO_T}yes" >&6
1e6feb95 8680 else
e6cc62c6
VS
8681 echo "$as_me:$LINENO: result: no" >&5
8682echo "${ECHO_T}no" >&6
1e6feb95 8683 fi
e6cc62c6 8684
1e6feb95 8685
5005acfe 8686 enablestring=
e6cc62c6
VS
8687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8688echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8689 no_cache=0
8690 # Check whether --enable-miniframe or --disable-miniframe was given.
8691if test "${enable_miniframe+set}" = set; then
8692 enableval="$enable_miniframe"
e6cc62c6 8693
10f2d63a
VZ
8694 if test "$enableval" = yes; then
8695 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8696 else
8697 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8698 fi
e6cc62c6 8699
10f2d63a 8700else
e6cc62c6 8701
10f2d63a
VZ
8702 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8703 if test "x$LINE" != x ; then
8704 eval "DEFAULT_$LINE"
8705 else
8706 no_cache=1
8707 fi
8708
8709 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8710
e6cc62c6 8711fi;
10f2d63a
VZ
8712
8713 eval "$ac_cv_use_miniframe"
8714 if test "$no_cache" != 1; then
8715 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8716 fi
8717
8718 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8719 echo "$as_me:$LINENO: result: yes" >&5
8720echo "${ECHO_T}yes" >&6
10f2d63a 8721 else
e6cc62c6
VS
8722 echo "$as_me:$LINENO: result: no" >&5
8723echo "${ECHO_T}no" >&6
10f2d63a 8724 fi
e6cc62c6 8725
10f2d63a 8726
5005acfe 8727 enablestring=
e6cc62c6
VS
8728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8729echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8730 no_cache=0
8731 # Check whether --enable-tooltips or --disable-tooltips was given.
8732if test "${enable_tooltips+set}" = set; then
8733 enableval="$enable_tooltips"
e6cc62c6 8734
10f2d63a
VZ
8735 if test "$enableval" = yes; then
8736 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8737 else
8738 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8739 fi
e6cc62c6 8740
10f2d63a 8741else
e6cc62c6 8742
10f2d63a
VZ
8743 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8744 if test "x$LINE" != x ; then
8745 eval "DEFAULT_$LINE"
8746 else
8747 no_cache=1
8748 fi
8749
8750 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8751
e6cc62c6 8752fi;
10f2d63a
VZ
8753
8754 eval "$ac_cv_use_tooltips"
8755 if test "$no_cache" != 1; then
8756 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8757 fi
8758
8759 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8760 echo "$as_me:$LINENO: result: yes" >&5
8761echo "${ECHO_T}yes" >&6
10f2d63a 8762 else
e6cc62c6
VS
8763 echo "$as_me:$LINENO: result: no" >&5
8764echo "${ECHO_T}no" >&6
10f2d63a 8765 fi
e6cc62c6 8766
10f2d63a 8767
5005acfe 8768 enablestring=
e6cc62c6
VS
8769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8770echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8771 no_cache=0
8772 # Check whether --enable-splines or --disable-splines was given.
8773if test "${enable_splines+set}" = set; then
8774 enableval="$enable_splines"
e6cc62c6 8775
10f2d63a
VZ
8776 if test "$enableval" = yes; then
8777 ac_cv_use_splines='wxUSE_SPLINES=yes'
8778 else
8779 ac_cv_use_splines='wxUSE_SPLINES=no'
8780 fi
e6cc62c6 8781
10f2d63a 8782else
e6cc62c6 8783
10f2d63a
VZ
8784 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8785 if test "x$LINE" != x ; then
8786 eval "DEFAULT_$LINE"
8787 else
8788 no_cache=1
8789 fi
8790
8791 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8792
e6cc62c6 8793fi;
10f2d63a
VZ
8794
8795 eval "$ac_cv_use_splines"
8796 if test "$no_cache" != 1; then
8797 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8798 fi
8799
8800 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8801 echo "$as_me:$LINENO: result: yes" >&5
8802echo "${ECHO_T}yes" >&6
10f2d63a 8803 else
e6cc62c6
VS
8804 echo "$as_me:$LINENO: result: no" >&5
8805echo "${ECHO_T}no" >&6
10f2d63a 8806 fi
e6cc62c6 8807
10f2d63a 8808
5005acfe 8809 enablestring=
e6cc62c6
VS
8810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8811echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8812 no_cache=0
8813 # Check whether --enable-validators or --disable-validators was given.
8814if test "${enable_validators+set}" = set; then
8815 enableval="$enable_validators"
e6cc62c6 8816
10f2d63a
VZ
8817 if test "$enableval" = yes; then
8818 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8819 else
8820 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8821 fi
e6cc62c6 8822
10f2d63a 8823else
e6cc62c6 8824
10f2d63a
VZ
8825 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8826 if test "x$LINE" != x ; then
8827 eval "DEFAULT_$LINE"
8828 else
8829 no_cache=1
8830 fi
8831
8832 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8833
e6cc62c6 8834fi;
10f2d63a
VZ
8835
8836 eval "$ac_cv_use_validators"
8837 if test "$no_cache" != 1; then
8838 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8839 fi
8840
8841 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8842 echo "$as_me:$LINENO: result: yes" >&5
8843echo "${ECHO_T}yes" >&6
10f2d63a 8844 else
e6cc62c6
VS
8845 echo "$as_me:$LINENO: result: no" >&5
8846echo "${ECHO_T}no" >&6
10f2d63a 8847 fi
e6cc62c6 8848
10f2d63a 8849
5005acfe 8850 enablestring=
e6cc62c6
VS
8851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8852echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8853 no_cache=0
8854 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8855if test "${enable_busyinfo+set}" = set; then
8856 enableval="$enable_busyinfo"
e6cc62c6 8857
10f2d63a
VZ
8858 if test "$enableval" = yes; then
8859 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8860 else
8861 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8862 fi
e6cc62c6 8863
10f2d63a 8864else
e6cc62c6 8865
10f2d63a
VZ
8866 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8867 if test "x$LINE" != x ; then
8868 eval "DEFAULT_$LINE"
8869 else
8870 no_cache=1
8871 fi
8872
8873 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8874
e6cc62c6 8875fi;
10f2d63a
VZ
8876
8877 eval "$ac_cv_use_busyinfo"
8878 if test "$no_cache" != 1; then
8879 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8880 fi
8881
8882 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8883 echo "$as_me:$LINENO: result: yes" >&5
8884echo "${ECHO_T}yes" >&6
10f2d63a 8885 else
e6cc62c6
VS
8886 echo "$as_me:$LINENO: result: no" >&5
8887echo "${ECHO_T}no" >&6
10f2d63a 8888 fi
e6cc62c6 8889
10f2d63a 8890
5005acfe 8891 enablestring=
e6cc62c6
VS
8892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8893echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8894 no_cache=0
8895 # Check whether --enable-joystick or --disable-joystick was given.
8896if test "${enable_joystick+set}" = set; then
8897 enableval="$enable_joystick"
e6cc62c6 8898
f6bcfd97
BP
8899 if test "$enableval" = yes; then
8900 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8901 else
8902 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8903 fi
e6cc62c6 8904
f6bcfd97 8905else
e6cc62c6 8906
f6bcfd97
BP
8907 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8908 if test "x$LINE" != x ; then
8909 eval "DEFAULT_$LINE"
8910 else
8911 no_cache=1
8912 fi
8913
8914 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8915
e6cc62c6 8916fi;
f6bcfd97
BP
8917
8918 eval "$ac_cv_use_joystick"
8919 if test "$no_cache" != 1; then
8920 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8921 fi
8922
8923 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8924 echo "$as_me:$LINENO: result: yes" >&5
8925echo "${ECHO_T}yes" >&6
f6bcfd97 8926 else
e6cc62c6
VS
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
f6bcfd97 8929 fi
e6cc62c6 8930
698dcdb6 8931
5005acfe 8932 enablestring=
e6cc62c6
VS
8933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8934echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
8935 no_cache=0
8936 # Check whether --enable-metafile or --disable-metafile was given.
8937if test "${enable_metafile+set}" = set; then
8938 enableval="$enable_metafile"
e6cc62c6 8939
1e6feb95
VZ
8940 if test "$enableval" = yes; then
8941 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8942 else
8943 ac_cv_use_metafile='wxUSE_METAFILE=no'
8944 fi
e6cc62c6 8945
1e6feb95 8946else
e6cc62c6 8947
1e6feb95
VZ
8948 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8949 if test "x$LINE" != x ; then
8950 eval "DEFAULT_$LINE"
8951 else
8952 no_cache=1
8953 fi
8954
8955 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 8956
e6cc62c6 8957fi;
1e6feb95
VZ
8958
8959 eval "$ac_cv_use_metafile"
8960 if test "$no_cache" != 1; then
8961 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8962 fi
8963
8964 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
8965 echo "$as_me:$LINENO: result: yes" >&5
8966echo "${ECHO_T}yes" >&6
1e6feb95 8967 else
e6cc62c6
VS
8968 echo "$as_me:$LINENO: result: no" >&5
8969echo "${ECHO_T}no" >&6
1e6feb95 8970 fi
e6cc62c6 8971
1e6feb95 8972
5005acfe 8973 enablestring=
e6cc62c6
VS
8974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
8975echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
8976 no_cache=0
8977 # Check whether --enable-dragimage or --disable-dragimage was given.
8978if test "${enable_dragimage+set}" = set; then
8979 enableval="$enable_dragimage"
e6cc62c6 8980
24fd6d87
VZ
8981 if test "$enableval" = yes; then
8982 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8983 else
8984 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8985 fi
e6cc62c6 8986
24fd6d87 8987else
e6cc62c6 8988
24fd6d87
VZ
8989 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8990 if test "x$LINE" != x ; then
8991 eval "DEFAULT_$LINE"
8992 else
8993 no_cache=1
8994 fi
8995
8996 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 8997
e6cc62c6 8998fi;
24fd6d87
VZ
8999
9000 eval "$ac_cv_use_dragimage"
9001 if test "$no_cache" != 1; then
9002 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9003 fi
9004
9005 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9006 echo "$as_me:$LINENO: result: yes" >&5
9007echo "${ECHO_T}yes" >&6
24fd6d87 9008 else
e6cc62c6
VS
9009 echo "$as_me:$LINENO: result: no" >&5
9010echo "${ECHO_T}no" >&6
24fd6d87 9011 fi
e6cc62c6 9012
52127426 9013
7bb2947d 9014 enablestring=
e6cc62c6
VS
9015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9016echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9017 no_cache=0
9018 # Check whether --enable-accessibility or --disable-accessibility was given.
9019if test "${enable_accessibility+set}" = set; then
9020 enableval="$enable_accessibility"
e6cc62c6 9021
7bb2947d
MB
9022 if test "$enableval" = yes; then
9023 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9024 else
9025 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9026 fi
e6cc62c6 9027
7bb2947d 9028else
e6cc62c6 9029
7bb2947d
MB
9030 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9031 if test "x$LINE" != x ; then
9032 eval "DEFAULT_$LINE"
9033 else
9034 no_cache=1
9035 fi
9036
9037 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9038
e6cc62c6 9039fi;
7bb2947d
MB
9040
9041 eval "$ac_cv_use_accessibility"
9042 if test "$no_cache" != 1; then
9043 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9044 fi
9045
9046 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9047 echo "$as_me:$LINENO: result: yes" >&5
9048echo "${ECHO_T}yes" >&6
7bb2947d 9049 else
e6cc62c6
VS
9050 echo "$as_me:$LINENO: result: no" >&5
9051echo "${ECHO_T}no" >&6
7bb2947d 9052 fi
e6cc62c6 9053
7bb2947d 9054
8284b0c5
MB
9055
9056
5005acfe 9057 enablestring=
e6cc62c6
VS
9058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9059echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9060 no_cache=0
9061 # Check whether --enable-palette or --disable-palette was given.
9062if test "${enable_palette+set}" = set; then
9063 enableval="$enable_palette"
e6cc62c6 9064
edae8572
VZ
9065 if test "$enableval" = yes; then
9066 ac_cv_use_palette='wxUSE_PALETTE=yes'
9067 else
9068 ac_cv_use_palette='wxUSE_PALETTE=no'
9069 fi
e6cc62c6 9070
edae8572 9071else
e6cc62c6 9072
edae8572
VZ
9073 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9074 if test "x$LINE" != x ; then
9075 eval "DEFAULT_$LINE"
9076 else
9077 no_cache=1
9078 fi
9079
9080 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9081
e6cc62c6 9082fi;
edae8572
VZ
9083
9084 eval "$ac_cv_use_palette"
9085 if test "$no_cache" != 1; then
9086 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9087 fi
9088
9089 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9090 echo "$as_me:$LINENO: result: yes" >&5
9091echo "${ECHO_T}yes" >&6
edae8572 9092 else
e6cc62c6
VS
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
edae8572 9095 fi
e6cc62c6 9096
edae8572 9097
5005acfe 9098 enablestring=
e6cc62c6
VS
9099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9100echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9101 no_cache=0
9102 # Check whether --enable-image or --disable-image was given.
9103if test "${enable_image+set}" = set; then
9104 enableval="$enable_image"
e6cc62c6 9105
0046ff7c
VS
9106 if test "$enableval" = yes; then
9107 ac_cv_use_image='wxUSE_IMAGE=yes'
9108 else
9109 ac_cv_use_image='wxUSE_IMAGE=no'
9110 fi
e6cc62c6 9111
0046ff7c 9112else
e6cc62c6 9113
0046ff7c
VS
9114 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9115 if test "x$LINE" != x ; then
9116 eval "DEFAULT_$LINE"
9117 else
9118 no_cache=1
9119 fi
9120
9121 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9122
e6cc62c6 9123fi;
0046ff7c
VS
9124
9125 eval "$ac_cv_use_image"
9126 if test "$no_cache" != 1; then
9127 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9128 fi
9129
9130 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9131 echo "$as_me:$LINENO: result: yes" >&5
9132echo "${ECHO_T}yes" >&6
0046ff7c 9133 else
e6cc62c6
VS
9134 echo "$as_me:$LINENO: result: no" >&5
9135echo "${ECHO_T}no" >&6
0046ff7c 9136 fi
e6cc62c6 9137
0046ff7c 9138
5005acfe 9139 enablestring=
e6cc62c6
VS
9140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9141echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9142 no_cache=0
9143 # Check whether --enable-gif or --disable-gif was given.
9144if test "${enable_gif+set}" = set; then
9145 enableval="$enable_gif"
e6cc62c6 9146
10f2d63a
VZ
9147 if test "$enableval" = yes; then
9148 ac_cv_use_gif='wxUSE_GIF=yes'
9149 else
9150 ac_cv_use_gif='wxUSE_GIF=no'
9151 fi
e6cc62c6 9152
10f2d63a 9153else
e6cc62c6 9154
10f2d63a
VZ
9155 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9156 if test "x$LINE" != x ; then
9157 eval "DEFAULT_$LINE"
9158 else
9159 no_cache=1
9160 fi
9161
9162 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9163
e6cc62c6 9164fi;
10f2d63a
VZ
9165
9166 eval "$ac_cv_use_gif"
9167 if test "$no_cache" != 1; then
9168 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9169 fi
9170
9171 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9172 echo "$as_me:$LINENO: result: yes" >&5
9173echo "${ECHO_T}yes" >&6
10f2d63a 9174 else
e6cc62c6
VS
9175 echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
10f2d63a 9177 fi
e6cc62c6 9178
10f2d63a 9179
5005acfe 9180 enablestring=
e6cc62c6
VS
9181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9182echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9183 no_cache=0
9184 # Check whether --enable-pcx or --disable-pcx was given.
9185if test "${enable_pcx+set}" = set; then
9186 enableval="$enable_pcx"
e6cc62c6 9187
10f2d63a
VZ
9188 if test "$enableval" = yes; then
9189 ac_cv_use_pcx='wxUSE_PCX=yes'
9190 else
9191 ac_cv_use_pcx='wxUSE_PCX=no'
9192 fi
e6cc62c6 9193
10f2d63a 9194else
e6cc62c6 9195
10f2d63a
VZ
9196 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9197 if test "x$LINE" != x ; then
9198 eval "DEFAULT_$LINE"
9199 else
9200 no_cache=1
9201 fi
9202
9203 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9204
e6cc62c6 9205fi;
10f2d63a
VZ
9206
9207 eval "$ac_cv_use_pcx"
9208 if test "$no_cache" != 1; then
9209 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9210 fi
9211
9212 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9213 echo "$as_me:$LINENO: result: yes" >&5
9214echo "${ECHO_T}yes" >&6
10f2d63a 9215 else
e6cc62c6
VS
9216 echo "$as_me:$LINENO: result: no" >&5
9217echo "${ECHO_T}no" >&6
10f2d63a 9218 fi
e6cc62c6 9219
10f2d63a 9220
5005acfe 9221 enablestring=
e6cc62c6
VS
9222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9223echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9224 no_cache=0
9225 # Check whether --enable-iff or --disable-iff was given.
9226if test "${enable_iff+set}" = set; then
9227 enableval="$enable_iff"
e6cc62c6 9228
4b6b4dfc
RR
9229 if test "$enableval" = yes; then
9230 ac_cv_use_iff='wxUSE_IFF=yes'
9231 else
9232 ac_cv_use_iff='wxUSE_IFF=no'
9233 fi
e6cc62c6 9234
4b6b4dfc 9235else
e6cc62c6 9236
4b6b4dfc
RR
9237 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9238 if test "x$LINE" != x ; then
9239 eval "DEFAULT_$LINE"
9240 else
9241 no_cache=1
9242 fi
9243
9244 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9245
e6cc62c6 9246fi;
4b6b4dfc
RR
9247
9248 eval "$ac_cv_use_iff"
9249 if test "$no_cache" != 1; then
9250 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9251 fi
9252
9253 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9254 echo "$as_me:$LINENO: result: yes" >&5
9255echo "${ECHO_T}yes" >&6
4b6b4dfc 9256 else
e6cc62c6
VS
9257 echo "$as_me:$LINENO: result: no" >&5
9258echo "${ECHO_T}no" >&6
4b6b4dfc 9259 fi
e6cc62c6 9260
4b6b4dfc 9261
5005acfe 9262 enablestring=
e6cc62c6
VS
9263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9264echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9265 no_cache=0
9266 # Check whether --enable-pnm or --disable-pnm was given.
9267if test "${enable_pnm+set}" = set; then
9268 enableval="$enable_pnm"
e6cc62c6 9269
10f2d63a
VZ
9270 if test "$enableval" = yes; then
9271 ac_cv_use_pnm='wxUSE_PNM=yes'
9272 else
9273 ac_cv_use_pnm='wxUSE_PNM=no'
9274 fi
e6cc62c6 9275
10f2d63a 9276else
e6cc62c6 9277
10f2d63a
VZ
9278 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9279 if test "x$LINE" != x ; then
9280 eval "DEFAULT_$LINE"
9281 else
9282 no_cache=1
9283 fi
9284
9285 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9286
e6cc62c6 9287fi;
10f2d63a
VZ
9288
9289 eval "$ac_cv_use_pnm"
9290 if test "$no_cache" != 1; then
9291 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9292 fi
9293
9294 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9295 echo "$as_me:$LINENO: result: yes" >&5
9296echo "${ECHO_T}yes" >&6
10f2d63a 9297 else
e6cc62c6
VS
9298 echo "$as_me:$LINENO: result: no" >&5
9299echo "${ECHO_T}no" >&6
10f2d63a 9300 fi
e6cc62c6 9301
10f2d63a 9302
5005acfe 9303 enablestring=
e6cc62c6
VS
9304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9305echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9306 no_cache=0
69d27ff7
MB
9307 # Check whether --enable-xpm or --disable-xpm was given.
9308if test "${enable_xpm+set}" = set; then
9309 enableval="$enable_xpm"
e6cc62c6 9310
0046ff7c 9311 if test "$enableval" = yes; then
69d27ff7 9312 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9313 else
69d27ff7 9314 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9315 fi
e6cc62c6 9316
0046ff7c 9317else
e6cc62c6 9318
0046ff7c
VS
9319 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9320 if test "x$LINE" != x ; then
9321 eval "DEFAULT_$LINE"
9322 else
9323 no_cache=1
9324 fi
9325
69d27ff7 9326 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9327
e6cc62c6 9328fi;
0046ff7c 9329
69d27ff7 9330 eval "$ac_cv_use_xpm"
0046ff7c 9331 if test "$no_cache" != 1; then
69d27ff7 9332 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9333 fi
9334
9335 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9336 echo "$as_me:$LINENO: result: yes" >&5
9337echo "${ECHO_T}yes" >&6
0046ff7c 9338 else
e6cc62c6
VS
9339 echo "$as_me:$LINENO: result: no" >&5
9340echo "${ECHO_T}no" >&6
0046ff7c 9341 fi
e6cc62c6 9342
0046ff7c 9343
5005acfe 9344 enablestring=
e6cc62c6
VS
9345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9346echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9347 no_cache=0
c7206e64
VS
9348 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9349if test "${enable_ico_cur+set}" = set; then
9350 enableval="$enable_ico_cur"
e6cc62c6 9351
658974ae 9352 if test "$enableval" = yes; then
c7206e64 9353 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9354 else
c7206e64 9355 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9356 fi
e6cc62c6 9357
658974ae 9358else
e6cc62c6 9359
658974ae
VS
9360 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9361 if test "x$LINE" != x ; then
9362 eval "DEFAULT_$LINE"
9363 else
9364 no_cache=1
9365 fi
9366
c7206e64 9367 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9368
e6cc62c6 9369fi;
658974ae 9370
c7206e64 9371 eval "$ac_cv_use_ico_cur"
658974ae 9372 if test "$no_cache" != 1; then
c7206e64 9373 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9374 fi
9375
9376 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9377 echo "$as_me:$LINENO: result: yes" >&5
9378echo "${ECHO_T}yes" >&6
658974ae 9379 else
e6cc62c6
VS
9380 echo "$as_me:$LINENO: result: no" >&5
9381echo "${ECHO_T}no" >&6
658974ae 9382 fi
e6cc62c6 9383
658974ae 9384
b12915c1
VZ
9385fi
9386
d558c907
VS
9387case "${host}" in
9388 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
9389 PATH_IFS=';'
9390 LEX_STEM="lexyy"
d558c907
VS
9391 ;;
9392 *)
9393 PATH_IFS=':'
9394 LEX_STEM="lex.yy"
9395 ;;
9396esac
9397
8284b0c5
MB
9398
9399
10f2d63a
VZ
9400 echo "saving argument cache $wx_arg_cache_file"
9401 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9402
8284b0c5 9403
e6cc62c6
VS
9404
9405echo "$as_me:$LINENO: checking for toolkit" >&5
9406echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9407
9408# In Wine, we need to default to MSW, not GTK or MOTIF
9409if test "$wxUSE_WINE" = "yes"; then
9410 DEFAULT_DEFAULT_wxUSE_GTK=0
9411 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9412 DEFAULT_DEFAULT_wxUSE_MSW=1
9413fi
10f2d63a
VZ
9414
9415if test "$wxUSE_GUI" = "yes"; then
9416
3a922bb4 9417 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9418 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9419echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9420 { (exit 1); exit 1; }; }
3a922bb4 9421 fi
b12915c1 9422
3a922bb4
RL
9423 if test "$TOOLKIT_GIVEN" = 1; then
9424 for toolkit in `echo $ALL_TOOLKITS`; do
9425 var=wxUSE_$toolkit
9426 eval "value=\$${var}"
9427 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9428 done
10f2d63a 9429 else
3a922bb4
RL
9430 for toolkit in `echo $ALL_TOOLKITS`; do
9431 if test "$has_toolkit_in_cache" != 1; then
9432 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9433 else
9434 var=DEFAULT_wxUSE_$toolkit
9435 fi
9436 eval "wxUSE_$toolkit=\$${var}"
9437 done
10f2d63a 9438 fi
10f2d63a 9439
ac0c4cc3
DE
9440 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9441 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9442 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9443
d558c907 9444 case "${host}" in
6fa882bd 9445 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9446 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9447 esac
10f2d63a 9448
3a922bb4
RL
9449 case "$NUM_TOOLKITS" in
9450 1)
9451 ;;
9452 0)
e6cc62c6
VS
9453 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9454echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9455 { (exit 1); exit 1; }; }
3a922bb4
RL
9456 ;;
9457 *)
e6cc62c6
VS
9458 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9459echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9460 { (exit 1); exit 1; }; }
3a922bb4 9461 esac
10f2d63a 9462
3a922bb4
RL
9463 for toolkit in `echo $ALL_TOOLKITS`; do
9464 var=wxUSE_$toolkit
9465 eval "value=\$${var}"
9466 if test "x$value" != x; then
9467 cache_var=CACHE_$toolkit
9468 eval "cache=\$${cache_var}"
9469 if test "$cache" = 1; then
9470 echo "$var=$value" >> ${wx_arg_cache_file}
9471 fi
9472 if test "$value" = 1; then
9473 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9474 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9475echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9476 fi
9477 fi
9478 done
10f2d63a 9479else
9de9b8f0
VZ
9480 if test "x$host_alias" != "x"; then
9481 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9482echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9483 else
9484 echo "$as_me:$LINENO: result: base only" >&5
9485echo "${ECHO_T}base only" >&6
9486 fi
10f2d63a
VZ
9487fi
9488
43d99b6d
VS
9489wants_win32=0
9490doesnt_want_win32=0
17234b26
MB
9491case "${host}" in
9492 *-*-cygwin*)
9493 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9494 wants_win32=1
9495 else
9496 doesnt_want_win32=1
17234b26
MB
9497 fi
9498 ;;
9499 *-*-mingw*)
43d99b6d 9500 wants_win32=1
17234b26
MB
9501 ;;
9502esac
9503
89e6bf6d
VZ
9504if test "$wxUSE_WINE" = "yes"; then
9505 wants_win32=1
9506 CC=winegcc
9507 CXX=wineg++
9508 RESCOMP=wrc
9509fi
9510
43d99b6d 9511if test "$wants_win32" = 1 ; then
17234b26
MB
9512 USE_UNIX=0
9513 USE_WIN32=1
e6cc62c6 9514 cat >>confdefs.h <<\_ACEOF
17234b26 9515#define __WIN32__ 1
e6cc62c6 9516_ACEOF
17234b26 9517
e6cc62c6 9518 cat >>confdefs.h <<\_ACEOF
17234b26 9519#define __WIN95__ 1
e6cc62c6 9520_ACEOF
17234b26 9521
e6cc62c6 9522 cat >>confdefs.h <<\_ACEOF
17234b26 9523#define __WINDOWS__ 1
e6cc62c6 9524_ACEOF
17234b26 9525
e6cc62c6 9526 cat >>confdefs.h <<\_ACEOF
17234b26 9527#define __GNUWIN32__ 1
e6cc62c6 9528_ACEOF
17234b26 9529
e6cc62c6 9530 cat >>confdefs.h <<\_ACEOF
17234b26 9531#define STRICT 1
e6cc62c6 9532_ACEOF
17234b26 9533
e6cc62c6 9534 cat >>confdefs.h <<\_ACEOF
17234b26 9535#define WINVER 0x0400
e6cc62c6 9536_ACEOF
17234b26 9537
43d99b6d
VS
9538fi
9539if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9540 USE_UNIX=1
9541 USE_WIN32=0
9542fi
9543
9544if test "$USE_UNIX" = 1 ; then
9545 wxUSE_UNIX=yes
e6cc62c6 9546 cat >>confdefs.h <<\_ACEOF
17234b26 9547#define __UNIX__ 1
e6cc62c6 9548_ACEOF
17234b26
MB
9549
9550fi
9551
8284b0c5 9552
e6cc62c6 9553cat >confcache <<\_ACEOF
10f2d63a
VZ
9554# This file is a shell script that caches the results of configure
9555# tests run on this system so they can be shared between configure
e6cc62c6
VS
9556# scripts and configure runs, see configure's option --config-cache.
9557# It is not useful on other systems. If it contains results you don't
9558# want to keep, you may remove or edit it.
10f2d63a 9559#
e6cc62c6
VS
9560# config.status only pays attention to the cache file if you give it
9561# the --recheck option to rerun configure.
10f2d63a 9562#
e6cc62c6
VS
9563# `ac_cv_env_foo' variables (set or unset) will be overridden when
9564# loading this file, other *unset* `ac_cv_foo' will be assigned the
9565# following values.
9566
9567_ACEOF
9568
10f2d63a
VZ
9569# The following way of writing the cache mishandles newlines in values,
9570# but we know of no workaround that is simple, portable, and efficient.
9571# So, don't put newlines in cache variables' values.
9572# Ultrix sh set writes to stderr and can't be redirected directly,
9573# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9574{
9575 (set) 2>&1 |
9576 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9577 *ac_space=\ *)
9578 # `set' does not quote correctly, so add quotes (double-quote
9579 # substitution turns \\\\ into \\, and sed turns \\ into \).
9580 sed -n \
9581 "s/'/'\\\\''/g;
9582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9583 ;;
9584 *)
9585 # `set' quotes correctly as required by POSIX, so do not add quotes.
9586 sed -n \
9587 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9588 ;;
9589 esac;
9590} |
9591 sed '
9592 t clear
9593 : clear
9594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9595 t end
9596 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9597 : end' >>confcache
9598if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9599 if test -w $cache_file; then
e6cc62c6
VS
9600 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9601 cat confcache >$cache_file
10f2d63a
VZ
9602 else
9603 echo "not updating unwritable cache $cache_file"
9604 fi
9605fi
9606rm -f confcache
9607
e59890c3 9608if test "$build" != "$host" ; then
9d353d4a 9609 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9610 CC=$host_alias-gcc
9611 CXX=$host_alias-c++
9612 AR=$host_alias-ar
9613 RANLIB=$host_alias-ranlib
9614 DLLTOOL=$host_alias-dlltool
9615 RESCOMP=$host_alias-windres
9616 LD=$host_alias-ld
9617 NM=$host_alias-nm
9618 STRIP=$host_alias-strip
9619 else
e6cc62c6
VS
9620 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9621echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9622 { (exit 1); exit 1; }; }
3a922bb4 9623 fi
10f2d63a
VZ
9624fi
9625
ec603395 9626CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9627ac_ext=c
9628ac_cpp='$CPP $CPPFLAGS'
9629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9631ac_compiler_gnu=$ac_cv_c_compiler_gnu
9632if test -n "$ac_tool_prefix"; then
9633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9634set dummy ${ac_tool_prefix}gcc; ac_word=$2
9635echo "$as_me:$LINENO: checking for $ac_word" >&5
9636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9637if test "${ac_cv_prog_CC+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639else
9640 if test -n "$CC"; then
9641 ac_cv_prog_CC="$CC" # Let the user override the test.
9642else
9643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644for as_dir in $PATH
9645do
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9653 fi
9654done
9655done
9656
9657fi
9658fi
9659CC=$ac_cv_prog_CC
9660if test -n "$CC"; then
9661 echo "$as_me:$LINENO: result: $CC" >&5
9662echo "${ECHO_T}$CC" >&6
9663else
9664 echo "$as_me:$LINENO: result: no" >&5
9665echo "${ECHO_T}no" >&6
9666fi
9667
9668fi
9669if test -z "$ac_cv_prog_CC"; then
9670 ac_ct_CC=$CC
9671 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9672set dummy gcc; ac_word=$2
e6cc62c6
VS
9673echo "$as_me:$LINENO: checking for $ac_word" >&5
9674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9675if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677else
9678 if test -n "$ac_ct_CC"; then
9679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9680else
9681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682for as_dir in $PATH
9683do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688 ac_cv_prog_ac_ct_CC="gcc"
9689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9691 fi
9692done
9693done
9694
9695fi
9696fi
9697ac_ct_CC=$ac_cv_prog_ac_ct_CC
9698if test -n "$ac_ct_CC"; then
9699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9700echo "${ECHO_T}$ac_ct_CC" >&6
9701else
9702 echo "$as_me:$LINENO: result: no" >&5
9703echo "${ECHO_T}no" >&6
9704fi
9705
9706 CC=$ac_ct_CC
9707else
9708 CC="$ac_cv_prog_CC"
9709fi
9710
9711if test -z "$CC"; then
9712 if test -n "$ac_tool_prefix"; then
9713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9714set dummy ${ac_tool_prefix}cc; ac_word=$2
9715echo "$as_me:$LINENO: checking for $ac_word" >&5
9716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9717if test "${ac_cv_prog_CC+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9719else
9720 if test -n "$CC"; then
9721 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9722else
e6cc62c6
VS
9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9730 ac_cv_prog_CC="${ac_tool_prefix}cc"
9731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9732 break 2
9733 fi
9734done
9735done
9736
10f2d63a 9737fi
6232543b 9738fi
e6cc62c6 9739CC=$ac_cv_prog_CC
6232543b 9740if test -n "$CC"; then
e6cc62c6
VS
9741 echo "$as_me:$LINENO: result: $CC" >&5
9742echo "${ECHO_T}$CC" >&6
9743else
9744 echo "$as_me:$LINENO: result: no" >&5
9745echo "${ECHO_T}no" >&6
9746fi
9747
9748fi
9749if test -z "$ac_cv_prog_CC"; then
9750 ac_ct_CC=$CC
9751 # Extract the first word of "cc", so it can be a program name with args.
9752set dummy cc; ac_word=$2
9753echo "$as_me:$LINENO: checking for $ac_word" >&5
9754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9755if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757else
9758 if test -n "$ac_ct_CC"; then
9759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9760else
9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762for as_dir in $PATH
9763do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768 ac_cv_prog_ac_ct_CC="cc"
9769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9771 fi
9772done
9773done
9774
9775fi
9776fi
9777ac_ct_CC=$ac_cv_prog_ac_ct_CC
9778if test -n "$ac_ct_CC"; then
9779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9780echo "${ECHO_T}$ac_ct_CC" >&6
9781else
9782 echo "$as_me:$LINENO: result: no" >&5
9783echo "${ECHO_T}no" >&6
9784fi
9785
9786 CC=$ac_ct_CC
247f5006 9787else
e6cc62c6 9788 CC="$ac_cv_prog_CC"
247f5006
VZ
9789fi
9790
e6cc62c6 9791fi
5c6fa7d2
RR
9792if test -z "$CC"; then
9793 # Extract the first word of "cc", so it can be a program name with args.
9794set dummy cc; ac_word=$2
e6cc62c6
VS
9795echo "$as_me:$LINENO: checking for $ac_word" >&5
9796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9797if test "${ac_cv_prog_CC+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9799else
9800 if test -n "$CC"; then
9801 ac_cv_prog_CC="$CC" # Let the user override the test.
9802else
9803 ac_prog_rejected=no
e6cc62c6
VS
9804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805for as_dir in $PATH
9806do
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9812 ac_prog_rejected=yes
9813 continue
9814 fi
9815 ac_cv_prog_CC="cc"
9816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 break 2
9818 fi
9819done
9820done
9821
328a083c
RR
9822if test $ac_prog_rejected = yes; then
9823 # We found a bogon in the path, so make sure we never use it.
9824 set dummy $ac_cv_prog_CC
9825 shift
e6cc62c6 9826 if test $# != 0; then
328a083c 9827 # We chose a different compiler from the bogus one.
1e487827
VS
9828 # However, it has the same basename, so the bogon will be chosen
9829 # first if we set CC to just the basename; use the full file name.
9830 shift
e6cc62c6 9831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9832 fi
1e487827
VS
9833fi
9834fi
9835fi
e6cc62c6 9836CC=$ac_cv_prog_CC
1e487827 9837if test -n "$CC"; then
e6cc62c6
VS
9838 echo "$as_me:$LINENO: result: $CC" >&5
9839echo "${ECHO_T}$CC" >&6
703e0a69 9840else
e6cc62c6
VS
9841 echo "$as_me:$LINENO: result: no" >&5
9842echo "${ECHO_T}no" >&6
703e0a69 9843fi
1e487827 9844
e6cc62c6
VS
9845fi
9846if test -z "$CC"; then
9847 if test -n "$ac_tool_prefix"; then
9848 for ac_prog in cl
9849 do
9850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9851set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9852echo "$as_me:$LINENO: checking for $ac_word" >&5
9853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9854if test "${ac_cv_prog_CC+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9856else
9857 if test -n "$CC"; then
9858 ac_cv_prog_CC="$CC" # Let the user override the test.
9859else
e6cc62c6
VS
9860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861for as_dir in $PATH
9862do
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 break 2
9870 fi
9871done
9872done
9873
f09359cf
VS
9874fi
9875fi
e6cc62c6 9876CC=$ac_cv_prog_CC
f09359cf 9877if test -n "$CC"; then
e6cc62c6
VS
9878 echo "$as_me:$LINENO: result: $CC" >&5
9879echo "${ECHO_T}$CC" >&6
f09359cf 9880else
e6cc62c6
VS
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
5c6fa7d2 9883fi
1e487827 9884
e6cc62c6
VS
9885 test -n "$CC" && break
9886 done
9887fi
9888if test -z "$CC"; then
9889 ac_ct_CC=$CC
9890 for ac_prog in cl
9891do
9892 # Extract the first word of "$ac_prog", so it can be a program name with args.
9893set dummy $ac_prog; ac_word=$2
9894echo "$as_me:$LINENO: checking for $ac_word" >&5
9895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9896if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899 if test -n "$ac_ct_CC"; then
9900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9901else
9902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903for as_dir in $PATH
9904do
9905 IFS=$as_save_IFS
9906 test -z "$as_dir" && as_dir=.
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9909 ac_cv_prog_ac_ct_CC="$ac_prog"
9910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 break 2
9912 fi
9913done
9914done
f09359cf 9915
e6cc62c6
VS
9916fi
9917fi
9918ac_ct_CC=$ac_cv_prog_ac_ct_CC
9919if test -n "$ac_ct_CC"; then
9920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9921echo "${ECHO_T}$ac_ct_CC" >&6
9922else
9923 echo "$as_me:$LINENO: result: no" >&5
9924echo "${ECHO_T}no" >&6
9925fi
f09359cf 9926
e6cc62c6
VS
9927 test -n "$ac_ct_CC" && break
9928done
247f5006 9929
e6cc62c6
VS
9930 CC=$ac_ct_CC
9931fi
9932
9933fi
9934
9935
9936test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9937See \`config.log' for more details." >&5
9938echo "$as_me: error: no acceptable C compiler found in \$PATH
9939See \`config.log' for more details." >&2;}
9940 { (exit 1); exit 1; }; }
9941
9942# Provide some information about the compiler.
9943echo "$as_me:$LINENO:" \
9944 "checking for C compiler version" >&5
9945ac_compiler=`set X $ac_compile; echo $2`
9946{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9947 (eval $ac_compiler --version </dev/null >&5) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }
9951{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9952 (eval $ac_compiler -v </dev/null >&5) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }
9956{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9957 (eval $ac_compiler -V </dev/null >&5) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }
9961
9962cat >conftest.$ac_ext <<_ACEOF
9963#line $LINENO "configure"
9964/* confdefs.h. */
9965_ACEOF
9966cat confdefs.h >>conftest.$ac_ext
9967cat >>conftest.$ac_ext <<_ACEOF
9968/* end confdefs.h. */
9969
9970int
9971main ()
9972{
247f5006 9973
e6cc62c6
VS
9974 ;
9975 return 0;
9976}
9977_ACEOF
9978ac_clean_files_save=$ac_clean_files
9979ac_clean_files="$ac_clean_files a.out a.exe b.out"
9980# Try to create an executable without -o first, disregard a.out.
9981# It will help us diagnose broken compilers, and finding out an intuition
9982# of exeext.
9983echo "$as_me:$LINENO: checking for C compiler default output" >&5
9984echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
9985ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9986if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
9987 (eval $ac_link_default) 2>&5
9988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; then
9991 # Find the output, starting from the most likely. This scheme is
9992# not robust to junk in `.', hence go to wildcards (a.*) only as a last
9993# resort.
9994
9995# Be careful to initialize this variable, since it used to be cached.
9996# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
9997ac_cv_exeext=
9998# b.out is created by i960 compilers.
9999for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10000do
10001 test -f "$ac_file" || continue
10002 case $ac_file in
10003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10004 ;;
10005 conftest.$ac_ext )
10006 # This is the source file.
10007 ;;
10008 [ab].out )
10009 # We found the default executable, but exeext='' is most
10010 # certainly right.
10011 break;;
10012 *.* )
10013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10014 # FIXME: I believe we export ac_cv_exeext for Libtool,
10015 # but it would be cool to find out if it's true. Does anybody
10016 # maintain Libtool? --akim.
10017 export ac_cv_exeext
10018 break;;
10019 * )
10020 break;;
10021 esac
10022done
10023else
10024 echo "$as_me: failed program was:" >&5
10025sed 's/^/| /' conftest.$ac_ext >&5
10026
10027{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10028See \`config.log' for more details." >&5
10029echo "$as_me: error: C compiler cannot create executables
10030See \`config.log' for more details." >&2;}
10031 { (exit 77); exit 77; }; }
10032fi
10033
10034ac_exeext=$ac_cv_exeext
10035echo "$as_me:$LINENO: result: $ac_file" >&5
10036echo "${ECHO_T}$ac_file" >&6
10037
10038# Check the compiler produces executables we can run. If not, either
10039# the compiler is broken, or we cross compile.
10040echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10041echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10042# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10043# If not cross compiling, check that we can run a simple program.
10044if test "$cross_compiling" != yes; then
10045 if { ac_try='./$ac_file'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 cross_compiling=no
698dcdb6 10052 else
e6cc62c6
VS
10053 if test "$cross_compiling" = maybe; then
10054 cross_compiling=yes
10055 else
10056 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10057If you meant to cross compile, use \`--host'.
10058See \`config.log' for more details." >&5
10059echo "$as_me: error: cannot run C compiled programs.
10060If you meant to cross compile, use \`--host'.
10061See \`config.log' for more details." >&2;}
10062 { (exit 1); exit 1; }; }
10063 fi
698dcdb6 10064 fi
52127426 10065fi
e6cc62c6
VS
10066echo "$as_me:$LINENO: result: yes" >&5
10067echo "${ECHO_T}yes" >&6
10068
10069rm -f a.out a.exe conftest$ac_cv_exeext b.out
10070ac_clean_files=$ac_clean_files_save
10071# Check the compiler produces executables we can run. If not, either
10072# the compiler is broken, or we cross compile.
10073echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10074echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10075echo "$as_me:$LINENO: result: $cross_compiling" >&5
10076echo "${ECHO_T}$cross_compiling" >&6
10077
10078echo "$as_me:$LINENO: checking for suffix of executables" >&5
10079echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; then
10085 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10086# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10087# work properly (i.e., refer to `conftest.exe'), while it won't with
10088# `rm'.
10089for ac_file in conftest.exe conftest conftest.*; do
10090 test -f "$ac_file" || continue
10091 case $ac_file in
10092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10093 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10094 export ac_cv_exeext
10095 break;;
10096 * ) break;;
10097 esac
10098done
5c6fa7d2 10099else
e6cc62c6
VS
10100 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10101See \`config.log' for more details." >&5
10102echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10103See \`config.log' for more details." >&2;}
10104 { (exit 1); exit 1; }; }
10105fi
10106
10107rm -f conftest$ac_cv_exeext
10108echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10109echo "${ECHO_T}$ac_cv_exeext" >&6
10110
10111rm -f conftest.$ac_ext
10112EXEEXT=$ac_cv_exeext
10113ac_exeext=$EXEEXT
10114echo "$as_me:$LINENO: checking for suffix of object files" >&5
10115echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10116if test "${ac_cv_objext+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118else
10119 cat >conftest.$ac_ext <<_ACEOF
10120#line $LINENO "configure"
10121/* confdefs.h. */
10122_ACEOF
10123cat confdefs.h >>conftest.$ac_ext
10124cat >>conftest.$ac_ext <<_ACEOF
10125/* end confdefs.h. */
10126
10127int
10128main ()
10129{
f09359cf 10130
e6cc62c6
VS
10131 ;
10132 return 0;
10133}
10134_ACEOF
10135rm -f conftest.o conftest.obj
10136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; then
10141 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10142 case $ac_file in
10143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10145 break;;
10146 esac
10147done
a0b9e27f 10148else
e6cc62c6
VS
10149 echo "$as_me: failed program was:" >&5
10150sed 's/^/| /' conftest.$ac_ext >&5
10151
10152{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10153See \`config.log' for more details." >&5
10154echo "$as_me: error: cannot compute suffix of object files: cannot compile
10155See \`config.log' for more details." >&2;}
10156 { (exit 1); exit 1; }; }
a0b9e27f 10157fi
247f5006 10158
e6cc62c6
VS
10159rm -f conftest.$ac_cv_objext conftest.$ac_ext
10160fi
10161echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10162echo "${ECHO_T}$ac_cv_objext" >&6
10163OBJEXT=$ac_cv_objext
10164ac_objext=$OBJEXT
10165echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10166echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10167if test "${ac_cv_c_compiler_gnu+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10169else
e6cc62c6
VS
10170 cat >conftest.$ac_ext <<_ACEOF
10171#line $LINENO "configure"
10172/* confdefs.h. */
10173_ACEOF
10174cat confdefs.h >>conftest.$ac_ext
10175cat >>conftest.$ac_ext <<_ACEOF
10176/* end confdefs.h. */
10177
10178int
10179main ()
10180{
10181#ifndef __GNUC__
10182 choke me
10183#endif
10184
10185 ;
10186 return 0;
10187}
10188_ACEOF
10189rm -f conftest.$ac_objext
10190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191 (eval $ac_compile) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_compiler_gnu=yes
10202else
10203 echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206ac_compiler_gnu=no
10207fi
10208rm -f conftest.$ac_objext conftest.$ac_ext
10209ac_cv_c_compiler_gnu=$ac_compiler_gnu
10210
10211fi
10212echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10213echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10214GCC=`test $ac_compiler_gnu = yes && echo yes`
10215ac_test_CFLAGS=${CFLAGS+set}
10216ac_save_CFLAGS=$CFLAGS
10217CFLAGS="-g"
10218echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10219echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10220if test "${ac_cv_prog_cc_g+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222else
10223 cat >conftest.$ac_ext <<_ACEOF
10224#line $LINENO "configure"
10225/* confdefs.h. */
10226_ACEOF
10227cat confdefs.h >>conftest.$ac_ext
10228cat >>conftest.$ac_ext <<_ACEOF
10229/* end confdefs.h. */
10230
10231int
10232main ()
10233{
10234
10235 ;
10236 return 0;
10237}
10238_ACEOF
10239rm -f conftest.$ac_objext
10240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10f2d63a
VZ
10251 ac_cv_prog_cc_g=yes
10252else
e6cc62c6
VS
10253 echo "$as_me: failed program was:" >&5
10254sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10255
e6cc62c6 10256ac_cv_prog_cc_g=no
10f2d63a 10257fi
e6cc62c6
VS
10258rm -f conftest.$ac_objext conftest.$ac_ext
10259fi
10260echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10261echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10262if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10263 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10264elif test $ac_cv_prog_cc_g = yes; then
10265 if test "$GCC" = yes; then
10f2d63a
VZ
10266 CFLAGS="-g -O2"
10267 else
f09359cf 10268 CFLAGS="-g"
10f2d63a 10269 fi
5c0a20c3 10270else
f09359cf
VS
10271 if test "$GCC" = yes; then
10272 CFLAGS="-O2"
10273 else
10274 CFLAGS=
10275 fi
10f2d63a 10276fi
e6cc62c6
VS
10277echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10278echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10279if test "${ac_cv_prog_cc_stdc+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282 ac_cv_prog_cc_stdc=no
10283ac_save_CC=$CC
10284cat >conftest.$ac_ext <<_ACEOF
10285#line $LINENO "configure"
10286/* confdefs.h. */
10287_ACEOF
10288cat confdefs.h >>conftest.$ac_ext
10289cat >>conftest.$ac_ext <<_ACEOF
10290/* end confdefs.h. */
10291#include <stdarg.h>
10292#include <stdio.h>
10293#include <sys/types.h>
10294#include <sys/stat.h>
10295/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10296struct buf { int x; };
10297FILE * (*rcsopen) (struct buf *, struct stat *, int);
10298static char *e (p, i)
10299 char **p;
10300 int i;
10301{
10302 return p[i];
10303}
10304static char *f (char * (*g) (char **, int), char **p, ...)
10305{
10306 char *s;
10307 va_list v;
10308 va_start (v,p);
10309 s = g (p, va_arg (v,int));
10310 va_end (v);
10311 return s;
10312}
10313int test (int i, double x);
10314struct s1 {int (*f) (int a);};
10315struct s2 {int (*f) (double a);};
10316int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10317int argc;
10318char **argv;
10319int
10320main ()
10321{
10322return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10323 ;
10324 return 0;
10325}
10326_ACEOF
10327# Don't try gcc -ansi; that turns off useful extensions and
10328# breaks some systems' header files.
10329# AIX -qlanglvl=ansi
10330# Ultrix and OSF/1 -std1
10331# HP-UX 10.20 and later -Ae
10332# HP-UX older versions -Aa -D_HPUX_SOURCE
10333# SVR4 -Xc -D__EXTENSIONS__
10334for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10335do
10336 CC="$ac_save_CC $ac_arg"
10337 rm -f conftest.$ac_objext
10338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10339 (eval $ac_compile) 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -s conftest.$ac_objext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 ac_cv_prog_cc_stdc=$ac_arg
10350break
10351else
10352 echo "$as_me: failed program was:" >&5
10353sed 's/^/| /' conftest.$ac_ext >&5
10354
10355fi
10356rm -f conftest.$ac_objext
10357done
10358rm -f conftest.$ac_ext conftest.$ac_objext
10359CC=$ac_save_CC
10360
10361fi
10362
10363case "x$ac_cv_prog_cc_stdc" in
10364 x|xno)
10365 echo "$as_me:$LINENO: result: none needed" >&5
10366echo "${ECHO_T}none needed" >&6 ;;
10367 *)
10368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10369echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10370 CC="$CC $ac_cv_prog_cc_stdc" ;;
10371esac
10372
10373# Some people use a C++ compiler to compile C. Since we use `exit',
10374# in C++ we need to declare it. In case someone uses the same compiler
10375# for both compiling C and C++ we need to have the C++ compiler decide
10376# the declaration of exit, since it's the most demanding environment.
10377cat >conftest.$ac_ext <<_ACEOF
10378#ifndef __cplusplus
10379 choke me
10380#endif
10381_ACEOF
10382rm -f conftest.$ac_objext
10383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384 (eval $ac_compile) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 for ac_declaration in \
6f628073
VS
10395 ''\
10396 '#include <stdlib.h>' \
e6cc62c6
VS
10397 'extern "C" void std::exit (int) throw (); using std::exit;' \
10398 'extern "C" void std::exit (int); using std::exit;' \
10399 'extern "C" void exit (int) throw ();' \
10400 'extern "C" void exit (int);' \
10401 'void exit (int);'
10402do
10403 cat >conftest.$ac_ext <<_ACEOF
10404#line $LINENO "configure"
10405/* confdefs.h. */
10406_ACEOF
10407cat confdefs.h >>conftest.$ac_ext
10408cat >>conftest.$ac_ext <<_ACEOF
10409/* end confdefs.h. */
71e83a03 10410#include <stdlib.h>
6f628073 10411$ac_declaration
e6cc62c6
VS
10412int
10413main ()
10414{
10415exit (42);
10416 ;
10417 return 0;
10418}
10419_ACEOF
10420rm -f conftest.$ac_objext
10421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422 (eval $ac_compile) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } &&
10426 { ac_try='test -s conftest.$ac_objext'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 :
10433else
10434 echo "$as_me: failed program was:" >&5
10435sed 's/^/| /' conftest.$ac_ext >&5
10436
10437continue
10438fi
10439rm -f conftest.$ac_objext conftest.$ac_ext
10440 cat >conftest.$ac_ext <<_ACEOF
10441#line $LINENO "configure"
10442/* confdefs.h. */
10443_ACEOF
10444cat confdefs.h >>conftest.$ac_ext
10445cat >>conftest.$ac_ext <<_ACEOF
10446/* end confdefs.h. */
10447$ac_declaration
10448int
10449main ()
10450{
10451exit (42);
10452 ;
10453 return 0;
10454}
10455_ACEOF
10456rm -f conftest.$ac_objext
10457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458 (eval $ac_compile) 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } &&
10462 { ac_try='test -s conftest.$ac_objext'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 break
10469else
10470 echo "$as_me: failed program was:" >&5
10471sed 's/^/| /' conftest.$ac_ext >&5
10472
10473fi
10474rm -f conftest.$ac_objext conftest.$ac_ext
10475done
10476rm -f conftest*
10477if test -n "$ac_declaration"; then
10478 echo '#ifdef __cplusplus' >>confdefs.h
10479 echo $ac_declaration >>confdefs.h
10480 echo '#endif' >>confdefs.h
10481fi
10482
10483else
10484 echo "$as_me: failed program was:" >&5
10485sed 's/^/| /' conftest.$ac_ext >&5
10486
10487fi
10488rm -f conftest.$ac_objext conftest.$ac_ext
10489ac_ext=c
10490ac_cpp='$CPP $CPPFLAGS'
10491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10493ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10494
10495
e6cc62c6
VS
10496
10497ac_ext=c
10498ac_cpp='$CPP $CPPFLAGS'
10499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10501ac_compiler_gnu=$ac_cv_c_compiler_gnu
10502echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10503echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10504# On Suns, sometimes $CPP names a directory.
10505if test -n "$CPP" && test -d "$CPP"; then
10506 CPP=
10507fi
10508if test -z "$CPP"; then
e6cc62c6
VS
10509 if test "${ac_cv_prog_CPP+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511else
10512 # Double quotes because CPP needs to be expanded
10513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10514 do
10515 ac_preproc_ok=false
10516for ac_c_preproc_warn_flag in '' yes
10517do
10518 # Use a header file that comes with gcc, so configuring glibc
10519 # with a fresh cross-compiler works.
10520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10521 # <limits.h> exists even on freestanding compilers.
10f2d63a 10522 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10523 # not just through cpp. "Syntax error" is here to catch this case.
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. */
10531#ifdef __STDC__
10532# include <limits.h>
10533#else
10534# include <assert.h>
10535#endif
10536 Syntax error
10537_ACEOF
10538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } >/dev/null; then
10546 if test -s conftest.err; then
10547 ac_cpp_err=$ac_c_preproc_warn_flag
10548 else
10549 ac_cpp_err=
10550 fi
10f2d63a 10551else
e6cc62c6
VS
10552 ac_cpp_err=yes
10553fi
10554if test -z "$ac_cpp_err"; then
a0b9e27f 10555 :
247f5006 10556else
e6cc62c6
VS
10557 echo "$as_me: failed program was:" >&5
10558sed 's/^/| /' conftest.$ac_ext >&5
10559
10560 # Broken: fails on valid input.
10561continue
10562fi
10563rm -f conftest.err conftest.$ac_ext
10564
10565 # OK, works on sane cases. Now check whether non-existent headers
10566 # can be detected and how.
10567 cat >conftest.$ac_ext <<_ACEOF
10568#line $LINENO "configure"
10569/* confdefs.h. */
10570_ACEOF
10571cat confdefs.h >>conftest.$ac_ext
10572cat >>conftest.$ac_ext <<_ACEOF
10573/* end confdefs.h. */
10574#include <ac_nonexistent.h>
10575_ACEOF
10576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } >/dev/null; then
10584 if test -s conftest.err; then
10585 ac_cpp_err=$ac_c_preproc_warn_flag
10586 else
10587 ac_cpp_err=
10588 fi
10f2d63a 10589else
e6cc62c6 10590 ac_cpp_err=yes
579d8138 10591fi
e6cc62c6
VS
10592if test -z "$ac_cpp_err"; then
10593 # Broken: success on invalid input.
10594continue
10595else
10596 echo "$as_me: failed program was:" >&5
10597sed 's/^/| /' conftest.$ac_ext >&5
10598
10599 # Passes both tests.
10600ac_preproc_ok=:
10601break
52127426 10602fi
e6cc62c6
VS
10603rm -f conftest.err conftest.$ac_ext
10604
10605done
10606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10607rm -f conftest.err conftest.$ac_ext
10608if $ac_preproc_ok; then
10609 break
8284b0c5 10610fi
e6cc62c6
VS
10611
10612 done
10613 ac_cv_prog_CPP=$CPP
10614
10615fi
10616 CPP=$ac_cv_prog_CPP
10617else
10618 ac_cv_prog_CPP=$CPP
10619fi
10620echo "$as_me:$LINENO: result: $CPP" >&5
10621echo "${ECHO_T}$CPP" >&6
10622ac_preproc_ok=false
10623for ac_c_preproc_warn_flag in '' yes
10624do
10625 # Use a header file that comes with gcc, so configuring glibc
10626 # with a fresh cross-compiler works.
10627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10628 # <limits.h> exists even on freestanding compilers.
10629 # On the NeXT, cc -E runs the code through the compiler's parser,
10630 # not just through cpp. "Syntax error" is here to catch this case.
10631 cat >conftest.$ac_ext <<_ACEOF
10632#line $LINENO "configure"
10633/* confdefs.h. */
10634_ACEOF
10635cat confdefs.h >>conftest.$ac_ext
10636cat >>conftest.$ac_ext <<_ACEOF
10637/* end confdefs.h. */
10638#ifdef __STDC__
10639# include <limits.h>
10640#else
10641# include <assert.h>
10642#endif
10643 Syntax error
10644_ACEOF
10645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } >/dev/null; then
10653 if test -s conftest.err; then
10654 ac_cpp_err=$ac_c_preproc_warn_flag
10655 else
10656 ac_cpp_err=
10657 fi
10658else
10659 ac_cpp_err=yes
10660fi
10661if test -z "$ac_cpp_err"; then
10662 :
10663else
10664 echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667 # Broken: fails on valid input.
10668continue
10669fi
10670rm -f conftest.err conftest.$ac_ext
10671
10672 # OK, works on sane cases. Now check whether non-existent headers
10673 # can be detected and how.
10674 cat >conftest.$ac_ext <<_ACEOF
10675#line $LINENO "configure"
10676/* confdefs.h. */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */
10681#include <ac_nonexistent.h>
10682_ACEOF
10683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } >/dev/null; then
10691 if test -s conftest.err; then
10692 ac_cpp_err=$ac_c_preproc_warn_flag
10693 else
10694 ac_cpp_err=
10695 fi
10696else
10697 ac_cpp_err=yes
10698fi
10699if test -z "$ac_cpp_err"; then
10700 # Broken: success on invalid input.
10701continue
10702else
10703 echo "$as_me: failed program was:" >&5
10704sed 's/^/| /' conftest.$ac_ext >&5
10705
10706 # Passes both tests.
10707ac_preproc_ok=:
10708break
a0b9e27f 10709fi
e6cc62c6
VS
10710rm -f conftest.err conftest.$ac_ext
10711
10712done
10713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10714rm -f conftest.err conftest.$ac_ext
10715if $ac_preproc_ok; then
10716 :
10717else
10718 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10719See \`config.log' for more details." >&5
10720echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10721See \`config.log' for more details." >&2;}
10722 { (exit 1); exit 1; }; }
10723fi
10724
10725ac_ext=c
10726ac_cpp='$CPP $CPPFLAGS'
10727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10729ac_compiler_gnu=$ac_cv_c_compiler_gnu
10730
10731
10732echo "$as_me:$LINENO: checking for egrep" >&5
10733echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10734if test "${ac_cv_prog_egrep+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10736else
e6cc62c6
VS
10737 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10738 then ac_cv_prog_egrep='grep -E'
10739 else ac_cv_prog_egrep='egrep'
10740 fi
10f2d63a 10741fi
e6cc62c6
VS
10742echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10743echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10744 EGREP=$ac_cv_prog_egrep
10745
10f2d63a 10746
e6cc62c6
VS
10747if test $ac_cv_c_compiler_gnu = yes; then
10748 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10749echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10750if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10752else
10753 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10754 cat >conftest.$ac_ext <<_ACEOF
10755#line $LINENO "configure"
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10f2d63a
VZ
10761#include <sgtty.h>
10762Autoconf TIOCGETP
e6cc62c6 10763_ACEOF
10f2d63a 10764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10765 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10766 ac_cv_prog_gcc_traditional=yes
10767else
10f2d63a
VZ
10768 ac_cv_prog_gcc_traditional=no
10769fi
10770rm -f conftest*
10771
8284b0c5 10772
10f2d63a 10773 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10774 cat >conftest.$ac_ext <<_ACEOF
10775#line $LINENO "configure"
10776/* confdefs.h. */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
10780/* end confdefs.h. */
10f2d63a
VZ
10781#include <termio.h>
10782Autoconf TCGETA
e6cc62c6 10783_ACEOF
10f2d63a 10784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10785 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10786 ac_cv_prog_gcc_traditional=yes
10787fi
10788rm -f conftest*
10789
10790 fi
10791fi
e6cc62c6
VS
10792echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10793echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10794 if test $ac_cv_prog_gcc_traditional = yes; then
10795 CC="$CC -traditional"
10796 fi
10797fi
10798
8284b0c5
MB
10799
10800
e6cc62c6
VS
10801
10802ac_ext=cc
1e487827 10803ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10807
698dcdb6 10808
ec603395 10809CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10810ac_ext=cc
10811ac_cpp='$CXXCPP $CPPFLAGS'
10812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10815if test -n "$ac_tool_prefix"; then
10816 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10817 do
10818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10820echo "$as_me:$LINENO: checking for $ac_word" >&5
10821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10822if test "${ac_cv_prog_CXX+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10824else
10825 if test -n "$CXX"; then
10826 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10827else
e6cc62c6
VS
10828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829for as_dir in $PATH
10830do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10835 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10838 fi
10839done
10840done
10841
10f2d63a
VZ
10842fi
10843fi
e6cc62c6 10844CXX=$ac_cv_prog_CXX
10f2d63a 10845if test -n "$CXX"; then
e6cc62c6
VS
10846 echo "$as_me:$LINENO: result: $CXX" >&5
10847echo "${ECHO_T}$CXX" >&6
10f2d63a 10848else
e6cc62c6
VS
10849 echo "$as_me:$LINENO: result: no" >&5
10850echo "${ECHO_T}no" >&6
10f2d63a
VZ
10851fi
10852
e6cc62c6
VS
10853 test -n "$CXX" && break
10854 done
10855fi
10856if test -z "$CXX"; then
10857 ac_ct_CXX=$CXX
10858 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10859do
10860 # Extract the first word of "$ac_prog", so it can be a program name with args.
10861set dummy $ac_prog; ac_word=$2
10862echo "$as_me:$LINENO: checking for $ac_word" >&5
10863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10864if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866else
10867 if test -n "$ac_ct_CXX"; then
10868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10869else
10870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH
10872do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10877 ac_cv_prog_ac_ct_CXX="$ac_prog"
10878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 break 2
10880 fi
10881done
10f2d63a 10882done
a0b9e27f 10883
8284b0c5 10884fi
a0b9e27f 10885fi
e6cc62c6
VS
10886ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10887if test -n "$ac_ct_CXX"; then
10888 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10889echo "${ECHO_T}$ac_ct_CXX" >&6
10890else
10891 echo "$as_me:$LINENO: result: no" >&5
10892echo "${ECHO_T}no" >&6
a0b9e27f 10893fi
10f2d63a 10894
e6cc62c6
VS
10895 test -n "$ac_ct_CXX" && break
10896done
10897test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10898
10899 CXX=$ac_ct_CXX
10900fi
10901
10902
10903# Provide some information about the compiler.
10904echo "$as_me:$LINENO:" \
10905 "checking for C++ compiler version" >&5
10906ac_compiler=`set X $ac_compile; echo $2`
10907{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10908 (eval $ac_compiler --version </dev/null >&5) 2>&5
10909 ac_status=$?
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }
10912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10913 (eval $ac_compiler -v </dev/null >&5) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }
10917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10918 (eval $ac_compiler -V </dev/null >&5) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }
10922
10923echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10924echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10925if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 cat >conftest.$ac_ext <<_ACEOF
10929#line $LINENO "configure"
10930/* confdefs.h. */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h. */
10935
10936int
10937main ()
10938{
10939#ifndef __GNUC__
10940 choke me
10941#endif
10f2d63a 10942
e6cc62c6
VS
10943 ;
10944 return 0;
10945}
10946_ACEOF
10947rm -f conftest.$ac_objext
10948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10949 (eval $ac_compile) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 ac_compiler_gnu=yes
10960else
10961 echo "$as_me: failed program was:" >&5
10962sed 's/^/| /' conftest.$ac_ext >&5
10963
10964ac_compiler_gnu=no
10965fi
10966rm -f conftest.$ac_objext conftest.$ac_ext
10967ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10968
10969fi
10970echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10971echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
10972GXX=`test $ac_compiler_gnu = yes && echo yes`
10973ac_test_CXXFLAGS=${CXXFLAGS+set}
10974ac_save_CXXFLAGS=$CXXFLAGS
10975CXXFLAGS="-g"
10976echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10977echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
10978if test "${ac_cv_prog_cxx_g+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10980else
10981 cat >conftest.$ac_ext <<_ACEOF
10982#line $LINENO "configure"
10983/* confdefs.h. */
10984_ACEOF
10985cat confdefs.h >>conftest.$ac_ext
10986cat >>conftest.$ac_ext <<_ACEOF
10987/* end confdefs.h. */
10988
10989int
10990main ()
10991{
f09359cf 10992
e6cc62c6
VS
10993 ;
10994 return 0;
10995}
10996_ACEOF
10997rm -f conftest.$ac_objext
10998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10999 (eval $ac_compile) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
11003 { ac_try='test -s conftest.$ac_objext'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
10f2d63a
VZ
11009 ac_cv_prog_cxx_g=yes
11010else
e6cc62c6
VS
11011 echo "$as_me: failed program was:" >&5
11012sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11013
e6cc62c6 11014ac_cv_prog_cxx_g=no
10f2d63a 11015fi
e6cc62c6
VS
11016rm -f conftest.$ac_objext conftest.$ac_ext
11017fi
11018echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11019echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11020if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11021 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11022elif test $ac_cv_prog_cxx_g = yes; then
11023 if test "$GXX" = yes; then
10f2d63a
VZ
11024 CXXFLAGS="-g -O2"
11025 else
f09359cf 11026 CXXFLAGS="-g"
10f2d63a 11027 fi
5c0a20c3 11028else
f09359cf
VS
11029 if test "$GXX" = yes; then
11030 CXXFLAGS="-O2"
11031 else
11032 CXXFLAGS=
11033 fi
10f2d63a 11034fi
e6cc62c6 11035for ac_declaration in \
6f628073
VS
11036 ''\
11037 '#include <stdlib.h>' \
e6cc62c6
VS
11038 'extern "C" void std::exit (int) throw (); using std::exit;' \
11039 'extern "C" void std::exit (int); using std::exit;' \
11040 'extern "C" void exit (int) throw ();' \
11041 'extern "C" void exit (int);' \
11042 'void exit (int);'
11043do
11044 cat >conftest.$ac_ext <<_ACEOF
11045#line $LINENO "configure"
11046/* confdefs.h. */
11047_ACEOF
11048cat confdefs.h >>conftest.$ac_ext
11049cat >>conftest.$ac_ext <<_ACEOF
11050/* end confdefs.h. */
71e83a03 11051#include <stdlib.h>
6f628073 11052$ac_declaration
e6cc62c6
VS
11053int
11054main ()
11055{
11056exit (42);
11057 ;
11058 return 0;
11059}
11060_ACEOF
11061rm -f conftest.$ac_objext
11062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11063 (eval $ac_compile) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } &&
11067 { ac_try='test -s conftest.$ac_objext'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 :
11074else
11075 echo "$as_me: failed program was:" >&5
11076sed 's/^/| /' conftest.$ac_ext >&5
11077
11078continue
11079fi
11080rm -f conftest.$ac_objext conftest.$ac_ext
11081 cat >conftest.$ac_ext <<_ACEOF
11082#line $LINENO "configure"
11083/* confdefs.h. */
11084_ACEOF
11085cat confdefs.h >>conftest.$ac_ext
11086cat >>conftest.$ac_ext <<_ACEOF
11087/* end confdefs.h. */
11088$ac_declaration
11089int
11090main ()
11091{
11092exit (42);
11093 ;
11094 return 0;
11095}
11096_ACEOF
11097rm -f conftest.$ac_objext
11098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099 (eval $ac_compile) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -s conftest.$ac_objext'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11109 break
11110else
11111 echo "$as_me: failed program was:" >&5
11112sed 's/^/| /' conftest.$ac_ext >&5
11113
11114fi
11115rm -f conftest.$ac_objext conftest.$ac_ext
11116done
11117rm -f conftest*
11118if test -n "$ac_declaration"; then
11119 echo '#ifdef __cplusplus' >>confdefs.h
11120 echo $ac_declaration >>confdefs.h
11121 echo '#endif' >>confdefs.h
11122fi
11123
11124ac_ext=cc
11125ac_cpp='$CXXCPP $CPPFLAGS'
11126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11129
11130
10f2d63a 11131ac_ext=c
10f2d63a 11132ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11135ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11136
11137
e6cc62c6
VS
11138if test -n "$ac_tool_prefix"; then
11139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11140set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11141echo "$as_me:$LINENO: checking for $ac_word" >&5
11142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11143if test "${ac_cv_prog_RANLIB+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11145else
11146 if test -n "$RANLIB"; then
11147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11148else
e6cc62c6
VS
11149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150for as_dir in $PATH
11151do
11152 IFS=$as_save_IFS
11153 test -z "$as_dir" && as_dir=.
11154 for ac_exec_ext in '' $ac_executable_extensions; do
11155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 break 2
11159 fi
11160done
11161done
11162
10f2d63a
VZ
11163fi
11164fi
e6cc62c6 11165RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11166if test -n "$RANLIB"; then
e6cc62c6
VS
11167 echo "$as_me:$LINENO: result: $RANLIB" >&5
11168echo "${ECHO_T}$RANLIB" >&6
11169else
11170 echo "$as_me:$LINENO: result: no" >&5
11171echo "${ECHO_T}no" >&6
11172fi
11173
11174fi
11175if test -z "$ac_cv_prog_RANLIB"; then
11176 ac_ct_RANLIB=$RANLIB
11177 # Extract the first word of "ranlib", so it can be a program name with args.
11178set dummy ranlib; ac_word=$2
11179echo "$as_me:$LINENO: checking for $ac_word" >&5
11180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11181if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11183else
e6cc62c6
VS
11184 if test -n "$ac_ct_RANLIB"; then
11185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11186else
11187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11194 ac_cv_prog_ac_ct_RANLIB="ranlib"
11195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11197 fi
11198done
11199done
11200
11201 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11202fi
11203fi
11204ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11205if test -n "$ac_ct_RANLIB"; then
11206 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11207echo "${ECHO_T}$ac_ct_RANLIB" >&6
11208else
11209 echo "$as_me:$LINENO: result: no" >&5
11210echo "${ECHO_T}no" >&6
11211fi
11212
11213 RANLIB=$ac_ct_RANLIB
11214else
11215 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11216fi
11217
10f2d63a
VZ
11218
11219# Extract the first word of "ar", so it can be a program name with args.
11220set dummy ar; ac_word=$2
e6cc62c6
VS
11221echo "$as_me:$LINENO: checking for $ac_word" >&5
11222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11223if test "${ac_cv_prog_AR+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11225else
11226 if test -n "$AR"; then
11227 ac_cv_prog_AR="$AR" # Let the user override the test.
11228else
e6cc62c6
VS
11229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230for as_dir in $PATH
11231do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11236 ac_cv_prog_AR="ar"
11237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11239 fi
11240done
11241done
11242
10f2d63a
VZ
11243 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11244fi
11245fi
e6cc62c6 11246AR=$ac_cv_prog_AR
10f2d63a 11247if test -n "$AR"; then
e6cc62c6
VS
11248 echo "$as_me:$LINENO: result: $AR" >&5
11249echo "${ECHO_T}$AR" >&6
10f2d63a 11250else
e6cc62c6
VS
11251 echo "$as_me:$LINENO: result: no" >&5
11252echo "${ECHO_T}no" >&6
10f2d63a
VZ
11253fi
11254
8284b0c5 11255
6054113a 11256# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11257# so one script is as good as another. But avoid the broken or
11258# incompatible versions:
11259# SysV /etc/install, /usr/sbin/install
11260# SunOS /usr/etc/install
11261# IRIX /sbin/install
11262# AIX /bin/install
e6cc62c6 11263# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11264# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11265# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11266# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11267# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11268echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11269echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11270if test -z "$INSTALL"; then
e6cc62c6
VS
11271if test "${ac_cv_path_install+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273else
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 # Account for people who put trailing slashes in PATH elements.
11280case $as_dir/ in
11281 ./ | .// | /cC/* | \
11282 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11283 /usr/ucb/* ) ;;
11284 *)
11285 # OSF1 and SCO ODT 3.0 have their own names for install.
11286 # Don't use installbsd from OSF since it installs stuff as root
11287 # by default.
11288 for ac_prog in ginstall scoinst install; do
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11291 if test $ac_prog = install &&
11292 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11293 # AIX install. It has an incompatible calling convention.
11294 :
11295 elif test $ac_prog = install &&
11296 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11297 # program-specific install script used by HP pwplus--don't use.
11298 :
11299 else
11300 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11301 break 3
11302 fi
11303 fi
10f2d63a 11304 done
e6cc62c6
VS
11305 done
11306 ;;
11307esac
11308done
11309
10f2d63a
VZ
11310
11311fi
11312 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11313 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11314 else
11315 # As a last resort, use the slow shell script. We don't cache a
11316 # path for INSTALL within a source directory, because that will
11317 # break other packages using the cache if that directory is
11318 # removed, or if the path is relative.
e6cc62c6 11319 INSTALL=$ac_install_sh
10f2d63a
VZ
11320 fi
11321fi
e6cc62c6
VS
11322echo "$as_me:$LINENO: result: $INSTALL" >&5
11323echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11324
11325# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11326# It thinks the first close brace ends the variable substitution.
11327test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11328
e6cc62c6 11329test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11330
10f2d63a
VZ
11331test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11332
8284b0c5 11333
1d1b75ac
VZ
11334case ${INSTALL} in
11335 /* ) # Absolute
11336 ;;
4f5a7f74
VZ
11337 ?:* ) # Drive letter, considered as absolute.
11338 ;;
3bd8fb5f 11339 *)
1d1b75ac
VZ
11340 INSTALL=`pwd`/${INSTALL} ;;
11341esac
11342
4f5a7f74
VZ
11343case ${host} in
11344 *-hp-hpux* )
11345 INSTALL_DIR="mkdir"
11346 ;;
11347
11348 *) INSTALL_DIR="$INSTALL -d"
11349 ;;
11350esac
11351
8284b0c5 11352
6054113a
GD
11353case "${host}" in
11354
b5853384 11355 powerpc-*-darwin* )
eb99ae0b
GD
11356 INSTALL_PROGRAM="cp -fp"
11357 INSTALL_DATA="cp -fp"
6054113a
GD
11358 ;;
11359 *)
11360 ;;
d6853540 11361esac
698dcdb6 11362
10f2d63a
VZ
11363# Extract the first word of "strip", so it can be a program name with args.
11364set dummy strip; ac_word=$2
e6cc62c6
VS
11365echo "$as_me:$LINENO: checking for $ac_word" >&5
11366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367if test "${ac_cv_prog_STRIP+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11369else
11370 if test -n "$STRIP"; then
11371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11372else
e6cc62c6
VS
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 ac_cv_prog_STRIP="strip"
11381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384done
11385done
11386
10f2d63a
VZ
11387 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11388fi
11389fi
e6cc62c6 11390STRIP=$ac_cv_prog_STRIP
10f2d63a 11391if test -n "$STRIP"; then
e6cc62c6
VS
11392 echo "$as_me:$LINENO: result: $STRIP" >&5
11393echo "${ECHO_T}$STRIP" >&6
10f2d63a 11394else
e6cc62c6
VS
11395 echo "$as_me:$LINENO: result: no" >&5
11396echo "${ECHO_T}no" >&6
10f2d63a
VZ
11397fi
11398
5c6fa7d2 11399
e6cc62c6
VS
11400echo "$as_me:$LINENO: checking if make is GNU make" >&5
11401echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11402if test "${wx_cv_prog_makeisgnu+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11404else
e6cc62c6 11405
414eab6d 11406 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11407 egrep -s GNU > /dev/null); then
414eab6d
VZ
11408 wx_cv_prog_makeisgnu="yes"
11409 else
11410 wx_cv_prog_makeisgnu="no"
11411 fi
11412
11413fi
e6cc62c6
VS
11414echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11415echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11416
11417if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11418 IF_GNU_MAKE=""
11419else
11420 IF_GNU_MAKE="#"
11421fi
11422
8284b0c5
MB
11423
11424
414eab6d 11425if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11426echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11427echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11428if test "${wx_cv_prog_makevpath+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11430else
e6cc62c6 11431
10f2d63a
VZ
11432cat - << EOF > confMake
11433check : file
11434 cp \$? \$@
11435 cp \$? final_file
11436EOF
11437
11438if test ! -d sub ; then
11439 mkdir sub
11440fi
11441echo dummy > sub/file
f6bcfd97 11442${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11443RESULT=$?
11444rm -f sub/file check final_file confMake
11445rmdir sub
11446if test "$RESULT" = 0; then
04e7a216 11447 wx_cv_prog_makevpath="yes"
10f2d63a 11448else
04e7a216
VZ
11449 wx_cv_prog_makevpath="no"
11450fi
11451
11452fi
e6cc62c6
VS
11453echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11454echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11455
11456if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11457{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11458You need a make-utility that is able to use the variable
11459VPATH correctly.
11460If your version of make does not support VPATH correctly,
11461please install GNU-make (possibly as gmake), and start
11462configure with the following command:
11463export MAKE=gmake; ./configure for sh-type shells
11464setenv MAKE gmake; ./configure for csh-type shells
11465Also please do remember to use gmake in this case every time
11466you are trying to compile.
e6cc62c6
VS
11467" >&5
11468echo "$as_me: error:
11469You need a make-utility that is able to use the variable
11470VPATH correctly.
11471If your version of make does not support VPATH correctly,
11472please install GNU-make (possibly as gmake), and start
11473configure with the following command:
11474export MAKE=gmake; ./configure for sh-type shells
11475setenv MAKE gmake; ./configure for csh-type shells
11476Also please do remember to use gmake in this case every time
11477you are trying to compile.
11478" >&2;}
11479 { (exit 1); exit 1; }; }
11480fi fi
10f2d63a
VZ
11481for ac_prog in 'bison -y' byacc
11482do
e6cc62c6 11483 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 11484set dummy $ac_prog; ac_word=$2
e6cc62c6
VS
11485echo "$as_me:$LINENO: checking for $ac_word" >&5
11486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11487if test "${ac_cv_prog_YACC+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11489else
11490 if test -n "$YACC"; then
11491 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11492else
e6cc62c6
VS
11493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494for as_dir in $PATH
11495do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11500 ac_cv_prog_YACC="$ac_prog"
11501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 break 2
11503 fi
11504done
11505done
11506
10f2d63a
VZ
11507fi
11508fi
e6cc62c6 11509YACC=$ac_cv_prog_YACC
10f2d63a 11510if test -n "$YACC"; then
e6cc62c6
VS
11511 echo "$as_me:$LINENO: result: $YACC" >&5
11512echo "${ECHO_T}$YACC" >&6
10f2d63a 11513else
e6cc62c6
VS
11514 echo "$as_me:$LINENO: result: no" >&5
11515echo "${ECHO_T}no" >&6
10f2d63a
VZ
11516fi
11517
e6cc62c6 11518 test -n "$YACC" && break
10f2d63a
VZ
11519done
11520test -n "$YACC" || YACC="yacc"
11521
8284b0c5 11522
e6cc62c6
VS
11523for ac_prog in flex lex
11524do
11525 # Extract the first word of "$ac_prog", so it can be a program name with args.
11526set dummy $ac_prog; ac_word=$2
11527echo "$as_me:$LINENO: checking for $ac_word" >&5
11528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11529if test "${ac_cv_prog_LEX+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11531else
11532 if test -n "$LEX"; then
11533 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11534else
e6cc62c6
VS
11535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536for as_dir in $PATH
11537do
11538 IFS=$as_save_IFS
11539 test -z "$as_dir" && as_dir=.
11540 for ac_exec_ext in '' $ac_executable_extensions; do
11541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11542 ac_cv_prog_LEX="$ac_prog"
11543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 break 2
11545 fi
11546done
11547done
11548
10f2d63a
VZ
11549fi
11550fi
e6cc62c6 11551LEX=$ac_cv_prog_LEX
10f2d63a 11552if test -n "$LEX"; then
e6cc62c6
VS
11553 echo "$as_me:$LINENO: result: $LEX" >&5
11554echo "${ECHO_T}$LEX" >&6
10f2d63a 11555else
e6cc62c6
VS
11556 echo "$as_me:$LINENO: result: no" >&5
11557echo "${ECHO_T}no" >&6
10f2d63a
VZ
11558fi
11559
e6cc62c6
VS
11560 test -n "$LEX" && break
11561done
11562test -n "$LEX" || LEX=":"
11563
10f2d63a
VZ
11564if test -z "$LEXLIB"
11565then
e6cc62c6
VS
11566 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11567echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11568if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570else
11571 ac_check_lib_save_LIBS=$LIBS
11572LIBS="-lfl $LIBS"
11573cat >conftest.$ac_ext <<_ACEOF
11574#line $LINENO "configure"
11575/* confdefs.h. */
11576_ACEOF
11577cat confdefs.h >>conftest.$ac_ext
11578cat >>conftest.$ac_ext <<_ACEOF
11579/* end confdefs.h. */
11580
11581/* Override any gcc2 internal prototype to avoid an error. */
11582#ifdef __cplusplus
11583extern "C"
11584#endif
11585/* We use char because int might match the return type of a gcc2
11586 builtin and then its argument prototype would still apply. */
11587char yywrap ();
11588int
11589main ()
11590{
11591yywrap ();
11592 ;
11593 return 0;
11594}
11595_ACEOF
11596rm -f conftest.$ac_objext conftest$ac_exeext
11597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11598 (eval $ac_link) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try='test -s conftest$ac_exeext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_cv_lib_fl_yywrap=yes
11609else
11610 echo "$as_me: failed program was:" >&5
11611sed 's/^/| /' conftest.$ac_ext >&5
11612
11613ac_cv_lib_fl_yywrap=no
11614fi
11615rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11616LIBS=$ac_check_lib_save_LIBS
11617fi
11618echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11619echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11620if test $ac_cv_lib_fl_yywrap = yes; then
11621 LEXLIB="-lfl"
11622else
11623 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11624echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11625if test "${ac_cv_lib_l_yywrap+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627else
11628 ac_check_lib_save_LIBS=$LIBS
11629LIBS="-ll $LIBS"
11630cat >conftest.$ac_ext <<_ACEOF
11631#line $LINENO "configure"
11632/* confdefs.h. */
11633_ACEOF
11634cat confdefs.h >>conftest.$ac_ext
11635cat >>conftest.$ac_ext <<_ACEOF
11636/* end confdefs.h. */
11637
247f5006 11638/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11639#ifdef __cplusplus
11640extern "C"
11641#endif
247f5006 11642/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11643 builtin and then its argument prototype would still apply. */
11644char yywrap ();
11645int
11646main ()
11647{
11648yywrap ();
11649 ;
11650 return 0;
11651}
11652_ACEOF
11653rm -f conftest.$ac_objext conftest$ac_exeext
11654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -s conftest$ac_exeext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 ac_cv_lib_l_yywrap=yes
11666else
11667 echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
11670ac_cv_lib_l_yywrap=no
11671fi
11672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11673LIBS=$ac_check_lib_save_LIBS
11674fi
11675echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11676echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11677if test $ac_cv_lib_l_yywrap = yes; then
11678 LEXLIB="-ll"
11679fi
10f2d63a 11680
10f2d63a 11681fi
8284b0c5 11682
10f2d63a 11683fi
e6cc62c6
VS
11684
11685if test "x$LEX" != "x:"; then
11686 echo "$as_me:$LINENO: checking lex output file root" >&5
11687echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11688if test "${ac_cv_prog_lex_root+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11690else
11691 # The minimal lex program is just a single line: %%. But some broken lexes
11692# (Solaris, I think it was) want two %% lines, so accommodate them.
11693cat >conftest.l <<_ACEOF
11694%%
11695%%
11696_ACEOF
11697{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11698 (eval $LEX conftest.l) 2>&5
11699 ac_status=$?
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }
11702if test -f lex.yy.c; then
11703 ac_cv_prog_lex_root=lex.yy
11704elif test -f lexyy.c; then
11705 ac_cv_prog_lex_root=lexyy
8284b0c5 11706else
e6cc62c6
VS
11707 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11708echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11709 { (exit 1); exit 1; }; }
10f2d63a 11710fi
a0b9e27f 11711fi
e6cc62c6
VS
11712echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11713echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11714rm -f conftest.l
11715LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10f2d63a 11716
e6cc62c6
VS
11717echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11718echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11719if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11721else
e6cc62c6
VS
11722 # POSIX says lex can declare yytext either as a pointer or an array; the
11723# default is implementation-dependent. Figure out which it is, since
11724# not all implementations provide the %pointer and %array declarations.
11725ac_cv_prog_lex_yytext_pointer=no
11726echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11727ac_save_LIBS=$LIBS
11728LIBS="$LIBS $LEXLIB"
11729cat >conftest.$ac_ext <<_ACEOF
11730`cat $LEX_OUTPUT_ROOT.c`
11731_ACEOF
11732rm -f conftest.$ac_objext conftest$ac_exeext
11733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11734 (eval $ac_link) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try='test -s conftest$ac_exeext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 11745else
e6cc62c6
VS
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
10f2d63a 11749fi
e6cc62c6
VS
11750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11751LIBS=$ac_save_LIBS
11752rm -f "${LEX_OUTPUT_ROOT}.c"
11753
11754fi
11755echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11756echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11757if test $ac_cv_prog_lex_yytext_pointer = yes; then
11758
11759cat >>confdefs.h <<\_ACEOF
11760#define YYTEXT_POINTER 1
11761_ACEOF
11762
a0b9e27f 11763fi
e6cc62c6
VS
11764
11765fi
11766
11767echo "$as_me:$LINENO: checking whether ln -s works" >&5
11768echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11769LN_S=$as_ln_s
11770if test "$LN_S" = "ln -s"; then
11771 echo "$as_me:$LINENO: result: yes" >&5
11772echo "${ECHO_T}yes" >&6
10f2d63a 11773else
e6cc62c6
VS
11774 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11775echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11776fi
5c6fa7d2 11777
247f5006 11778
2b5f62a0
VZ
11779case "${host}" in
11780 *-pc-os2_emx | *-pc-os2-emx )
11781 LIBS="$LIBS -lstdcpp"
11782 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11783 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11784echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11785if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11787else
e6cc62c6 11788 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11789LIBS="-lcExt $LIBS"
e6cc62c6
VS
11790cat >conftest.$ac_ext <<_ACEOF
11791#line $LINENO "configure"
11792/* confdefs.h. */
11793_ACEOF
11794cat confdefs.h >>conftest.$ac_ext
11795cat >>conftest.$ac_ext <<_ACEOF
11796/* end confdefs.h. */
11797
2b5f62a0 11798/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11799#ifdef __cplusplus
11800extern "C"
11801#endif
2b5f62a0 11802/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11803 builtin and then its argument prototype would still apply. */
11804char drand48 ();
11805int
11806main ()
11807{
11808drand48 ();
11809 ;
11810 return 0;
11811}
11812_ACEOF
11813rm -f conftest.$ac_objext conftest$ac_exeext
11814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11815 (eval $ac_link) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } &&
11819 { ac_try='test -s conftest$ac_exeext'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 ac_cv_lib_cExt_drand48=yes
11826else
11827 echo "$as_me: failed program was:" >&5
11828sed 's/^/| /' conftest.$ac_ext >&5
11829
11830ac_cv_lib_cExt_drand48=no
11831fi
11832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11833LIBS=$ac_check_lib_save_LIBS
11834fi
11835echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11836echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11837if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11838 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11839fi
11840
11841 else
11842 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11843 fi
11844 ;;
11845esac
11846
a0b9e27f 11847
01aa5863
VS
11848if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11849 echo "$as_me:$LINENO: checking for strings.h" >&5
11850echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11851if test "${ac_cv_header_strings_h+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853else
11854 ac_cv_header_strings_h=no
11855fi
11856echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11857echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11858 if test "$ac_cv_header_strings_h" = "no"; then
11859 echo "$as_me:$LINENO: result: forced no into cache" >&5
11860echo "${ECHO_T}forced no into cache" >&6
11861 else
11862 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11863echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11864 fi
11865fi
11866echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11867echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11868if test "${ac_cv_header_stdc+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870else
11871 cat >conftest.$ac_ext <<_ACEOF
11872#line $LINENO "configure"
11873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
11878#include <stdlib.h>
11879#include <stdarg.h>
11880#include <string.h>
11881#include <float.h>
247f5006 11882
e6cc62c6
VS
11883int
11884main ()
11885{
90dd450c 11886
e6cc62c6
VS
11887 ;
11888 return 0;
11889}
11890_ACEOF
11891rm -f conftest.$ac_objext
11892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893 (eval $ac_compile) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try='test -s conftest.$ac_objext'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 ac_cv_header_stdc=yes
8284b0c5 11904else
e6cc62c6
VS
11905 echo "$as_me: failed program was:" >&5
11906sed 's/^/| /' conftest.$ac_ext >&5
11907
11908ac_cv_header_stdc=no
21d1c967 11909fi
e6cc62c6 11910rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11911
e6cc62c6
VS
11912if test $ac_cv_header_stdc = yes; then
11913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11914 cat >conftest.$ac_ext <<_ACEOF
11915#line $LINENO "configure"
11916/* confdefs.h. */
11917_ACEOF
11918cat confdefs.h >>conftest.$ac_ext
11919cat >>conftest.$ac_ext <<_ACEOF
11920/* end confdefs.h. */
11921#include <string.h>
11922
11923_ACEOF
11924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11925 $EGREP "memchr" >/dev/null 2>&1; then
11926 :
11927else
11928 ac_cv_header_stdc=no
3a922bb4 11929fi
a0b9e27f 11930rm -f conftest*
e6cc62c6 11931
90dd450c 11932fi
e6cc62c6
VS
11933
11934if test $ac_cv_header_stdc = yes; then
11935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11936 cat >conftest.$ac_ext <<_ACEOF
11937#line $LINENO "configure"
11938/* confdefs.h. */
11939_ACEOF
11940cat confdefs.h >>conftest.$ac_ext
11941cat >>conftest.$ac_ext <<_ACEOF
11942/* end confdefs.h. */
11943#include <stdlib.h>
11944
11945_ACEOF
11946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11947 $EGREP "free" >/dev/null 2>&1; then
11948 :
a0b9e27f 11949else
e6cc62c6 11950 ac_cv_header_stdc=no
21d1c967 11951fi
e6cc62c6 11952rm -f conftest*
247f5006
VZ
11953
11954fi
e6cc62c6
VS
11955
11956if test $ac_cv_header_stdc = yes; then
11957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11958 if test "$cross_compiling" = yes; then
11959 :
11960else
11961 cat >conftest.$ac_ext <<_ACEOF
11962#line $LINENO "configure"
11963/* confdefs.h. */
11964_ACEOF
11965cat confdefs.h >>conftest.$ac_ext
11966cat >>conftest.$ac_ext <<_ACEOF
11967/* end confdefs.h. */
11968#include <ctype.h>
11969#if ((' ' & 0x0FF) == 0x020)
11970# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11971# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11972#else
11973# define ISLOWER(c) \
11974 (('a' <= (c) && (c) <= 'i') \
11975 || ('j' <= (c) && (c) <= 'r') \
11976 || ('s' <= (c) && (c) <= 'z'))
11977# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11978#endif
11979
11980#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11981int
11982main ()
11983{
11984 int i;
11985 for (i = 0; i < 256; i++)
11986 if (XOR (islower (i), ISLOWER (i))
11987 || toupper (i) != TOUPPER (i))
11988 exit(2);
11989 exit (0);
11990}
11991_ACEOF
11992rm -f conftest$ac_exeext
11993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 :
a0b9e27f 12004else
e6cc62c6
VS
12005 echo "$as_me: program exited with status $ac_status" >&5
12006echo "$as_me: failed program was:" >&5
12007sed 's/^/| /' conftest.$ac_ext >&5
12008
12009( exit $ac_status )
12010ac_cv_header_stdc=no
12011fi
12012rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12013fi
12014fi
12015fi
12016echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12017echo "${ECHO_T}$ac_cv_header_stdc" >&6
12018if test $ac_cv_header_stdc = yes; then
12019
12020cat >>confdefs.h <<\_ACEOF
12021#define STDC_HEADERS 1
12022_ACEOF
12023
a0b9e27f 12024fi
e6cc62c6
VS
12025
12026# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12037 inttypes.h stdint.h unistd.h
12038do
12039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12040echo "$as_me:$LINENO: checking for $ac_header" >&5
12041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12042if eval "test \"\${$as_ac_Header+set}\" = set"; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044else
12045 cat >conftest.$ac_ext <<_ACEOF
12046#line $LINENO "configure"
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052$ac_includes_default
12053
12054#include <$ac_header>
12055_ACEOF
12056rm -f conftest.$ac_objext
12057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12058 (eval $ac_compile) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -s conftest.$ac_objext'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; }; then
12068 eval "$as_ac_Header=yes"
12069else
12070 echo "$as_me: failed program was:" >&5
12071sed 's/^/| /' conftest.$ac_ext >&5
12072
12073eval "$as_ac_Header=no"
12074fi
12075rm -f conftest.$ac_objext conftest.$ac_ext
12076fi
12077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12078echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12079if test `eval echo '${'$as_ac_Header'}'` = yes; then
12080 cat >>confdefs.h <<_ACEOF
12081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12082_ACEOF
12083
12084fi
12085
a0b9e27f 12086done
90dd450c 12087
e6cc62c6
VS
12088
12089
12090for ac_header in strings.h
21d1c967 12091do
e6cc62c6
VS
12092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12093if eval "test \"\${$as_ac_Header+set}\" = set"; then
12094 echo "$as_me:$LINENO: checking for $ac_header" >&5
12095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12096if eval "test \"\${$as_ac_Header+set}\" = set"; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098fi
12099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12101else
12102 # Is the header compilable?
12103echo "$as_me:$LINENO: checking $ac_header usability" >&5
12104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12105cat >conftest.$ac_ext <<_ACEOF
12106#line $LINENO "configure"
12107/* confdefs.h. */
12108_ACEOF
12109cat confdefs.h >>conftest.$ac_ext
12110cat >>conftest.$ac_ext <<_ACEOF
12111/* end confdefs.h. */
12112$ac_includes_default
12113#include <$ac_header>
12114_ACEOF
12115rm -f conftest.$ac_objext
12116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -s conftest.$ac_objext'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 ac_header_compiler=yes
12128else
12129 echo "$as_me: failed program was:" >&5
12130sed 's/^/| /' conftest.$ac_ext >&5
12131
12132ac_header_compiler=no
12133fi
12134rm -f conftest.$ac_objext conftest.$ac_ext
12135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12136echo "${ECHO_T}$ac_header_compiler" >&6
12137
12138# Is the header present?
12139echo "$as_me:$LINENO: checking $ac_header presence" >&5
12140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12141cat >conftest.$ac_ext <<_ACEOF
12142#line $LINENO "configure"
12143/* confdefs.h. */
12144_ACEOF
12145cat confdefs.h >>conftest.$ac_ext
12146cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h. */
12148#include <$ac_header>
12149_ACEOF
12150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12152 ac_status=$?
12153 grep -v '^ *+' conftest.er1 >conftest.err
12154 rm -f conftest.er1
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } >/dev/null; then
12158 if test -s conftest.err; then
12159 ac_cpp_err=$ac_c_preproc_warn_flag
12160 else
12161 ac_cpp_err=
12162 fi
12163else
12164 ac_cpp_err=yes
12165fi
12166if test -z "$ac_cpp_err"; then
12167 ac_header_preproc=yes
12168else
12169 echo "$as_me: failed program was:" >&5
12170sed 's/^/| /' conftest.$ac_ext >&5
12171
12172 ac_header_preproc=no
12173fi
12174rm -f conftest.err conftest.$ac_ext
12175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12176echo "${ECHO_T}$ac_header_preproc" >&6
12177
12178# So? What about this header?
12179case $ac_header_compiler:$ac_header_preproc in
12180 yes:no )
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12185 (
12186 cat <<\_ASBOX
12187## ------------------------------------ ##
12188## Report this to bug-autoconf@gnu.org. ##
12189## ------------------------------------ ##
12190_ASBOX
12191 ) |
12192 sed "s/^/$as_me: WARNING: /" >&2
12193 ;;
12194 no:yes )
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12201 (
12202 cat <<\_ASBOX
12203## ------------------------------------ ##
12204## Report this to bug-autoconf@gnu.org. ##
12205## ------------------------------------ ##
12206_ASBOX
12207 ) |
12208 sed "s/^/$as_me: WARNING: /" >&2
12209 ;;
12210esac
12211echo "$as_me:$LINENO: checking for $ac_header" >&5
12212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12213if eval "test \"\${$as_ac_Header+set}\" = set"; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12215else
12216 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12217fi
e6cc62c6
VS
12218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12220
a0b9e27f 12221fi
e6cc62c6
VS
12222if test `eval echo '${'$as_ac_Header'}'` = yes; then
12223 cat >>confdefs.h <<_ACEOF
12224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12225_ACEOF
12226
12227fi
12228
12229done
12230
e6cc62c6
VS
12231
12232
12233for ac_header in stdlib.h
12234do
12235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12236if eval "test \"\${$as_ac_Header+set}\" = set"; then
12237 echo "$as_me:$LINENO: checking for $ac_header" >&5
12238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12239if eval "test \"\${$as_ac_Header+set}\" = set"; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12241fi
12242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12244else
12245 # Is the header compilable?
12246echo "$as_me:$LINENO: checking $ac_header usability" >&5
12247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12248cat >conftest.$ac_ext <<_ACEOF
12249#line $LINENO "configure"
12250/* confdefs.h. */
12251_ACEOF
12252cat confdefs.h >>conftest.$ac_ext
12253cat >>conftest.$ac_ext <<_ACEOF
12254/* end confdefs.h. */
12255$ac_includes_default
12256#include <$ac_header>
12257_ACEOF
12258rm -f conftest.$ac_objext
12259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12260 (eval $ac_compile) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -s conftest.$ac_objext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_header_compiler=yes
12271else
12272 echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275ac_header_compiler=no
12276fi
12277rm -f conftest.$ac_objext conftest.$ac_ext
12278echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12279echo "${ECHO_T}$ac_header_compiler" >&6
12280
12281# Is the header present?
12282echo "$as_me:$LINENO: checking $ac_header presence" >&5
12283echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12284cat >conftest.$ac_ext <<_ACEOF
12285#line $LINENO "configure"
12286/* confdefs.h. */
12287_ACEOF
12288cat confdefs.h >>conftest.$ac_ext
12289cat >>conftest.$ac_ext <<_ACEOF
12290/* end confdefs.h. */
12291#include <$ac_header>
12292_ACEOF
12293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } >/dev/null; then
12301 if test -s conftest.err; then
12302 ac_cpp_err=$ac_c_preproc_warn_flag
12303 else
12304 ac_cpp_err=
12305 fi
12306else
12307 ac_cpp_err=yes
12308fi
12309if test -z "$ac_cpp_err"; then
12310 ac_header_preproc=yes
12311else
12312 echo "$as_me: failed program was:" >&5
12313sed 's/^/| /' conftest.$ac_ext >&5
12314
12315 ac_header_preproc=no
12316fi
12317rm -f conftest.err conftest.$ac_ext
12318echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12319echo "${ECHO_T}$ac_header_preproc" >&6
12320
12321# So? What about this header?
12322case $ac_header_compiler:$ac_header_preproc in
12323 yes:no )
12324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12325echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12328 (
12329 cat <<\_ASBOX
12330## ------------------------------------ ##
12331## Report this to bug-autoconf@gnu.org. ##
12332## ------------------------------------ ##
12333_ASBOX
12334 ) |
12335 sed "s/^/$as_me: WARNING: /" >&2
12336 ;;
12337 no:yes )
12338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12339echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12341echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12344 (
12345 cat <<\_ASBOX
12346## ------------------------------------ ##
12347## Report this to bug-autoconf@gnu.org. ##
12348## ------------------------------------ ##
12349_ASBOX
12350 ) |
12351 sed "s/^/$as_me: WARNING: /" >&2
12352 ;;
12353esac
12354echo "$as_me:$LINENO: checking for $ac_header" >&5
12355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12356if eval "test \"\${$as_ac_Header+set}\" = set"; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12358else
e6cc62c6
VS
12359 eval "$as_ac_Header=$ac_header_preproc"
12360fi
12361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12363
21d1c967 12364fi
e6cc62c6
VS
12365if test `eval echo '${'$as_ac_Header'}'` = yes; then
12366 cat >>confdefs.h <<_ACEOF
12367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12368_ACEOF
12369
12370fi
12371
21d1c967 12372done
4f14bcd8 12373
5c6fa7d2 12374
e6cc62c6 12375for ac_header in malloc.h
21d1c967 12376do
e6cc62c6
VS
12377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12378if eval "test \"\${$as_ac_Header+set}\" = set"; then
12379 echo "$as_me:$LINENO: checking for $ac_header" >&5
12380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383fi
12384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12386else
12387 # Is the header compilable?
12388echo "$as_me:$LINENO: checking $ac_header usability" >&5
12389echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12390cat >conftest.$ac_ext <<_ACEOF
12391#line $LINENO "configure"
12392/* confdefs.h. */
12393_ACEOF
12394cat confdefs.h >>conftest.$ac_ext
12395cat >>conftest.$ac_ext <<_ACEOF
12396/* end confdefs.h. */
12397$ac_includes_default
12398#include <$ac_header>
12399_ACEOF
12400rm -f conftest.$ac_objext
12401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12402 (eval $ac_compile) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
12406 { ac_try='test -s conftest.$ac_objext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_header_compiler=yes
12413else
12414 echo "$as_me: failed program was:" >&5
12415sed 's/^/| /' conftest.$ac_ext >&5
12416
12417ac_header_compiler=no
12418fi
12419rm -f conftest.$ac_objext conftest.$ac_ext
12420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12421echo "${ECHO_T}$ac_header_compiler" >&6
12422
12423# Is the header present?
12424echo "$as_me:$LINENO: checking $ac_header presence" >&5
12425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12426cat >conftest.$ac_ext <<_ACEOF
12427#line $LINENO "configure"
12428/* confdefs.h. */
12429_ACEOF
12430cat confdefs.h >>conftest.$ac_ext
12431cat >>conftest.$ac_ext <<_ACEOF
12432/* end confdefs.h. */
12433#include <$ac_header>
12434_ACEOF
12435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } >/dev/null; then
12443 if test -s conftest.err; then
12444 ac_cpp_err=$ac_c_preproc_warn_flag
12445 else
12446 ac_cpp_err=
12447 fi
12448else
12449 ac_cpp_err=yes
12450fi
12451if test -z "$ac_cpp_err"; then
12452 ac_header_preproc=yes
12453else
12454 echo "$as_me: failed program was:" >&5
12455sed 's/^/| /' conftest.$ac_ext >&5
12456
12457 ac_header_preproc=no
12458fi
12459rm -f conftest.err conftest.$ac_ext
12460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12461echo "${ECHO_T}$ac_header_preproc" >&6
12462
12463# So? What about this header?
12464case $ac_header_compiler:$ac_header_preproc in
12465 yes:no )
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470 (
12471 cat <<\_ASBOX
12472## ------------------------------------ ##
12473## Report this to bug-autoconf@gnu.org. ##
12474## ------------------------------------ ##
12475_ASBOX
12476 ) |
12477 sed "s/^/$as_me: WARNING: /" >&2
12478 ;;
12479 no:yes )
12480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12483echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12486 (
12487 cat <<\_ASBOX
12488## ------------------------------------ ##
12489## Report this to bug-autoconf@gnu.org. ##
12490## ------------------------------------ ##
12491_ASBOX
12492 ) |
12493 sed "s/^/$as_me: WARNING: /" >&2
12494 ;;
12495esac
12496echo "$as_me:$LINENO: checking for $ac_header" >&5
12497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12498if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500else
12501 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12502fi
e6cc62c6
VS
12503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12505
21d1c967 12506fi
e6cc62c6
VS
12507if test `eval echo '${'$as_ac_Header'}'` = yes; then
12508 cat >>confdefs.h <<_ACEOF
12509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12510_ACEOF
12511
12512fi
12513
12514done
12515
12516
12517for ac_header in unistd.h
12518do
12519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12520if eval "test \"\${$as_ac_Header+set}\" = set"; then
12521 echo "$as_me:$LINENO: checking for $ac_header" >&5
12522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12523if eval "test \"\${$as_ac_Header+set}\" = set"; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525fi
12526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12528else
12529 # Is the header compilable?
12530echo "$as_me:$LINENO: checking $ac_header usability" >&5
12531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12532cat >conftest.$ac_ext <<_ACEOF
12533#line $LINENO "configure"
12534/* confdefs.h. */
12535_ACEOF
12536cat confdefs.h >>conftest.$ac_ext
12537cat >>conftest.$ac_ext <<_ACEOF
12538/* end confdefs.h. */
12539$ac_includes_default
12540#include <$ac_header>
12541_ACEOF
12542rm -f conftest.$ac_objext
12543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12544 (eval $ac_compile) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -s conftest.$ac_objext'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 ac_header_compiler=yes
12555else
12556 echo "$as_me: failed program was:" >&5
12557sed 's/^/| /' conftest.$ac_ext >&5
12558
12559ac_header_compiler=no
12560fi
12561rm -f conftest.$ac_objext conftest.$ac_ext
12562echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12563echo "${ECHO_T}$ac_header_compiler" >&6
12564
12565# Is the header present?
12566echo "$as_me:$LINENO: checking $ac_header presence" >&5
12567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12568cat >conftest.$ac_ext <<_ACEOF
12569#line $LINENO "configure"
12570/* confdefs.h. */
12571_ACEOF
12572cat confdefs.h >>conftest.$ac_ext
12573cat >>conftest.$ac_ext <<_ACEOF
12574/* end confdefs.h. */
12575#include <$ac_header>
12576_ACEOF
12577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } >/dev/null; then
12585 if test -s conftest.err; then
12586 ac_cpp_err=$ac_c_preproc_warn_flag
12587 else
12588 ac_cpp_err=
12589 fi
a0b9e27f 12590else
e6cc62c6
VS
12591 ac_cpp_err=yes
12592fi
12593if test -z "$ac_cpp_err"; then
12594 ac_header_preproc=yes
12595else
12596 echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 ac_header_preproc=no
12600fi
12601rm -f conftest.err conftest.$ac_ext
12602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12603echo "${ECHO_T}$ac_header_preproc" >&6
12604
12605# So? What about this header?
12606case $ac_header_compiler:$ac_header_preproc in
12607 yes:no )
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612 (
12613 cat <<\_ASBOX
12614## ------------------------------------ ##
12615## Report this to bug-autoconf@gnu.org. ##
12616## ------------------------------------ ##
12617_ASBOX
12618 ) |
12619 sed "s/^/$as_me: WARNING: /" >&2
12620 ;;
12621 no:yes )
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12628 (
12629 cat <<\_ASBOX
12630## ------------------------------------ ##
12631## Report this to bug-autoconf@gnu.org. ##
12632## ------------------------------------ ##
12633_ASBOX
12634 ) |
12635 sed "s/^/$as_me: WARNING: /" >&2
12636 ;;
12637esac
12638echo "$as_me:$LINENO: checking for $ac_header" >&5
12639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12640if eval "test \"\${$as_ac_Header+set}\" = set"; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643 eval "$as_ac_Header=$ac_header_preproc"
12644fi
12645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12647
12648fi
12649if test `eval echo '${'$as_ac_Header'}'` = yes; then
12650 cat >>confdefs.h <<_ACEOF
12651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12652_ACEOF
12653
d4158b5d 12654fi
e6cc62c6 12655
21d1c967 12656done
f6bcfd97 12657
e6cc62c6
VS
12658
12659for ac_header in wchar.h
12660do
12661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12662if eval "test \"\${$as_ac_Header+set}\" = set"; then
12663 echo "$as_me:$LINENO: checking for $ac_header" >&5
12664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12665if eval "test \"\${$as_ac_Header+set}\" = set"; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667fi
12668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12670else
12671 # Is the header compilable?
12672echo "$as_me:$LINENO: checking $ac_header usability" >&5
12673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12674cat >conftest.$ac_ext <<_ACEOF
12675#line $LINENO "configure"
12676/* confdefs.h. */
12677_ACEOF
12678cat confdefs.h >>conftest.$ac_ext
12679cat >>conftest.$ac_ext <<_ACEOF
12680/* end confdefs.h. */
12681$ac_includes_default
12682#include <$ac_header>
12683_ACEOF
12684rm -f conftest.$ac_objext
12685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686 (eval $ac_compile) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try='test -s conftest.$ac_objext'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 ac_header_compiler=yes
12697else
12698 echo "$as_me: failed program was:" >&5
12699sed 's/^/| /' conftest.$ac_ext >&5
12700
12701ac_header_compiler=no
12702fi
12703rm -f conftest.$ac_objext conftest.$ac_ext
12704echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12705echo "${ECHO_T}$ac_header_compiler" >&6
12706
12707# Is the header present?
12708echo "$as_me:$LINENO: checking $ac_header presence" >&5
12709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12710cat >conftest.$ac_ext <<_ACEOF
12711#line $LINENO "configure"
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
12717#include <$ac_header>
12718_ACEOF
12719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } >/dev/null; then
12727 if test -s conftest.err; then
12728 ac_cpp_err=$ac_c_preproc_warn_flag
12729 else
12730 ac_cpp_err=
12731 fi
12732else
12733 ac_cpp_err=yes
12734fi
12735if test -z "$ac_cpp_err"; then
12736 ac_header_preproc=yes
12737else
12738 echo "$as_me: failed program was:" >&5
12739sed 's/^/| /' conftest.$ac_ext >&5
12740
12741 ac_header_preproc=no
12742fi
12743rm -f conftest.err conftest.$ac_ext
12744echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12745echo "${ECHO_T}$ac_header_preproc" >&6
12746
12747# So? What about this header?
12748case $ac_header_compiler:$ac_header_preproc in
12749 yes:no )
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754 (
12755 cat <<\_ASBOX
12756## ------------------------------------ ##
12757## Report this to bug-autoconf@gnu.org. ##
12758## ------------------------------------ ##
12759_ASBOX
12760 ) |
12761 sed "s/^/$as_me: WARNING: /" >&2
12762 ;;
12763 no:yes )
12764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12770 (
12771 cat <<\_ASBOX
12772## ------------------------------------ ##
12773## Report this to bug-autoconf@gnu.org. ##
12774## ------------------------------------ ##
12775_ASBOX
12776 ) |
12777 sed "s/^/$as_me: WARNING: /" >&2
12778 ;;
12779esac
12780echo "$as_me:$LINENO: checking for $ac_header" >&5
12781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12782if eval "test \"\${$as_ac_Header+set}\" = set"; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784else
12785 eval "$as_ac_Header=$ac_header_preproc"
12786fi
12787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12789
90dd450c 12790fi
e6cc62c6
VS
12791if test `eval echo '${'$as_ac_Header'}'` = yes; then
12792 cat >>confdefs.h <<_ACEOF
12793#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12794_ACEOF
12795
12796fi
12797
12798done
90dd450c 12799
e6cc62c6
VS
12800
12801if test "$ac_cv_header_wchar_h" != "yes"; then
12802
12803for ac_header in wcstr.h
21d1c967 12804do
e6cc62c6
VS
12805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12806if eval "test \"\${$as_ac_Header+set}\" = set"; then
12807 echo "$as_me:$LINENO: checking for $ac_header" >&5
12808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12809if eval "test \"\${$as_ac_Header+set}\" = set"; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12811fi
12812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12814else
12815 # Is the header compilable?
12816echo "$as_me:$LINENO: checking $ac_header usability" >&5
12817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12818cat >conftest.$ac_ext <<_ACEOF
12819#line $LINENO "configure"
12820/* confdefs.h. */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h. */
12825$ac_includes_default
12826#include <$ac_header>
12827_ACEOF
12828rm -f conftest.$ac_objext
12829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830 (eval $ac_compile) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } &&
12834 { ac_try='test -s conftest.$ac_objext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 ac_header_compiler=yes
12841else
12842 echo "$as_me: failed program was:" >&5
12843sed 's/^/| /' conftest.$ac_ext >&5
12844
12845ac_header_compiler=no
12846fi
12847rm -f conftest.$ac_objext conftest.$ac_ext
12848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12849echo "${ECHO_T}$ac_header_compiler" >&6
12850
12851# Is the header present?
12852echo "$as_me:$LINENO: checking $ac_header presence" >&5
12853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12854cat >conftest.$ac_ext <<_ACEOF
12855#line $LINENO "configure"
12856/* confdefs.h. */
12857_ACEOF
12858cat confdefs.h >>conftest.$ac_ext
12859cat >>conftest.$ac_ext <<_ACEOF
12860/* end confdefs.h. */
12861#include <$ac_header>
12862_ACEOF
12863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } >/dev/null; then
12871 if test -s conftest.err; then
12872 ac_cpp_err=$ac_c_preproc_warn_flag
12873 else
12874 ac_cpp_err=
12875 fi
12876else
12877 ac_cpp_err=yes
12878fi
12879if test -z "$ac_cpp_err"; then
12880 ac_header_preproc=yes
12881else
12882 echo "$as_me: failed program was:" >&5
12883sed 's/^/| /' conftest.$ac_ext >&5
12884
12885 ac_header_preproc=no
12886fi
12887rm -f conftest.err conftest.$ac_ext
12888echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12889echo "${ECHO_T}$ac_header_preproc" >&6
12890
12891# So? What about this header?
12892case $ac_header_compiler:$ac_header_preproc in
12893 yes:no )
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12898 (
12899 cat <<\_ASBOX
12900## ------------------------------------ ##
12901## Report this to bug-autoconf@gnu.org. ##
12902## ------------------------------------ ##
12903_ASBOX
12904 ) |
12905 sed "s/^/$as_me: WARNING: /" >&2
12906 ;;
12907 no:yes )
12908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12911echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12914 (
12915 cat <<\_ASBOX
12916## ------------------------------------ ##
12917## Report this to bug-autoconf@gnu.org. ##
12918## ------------------------------------ ##
12919_ASBOX
12920 ) |
12921 sed "s/^/$as_me: WARNING: /" >&2
12922 ;;
12923esac
12924echo "$as_me:$LINENO: checking for $ac_header" >&5
12925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12926if eval "test \"\${$as_ac_Header+set}\" = set"; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12928else
12929 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12930fi
e6cc62c6
VS
12931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12933
4f14bcd8 12934fi
e6cc62c6
VS
12935if test `eval echo '${'$as_ac_Header'}'` = yes; then
12936 cat >>confdefs.h <<_ACEOF
12937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12938_ACEOF
12939
12940fi
12941
12942done
12943
12944fi
12945
12946
12947for ac_header in fnmatch.h
12948do
12949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12950if eval "test \"\${$as_ac_Header+set}\" = set"; then
12951 echo "$as_me:$LINENO: checking for $ac_header" >&5
12952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12953if eval "test \"\${$as_ac_Header+set}\" = set"; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955fi
12956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12958else
12959 # Is the header compilable?
12960echo "$as_me:$LINENO: checking $ac_header usability" >&5
12961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12962cat >conftest.$ac_ext <<_ACEOF
12963#line $LINENO "configure"
12964/* confdefs.h. */
12965_ACEOF
12966cat confdefs.h >>conftest.$ac_ext
12967cat >>conftest.$ac_ext <<_ACEOF
12968/* end confdefs.h. */
12969$ac_includes_default
12970#include <$ac_header>
12971_ACEOF
12972rm -f conftest.$ac_objext
12973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12974 (eval $ac_compile) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -s conftest.$ac_objext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 ac_header_compiler=yes
12985else
12986 echo "$as_me: failed program was:" >&5
12987sed 's/^/| /' conftest.$ac_ext >&5
12988
12989ac_header_compiler=no
12990fi
12991rm -f conftest.$ac_objext conftest.$ac_ext
12992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12993echo "${ECHO_T}$ac_header_compiler" >&6
12994
12995# Is the header present?
12996echo "$as_me:$LINENO: checking $ac_header presence" >&5
12997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12998cat >conftest.$ac_ext <<_ACEOF
12999#line $LINENO "configure"
13000/* confdefs.h. */
13001_ACEOF
13002cat confdefs.h >>conftest.$ac_ext
13003cat >>conftest.$ac_ext <<_ACEOF
13004/* end confdefs.h. */
13005#include <$ac_header>
13006_ACEOF
13007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13009 ac_status=$?
13010 grep -v '^ *+' conftest.er1 >conftest.err
13011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } >/dev/null; then
13015 if test -s conftest.err; then
13016 ac_cpp_err=$ac_c_preproc_warn_flag
13017 else
13018 ac_cpp_err=
13019 fi
13020else
13021 ac_cpp_err=yes
13022fi
13023if test -z "$ac_cpp_err"; then
13024 ac_header_preproc=yes
13025else
13026 echo "$as_me: failed program was:" >&5
13027sed 's/^/| /' conftest.$ac_ext >&5
13028
13029 ac_header_preproc=no
13030fi
13031rm -f conftest.err conftest.$ac_ext
13032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13033echo "${ECHO_T}$ac_header_preproc" >&6
13034
13035# So? What about this header?
13036case $ac_header_compiler:$ac_header_preproc in
13037 yes:no )
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13042 (
13043 cat <<\_ASBOX
13044## ------------------------------------ ##
13045## Report this to bug-autoconf@gnu.org. ##
13046## ------------------------------------ ##
13047_ASBOX
13048 ) |
13049 sed "s/^/$as_me: WARNING: /" >&2
13050 ;;
13051 no:yes )
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13053echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13055echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13057echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13058 (
13059 cat <<\_ASBOX
13060## ------------------------------------ ##
13061## Report this to bug-autoconf@gnu.org. ##
13062## ------------------------------------ ##
13063_ASBOX
13064 ) |
13065 sed "s/^/$as_me: WARNING: /" >&2
13066 ;;
13067esac
13068echo "$as_me:$LINENO: checking for $ac_header" >&5
13069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13070if eval "test \"\${$as_ac_Header+set}\" = set"; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13072else
e6cc62c6
VS
13073 eval "$as_ac_Header=$ac_header_preproc"
13074fi
13075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13077
21d1c967 13078fi
e6cc62c6
VS
13079if test `eval echo '${'$as_ac_Header'}'` = yes; then
13080 cat >>confdefs.h <<_ACEOF
13081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13082_ACEOF
13083
13084fi
13085
21d1c967 13086done
90dd450c 13087
5c6fa7d2 13088
a0b9e27f 13089if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13090
13091for ac_func in fnmatch
21d1c967 13092do
e6cc62c6
VS
13093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094echo "$as_me:$LINENO: checking for $ac_func" >&5
13095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13096if eval "test \"\${$as_ac_var+set}\" = set"; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13098else
13099 cat >conftest.$ac_ext <<_ACEOF
13100#line $LINENO "configure"
13101/* confdefs.h. */
13102_ACEOF
13103cat confdefs.h >>conftest.$ac_ext
13104cat >>conftest.$ac_ext <<_ACEOF
13105/* end confdefs.h. */
a0b9e27f 13106/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13107 which can conflict with char $ac_func (); below.
13108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13109 <limits.h> exists even on freestanding compilers. */
13110#ifdef __STDC__
13111# include <limits.h>
13112#else
13113# include <assert.h>
13114#endif
a0b9e27f 13115/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13116#ifdef __cplusplus
13117extern "C"
13118{
13119#endif
a0b9e27f 13120/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13121 builtin and then its argument prototype would still apply. */
13122char $ac_func ();
a0b9e27f
MB
13123/* The GNU C library defines this for functions which it implements
13124 to always fail with ENOSYS. Some functions are actually named
13125 something starting with __ and the normal name is an alias. */
13126#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13127choke me
13128#else
e6cc62c6
VS
13129char (*f) () = $ac_func;
13130#endif
13131#ifdef __cplusplus
13132}
a0b9e27f
MB
13133#endif
13134
e6cc62c6
VS
13135int
13136main ()
13137{
13138return f != $ac_func;
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext conftest$ac_exeext
13144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13145 (eval $ac_link) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -s conftest$ac_exeext'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 eval "$as_ac_var=yes"
13156else
13157 echo "$as_me: failed program was:" >&5
13158sed 's/^/| /' conftest.$ac_ext >&5
13159
13160eval "$as_ac_var=no"
13161fi
13162rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13163fi
13164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13165echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13166if test `eval echo '${'$as_ac_var'}'` = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13169_ACEOF
32832908 13170
21d1c967
GD
13171fi
13172done
90dd450c 13173
a0b9e27f 13174fi
90dd450c 13175
e6cc62c6
VS
13176
13177for ac_header in langinfo.h
21d1c967 13178do
e6cc62c6
VS
13179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13180if eval "test \"\${$as_ac_Header+set}\" = set"; then
13181 echo "$as_me:$LINENO: checking for $ac_header" >&5
13182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13183if eval "test \"\${$as_ac_Header+set}\" = set"; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13185fi
13186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13188else
13189 # Is the header compilable?
13190echo "$as_me:$LINENO: checking $ac_header usability" >&5
13191echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13192cat >conftest.$ac_ext <<_ACEOF
13193#line $LINENO "configure"
13194/* confdefs.h. */
13195_ACEOF
13196cat confdefs.h >>conftest.$ac_ext
13197cat >>conftest.$ac_ext <<_ACEOF
13198/* end confdefs.h. */
13199$ac_includes_default
13200#include <$ac_header>
13201_ACEOF
13202rm -f conftest.$ac_objext
13203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13204 (eval $ac_compile) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -s conftest.$ac_objext'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 ac_header_compiler=yes
13215else
13216 echo "$as_me: failed program was:" >&5
13217sed 's/^/| /' conftest.$ac_ext >&5
13218
13219ac_header_compiler=no
13220fi
13221rm -f conftest.$ac_objext conftest.$ac_ext
13222echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13223echo "${ECHO_T}$ac_header_compiler" >&6
13224
13225# Is the header present?
13226echo "$as_me:$LINENO: checking $ac_header presence" >&5
13227echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13228cat >conftest.$ac_ext <<_ACEOF
13229#line $LINENO "configure"
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235#include <$ac_header>
13236_ACEOF
13237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } >/dev/null; then
13245 if test -s conftest.err; then
13246 ac_cpp_err=$ac_c_preproc_warn_flag
13247 else
13248 ac_cpp_err=
13249 fi
13250else
13251 ac_cpp_err=yes
13252fi
13253if test -z "$ac_cpp_err"; then
13254 ac_header_preproc=yes
13255else
13256 echo "$as_me: failed program was:" >&5
13257sed 's/^/| /' conftest.$ac_ext >&5
13258
13259 ac_header_preproc=no
13260fi
13261rm -f conftest.err conftest.$ac_ext
13262echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13263echo "${ECHO_T}$ac_header_preproc" >&6
13264
13265# So? What about this header?
13266case $ac_header_compiler:$ac_header_preproc in
13267 yes:no )
13268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13269echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13272 (
13273 cat <<\_ASBOX
13274## ------------------------------------ ##
13275## Report this to bug-autoconf@gnu.org. ##
13276## ------------------------------------ ##
13277_ASBOX
13278 ) |
13279 sed "s/^/$as_me: WARNING: /" >&2
13280 ;;
13281 no:yes )
13282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13288 (
13289 cat <<\_ASBOX
13290## ------------------------------------ ##
13291## Report this to bug-autoconf@gnu.org. ##
13292## ------------------------------------ ##
13293_ASBOX
13294 ) |
13295 sed "s/^/$as_me: WARNING: /" >&2
13296 ;;
13297esac
13298echo "$as_me:$LINENO: checking for $ac_header" >&5
13299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13300if eval "test \"\${$as_ac_Header+set}\" = set"; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13302else
13303 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13304fi
e6cc62c6
VS
13305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13307
4f14bcd8 13308fi
e6cc62c6
VS
13309if test `eval echo '${'$as_ac_Header'}'` = yes; then
13310 cat >>confdefs.h <<_ACEOF
13311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13312_ACEOF
13313
21d1c967 13314fi
e6cc62c6 13315
21d1c967 13316done
3a922bb4 13317
8284b0c5 13318
4f5a7f74
VZ
13319case "${host}" in
13320 *-pc-os2_emx | *-pc-os2-emx )
13321 if test $ac_cv_header_langinfo_h = "yes"; then
13322 LIBS="$LIBS -lintl"
13323 fi
13324 ;;
13325esac
1542ea39 13326
a0b9e27f
MB
13327if test "$wxUSE_GUI" = "yes"; then
13328 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
13329
13330for ac_header in X11/XKBlib.h
21d1c967 13331do
e6cc62c6
VS
13332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13333if eval "test \"\${$as_ac_Header+set}\" = set"; then
13334 echo "$as_me:$LINENO: checking for $ac_header" >&5
13335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13336if eval "test \"\${$as_ac_Header+set}\" = set"; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338fi
13339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13341else
13342 # Is the header compilable?
13343echo "$as_me:$LINENO: checking $ac_header usability" >&5
13344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13345cat >conftest.$ac_ext <<_ACEOF
13346#line $LINENO "configure"
13347/* confdefs.h. */
13348_ACEOF
13349cat confdefs.h >>conftest.$ac_ext
13350cat >>conftest.$ac_ext <<_ACEOF
13351/* end confdefs.h. */
13352$ac_includes_default
13353#include <$ac_header>
13354_ACEOF
13355rm -f conftest.$ac_objext
13356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13357 (eval $ac_compile) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try='test -s conftest.$ac_objext'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_header_compiler=yes
13368else
13369 echo "$as_me: failed program was:" >&5
13370sed 's/^/| /' conftest.$ac_ext >&5
13371
13372ac_header_compiler=no
13373fi
13374rm -f conftest.$ac_objext conftest.$ac_ext
13375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13376echo "${ECHO_T}$ac_header_compiler" >&6
13377
13378# Is the header present?
13379echo "$as_me:$LINENO: checking $ac_header presence" >&5
13380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13381cat >conftest.$ac_ext <<_ACEOF
13382#line $LINENO "configure"
13383/* confdefs.h. */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h. */
13388#include <$ac_header>
13389_ACEOF
13390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13392 ac_status=$?
13393 grep -v '^ *+' conftest.er1 >conftest.err
13394 rm -f conftest.er1
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } >/dev/null; then
13398 if test -s conftest.err; then
13399 ac_cpp_err=$ac_c_preproc_warn_flag
13400 else
13401 ac_cpp_err=
13402 fi
13403else
13404 ac_cpp_err=yes
13405fi
13406if test -z "$ac_cpp_err"; then
13407 ac_header_preproc=yes
13408else
13409 echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 ac_header_preproc=no
13413fi
13414rm -f conftest.err conftest.$ac_ext
13415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13416echo "${ECHO_T}$ac_header_preproc" >&6
13417
13418# So? What about this header?
13419case $ac_header_compiler:$ac_header_preproc in
13420 yes:no )
13421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13425 (
13426 cat <<\_ASBOX
13427## ------------------------------------ ##
13428## Report this to bug-autoconf@gnu.org. ##
13429## ------------------------------------ ##
13430_ASBOX
13431 ) |
13432 sed "s/^/$as_me: WARNING: /" >&2
13433 ;;
13434 no:yes )
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13441 (
13442 cat <<\_ASBOX
13443## ------------------------------------ ##
13444## Report this to bug-autoconf@gnu.org. ##
13445## ------------------------------------ ##
13446_ASBOX
13447 ) |
13448 sed "s/^/$as_me: WARNING: /" >&2
13449 ;;
13450esac
13451echo "$as_me:$LINENO: checking for $ac_header" >&5
13452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13453if eval "test \"\${$as_ac_Header+set}\" = set"; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455else
13456 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13457fi
e6cc62c6
VS
13458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13460
90dd450c 13461fi
e6cc62c6
VS
13462if test `eval echo '${'$as_ac_Header'}'` = yes; then
13463 cat >>confdefs.h <<_ACEOF
13464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13465_ACEOF
13466
247f5006 13467fi
e6cc62c6 13468
247f5006
VZ
13469done
13470
a0b9e27f
MB
13471 fi
13472fi
247f5006 13473
247f5006 13474
e6cc62c6
VS
13475echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13476echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13477if test "${ac_cv_c_const+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479else
13480 cat >conftest.$ac_ext <<_ACEOF
13481#line $LINENO "configure"
13482/* confdefs.h. */
13483_ACEOF
13484cat confdefs.h >>conftest.$ac_ext
13485cat >>conftest.$ac_ext <<_ACEOF
13486/* end confdefs.h. */
13487
13488int
13489main ()
13490{
13491/* FIXME: Include the comments suggested by Paul. */
13492#ifndef __cplusplus
13493 /* Ultrix mips cc rejects this. */
13494 typedef int charset[2];
13495 const charset x;
13496 /* SunOS 4.1.1 cc rejects this. */
13497 char const *const *ccp;
13498 char **p;
13499 /* NEC SVR4.0.2 mips cc rejects this. */
13500 struct point {int x, y;};
13501 static struct point const zero = {0,0};
13502 /* AIX XL C 1.02.0.0 rejects this.
13503 It does not let you subtract one const X* pointer from another in
13504 an arm of an if-expression whose if-part is not a constant
13505 expression */
13506 const char *g = "string";
13507 ccp = &g + (g ? g-g : 0);
13508 /* HPUX 7.0 cc rejects these. */
13509 ++ccp;
13510 p = (char**) ccp;
13511 ccp = (char const *const *) p;
13512 { /* SCO 3.2v4 cc rejects this. */
13513 char *t;
13514 char const *s = 0 ? (char *) 0 : (char const *) 0;
13515
13516 *t++ = 0;
13517 }
13518 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13519 int x[] = {25, 17};
13520 const int *foo = &x[0];
13521 ++foo;
13522 }
13523 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13524 typedef const int *iptr;
13525 iptr p = 0;
13526 ++p;
13527 }
13528 { /* AIX XL C 1.02.0.0 rejects this saying
13529 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13530 struct s { int j; const int *ap[3]; };
13531 struct s *b; b->j = 5;
13532 }
13533 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13534 const int foo = 10;
13535 }
13536#endif
13537
13538 ;
13539 return 0;
13540}
13541_ACEOF
13542rm -f conftest.$ac_objext
13543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13544 (eval $ac_compile) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
13548 { ac_try='test -s conftest.$ac_objext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
a0b9e27f 13554 ac_cv_c_const=yes
247f5006 13555else
e6cc62c6
VS
13556 echo "$as_me: failed program was:" >&5
13557sed 's/^/| /' conftest.$ac_ext >&5
13558
13559ac_cv_c_const=no
247f5006 13560fi
e6cc62c6 13561rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13562fi
e6cc62c6
VS
13563echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13564echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13565if test $ac_cv_c_const = no; then
e6cc62c6
VS
13566
13567cat >>confdefs.h <<\_ACEOF
13568#define const
13569_ACEOF
10f2d63a 13570
90dd450c 13571fi
81809c07 13572
e6cc62c6
VS
13573echo "$as_me:$LINENO: checking for inline" >&5
13574echo $ECHO_N "checking for inline... $ECHO_C" >&6
13575if test "${ac_cv_c_inline+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13577else
a0b9e27f
MB
13578 ac_cv_c_inline=no
13579for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13580 cat >conftest.$ac_ext <<_ACEOF
13581#line $LINENO "configure"
13582/* confdefs.h. */
13583_ACEOF
13584cat confdefs.h >>conftest.$ac_ext
13585cat >>conftest.$ac_ext <<_ACEOF
13586/* end confdefs.h. */
13587#ifndef __cplusplus
13588typedef int foo_t;
13589static $ac_kw foo_t static_foo () {return 0; }
13590$ac_kw foo_t foo () {return 0; }
13591#endif
a0b9e27f 13592
e6cc62c6
VS
13593_ACEOF
13594rm -f conftest.$ac_objext
13595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13596 (eval $ac_compile) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } &&
13600 { ac_try='test -s conftest.$ac_objext'
13601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; }; then
a0b9e27f 13606 ac_cv_c_inline=$ac_kw; break
247f5006 13607else
e6cc62c6
VS
13608 echo "$as_me: failed program was:" >&5
13609sed 's/^/| /' conftest.$ac_ext >&5
13610
247f5006 13611fi
e6cc62c6 13612rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13613done
247f5006
VZ
13614
13615fi
e6cc62c6
VS
13616echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13617echo "${ECHO_T}$ac_cv_c_inline" >&6
13618case $ac_cv_c_inline in
a0b9e27f 13619 inline | yes) ;;
e6cc62c6
VS
13620 no)
13621cat >>confdefs.h <<\_ACEOF
13622#define inline
13623_ACEOF
a0b9e27f 13624 ;;
e6cc62c6 13625 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13626#define inline $ac_cv_c_inline
e6cc62c6 13627_ACEOF
a0b9e27f
MB
13628 ;;
13629esac
247f5006 13630
247f5006 13631
e6cc62c6
VS
13632echo "$as_me:$LINENO: checking for char" >&5
13633echo $ECHO_N "checking for char... $ECHO_C" >&6
13634if test "${ac_cv_type_char+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636else
13637 cat >conftest.$ac_ext <<_ACEOF
13638#line $LINENO "configure"
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
13644$ac_includes_default
13645int
13646main ()
13647{
13648if ((char *) 0)
13649 return 0;
13650if (sizeof (char))
13651 return 0;
13652 ;
13653 return 0;
13654}
13655_ACEOF
13656rm -f conftest.$ac_objext
13657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13658 (eval $ac_compile) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } &&
13662 { ac_try='test -s conftest.$ac_objext'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 ac_cv_type_char=yes
13669else
13670 echo "$as_me: failed program was:" >&5
13671sed 's/^/| /' conftest.$ac_ext >&5
13672
13673ac_cv_type_char=no
13674fi
13675rm -f conftest.$ac_objext conftest.$ac_ext
13676fi
13677echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13678echo "${ECHO_T}$ac_cv_type_char" >&6
13679
13680echo "$as_me:$LINENO: checking size of char" >&5
13681echo $ECHO_N "checking size of char... $ECHO_C" >&6
13682if test "${ac_cv_sizeof_char+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13684else
13685 if test "$ac_cv_type_char" = yes; then
13686 # The cast to unsigned long works around a bug in the HP C Compiler
13687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13689 # This bug is HP SR number 8606223364.
a0b9e27f 13690 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13691 # Depending upon the size, compute the lo and hi bounds.
13692cat >conftest.$ac_ext <<_ACEOF
13693#line $LINENO "configure"
13694/* confdefs.h. */
13695_ACEOF
13696cat confdefs.h >>conftest.$ac_ext
13697cat >>conftest.$ac_ext <<_ACEOF
13698/* end confdefs.h. */
13699$ac_includes_default
13700int
13701main ()
13702{
13703static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13704test_array [0] = 0
13705
13706 ;
13707 return 0;
13708}
13709_ACEOF
13710rm -f conftest.$ac_objext
13711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13712 (eval $ac_compile) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try='test -s conftest.$ac_objext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_lo=0 ac_mid=0
13723 while :; do
13724 cat >conftest.$ac_ext <<_ACEOF
13725#line $LINENO "configure"
13726/* confdefs.h. */
13727_ACEOF
13728cat confdefs.h >>conftest.$ac_ext
13729cat >>conftest.$ac_ext <<_ACEOF
13730/* end confdefs.h. */
13731$ac_includes_default
13732int
13733main ()
13734{
13735static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13736test_array [0] = 0
13737
13738 ;
13739 return 0;
13740}
13741_ACEOF
13742rm -f conftest.$ac_objext
13743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13744 (eval $ac_compile) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } &&
13748 { ac_try='test -s conftest.$ac_objext'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 ac_hi=$ac_mid; break
13755else
13756 echo "$as_me: failed program was:" >&5
13757sed 's/^/| /' conftest.$ac_ext >&5
13758
13759ac_lo=`expr $ac_mid + 1`
13760 if test $ac_lo -le $ac_mid; then
13761 ac_lo= ac_hi=
13762 break
13763 fi
13764 ac_mid=`expr 2 '*' $ac_mid + 1`
13765fi
13766rm -f conftest.$ac_objext conftest.$ac_ext
13767 done
a0b9e27f 13768else
e6cc62c6
VS
13769 echo "$as_me: failed program was:" >&5
13770sed 's/^/| /' conftest.$ac_ext >&5
13771
13772cat >conftest.$ac_ext <<_ACEOF
13773#line $LINENO "configure"
13774/* confdefs.h. */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h. */
13779$ac_includes_default
13780int
13781main ()
13782{
13783static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13784test_array [0] = 0
13785
13786 ;
13787 return 0;
13788}
13789_ACEOF
13790rm -f conftest.$ac_objext
13791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13792 (eval $ac_compile) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -s conftest.$ac_objext'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 ac_hi=-1 ac_mid=-1
13803 while :; do
13804 cat >conftest.$ac_ext <<_ACEOF
13805#line $LINENO "configure"
13806/* confdefs.h. */
13807_ACEOF
13808cat confdefs.h >>conftest.$ac_ext
13809cat >>conftest.$ac_ext <<_ACEOF
13810/* end confdefs.h. */
13811$ac_includes_default
13812int
13813main ()
13814{
13815static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13816test_array [0] = 0
13817
13818 ;
13819 return 0;
13820}
13821_ACEOF
13822rm -f conftest.$ac_objext
13823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13824 (eval $ac_compile) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
13828 { ac_try='test -s conftest.$ac_objext'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_lo=$ac_mid; break
13835else
13836 echo "$as_me: failed program was:" >&5
13837sed 's/^/| /' conftest.$ac_ext >&5
13838
13839ac_hi=`expr '(' $ac_mid ')' - 1`
13840 if test $ac_mid -le $ac_hi; then
13841 ac_lo= ac_hi=
13842 break
13843 fi
13844 ac_mid=`expr 2 '*' $ac_mid`
13845fi
13846rm -f conftest.$ac_objext conftest.$ac_ext
13847 done
13848else
13849 echo "$as_me: failed program was:" >&5
13850sed 's/^/| /' conftest.$ac_ext >&5
13851
13852ac_lo= ac_hi=
13853fi
13854rm -f conftest.$ac_objext conftest.$ac_ext
13855fi
13856rm -f conftest.$ac_objext conftest.$ac_ext
13857# Binary search between lo and hi bounds.
13858while test "x$ac_lo" != "x$ac_hi"; do
13859 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13860 cat >conftest.$ac_ext <<_ACEOF
13861#line $LINENO "configure"
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867$ac_includes_default
13868int
13869main ()
13870{
13871static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13872test_array [0] = 0
13873
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
13879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -s conftest.$ac_objext'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890 ac_hi=$ac_mid
13891else
13892 echo "$as_me: failed program was:" >&5
13893sed 's/^/| /' conftest.$ac_ext >&5
13894
13895ac_lo=`expr '(' $ac_mid ')' + 1`
13896fi
13897rm -f conftest.$ac_objext conftest.$ac_ext
13898done
13899case $ac_lo in
13900?*) ac_cv_sizeof_char=$ac_lo;;
13901'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13902See \`config.log' for more details." >&5
13903echo "$as_me: error: cannot compute sizeof (char), 77
13904See \`config.log' for more details." >&2;}
13905 { (exit 1); exit 1; }; } ;;
13906esac
13907else
13908 if test "$cross_compiling" = yes; then
13909 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13910See \`config.log' for more details." >&5
13911echo "$as_me: error: cannot run test program while cross compiling
13912See \`config.log' for more details." >&2;}
13913 { (exit 1); exit 1; }; }
13914else
13915 cat >conftest.$ac_ext <<_ACEOF
13916#line $LINENO "configure"
13917/* confdefs.h. */
13918_ACEOF
13919cat confdefs.h >>conftest.$ac_ext
13920cat >>conftest.$ac_ext <<_ACEOF
13921/* end confdefs.h. */
13922$ac_includes_default
13923long longval () { return (long) (sizeof (char)); }
13924unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13925#include <stdio.h>
e6cc62c6
VS
13926#include <stdlib.h>
13927int
13928main ()
247f5006 13929{
e6cc62c6
VS
13930
13931 FILE *f = fopen ("conftest.val", "w");
13932 if (! f)
13933 exit (1);
13934 if (((long) (sizeof (char))) < 0)
13935 {
13936 long i = longval ();
13937 if (i != ((long) (sizeof (char))))
13938 exit (1);
13939 fprintf (f, "%ld\n", i);
13940 }
13941 else
13942 {
13943 unsigned long i = ulongval ();
13944 if (i != ((long) (sizeof (char))))
13945 exit (1);
13946 fprintf (f, "%lu\n", i);
13947 }
13948 exit (ferror (f) || fclose (f) != 0);
13949
13950 ;
13951 return 0;
52127426 13952}
e6cc62c6
VS
13953_ACEOF
13954rm -f conftest$ac_exeext
13955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13956 (eval $ac_link) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 ac_cv_sizeof_char=`cat conftest.val`
13966else
13967 echo "$as_me: program exited with status $ac_status" >&5
13968echo "$as_me: failed program was:" >&5
13969sed 's/^/| /' conftest.$ac_ext >&5
13970
13971( exit $ac_status )
13972{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13973See \`config.log' for more details." >&5
13974echo "$as_me: error: cannot compute sizeof (char), 77
13975See \`config.log' for more details." >&2;}
13976 { (exit 1); exit 1; }; }
13977fi
13978rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13979fi
13980fi
13981rm -f conftest.val
247f5006 13982else
a0b9e27f 13983 ac_cv_sizeof_char=0
247f5006 13984fi
247f5006 13985fi
e6cc62c6
VS
13986echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13987echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13988cat >>confdefs.h <<_ACEOF
13989#define SIZEOF_CHAR $ac_cv_sizeof_char
13990_ACEOF
13991
13992
13993echo "$as_me:$LINENO: checking for short" >&5
13994echo $ECHO_N "checking for short... $ECHO_C" >&6
13995if test "${ac_cv_type_short+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13997else
13998 cat >conftest.$ac_ext <<_ACEOF
13999#line $LINENO "configure"
14000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
14004/* end confdefs.h. */
14005$ac_includes_default
14006int
14007main ()
14008{
14009if ((short *) 0)
14010 return 0;
14011if (sizeof (short))
14012 return 0;
14013 ;
14014 return 0;
14015}
14016_ACEOF
14017rm -f conftest.$ac_objext
14018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } &&
14023 { ac_try='test -s conftest.$ac_objext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 ac_cv_type_short=yes
14030else
14031 echo "$as_me: failed program was:" >&5
14032sed 's/^/| /' conftest.$ac_ext >&5
14033
14034ac_cv_type_short=no
14035fi
14036rm -f conftest.$ac_objext conftest.$ac_ext
14037fi
14038echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14039echo "${ECHO_T}$ac_cv_type_short" >&6
14040
14041echo "$as_me:$LINENO: checking size of short" >&5
14042echo $ECHO_N "checking size of short... $ECHO_C" >&6
14043if test "${ac_cv_sizeof_short+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14045else
14046 if test "$ac_cv_type_short" = yes; then
14047 # The cast to unsigned long works around a bug in the HP C Compiler
14048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14050 # This bug is HP SR number 8606223364.
14051 if test "$cross_compiling" = yes; then
14052 # Depending upon the size, compute the lo and hi bounds.
14053cat >conftest.$ac_ext <<_ACEOF
14054#line $LINENO "configure"
14055/* confdefs.h. */
14056_ACEOF
14057cat confdefs.h >>conftest.$ac_ext
14058cat >>conftest.$ac_ext <<_ACEOF
14059/* end confdefs.h. */
14060$ac_includes_default
14061int
14062main ()
14063{
14064static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14065test_array [0] = 0
247f5006 14066
e6cc62c6
VS
14067 ;
14068 return 0;
14069}
14070_ACEOF
14071rm -f conftest.$ac_objext
14072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14073 (eval $ac_compile) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -s conftest.$ac_objext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_lo=0 ac_mid=0
14084 while :; do
14085 cat >conftest.$ac_ext <<_ACEOF
14086#line $LINENO "configure"
14087/* confdefs.h. */
14088_ACEOF
14089cat confdefs.h >>conftest.$ac_ext
14090cat >>conftest.$ac_ext <<_ACEOF
14091/* end confdefs.h. */
14092$ac_includes_default
14093int
14094main ()
14095{
14096static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14097test_array [0] = 0
14098
14099 ;
14100 return 0;
14101}
14102_ACEOF
14103rm -f conftest.$ac_objext
14104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14105 (eval $ac_compile) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
14109 { ac_try='test -s conftest.$ac_objext'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 ac_hi=$ac_mid; break
14116else
14117 echo "$as_me: failed program was:" >&5
14118sed 's/^/| /' conftest.$ac_ext >&5
14119
14120ac_lo=`expr $ac_mid + 1`
14121 if test $ac_lo -le $ac_mid; then
14122 ac_lo= ac_hi=
14123 break
14124 fi
14125 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14126fi
e6cc62c6
VS
14127rm -f conftest.$ac_objext conftest.$ac_ext
14128 done
14129else
14130 echo "$as_me: failed program was:" >&5
14131sed 's/^/| /' conftest.$ac_ext >&5
14132
14133cat >conftest.$ac_ext <<_ACEOF
14134#line $LINENO "configure"
14135/* confdefs.h. */
14136_ACEOF
14137cat confdefs.h >>conftest.$ac_ext
14138cat >>conftest.$ac_ext <<_ACEOF
14139/* end confdefs.h. */
14140$ac_includes_default
14141int
14142main ()
14143{
14144static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14145test_array [0] = 0
247f5006 14146
e6cc62c6
VS
14147 ;
14148 return 0;
14149}
14150_ACEOF
14151rm -f conftest.$ac_objext
14152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14153 (eval $ac_compile) 2>&5
14154 ac_status=$?
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } &&
14157 { ac_try='test -s conftest.$ac_objext'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14160 ac_status=$?
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; }; then
14163 ac_hi=-1 ac_mid=-1
14164 while :; do
14165 cat >conftest.$ac_ext <<_ACEOF
14166#line $LINENO "configure"
14167/* confdefs.h. */
14168_ACEOF
14169cat confdefs.h >>conftest.$ac_ext
14170cat >>conftest.$ac_ext <<_ACEOF
14171/* end confdefs.h. */
14172$ac_includes_default
14173int
14174main ()
14175{
14176static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14177test_array [0] = 0
247f5006 14178
e6cc62c6
VS
14179 ;
14180 return 0;
14181}
14182_ACEOF
14183rm -f conftest.$ac_objext
14184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14185 (eval $ac_compile) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
14189 { ac_try='test -s conftest.$ac_objext'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_lo=$ac_mid; break
14196else
14197 echo "$as_me: failed program was:" >&5
14198sed 's/^/| /' conftest.$ac_ext >&5
14199
14200ac_hi=`expr '(' $ac_mid ')' - 1`
14201 if test $ac_mid -le $ac_hi; then
14202 ac_lo= ac_hi=
14203 break
14204 fi
14205 ac_mid=`expr 2 '*' $ac_mid`
14206fi
14207rm -f conftest.$ac_objext conftest.$ac_ext
14208 done
247f5006 14209else
e6cc62c6
VS
14210 echo "$as_me: failed program was:" >&5
14211sed 's/^/| /' conftest.$ac_ext >&5
14212
14213ac_lo= ac_hi=
14214fi
14215rm -f conftest.$ac_objext conftest.$ac_ext
14216fi
14217rm -f conftest.$ac_objext conftest.$ac_ext
14218# Binary search between lo and hi bounds.
14219while test "x$ac_lo" != "x$ac_hi"; do
14220 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14221 cat >conftest.$ac_ext <<_ACEOF
14222#line $LINENO "configure"
14223/* confdefs.h. */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h. */
14228$ac_includes_default
14229int
14230main ()
14231{
14232static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14233test_array [0] = 0
14234
14235 ;
14236 return 0;
14237}
14238_ACEOF
14239rm -f conftest.$ac_objext
14240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 ac_hi=$ac_mid
14252else
14253 echo "$as_me: failed program was:" >&5
14254sed 's/^/| /' conftest.$ac_ext >&5
14255
14256ac_lo=`expr '(' $ac_mid ')' + 1`
14257fi
14258rm -f conftest.$ac_objext conftest.$ac_ext
14259done
14260case $ac_lo in
14261?*) ac_cv_sizeof_short=$ac_lo;;
14262'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14263See \`config.log' for more details." >&5
14264echo "$as_me: error: cannot compute sizeof (short), 77
14265See \`config.log' for more details." >&2;}
14266 { (exit 1); exit 1; }; } ;;
14267esac
247f5006 14268else
e6cc62c6
VS
14269 if test "$cross_compiling" = yes; then
14270 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14271See \`config.log' for more details." >&5
14272echo "$as_me: error: cannot run test program while cross compiling
14273See \`config.log' for more details." >&2;}
14274 { (exit 1); exit 1; }; }
14275else
14276 cat >conftest.$ac_ext <<_ACEOF
14277#line $LINENO "configure"
14278/* confdefs.h. */
14279_ACEOF
14280cat confdefs.h >>conftest.$ac_ext
14281cat >>conftest.$ac_ext <<_ACEOF
14282/* end confdefs.h. */
14283$ac_includes_default
14284long longval () { return (long) (sizeof (short)); }
14285unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14286#include <stdio.h>
e6cc62c6
VS
14287#include <stdlib.h>
14288int
14289main ()
a0b9e27f 14290{
e6cc62c6
VS
14291
14292 FILE *f = fopen ("conftest.val", "w");
14293 if (! f)
14294 exit (1);
14295 if (((long) (sizeof (short))) < 0)
14296 {
14297 long i = longval ();
14298 if (i != ((long) (sizeof (short))))
14299 exit (1);
14300 fprintf (f, "%ld\n", i);
14301 }
14302 else
14303 {
14304 unsigned long i = ulongval ();
14305 if (i != ((long) (sizeof (short))))
14306 exit (1);
14307 fprintf (f, "%lu\n", i);
14308 }
14309 exit (ferror (f) || fclose (f) != 0);
14310
14311 ;
14312 return 0;
a0b9e27f 14313}
e6cc62c6
VS
14314_ACEOF
14315rm -f conftest$ac_exeext
14316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14317 (eval $ac_link) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 ac_cv_sizeof_short=`cat conftest.val`
14327else
14328 echo "$as_me: program exited with status $ac_status" >&5
14329echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
14332( exit $ac_status )
14333{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14334See \`config.log' for more details." >&5
14335echo "$as_me: error: cannot compute sizeof (short), 77
14336See \`config.log' for more details." >&2;}
14337 { (exit 1); exit 1; }; }
14338fi
14339rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14340fi
14341fi
14342rm -f conftest.val
247f5006 14343else
a0b9e27f 14344 ac_cv_sizeof_short=0
247f5006 14345fi
247f5006 14346fi
e6cc62c6
VS
14347echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14348echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14349cat >>confdefs.h <<_ACEOF
14350#define SIZEOF_SHORT $ac_cv_sizeof_short
14351_ACEOF
14352
14353
14354echo "$as_me:$LINENO: checking for void *" >&5
14355echo $ECHO_N "checking for void *... $ECHO_C" >&6
14356if test "${ac_cv_type_void_p+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358else
14359 cat >conftest.$ac_ext <<_ACEOF
14360#line $LINENO "configure"
14361/* confdefs.h. */
14362_ACEOF
14363cat confdefs.h >>conftest.$ac_ext
14364cat >>conftest.$ac_ext <<_ACEOF
14365/* end confdefs.h. */
14366$ac_includes_default
14367int
14368main ()
14369{
14370if ((void * *) 0)
14371 return 0;
14372if (sizeof (void *))
14373 return 0;
14374 ;
14375 return 0;
14376}
14377_ACEOF
14378rm -f conftest.$ac_objext
14379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14380 (eval $ac_compile) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -s conftest.$ac_objext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_type_void_p=yes
14391else
14392 echo "$as_me: failed program was:" >&5
14393sed 's/^/| /' conftest.$ac_ext >&5
14394
14395ac_cv_type_void_p=no
14396fi
14397rm -f conftest.$ac_objext conftest.$ac_ext
14398fi
14399echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14400echo "${ECHO_T}$ac_cv_type_void_p" >&6
14401
14402echo "$as_me:$LINENO: checking size of void *" >&5
14403echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14404if test "${ac_cv_sizeof_void_p+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406else
14407 if test "$ac_cv_type_void_p" = yes; then
14408 # The cast to unsigned long works around a bug in the HP C Compiler
14409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14411 # This bug is HP SR number 8606223364.
14412 if test "$cross_compiling" = yes; then
14413 # Depending upon the size, compute the lo and hi bounds.
14414cat >conftest.$ac_ext <<_ACEOF
14415#line $LINENO "configure"
14416/* confdefs.h. */
14417_ACEOF
14418cat confdefs.h >>conftest.$ac_ext
14419cat >>conftest.$ac_ext <<_ACEOF
14420/* end confdefs.h. */
14421$ac_includes_default
14422int
14423main ()
14424{
14425static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14426test_array [0] = 0
14427
14428 ;
14429 return 0;
14430}
14431_ACEOF
14432rm -f conftest.$ac_objext
14433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434 (eval $ac_compile) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -s conftest.$ac_objext'
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 ac_lo=0 ac_mid=0
14445 while :; do
14446 cat >conftest.$ac_ext <<_ACEOF
14447#line $LINENO "configure"
14448/* confdefs.h. */
14449_ACEOF
14450cat confdefs.h >>conftest.$ac_ext
14451cat >>conftest.$ac_ext <<_ACEOF
14452/* end confdefs.h. */
14453$ac_includes_default
14454int
14455main ()
14456{
14457static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14458test_array [0] = 0
247f5006 14459
e6cc62c6
VS
14460 ;
14461 return 0;
14462}
14463_ACEOF
14464rm -f conftest.$ac_objext
14465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
14470 { ac_try='test -s conftest.$ac_objext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_hi=$ac_mid; break
14477else
14478 echo "$as_me: failed program was:" >&5
14479sed 's/^/| /' conftest.$ac_ext >&5
14480
14481ac_lo=`expr $ac_mid + 1`
14482 if test $ac_lo -le $ac_mid; then
14483 ac_lo= ac_hi=
14484 break
14485 fi
14486 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14487fi
e6cc62c6
VS
14488rm -f conftest.$ac_objext conftest.$ac_ext
14489 done
14490else
14491 echo "$as_me: failed program was:" >&5
14492sed 's/^/| /' conftest.$ac_ext >&5
14493
14494cat >conftest.$ac_ext <<_ACEOF
14495#line $LINENO "configure"
14496/* confdefs.h. */
14497_ACEOF
14498cat confdefs.h >>conftest.$ac_ext
14499cat >>conftest.$ac_ext <<_ACEOF
14500/* end confdefs.h. */
14501$ac_includes_default
14502int
14503main ()
14504{
14505static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14506test_array [0] = 0
247f5006 14507
e6cc62c6
VS
14508 ;
14509 return 0;
14510}
14511_ACEOF
14512rm -f conftest.$ac_objext
14513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14514 (eval $ac_compile) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -s conftest.$ac_objext'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 ac_hi=-1 ac_mid=-1
14525 while :; do
14526 cat >conftest.$ac_ext <<_ACEOF
14527#line $LINENO "configure"
14528/* confdefs.h. */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h. */
14533$ac_includes_default
14534int
14535main ()
14536{
14537static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14538test_array [0] = 0
247f5006 14539
e6cc62c6
VS
14540 ;
14541 return 0;
14542}
14543_ACEOF
14544rm -f conftest.$ac_objext
14545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14546 (eval $ac_compile) 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -s conftest.$ac_objext'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then
14556 ac_lo=$ac_mid; break
14557else
14558 echo "$as_me: failed program was:" >&5
14559sed 's/^/| /' conftest.$ac_ext >&5
14560
14561ac_hi=`expr '(' $ac_mid ')' - 1`
14562 if test $ac_mid -le $ac_hi; then
14563 ac_lo= ac_hi=
14564 break
14565 fi
14566 ac_mid=`expr 2 '*' $ac_mid`
14567fi
14568rm -f conftest.$ac_objext conftest.$ac_ext
14569 done
a0b9e27f 14570else
e6cc62c6
VS
14571 echo "$as_me: failed program was:" >&5
14572sed 's/^/| /' conftest.$ac_ext >&5
14573
14574ac_lo= ac_hi=
14575fi
14576rm -f conftest.$ac_objext conftest.$ac_ext
14577fi
14578rm -f conftest.$ac_objext conftest.$ac_ext
14579# Binary search between lo and hi bounds.
14580while test "x$ac_lo" != "x$ac_hi"; do
14581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14582 cat >conftest.$ac_ext <<_ACEOF
14583#line $LINENO "configure"
14584/* confdefs.h. */
14585_ACEOF
14586cat confdefs.h >>conftest.$ac_ext
14587cat >>conftest.$ac_ext <<_ACEOF
14588/* end confdefs.h. */
14589$ac_includes_default
14590int
14591main ()
14592{
14593static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14594test_array [0] = 0
14595
14596 ;
14597 return 0;
14598}
14599_ACEOF
14600rm -f conftest.$ac_objext
14601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602 (eval $ac_compile) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -s conftest.$ac_objext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 ac_hi=$ac_mid
14613else
14614 echo "$as_me: failed program was:" >&5
14615sed 's/^/| /' conftest.$ac_ext >&5
14616
14617ac_lo=`expr '(' $ac_mid ')' + 1`
14618fi
14619rm -f conftest.$ac_objext conftest.$ac_ext
14620done
14621case $ac_lo in
14622?*) ac_cv_sizeof_void_p=$ac_lo;;
14623'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14624See \`config.log' for more details." >&5
14625echo "$as_me: error: cannot compute sizeof (void *), 77
14626See \`config.log' for more details." >&2;}
14627 { (exit 1); exit 1; }; } ;;
14628esac
247f5006 14629else
e6cc62c6
VS
14630 if test "$cross_compiling" = yes; then
14631 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14632See \`config.log' for more details." >&5
14633echo "$as_me: error: cannot run test program while cross compiling
14634See \`config.log' for more details." >&2;}
14635 { (exit 1); exit 1; }; }
14636else
14637 cat >conftest.$ac_ext <<_ACEOF
14638#line $LINENO "configure"
14639/* confdefs.h. */
14640_ACEOF
14641cat confdefs.h >>conftest.$ac_ext
14642cat >>conftest.$ac_ext <<_ACEOF
14643/* end confdefs.h. */
14644$ac_includes_default
14645long longval () { return (long) (sizeof (void *)); }
14646unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14647#include <stdio.h>
e6cc62c6
VS
14648#include <stdlib.h>
14649int
14650main ()
247f5006 14651{
e6cc62c6
VS
14652
14653 FILE *f = fopen ("conftest.val", "w");
14654 if (! f)
14655 exit (1);
14656 if (((long) (sizeof (void *))) < 0)
14657 {
14658 long i = longval ();
14659 if (i != ((long) (sizeof (void *))))
14660 exit (1);
14661 fprintf (f, "%ld\n", i);
14662 }
14663 else
14664 {
14665 unsigned long i = ulongval ();
14666 if (i != ((long) (sizeof (void *))))
14667 exit (1);
14668 fprintf (f, "%lu\n", i);
14669 }
14670 exit (ferror (f) || fclose (f) != 0);
14671
14672 ;
14673 return 0;
5c6fa7d2 14674}
e6cc62c6
VS
14675_ACEOF
14676rm -f conftest$ac_exeext
14677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14678 (eval $ac_link) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_cv_sizeof_void_p=`cat conftest.val`
14688else
14689 echo "$as_me: program exited with status $ac_status" >&5
14690echo "$as_me: failed program was:" >&5
14691sed 's/^/| /' conftest.$ac_ext >&5
14692
14693( exit $ac_status )
14694{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14695See \`config.log' for more details." >&5
14696echo "$as_me: error: cannot compute sizeof (void *), 77
14697See \`config.log' for more details." >&2;}
14698 { (exit 1); exit 1; }; }
14699fi
14700rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14701fi
14702fi
14703rm -f conftest.val
a0b9e27f 14704else
a0b9e27f
MB
14705 ac_cv_sizeof_void_p=0
14706fi
a0b9e27f 14707fi
e6cc62c6
VS
14708echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14709echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14710cat >>confdefs.h <<_ACEOF
14711#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14712_ACEOF
14713
14714
14715echo "$as_me:$LINENO: checking for int" >&5
14716echo $ECHO_N "checking for int... $ECHO_C" >&6
14717if test "${ac_cv_type_int+set}" = set; then
14718 echo $ECHO_N "(cached) $ECHO_C" >&6
14719else
14720 cat >conftest.$ac_ext <<_ACEOF
14721#line $LINENO "configure"
14722/* confdefs.h. */
14723_ACEOF
14724cat confdefs.h >>conftest.$ac_ext
14725cat >>conftest.$ac_ext <<_ACEOF
14726/* end confdefs.h. */
14727$ac_includes_default
14728int
14729main ()
14730{
14731if ((int *) 0)
14732 return 0;
14733if (sizeof (int))
14734 return 0;
14735 ;
14736 return 0;
14737}
14738_ACEOF
14739rm -f conftest.$ac_objext
14740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741 (eval $ac_compile) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -s conftest.$ac_objext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_cv_type_int=yes
14752else
14753 echo "$as_me: failed program was:" >&5
14754sed 's/^/| /' conftest.$ac_ext >&5
14755
14756ac_cv_type_int=no
14757fi
14758rm -f conftest.$ac_objext conftest.$ac_ext
14759fi
14760echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14761echo "${ECHO_T}$ac_cv_type_int" >&6
14762
14763echo "$as_me:$LINENO: checking size of int" >&5
14764echo $ECHO_N "checking size of int... $ECHO_C" >&6
14765if test "${ac_cv_sizeof_int+set}" = set; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14767else
14768 if test "$ac_cv_type_int" = yes; then
14769 # The cast to unsigned long works around a bug in the HP C Compiler
14770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14772 # This bug is HP SR number 8606223364.
14773 if test "$cross_compiling" = yes; then
14774 # Depending upon the size, compute the lo and hi bounds.
14775cat >conftest.$ac_ext <<_ACEOF
14776#line $LINENO "configure"
14777/* confdefs.h. */
14778_ACEOF
14779cat confdefs.h >>conftest.$ac_ext
14780cat >>conftest.$ac_ext <<_ACEOF
14781/* end confdefs.h. */
14782$ac_includes_default
14783int
14784main ()
14785{
14786static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14787test_array [0] = 0
8284b0c5 14788
e6cc62c6
VS
14789 ;
14790 return 0;
14791}
14792_ACEOF
14793rm -f conftest.$ac_objext
14794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14795 (eval $ac_compile) 2>&5
14796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try='test -s conftest.$ac_objext'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_lo=0 ac_mid=0
14806 while :; do
14807 cat >conftest.$ac_ext <<_ACEOF
14808#line $LINENO "configure"
14809/* confdefs.h. */
14810_ACEOF
14811cat confdefs.h >>conftest.$ac_ext
14812cat >>conftest.$ac_ext <<_ACEOF
14813/* end confdefs.h. */
14814$ac_includes_default
14815int
14816main ()
14817{
14818static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14819test_array [0] = 0
14820
14821 ;
14822 return 0;
14823}
14824_ACEOF
14825rm -f conftest.$ac_objext
14826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14827 (eval $ac_compile) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
14831 { ac_try='test -s conftest.$ac_objext'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }; then
14837 ac_hi=$ac_mid; break
14838else
14839 echo "$as_me: failed program was:" >&5
14840sed 's/^/| /' conftest.$ac_ext >&5
14841
14842ac_lo=`expr $ac_mid + 1`
14843 if test $ac_lo -le $ac_mid; then
14844 ac_lo= ac_hi=
14845 break
14846 fi
14847 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14848fi
e6cc62c6
VS
14849rm -f conftest.$ac_objext conftest.$ac_ext
14850 done
14851else
14852 echo "$as_me: failed program was:" >&5
14853sed 's/^/| /' conftest.$ac_ext >&5
14854
14855cat >conftest.$ac_ext <<_ACEOF
14856#line $LINENO "configure"
14857/* confdefs.h. */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h. */
14862$ac_includes_default
14863int
14864main ()
14865{
14866static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14867test_array [0] = 0
247f5006 14868
e6cc62c6
VS
14869 ;
14870 return 0;
14871}
14872_ACEOF
14873rm -f conftest.$ac_objext
14874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14875 (eval $ac_compile) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -s conftest.$ac_objext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_hi=-1 ac_mid=-1
14886 while :; do
14887 cat >conftest.$ac_ext <<_ACEOF
14888#line $LINENO "configure"
14889/* confdefs.h. */
14890_ACEOF
14891cat confdefs.h >>conftest.$ac_ext
14892cat >>conftest.$ac_ext <<_ACEOF
14893/* end confdefs.h. */
14894$ac_includes_default
14895int
14896main ()
14897{
14898static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14899test_array [0] = 0
247f5006 14900
e6cc62c6
VS
14901 ;
14902 return 0;
14903}
14904_ACEOF
14905rm -f conftest.$ac_objext
14906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14907 (eval $ac_compile) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -s conftest.$ac_objext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_lo=$ac_mid; break
14918else
14919 echo "$as_me: failed program was:" >&5
14920sed 's/^/| /' conftest.$ac_ext >&5
14921
14922ac_hi=`expr '(' $ac_mid ')' - 1`
14923 if test $ac_mid -le $ac_hi; then
14924 ac_lo= ac_hi=
14925 break
14926 fi
14927 ac_mid=`expr 2 '*' $ac_mid`
14928fi
14929rm -f conftest.$ac_objext conftest.$ac_ext
14930 done
247f5006 14931else
e6cc62c6
VS
14932 echo "$as_me: failed program was:" >&5
14933sed 's/^/| /' conftest.$ac_ext >&5
14934
14935ac_lo= ac_hi=
14936fi
14937rm -f conftest.$ac_objext conftest.$ac_ext
14938fi
14939rm -f conftest.$ac_objext conftest.$ac_ext
14940# Binary search between lo and hi bounds.
14941while test "x$ac_lo" != "x$ac_hi"; do
14942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14943 cat >conftest.$ac_ext <<_ACEOF
14944#line $LINENO "configure"
14945/* confdefs.h. */
14946_ACEOF
14947cat confdefs.h >>conftest.$ac_ext
14948cat >>conftest.$ac_ext <<_ACEOF
14949/* end confdefs.h. */
14950$ac_includes_default
14951int
14952main ()
14953{
14954static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14955test_array [0] = 0
14956
14957 ;
14958 return 0;
14959}
14960_ACEOF
14961rm -f conftest.$ac_objext
14962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14963 (eval $ac_compile) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
14967 { ac_try='test -s conftest.$ac_objext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_hi=$ac_mid
14974else
14975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978ac_lo=`expr '(' $ac_mid ')' + 1`
14979fi
14980rm -f conftest.$ac_objext conftest.$ac_ext
14981done
14982case $ac_lo in
14983?*) ac_cv_sizeof_int=$ac_lo;;
14984'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14985See \`config.log' for more details." >&5
14986echo "$as_me: error: cannot compute sizeof (int), 77
14987See \`config.log' for more details." >&2;}
14988 { (exit 1); exit 1; }; } ;;
14989esac
a0b9e27f 14990else
e6cc62c6
VS
14991 if test "$cross_compiling" = yes; then
14992 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14993See \`config.log' for more details." >&5
14994echo "$as_me: error: cannot run test program while cross compiling
14995See \`config.log' for more details." >&2;}
14996 { (exit 1); exit 1; }; }
14997else
14998 cat >conftest.$ac_ext <<_ACEOF
14999#line $LINENO "configure"
15000/* confdefs.h. */
15001_ACEOF
15002cat confdefs.h >>conftest.$ac_ext
15003cat >>conftest.$ac_ext <<_ACEOF
15004/* end confdefs.h. */
15005$ac_includes_default
15006long longval () { return (long) (sizeof (int)); }
15007unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15008#include <stdio.h>
e6cc62c6
VS
15009#include <stdlib.h>
15010int
15011main ()
247f5006 15012{
e6cc62c6
VS
15013
15014 FILE *f = fopen ("conftest.val", "w");
15015 if (! f)
15016 exit (1);
15017 if (((long) (sizeof (int))) < 0)
15018 {
15019 long i = longval ();
15020 if (i != ((long) (sizeof (int))))
15021 exit (1);
15022 fprintf (f, "%ld\n", i);
15023 }
15024 else
15025 {
15026 unsigned long i = ulongval ();
15027 if (i != ((long) (sizeof (int))))
15028 exit (1);
15029 fprintf (f, "%lu\n", i);
15030 }
15031 exit (ferror (f) || fclose (f) != 0);
15032
15033 ;
15034 return 0;
247f5006 15035}
e6cc62c6
VS
15036_ACEOF
15037rm -f conftest$ac_exeext
15038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15045 ac_status=$?
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 ac_cv_sizeof_int=`cat conftest.val`
15049else
15050 echo "$as_me: program exited with status $ac_status" >&5
15051echo "$as_me: failed program was:" >&5
15052sed 's/^/| /' conftest.$ac_ext >&5
15053
15054( exit $ac_status )
15055{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15056See \`config.log' for more details." >&5
15057echo "$as_me: error: cannot compute sizeof (int), 77
15058See \`config.log' for more details." >&2;}
15059 { (exit 1); exit 1; }; }
15060fi
15061rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15062fi
15063fi
15064rm -f conftest.val
6f72b082 15065else
a0b9e27f 15066 ac_cv_sizeof_int=0
21d1c967 15067fi
698dcdb6 15068fi
e6cc62c6
VS
15069echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15070echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15071cat >>confdefs.h <<_ACEOF
15072#define SIZEOF_INT $ac_cv_sizeof_int
15073_ACEOF
15074
15075
15076echo "$as_me:$LINENO: checking for long" >&5
15077echo $ECHO_N "checking for long... $ECHO_C" >&6
15078if test "${ac_cv_type_long+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15080else
15081 cat >conftest.$ac_ext <<_ACEOF
15082#line $LINENO "configure"
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
15087/* end confdefs.h. */
15088$ac_includes_default
15089int
15090main ()
15091{
15092if ((long *) 0)
15093 return 0;
15094if (sizeof (long))
15095 return 0;
15096 ;
15097 return 0;
15098}
15099_ACEOF
15100rm -f conftest.$ac_objext
15101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102 (eval $ac_compile) 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -s conftest.$ac_objext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_cv_type_long=yes
15113else
15114 echo "$as_me: failed program was:" >&5
15115sed 's/^/| /' conftest.$ac_ext >&5
15116
15117ac_cv_type_long=no
15118fi
15119rm -f conftest.$ac_objext conftest.$ac_ext
15120fi
15121echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15122echo "${ECHO_T}$ac_cv_type_long" >&6
15123
15124echo "$as_me:$LINENO: checking size of long" >&5
15125echo $ECHO_N "checking size of long... $ECHO_C" >&6
15126if test "${ac_cv_sizeof_long+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15128else
15129 if test "$ac_cv_type_long" = yes; then
15130 # The cast to unsigned long works around a bug in the HP C Compiler
15131 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15132 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15133 # This bug is HP SR number 8606223364.
15134 if test "$cross_compiling" = yes; then
15135 # Depending upon the size, compute the lo and hi bounds.
15136cat >conftest.$ac_ext <<_ACEOF
15137#line $LINENO "configure"
15138/* confdefs.h. */
15139_ACEOF
15140cat confdefs.h >>conftest.$ac_ext
15141cat >>conftest.$ac_ext <<_ACEOF
15142/* end confdefs.h. */
15143$ac_includes_default
15144int
15145main ()
15146{
15147static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15148test_array [0] = 0
15149
15150 ;
15151 return 0;
15152}
15153_ACEOF
15154rm -f conftest.$ac_objext
15155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15156 (eval $ac_compile) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -s conftest.$ac_objext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166 ac_lo=0 ac_mid=0
15167 while :; do
15168 cat >conftest.$ac_ext <<_ACEOF
15169#line $LINENO "configure"
15170/* confdefs.h. */
15171_ACEOF
15172cat confdefs.h >>conftest.$ac_ext
15173cat >>conftest.$ac_ext <<_ACEOF
15174/* end confdefs.h. */
15175$ac_includes_default
15176int
15177main ()
15178{
15179static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15180test_array [0] = 0
4f14bcd8 15181
e6cc62c6
VS
15182 ;
15183 return 0;
15184}
15185_ACEOF
15186rm -f conftest.$ac_objext
15187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15188 (eval $ac_compile) 2>&5
15189 ac_status=$?
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } &&
15192 { ac_try='test -s conftest.$ac_objext'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15198 ac_hi=$ac_mid; break
15199else
15200 echo "$as_me: failed program was:" >&5
15201sed 's/^/| /' conftest.$ac_ext >&5
15202
15203ac_lo=`expr $ac_mid + 1`
15204 if test $ac_lo -le $ac_mid; then
15205 ac_lo= ac_hi=
15206 break
15207 fi
15208 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15209fi
e6cc62c6
VS
15210rm -f conftest.$ac_objext conftest.$ac_ext
15211 done
15212else
15213 echo "$as_me: failed program was:" >&5
15214sed 's/^/| /' conftest.$ac_ext >&5
15215
15216cat >conftest.$ac_ext <<_ACEOF
15217#line $LINENO "configure"
15218/* confdefs.h. */
15219_ACEOF
15220cat confdefs.h >>conftest.$ac_ext
15221cat >>conftest.$ac_ext <<_ACEOF
15222/* end confdefs.h. */
15223$ac_includes_default
15224int
15225main ()
15226{
15227static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15228test_array [0] = 0
4f14bcd8 15229
e6cc62c6
VS
15230 ;
15231 return 0;
15232}
15233_ACEOF
15234rm -f conftest.$ac_objext
15235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15236 (eval $ac_compile) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } &&
15240 { ac_try='test -s conftest.$ac_objext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_hi=-1 ac_mid=-1
15247 while :; do
15248 cat >conftest.$ac_ext <<_ACEOF
15249#line $LINENO "configure"
15250/* confdefs.h. */
15251_ACEOF
15252cat confdefs.h >>conftest.$ac_ext
15253cat >>conftest.$ac_ext <<_ACEOF
15254/* end confdefs.h. */
15255$ac_includes_default
15256int
15257main ()
15258{
15259static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15260test_array [0] = 0
5c6fa7d2 15261
e6cc62c6
VS
15262 ;
15263 return 0;
15264}
15265_ACEOF
15266rm -f conftest.$ac_objext
15267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15268 (eval $ac_compile) 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } &&
15272 { ac_try='test -s conftest.$ac_objext'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
15278 ac_lo=$ac_mid; break
15279else
15280 echo "$as_me: failed program was:" >&5
15281sed 's/^/| /' conftest.$ac_ext >&5
15282
15283ac_hi=`expr '(' $ac_mid ')' - 1`
15284 if test $ac_mid -le $ac_hi; then
15285 ac_lo= ac_hi=
15286 break
15287 fi
15288 ac_mid=`expr 2 '*' $ac_mid`
15289fi
15290rm -f conftest.$ac_objext conftest.$ac_ext
15291 done
247f5006 15292else
e6cc62c6
VS
15293 echo "$as_me: failed program was:" >&5
15294sed 's/^/| /' conftest.$ac_ext >&5
15295
15296ac_lo= ac_hi=
15297fi
15298rm -f conftest.$ac_objext conftest.$ac_ext
15299fi
15300rm -f conftest.$ac_objext conftest.$ac_ext
15301# Binary search between lo and hi bounds.
15302while test "x$ac_lo" != "x$ac_hi"; do
15303 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15304 cat >conftest.$ac_ext <<_ACEOF
15305#line $LINENO "configure"
15306/* confdefs.h. */
15307_ACEOF
15308cat confdefs.h >>conftest.$ac_ext
15309cat >>conftest.$ac_ext <<_ACEOF
15310/* end confdefs.h. */
15311$ac_includes_default
15312int
15313main ()
15314{
15315static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15316test_array [0] = 0
15317
15318 ;
15319 return 0;
15320}
15321_ACEOF
15322rm -f conftest.$ac_objext
15323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15324 (eval $ac_compile) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -s conftest.$ac_objext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_hi=$ac_mid
15335else
15336 echo "$as_me: failed program was:" >&5
15337sed 's/^/| /' conftest.$ac_ext >&5
15338
15339ac_lo=`expr '(' $ac_mid ')' + 1`
15340fi
15341rm -f conftest.$ac_objext conftest.$ac_ext
15342done
15343case $ac_lo in
15344?*) ac_cv_sizeof_long=$ac_lo;;
15345'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15346See \`config.log' for more details." >&5
15347echo "$as_me: error: cannot compute sizeof (long), 77
15348See \`config.log' for more details." >&2;}
15349 { (exit 1); exit 1; }; } ;;
15350esac
247f5006 15351else
e6cc62c6
VS
15352 if test "$cross_compiling" = yes; then
15353 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15354See \`config.log' for more details." >&5
15355echo "$as_me: error: cannot run test program while cross compiling
15356See \`config.log' for more details." >&2;}
15357 { (exit 1); exit 1; }; }
15358else
15359 cat >conftest.$ac_ext <<_ACEOF
15360#line $LINENO "configure"
15361/* confdefs.h. */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h. */
15366$ac_includes_default
15367long longval () { return (long) (sizeof (long)); }
15368unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15369#include <stdio.h>
e6cc62c6
VS
15370#include <stdlib.h>
15371int
15372main ()
247f5006 15373{
e6cc62c6
VS
15374
15375 FILE *f = fopen ("conftest.val", "w");
15376 if (! f)
15377 exit (1);
15378 if (((long) (sizeof (long))) < 0)
15379 {
15380 long i = longval ();
15381 if (i != ((long) (sizeof (long))))
15382 exit (1);
15383 fprintf (f, "%ld\n", i);
15384 }
15385 else
15386 {
15387 unsigned long i = ulongval ();
15388 if (i != ((long) (sizeof (long))))
15389 exit (1);
15390 fprintf (f, "%lu\n", i);
15391 }
15392 exit (ferror (f) || fclose (f) != 0);
15393
15394 ;
15395 return 0;
247f5006 15396}
e6cc62c6
VS
15397_ACEOF
15398rm -f conftest$ac_exeext
15399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15400 (eval $ac_link) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 ac_cv_sizeof_long=`cat conftest.val`
15410else
15411 echo "$as_me: program exited with status $ac_status" >&5
15412echo "$as_me: failed program was:" >&5
15413sed 's/^/| /' conftest.$ac_ext >&5
15414
15415( exit $ac_status )
15416{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15417See \`config.log' for more details." >&5
15418echo "$as_me: error: cannot compute sizeof (long), 77
15419See \`config.log' for more details." >&2;}
15420 { (exit 1); exit 1; }; }
15421fi
15422rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15423fi
15424fi
15425rm -f conftest.val
247f5006 15426else
a0b9e27f 15427 ac_cv_sizeof_long=0
247f5006 15428fi
247f5006 15429fi
e6cc62c6
VS
15430echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15431echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15432cat >>confdefs.h <<_ACEOF
a0b9e27f 15433#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15434_ACEOF
247f5006 15435
a0b9e27f
MB
15436
15437
15438case "${host}" in
15439 arm-*-linux* )
e6cc62c6
VS
15440 echo "$as_me:$LINENO: checking for long long" >&5
15441echo $ECHO_N "checking for long long... $ECHO_C" >&6
15442if test "${ac_cv_type_long_long+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15444else
15445 cat >conftest.$ac_ext <<_ACEOF
15446#line $LINENO "configure"
15447/* confdefs.h. */
15448_ACEOF
15449cat confdefs.h >>conftest.$ac_ext
15450cat >>conftest.$ac_ext <<_ACEOF
15451/* end confdefs.h. */
15452$ac_includes_default
15453int
15454main ()
15455{
15456if ((long long *) 0)
15457 return 0;
15458if (sizeof (long long))
15459 return 0;
15460 ;
15461 return 0;
15462}
15463_ACEOF
15464rm -f conftest.$ac_objext
15465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try='test -s conftest.$ac_objext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_type_long_long=yes
15477else
15478 echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
15481ac_cv_type_long_long=no
15482fi
15483rm -f conftest.$ac_objext conftest.$ac_ext
15484fi
15485echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15486echo "${ECHO_T}$ac_cv_type_long_long" >&6
15487
15488echo "$as_me:$LINENO: checking size of long long" >&5
15489echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15490if test "${ac_cv_sizeof_long_long+set}" = set; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15492else
15493 if test "$ac_cv_type_long_long" = yes; then
15494 # The cast to unsigned long works around a bug in the HP C Compiler
15495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15497 # This bug is HP SR number 8606223364.
a0b9e27f 15498 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15499 # Depending upon the size, compute the lo and hi bounds.
15500cat >conftest.$ac_ext <<_ACEOF
15501#line $LINENO "configure"
15502/* confdefs.h. */
15503_ACEOF
15504cat confdefs.h >>conftest.$ac_ext
15505cat >>conftest.$ac_ext <<_ACEOF
15506/* end confdefs.h. */
15507$ac_includes_default
15508int
15509main ()
15510{
15511static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15512test_array [0] = 0
15513
15514 ;
15515 return 0;
15516}
15517_ACEOF
15518rm -f conftest.$ac_objext
15519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520 (eval $ac_compile) 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } &&
15524 { ac_try='test -s conftest.$ac_objext'
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_lo=0 ac_mid=0
15531 while :; do
15532 cat >conftest.$ac_ext <<_ACEOF
15533#line $LINENO "configure"
15534/* confdefs.h. */
15535_ACEOF
15536cat confdefs.h >>conftest.$ac_ext
15537cat >>conftest.$ac_ext <<_ACEOF
15538/* end confdefs.h. */
15539$ac_includes_default
15540int
15541main ()
15542{
15543static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15544test_array [0] = 0
15545
15546 ;
15547 return 0;
15548}
15549_ACEOF
15550rm -f conftest.$ac_objext
15551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15552 (eval $ac_compile) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try='test -s conftest.$ac_objext'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15559 ac_status=$?
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; }; then
15562 ac_hi=$ac_mid; break
15563else
15564 echo "$as_me: failed program was:" >&5
15565sed 's/^/| /' conftest.$ac_ext >&5
15566
15567ac_lo=`expr $ac_mid + 1`
15568 if test $ac_lo -le $ac_mid; then
15569 ac_lo= ac_hi=
15570 break
15571 fi
15572 ac_mid=`expr 2 '*' $ac_mid + 1`
15573fi
15574rm -f conftest.$ac_objext conftest.$ac_ext
15575 done
15576else
15577 echo "$as_me: failed program was:" >&5
15578sed 's/^/| /' conftest.$ac_ext >&5
15579
15580cat >conftest.$ac_ext <<_ACEOF
15581#line $LINENO "configure"
15582/* confdefs.h. */
15583_ACEOF
15584cat confdefs.h >>conftest.$ac_ext
15585cat >>conftest.$ac_ext <<_ACEOF
15586/* end confdefs.h. */
15587$ac_includes_default
15588int
15589main ()
15590{
15591static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15592test_array [0] = 0
15593
15594 ;
15595 return 0;
15596}
15597_ACEOF
15598rm -f conftest.$ac_objext
15599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15600 (eval $ac_compile) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } &&
15604 { ac_try='test -s conftest.$ac_objext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_hi=-1 ac_mid=-1
15611 while :; do
15612 cat >conftest.$ac_ext <<_ACEOF
15613#line $LINENO "configure"
15614/* confdefs.h. */
15615_ACEOF
15616cat confdefs.h >>conftest.$ac_ext
15617cat >>conftest.$ac_ext <<_ACEOF
15618/* end confdefs.h. */
15619$ac_includes_default
15620int
15621main ()
15622{
15623static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15624test_array [0] = 0
15625
15626 ;
15627 return 0;
15628}
15629_ACEOF
15630rm -f conftest.$ac_objext
15631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try='test -s conftest.$ac_objext'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 ac_lo=$ac_mid; break
15643else
15644 echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647ac_hi=`expr '(' $ac_mid ')' - 1`
15648 if test $ac_mid -le $ac_hi; then
15649 ac_lo= ac_hi=
15650 break
15651 fi
15652 ac_mid=`expr 2 '*' $ac_mid`
15653fi
15654rm -f conftest.$ac_objext conftest.$ac_ext
15655 done
15656else
15657 echo "$as_me: failed program was:" >&5
15658sed 's/^/| /' conftest.$ac_ext >&5
15659
15660ac_lo= ac_hi=
15661fi
15662rm -f conftest.$ac_objext conftest.$ac_ext
15663fi
15664rm -f conftest.$ac_objext conftest.$ac_ext
15665# Binary search between lo and hi bounds.
15666while test "x$ac_lo" != "x$ac_hi"; do
15667 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15668 cat >conftest.$ac_ext <<_ACEOF
15669#line $LINENO "configure"
15670/* confdefs.h. */
15671_ACEOF
15672cat confdefs.h >>conftest.$ac_ext
15673cat >>conftest.$ac_ext <<_ACEOF
15674/* end confdefs.h. */
15675$ac_includes_default
15676int
15677main ()
15678{
15679static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15680test_array [0] = 0
15681
15682 ;
15683 return 0;
15684}
15685_ACEOF
15686rm -f conftest.$ac_objext
15687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15688 (eval $ac_compile) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_hi=$ac_mid
15699else
15700 echo "$as_me: failed program was:" >&5
15701sed 's/^/| /' conftest.$ac_ext >&5
15702
15703ac_lo=`expr '(' $ac_mid ')' + 1`
15704fi
15705rm -f conftest.$ac_objext conftest.$ac_ext
15706done
15707case $ac_lo in
15708?*) ac_cv_sizeof_long_long=$ac_lo;;
15709'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15710See \`config.log' for more details." >&5
15711echo "$as_me: error: cannot compute sizeof (long long), 77
15712See \`config.log' for more details." >&2;}
15713 { (exit 1); exit 1; }; } ;;
15714esac
a0b9e27f 15715else
e6cc62c6
VS
15716 if test "$cross_compiling" = yes; then
15717 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15718See \`config.log' for more details." >&5
15719echo "$as_me: error: cannot run test program while cross compiling
15720See \`config.log' for more details." >&2;}
15721 { (exit 1); exit 1; }; }
15722else
15723 cat >conftest.$ac_ext <<_ACEOF
15724#line $LINENO "configure"
15725/* confdefs.h. */
15726_ACEOF
15727cat confdefs.h >>conftest.$ac_ext
15728cat >>conftest.$ac_ext <<_ACEOF
15729/* end confdefs.h. */
15730$ac_includes_default
15731long longval () { return (long) (sizeof (long long)); }
15732unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15733#include <stdio.h>
e6cc62c6
VS
15734#include <stdlib.h>
15735int
15736main ()
247f5006 15737{
e6cc62c6
VS
15738
15739 FILE *f = fopen ("conftest.val", "w");
15740 if (! f)
15741 exit (1);
15742 if (((long) (sizeof (long long))) < 0)
15743 {
15744 long i = longval ();
15745 if (i != ((long) (sizeof (long long))))
15746 exit (1);
15747 fprintf (f, "%ld\n", i);
15748 }
15749 else
15750 {
15751 unsigned long i = ulongval ();
15752 if (i != ((long) (sizeof (long long))))
15753 exit (1);
15754 fprintf (f, "%lu\n", i);
15755 }
15756 exit (ferror (f) || fclose (f) != 0);
15757
15758 ;
15759 return 0;
247f5006 15760}
e6cc62c6
VS
15761_ACEOF
15762rm -f conftest$ac_exeext
15763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764 (eval $ac_link) 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_cv_sizeof_long_long=`cat conftest.val`
15774else
15775 echo "$as_me: program exited with status $ac_status" >&5
15776echo "$as_me: failed program was:" >&5
15777sed 's/^/| /' conftest.$ac_ext >&5
15778
15779( exit $ac_status )
15780{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15781See \`config.log' for more details." >&5
15782echo "$as_me: error: cannot compute sizeof (long long), 77
15783See \`config.log' for more details." >&2;}
15784 { (exit 1); exit 1; }; }
15785fi
15786rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15787fi
15788fi
15789rm -f conftest.val
7b4a847f 15790else
a0b9e27f 15791 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15792fi
15793fi
e6cc62c6
VS
15794echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15795echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15796cat >>confdefs.h <<_ACEOF
15797#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15798_ACEOF
15799
15800
15801 ;;
15802 *-hp-hpux* )
15803 echo "$as_me:$LINENO: checking for long long" >&5
15804echo $ECHO_N "checking for long long... $ECHO_C" >&6
15805if test "${ac_cv_type_long_long+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15807else
15808 cat >conftest.$ac_ext <<_ACEOF
15809#line $LINENO "configure"
15810/* confdefs.h. */
15811_ACEOF
15812cat confdefs.h >>conftest.$ac_ext
15813cat >>conftest.$ac_ext <<_ACEOF
15814/* end confdefs.h. */
15815$ac_includes_default
15816int
15817main ()
15818{
15819if ((long long *) 0)
15820 return 0;
15821if (sizeof (long long))
15822 return 0;
15823 ;
15824 return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829 (eval $ac_compile) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } &&
15833 { ac_try='test -s conftest.$ac_objext'
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; }; then
15839 ac_cv_type_long_long=yes
15840else
15841 echo "$as_me: failed program was:" >&5
15842sed 's/^/| /' conftest.$ac_ext >&5
15843
15844ac_cv_type_long_long=no
15845fi
15846rm -f conftest.$ac_objext conftest.$ac_ext
15847fi
15848echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15849echo "${ECHO_T}$ac_cv_type_long_long" >&6
15850
15851echo "$as_me:$LINENO: checking size of long long" >&5
15852echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15853if test "${ac_cv_sizeof_long_long+set}" = set; then
15854 echo $ECHO_N "(cached) $ECHO_C" >&6
15855else
15856 if test "$ac_cv_type_long_long" = yes; then
15857 # The cast to unsigned long works around a bug in the HP C Compiler
15858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15860 # This bug is HP SR number 8606223364.
15861 if test "$cross_compiling" = yes; then
15862 # Depending upon the size, compute the lo and hi bounds.
15863cat >conftest.$ac_ext <<_ACEOF
15864#line $LINENO "configure"
15865/* confdefs.h. */
15866_ACEOF
15867cat confdefs.h >>conftest.$ac_ext
15868cat >>conftest.$ac_ext <<_ACEOF
15869/* end confdefs.h. */
15870$ac_includes_default
15871int
15872main ()
15873{
15874static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15875test_array [0] = 0
15876
15877 ;
15878 return 0;
15879}
15880_ACEOF
15881rm -f conftest.$ac_objext
15882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try='test -s conftest.$ac_objext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 ac_lo=0 ac_mid=0
15894 while :; do
15895 cat >conftest.$ac_ext <<_ACEOF
15896#line $LINENO "configure"
15897/* confdefs.h. */
15898_ACEOF
15899cat confdefs.h >>conftest.$ac_ext
15900cat >>conftest.$ac_ext <<_ACEOF
15901/* end confdefs.h. */
15902$ac_includes_default
15903int
15904main ()
15905{
15906static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15907test_array [0] = 0
8284b0c5 15908
e6cc62c6
VS
15909 ;
15910 return 0;
15911}
15912_ACEOF
15913rm -f conftest.$ac_objext
15914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15915 (eval $ac_compile) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } &&
15919 { ac_try='test -s conftest.$ac_objext'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 ac_hi=$ac_mid; break
15926else
15927 echo "$as_me: failed program was:" >&5
15928sed 's/^/| /' conftest.$ac_ext >&5
15929
15930ac_lo=`expr $ac_mid + 1`
15931 if test $ac_lo -le $ac_mid; then
15932 ac_lo= ac_hi=
15933 break
15934 fi
15935 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 15936fi
e6cc62c6
VS
15937rm -f conftest.$ac_objext conftest.$ac_ext
15938 done
15939else
15940 echo "$as_me: failed program was:" >&5
15941sed 's/^/| /' conftest.$ac_ext >&5
15942
15943cat >conftest.$ac_ext <<_ACEOF
15944#line $LINENO "configure"
15945/* confdefs.h. */
15946_ACEOF
15947cat confdefs.h >>conftest.$ac_ext
15948cat >>conftest.$ac_ext <<_ACEOF
15949/* end confdefs.h. */
15950$ac_includes_default
15951int
15952main ()
15953{
15954static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15955test_array [0] = 0
a0b9e27f 15956
e6cc62c6
VS
15957 ;
15958 return 0;
15959}
15960_ACEOF
15961rm -f conftest.$ac_objext
15962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15963 (eval $ac_compile) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } &&
15967 { ac_try='test -s conftest.$ac_objext'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; }; then
15973 ac_hi=-1 ac_mid=-1
15974 while :; do
15975 cat >conftest.$ac_ext <<_ACEOF
15976#line $LINENO "configure"
15977/* confdefs.h. */
15978_ACEOF
15979cat confdefs.h >>conftest.$ac_ext
15980cat >>conftest.$ac_ext <<_ACEOF
15981/* end confdefs.h. */
15982$ac_includes_default
15983int
15984main ()
15985{
15986static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15987test_array [0] = 0
a0b9e27f 15988
e6cc62c6
VS
15989 ;
15990 return 0;
15991}
15992_ACEOF
15993rm -f conftest.$ac_objext
15994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15995 (eval $ac_compile) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } &&
15999 { ac_try='test -s conftest.$ac_objext'
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16002 ac_status=$?
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; }; then
16005 ac_lo=$ac_mid; break
16006else
16007 echo "$as_me: failed program was:" >&5
16008sed 's/^/| /' conftest.$ac_ext >&5
16009
16010ac_hi=`expr '(' $ac_mid ')' - 1`
16011 if test $ac_mid -le $ac_hi; then
16012 ac_lo= ac_hi=
16013 break
16014 fi
16015 ac_mid=`expr 2 '*' $ac_mid`
16016fi
16017rm -f conftest.$ac_objext conftest.$ac_ext
16018 done
8284b0c5 16019else
e6cc62c6
VS
16020 echo "$as_me: failed program was:" >&5
16021sed 's/^/| /' conftest.$ac_ext >&5
16022
16023ac_lo= ac_hi=
16024fi
16025rm -f conftest.$ac_objext conftest.$ac_ext
16026fi
16027rm -f conftest.$ac_objext conftest.$ac_ext
16028# Binary search between lo and hi bounds.
16029while test "x$ac_lo" != "x$ac_hi"; do
16030 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16031 cat >conftest.$ac_ext <<_ACEOF
16032#line $LINENO "configure"
16033/* confdefs.h. */
16034_ACEOF
16035cat confdefs.h >>conftest.$ac_ext
16036cat >>conftest.$ac_ext <<_ACEOF
16037/* end confdefs.h. */
16038$ac_includes_default
16039int
16040main ()
16041{
16042static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16043test_array [0] = 0
16044
16045 ;
16046 return 0;
16047}
16048_ACEOF
16049rm -f conftest.$ac_objext
16050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051 (eval $ac_compile) 2>&5
16052 ac_status=$?
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try='test -s conftest.$ac_objext'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 ac_hi=$ac_mid
16062else
16063 echo "$as_me: failed program was:" >&5
16064sed 's/^/| /' conftest.$ac_ext >&5
16065
16066ac_lo=`expr '(' $ac_mid ')' + 1`
16067fi
16068rm -f conftest.$ac_objext conftest.$ac_ext
16069done
16070case $ac_lo in
16071?*) ac_cv_sizeof_long_long=$ac_lo;;
16072'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16073See \`config.log' for more details." >&5
16074echo "$as_me: error: cannot compute sizeof (long long), 77
16075See \`config.log' for more details." >&2;}
16076 { (exit 1); exit 1; }; } ;;
16077esac
8284b0c5 16078else
e6cc62c6
VS
16079 if test "$cross_compiling" = yes; then
16080 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16081See \`config.log' for more details." >&5
16082echo "$as_me: error: cannot run test program while cross compiling
16083See \`config.log' for more details." >&2;}
16084 { (exit 1); exit 1; }; }
16085else
16086 cat >conftest.$ac_ext <<_ACEOF
16087#line $LINENO "configure"
16088/* confdefs.h. */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h. */
16093$ac_includes_default
16094long longval () { return (long) (sizeof (long long)); }
16095unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16096#include <stdio.h>
e6cc62c6
VS
16097#include <stdlib.h>
16098int
16099main ()
8284b0c5 16100{
e6cc62c6
VS
16101
16102 FILE *f = fopen ("conftest.val", "w");
16103 if (! f)
16104 exit (1);
16105 if (((long) (sizeof (long long))) < 0)
16106 {
16107 long i = longval ();
16108 if (i != ((long) (sizeof (long long))))
16109 exit (1);
16110 fprintf (f, "%ld\n", i);
16111 }
16112 else
16113 {
16114 unsigned long i = ulongval ();
16115 if (i != ((long) (sizeof (long long))))
16116 exit (1);
16117 fprintf (f, "%lu\n", i);
16118 }
16119 exit (ferror (f) || fclose (f) != 0);
16120
16121 ;
16122 return 0;
8284b0c5 16123}
e6cc62c6
VS
16124_ACEOF
16125rm -f conftest$ac_exeext
16126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16127 (eval $ac_link) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16136 ac_cv_sizeof_long_long=`cat conftest.val`
16137else
16138 echo "$as_me: program exited with status $ac_status" >&5
16139echo "$as_me: failed program was:" >&5
16140sed 's/^/| /' conftest.$ac_ext >&5
16141
16142( exit $ac_status )
16143{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16144See \`config.log' for more details." >&5
16145echo "$as_me: error: cannot compute sizeof (long long), 77
16146See \`config.log' for more details." >&2;}
16147 { (exit 1); exit 1; }; }
16148fi
16149rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16150fi
16151fi
16152rm -f conftest.val
5c6fa7d2
RR
16153else
16154 ac_cv_sizeof_long_long=0
52127426 16155fi
4f57cf11 16156fi
e6cc62c6
VS
16157echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16158echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16159cat >>confdefs.h <<_ACEOF
4f57cf11 16160#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16161_ACEOF
4f57cf11
GD
16162
16163
16164 if test "$ac_cv_sizeof_long_long" != "0"; then
16165 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16166 fi
16167 ;;
16168 * )
e6cc62c6
VS
16169 echo "$as_me:$LINENO: checking for long long" >&5
16170echo $ECHO_N "checking for long long... $ECHO_C" >&6
16171if test "${ac_cv_type_long_long+set}" = set; then
16172 echo $ECHO_N "(cached) $ECHO_C" >&6
16173else
16174 cat >conftest.$ac_ext <<_ACEOF
16175#line $LINENO "configure"
16176/* confdefs.h. */
16177_ACEOF
16178cat confdefs.h >>conftest.$ac_ext
16179cat >>conftest.$ac_ext <<_ACEOF
16180/* end confdefs.h. */
16181$ac_includes_default
16182int
16183main ()
16184{
16185if ((long long *) 0)
16186 return 0;
16187if (sizeof (long long))
16188 return 0;
16189 ;
16190 return 0;
16191}
16192_ACEOF
16193rm -f conftest.$ac_objext
16194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16195 (eval $ac_compile) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -s conftest.$ac_objext'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_cv_type_long_long=yes
16206else
16207 echo "$as_me: failed program was:" >&5
16208sed 's/^/| /' conftest.$ac_ext >&5
16209
16210ac_cv_type_long_long=no
16211fi
16212rm -f conftest.$ac_objext conftest.$ac_ext
16213fi
16214echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16215echo "${ECHO_T}$ac_cv_type_long_long" >&6
16216
16217echo "$as_me:$LINENO: checking size of long long" >&5
16218echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16219if test "${ac_cv_sizeof_long_long+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221else
16222 if test "$ac_cv_type_long_long" = yes; then
16223 # The cast to unsigned long works around a bug in the HP C Compiler
16224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16226 # This bug is HP SR number 8606223364.
4f57cf11 16227 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16228 # Depending upon the size, compute the lo and hi bounds.
16229cat >conftest.$ac_ext <<_ACEOF
16230#line $LINENO "configure"
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236$ac_includes_default
16237int
16238main ()
16239{
16240static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16241test_array [0] = 0
16242
16243 ;
16244 return 0;
16245}
16246_ACEOF
16247rm -f conftest.$ac_objext
16248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16249 (eval $ac_compile) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
16253 { ac_try='test -s conftest.$ac_objext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_lo=0 ac_mid=0
16260 while :; do
16261 cat >conftest.$ac_ext <<_ACEOF
16262#line $LINENO "configure"
16263/* confdefs.h. */
16264_ACEOF
16265cat confdefs.h >>conftest.$ac_ext
16266cat >>conftest.$ac_ext <<_ACEOF
16267/* end confdefs.h. */
16268$ac_includes_default
16269int
16270main ()
16271{
16272static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16273test_array [0] = 0
16274
16275 ;
16276 return 0;
16277}
16278_ACEOF
16279rm -f conftest.$ac_objext
16280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16281 (eval $ac_compile) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
16285 { ac_try='test -s conftest.$ac_objext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 ac_hi=$ac_mid; break
16292else
16293 echo "$as_me: failed program was:" >&5
16294sed 's/^/| /' conftest.$ac_ext >&5
16295
16296ac_lo=`expr $ac_mid + 1`
16297 if test $ac_lo -le $ac_mid; then
16298 ac_lo= ac_hi=
16299 break
16300 fi
16301 ac_mid=`expr 2 '*' $ac_mid + 1`
16302fi
16303rm -f conftest.$ac_objext conftest.$ac_ext
16304 done
16305else
16306 echo "$as_me: failed program was:" >&5
16307sed 's/^/| /' conftest.$ac_ext >&5
16308
16309cat >conftest.$ac_ext <<_ACEOF
16310#line $LINENO "configure"
16311/* confdefs.h. */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
16315/* end confdefs.h. */
16316$ac_includes_default
16317int
16318main ()
16319{
16320static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16321test_array [0] = 0
16322
16323 ;
16324 return 0;
16325}
16326_ACEOF
16327rm -f conftest.$ac_objext
16328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16329 (eval $ac_compile) 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
16333 { ac_try='test -s conftest.$ac_objext'
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16336 ac_status=$?
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; }; then
16339 ac_hi=-1 ac_mid=-1
16340 while :; do
16341 cat >conftest.$ac_ext <<_ACEOF
16342#line $LINENO "configure"
16343/* confdefs.h. */
16344_ACEOF
16345cat confdefs.h >>conftest.$ac_ext
16346cat >>conftest.$ac_ext <<_ACEOF
16347/* end confdefs.h. */
16348$ac_includes_default
16349int
16350main ()
16351{
16352static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16353test_array [0] = 0
16354
16355 ;
16356 return 0;
16357}
16358_ACEOF
16359rm -f conftest.$ac_objext
16360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16361 (eval $ac_compile) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
16365 { ac_try='test -s conftest.$ac_objext'
16366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16368 ac_status=$?
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; }; then
16371 ac_lo=$ac_mid; break
16372else
16373 echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376ac_hi=`expr '(' $ac_mid ')' - 1`
16377 if test $ac_mid -le $ac_hi; then
16378 ac_lo= ac_hi=
16379 break
16380 fi
16381 ac_mid=`expr 2 '*' $ac_mid`
16382fi
16383rm -f conftest.$ac_objext conftest.$ac_ext
16384 done
4f57cf11 16385else
e6cc62c6
VS
16386 echo "$as_me: failed program was:" >&5
16387sed 's/^/| /' conftest.$ac_ext >&5
16388
16389ac_lo= ac_hi=
16390fi
16391rm -f conftest.$ac_objext conftest.$ac_ext
16392fi
16393rm -f conftest.$ac_objext conftest.$ac_ext
16394# Binary search between lo and hi bounds.
16395while test "x$ac_lo" != "x$ac_hi"; do
16396 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16397 cat >conftest.$ac_ext <<_ACEOF
16398#line $LINENO "configure"
16399/* confdefs.h. */
16400_ACEOF
16401cat confdefs.h >>conftest.$ac_ext
16402cat >>conftest.$ac_ext <<_ACEOF
16403/* end confdefs.h. */
16404$ac_includes_default
16405int
16406main ()
16407{
16408static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16409test_array [0] = 0
16410
16411 ;
16412 return 0;
16413}
16414_ACEOF
16415rm -f conftest.$ac_objext
16416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16417 (eval $ac_compile) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -s conftest.$ac_objext'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16427 ac_hi=$ac_mid
16428else
16429 echo "$as_me: failed program was:" >&5
16430sed 's/^/| /' conftest.$ac_ext >&5
16431
16432ac_lo=`expr '(' $ac_mid ')' + 1`
16433fi
16434rm -f conftest.$ac_objext conftest.$ac_ext
16435done
16436case $ac_lo in
16437?*) ac_cv_sizeof_long_long=$ac_lo;;
16438'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16439See \`config.log' for more details." >&5
16440echo "$as_me: error: cannot compute sizeof (long long), 77
16441See \`config.log' for more details." >&2;}
16442 { (exit 1); exit 1; }; } ;;
16443esac
16444else
16445 if test "$cross_compiling" = yes; then
16446 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16447See \`config.log' for more details." >&5
16448echo "$as_me: error: cannot run test program while cross compiling
16449See \`config.log' for more details." >&2;}
16450 { (exit 1); exit 1; }; }
16451else
16452 cat >conftest.$ac_ext <<_ACEOF
16453#line $LINENO "configure"
16454/* confdefs.h. */
16455_ACEOF
16456cat confdefs.h >>conftest.$ac_ext
16457cat >>conftest.$ac_ext <<_ACEOF
16458/* end confdefs.h. */
16459$ac_includes_default
16460long longval () { return (long) (sizeof (long long)); }
16461unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16462#include <stdio.h>
e6cc62c6
VS
16463#include <stdlib.h>
16464int
16465main ()
4f57cf11 16466{
e6cc62c6
VS
16467
16468 FILE *f = fopen ("conftest.val", "w");
16469 if (! f)
16470 exit (1);
16471 if (((long) (sizeof (long long))) < 0)
16472 {
16473 long i = longval ();
16474 if (i != ((long) (sizeof (long long))))
16475 exit (1);
16476 fprintf (f, "%ld\n", i);
16477 }
16478 else
16479 {
16480 unsigned long i = ulongval ();
16481 if (i != ((long) (sizeof (long long))))
16482 exit (1);
16483 fprintf (f, "%lu\n", i);
16484 }
16485 exit (ferror (f) || fclose (f) != 0);
16486
16487 ;
16488 return 0;
4f57cf11 16489}
e6cc62c6
VS
16490_ACEOF
16491rm -f conftest$ac_exeext
16492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16493 (eval $ac_link) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_cv_sizeof_long_long=`cat conftest.val`
16503else
16504 echo "$as_me: program exited with status $ac_status" >&5
16505echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508( exit $ac_status )
16509{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16510See \`config.log' for more details." >&5
16511echo "$as_me: error: cannot compute sizeof (long long), 77
16512See \`config.log' for more details." >&2;}
16513 { (exit 1); exit 1; }; }
16514fi
16515rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16516fi
16517fi
16518rm -f conftest.val
4f57cf11 16519else
4f57cf11
GD
16520 ac_cv_sizeof_long_long=0
16521fi
7b4a847f 16522fi
e6cc62c6
VS
16523echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16524echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16525cat >>confdefs.h <<_ACEOF
21d1c967 16526#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16527_ACEOF
9e691f46 16528
8284b0c5 16529
21d1c967
GD
16530esac
16531
e6cc62c6
VS
16532echo "$as_me:$LINENO: checking size of wchar_t" >&5
16533echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16534if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16536else
e6cc62c6 16537
21d1c967 16538 if test "$cross_compiling" = yes; then
e6cc62c6 16539
2b5f62a0
VZ
16540 case "${host}" in
16541 *-pc-msdosdjgpp )
16542 wx_cv_sizeof_wchar_t=0
16543 ;;
16544 * )
16545 wx_cv_sizeof_wchar_t=4
16546 ;;
16547 esac
e6cc62c6
VS
16548
16549
6f72b082 16550else
e6cc62c6
VS
16551 cat >conftest.$ac_ext <<_ACEOF
16552#line $LINENO "configure"
16553/* confdefs.h. */
16554_ACEOF
16555cat confdefs.h >>conftest.$ac_ext
16556cat >>conftest.$ac_ext <<_ACEOF
16557/* end confdefs.h. */
21d1c967 16558
2b5f62a0
VZ
16559 /* DJGPP only has fake wchar_t: */
16560 #ifdef __DJGPP__
16561 # error "fake wchar_t"
16562 #endif
21d1c967
GD
16563 #ifdef HAVE_WCHAR_H
16564 # ifdef __CYGWIN__
16565 # include <stddef.h>
16566 # endif
16567 # include <wchar.h>
16568 #endif
16569 #ifdef HAVE_STDLIB_H
16570 # include <stdlib.h>
16571 #endif
16572 #include <stdio.h>
16573 int main()
16574 {
16575 FILE *f=fopen("conftestval", "w");
16576 if (!f) exit(1);
16577 fprintf(f, "%i", sizeof(wchar_t));
16578 exit(0);
16579 }
e6cc62c6
VS
16580
16581_ACEOF
16582rm -f conftest$ac_exeext
16583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16584 (eval $ac_link) 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
21d1c967 16593 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16594else
e6cc62c6
VS
16595 echo "$as_me: program exited with status $ac_status" >&5
16596echo "$as_me: failed program was:" >&5
16597sed 's/^/| /' conftest.$ac_ext >&5
16598
16599( exit $ac_status )
16600wx_cv_sizeof_wchar_t=0
6f72b082 16601fi
e6cc62c6 16602rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16603fi
6f72b082 16604
3f345b47 16605fi
e6cc62c6
VS
16606echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16607echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16608
e6cc62c6 16609cat >>confdefs.h <<_ACEOF
21d1c967 16610#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16611_ACEOF
90dd450c 16612
8284b0c5 16613
21d1c967
GD
16614# Check whether --enable-largefile or --disable-largefile was given.
16615if test "${enable_largefile+set}" = set; then
16616 enableval="$enable_largefile"
3f345b47 16617
e6cc62c6 16618fi;
21d1c967
GD
16619if test "$enable_largefile" != no; then
16620 wx_largefile=no
e6cc62c6
VS
16621
16622 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16623echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16624if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16626else
16627
16628 cat >conftest.$ac_ext <<_ACEOF
16629#line $LINENO "configure"
16630/* confdefs.h. */
16631_ACEOF
16632cat confdefs.h >>conftest.$ac_ext
16633cat >>conftest.$ac_ext <<_ACEOF
16634/* end confdefs.h. */
21d1c967
GD
16635#define _FILE_OFFSET_BITS 64
16636 #include <sys/types.h>
e6cc62c6
VS
16637int
16638main ()
16639{
21d1c967
GD
16640typedef struct {
16641 unsigned int field: sizeof(off_t) == 8;
16642} wxlf;
16643
e6cc62c6
VS
16644 ;
16645 return 0;
16646}
16647_ACEOF
16648rm -f conftest.$ac_objext
16649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16650 (eval $ac_compile) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } &&
16654 { ac_try='test -s conftest.$ac_objext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
21d1c967 16660 ac_cv_sys_file_offset_bits=64
f6bcfd97 16661else
e6cc62c6
VS
16662 echo "$as_me: failed program was:" >&5
16663sed 's/^/| /' conftest.$ac_ext >&5
16664
16665ac_cv_sys_file_offset_bits=no
247f5006 16666fi
e6cc62c6
VS
16667rm -f conftest.$ac_objext conftest.$ac_ext
16668
a0b9e27f 16669
e6cc62c6
VS
16670fi
16671echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16672echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16673
16674 if test "$ac_cv_sys_file_offset_bits" != no; then
16675 wx_largefile=yes
e6cc62c6 16676 cat >>confdefs.h <<_ACEOF
21d1c967 16677#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16678_ACEOF
21d1c967
GD
16679
16680 fi
16681
16682 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16683
16684 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16685echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16686if test "${ac_cv_sys_large_files+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688else
16689
16690 cat >conftest.$ac_ext <<_ACEOF
16691#line $LINENO "configure"
16692/* confdefs.h. */
16693_ACEOF
16694cat confdefs.h >>conftest.$ac_ext
16695cat >>conftest.$ac_ext <<_ACEOF
16696/* end confdefs.h. */
21d1c967
GD
16697#define _LARGE_FILES 1
16698 #include <sys/types.h>
e6cc62c6
VS
16699int
16700main ()
16701{
21d1c967
GD
16702typedef struct {
16703 unsigned int field: sizeof(off_t) == 8;
16704} wxlf;
16705
e6cc62c6
VS
16706 ;
16707 return 0;
16708}
16709_ACEOF
16710rm -f conftest.$ac_objext
16711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712 (eval $ac_compile) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -s conftest.$ac_objext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
21d1c967 16722 ac_cv_sys_large_files=1
f6bcfd97 16723else
e6cc62c6
VS
16724 echo "$as_me: failed program was:" >&5
16725sed 's/^/| /' conftest.$ac_ext >&5
16726
16727ac_cv_sys_large_files=no
247f5006 16728fi
e6cc62c6 16729rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16730
e6cc62c6
VS
16731
16732fi
16733echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16734echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16735
21d1c967
GD
16736 if test "$ac_cv_sys_large_files" != no; then
16737 wx_largefile=yes
e6cc62c6 16738 cat >>confdefs.h <<_ACEOF
21d1c967 16739#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16740_ACEOF
90dd450c 16741
90dd450c
VZ
16742 fi
16743
90dd450c 16744 fi
90dd450c 16745
e6cc62c6
VS
16746 echo "$as_me:$LINENO: checking if large file support is available" >&5
16747echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16748 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16749 cat >>confdefs.h <<\_ACEOF
21d1c967 16750#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16751_ACEOF
90dd450c 16752
90dd450c 16753 fi
e6cc62c6
VS
16754 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16755echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16756fi
90dd450c 16757
8284b0c5 16758
f02444d0 16759if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16760 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16761 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16762 else
e26c13cf 16763 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16764 fi
e26c13cf 16765 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16766fi
16767
e6cc62c6
VS
16768echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16769echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16770if test "${ac_cv_c_bigendian+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16772else
21d1c967
GD
16773 ac_cv_c_bigendian=unknown
16774# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16775cat >conftest.$ac_ext <<_ACEOF
16776#line $LINENO "configure"
16777/* confdefs.h. */
16778_ACEOF
16779cat confdefs.h >>conftest.$ac_ext
16780cat >>conftest.$ac_ext <<_ACEOF
16781/* end confdefs.h. */
21d1c967
GD
16782#include <sys/types.h>
16783#include <sys/param.h>
e6cc62c6
VS
16784int
16785main ()
16786{
21d1c967
GD
16787
16788#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16789 bogus endian macros
16790#endif
e6cc62c6
VS
16791 ;
16792 return 0;
16793}
16794_ACEOF
16795rm -f conftest.$ac_objext
16796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16797 (eval $ac_compile) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } &&
16801 { ac_try='test -s conftest.$ac_objext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
21d1c967 16807 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16808cat >conftest.$ac_ext <<_ACEOF
16809#line $LINENO "configure"
16810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
16814/* end confdefs.h. */
21d1c967
GD
16815#include <sys/types.h>
16816#include <sys/param.h>
e6cc62c6
VS
16817int
16818main ()
16819{
21d1c967
GD
16820
16821#if BYTE_ORDER != BIG_ENDIAN
16822 not big endian
16823#endif
e6cc62c6
VS
16824 ;
16825 return 0;
16826}
16827_ACEOF
16828rm -f conftest.$ac_objext
16829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16830 (eval $ac_compile) 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } &&
16834 { ac_try='test -s conftest.$ac_objext'
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
21d1c967 16840 ac_cv_c_bigendian=yes
3f345b47 16841else
e6cc62c6
VS
16842 echo "$as_me: failed program was:" >&5
16843sed 's/^/| /' conftest.$ac_ext >&5
16844
16845ac_cv_c_bigendian=no
3f345b47 16846fi
e6cc62c6 16847rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16848else
e6cc62c6
VS
16849 echo "$as_me: failed program was:" >&5
16850sed 's/^/| /' conftest.$ac_ext >&5
16851
3f345b47 16852fi
e6cc62c6 16853rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16854if test $ac_cv_c_bigendian = unknown; then
16855if test "$cross_compiling" = yes; then
16856 ac_cv_c_bigendian=unknown
10f2d63a 16857else
e6cc62c6
VS
16858 cat >conftest.$ac_ext <<_ACEOF
16859#line $LINENO "configure"
16860/* confdefs.h. */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h. */
21d1c967
GD
16865main () {
16866 /* Are we little or big endian? From Harbison&Steele. */
16867 union
16868 {
16869 long l;
16870 char c[sizeof (long)];
16871 } u;
16872 u.l = 1;
16873 exit (u.c[sizeof (long) - 1] == 1);
16874}
e6cc62c6
VS
16875_ACEOF
16876rm -f conftest$ac_exeext
16877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
21d1c967 16887 ac_cv_c_bigendian=no
3f345b47 16888else
e6cc62c6
VS
16889 echo "$as_me: program exited with status $ac_status" >&5
16890echo "$as_me: failed program was:" >&5
16891sed 's/^/| /' conftest.$ac_ext >&5
16892
16893( exit $ac_status )
16894ac_cv_c_bigendian=yes
247f5006 16895fi
e6cc62c6 16896rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16897fi
3f345b47 16898fi
8168de4c 16899fi
e6cc62c6
VS
16900echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16901echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16902if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16903 { 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
16904echo "$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
16905fi
16906if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16907 cat >>confdefs.h <<\_ACEOF
247f5006 16908#define WORDS_BIGENDIAN 1
e6cc62c6 16909_ACEOF
247f5006
VZ
16910
16911fi
16912
16913
e6cc62c6
VS
16914
16915ac_ext=cc
16916ac_cpp='$CXXCPP $CPPFLAGS'
16917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16920echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16921echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16922if test -z "$CXXCPP"; then
e6cc62c6
VS
16923 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16925else
16926 # Double quotes because CXXCPP needs to be expanded
16927 for CXXCPP in "$CXX -E" "/lib/cpp"
16928 do
16929 ac_preproc_ok=false
16930for ac_cxx_preproc_warn_flag in '' yes
16931do
16932 # Use a header file that comes with gcc, so configuring glibc
16933 # with a fresh cross-compiler works.
16934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16935 # <limits.h> exists even on freestanding compilers.
16936 # On the NeXT, cc -E runs the code through the compiler's parser,
16937 # not just through cpp. "Syntax error" is here to catch this case.
16938 cat >conftest.$ac_ext <<_ACEOF
16939#line $LINENO "configure"
16940/* confdefs.h. */
16941_ACEOF
16942cat confdefs.h >>conftest.$ac_ext
16943cat >>conftest.$ac_ext <<_ACEOF
16944/* end confdefs.h. */
16945#ifdef __STDC__
16946# include <limits.h>
16947#else
16948# include <assert.h>
16949#endif
16950 Syntax error
16951_ACEOF
16952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16954 ac_status=$?
16955 grep -v '^ *+' conftest.er1 >conftest.err
16956 rm -f conftest.er1
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } >/dev/null; then
16960 if test -s conftest.err; then
16961 ac_cpp_err=$ac_cxx_preproc_warn_flag
16962 else
16963 ac_cpp_err=
16964 fi
247f5006 16965else
e6cc62c6
VS
16966 ac_cpp_err=yes
16967fi
16968if test -z "$ac_cpp_err"; then
16969 :
16970else
16971 echo "$as_me: failed program was:" >&5
16972sed 's/^/| /' conftest.$ac_ext >&5
16973
16974 # Broken: fails on valid input.
16975continue
16976fi
16977rm -f conftest.err conftest.$ac_ext
16978
16979 # OK, works on sane cases. Now check whether non-existent headers
16980 # can be detected and how.
16981 cat >conftest.$ac_ext <<_ACEOF
16982#line $LINENO "configure"
16983/* confdefs.h. */
16984_ACEOF
16985cat confdefs.h >>conftest.$ac_ext
16986cat >>conftest.$ac_ext <<_ACEOF
16987/* end confdefs.h. */
16988#include <ac_nonexistent.h>
16989_ACEOF
16990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16992 ac_status=$?
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } >/dev/null; then
16998 if test -s conftest.err; then
16999 ac_cpp_err=$ac_cxx_preproc_warn_flag
17000 else
17001 ac_cpp_err=
17002 fi
17003else
17004 ac_cpp_err=yes
17005fi
17006if test -z "$ac_cpp_err"; then
17007 # Broken: success on invalid input.
17008continue
17009else
17010 echo "$as_me: failed program was:" >&5
17011sed 's/^/| /' conftest.$ac_ext >&5
17012
17013 # Passes both tests.
17014ac_preproc_ok=:
17015break
17016fi
17017rm -f conftest.err conftest.$ac_ext
17018
17019done
17020# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17021rm -f conftest.err conftest.$ac_ext
17022if $ac_preproc_ok; then
17023 break
17024fi
17025
17026 done
17027 ac_cv_prog_CXXCPP=$CXXCPP
17028
17029fi
17030 CXXCPP=$ac_cv_prog_CXXCPP
17031else
17032 ac_cv_prog_CXXCPP=$CXXCPP
17033fi
17034echo "$as_me:$LINENO: result: $CXXCPP" >&5
17035echo "${ECHO_T}$CXXCPP" >&6
17036ac_preproc_ok=false
17037for ac_cxx_preproc_warn_flag in '' yes
17038do
17039 # Use a header file that comes with gcc, so configuring glibc
17040 # with a fresh cross-compiler works.
17041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17042 # <limits.h> exists even on freestanding compilers.
17043 # On the NeXT, cc -E runs the code through the compiler's parser,
17044 # not just through cpp. "Syntax error" is here to catch this case.
17045 cat >conftest.$ac_ext <<_ACEOF
17046#line $LINENO "configure"
17047/* confdefs.h. */
17048_ACEOF
17049cat confdefs.h >>conftest.$ac_ext
17050cat >>conftest.$ac_ext <<_ACEOF
17051/* end confdefs.h. */
17052#ifdef __STDC__
17053# include <limits.h>
17054#else
17055# include <assert.h>
17056#endif
17057 Syntax error
17058_ACEOF
17059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17061 ac_status=$?
17062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } >/dev/null; then
17067 if test -s conftest.err; then
17068 ac_cpp_err=$ac_cxx_preproc_warn_flag
17069 else
17070 ac_cpp_err=
17071 fi
17072else
17073 ac_cpp_err=yes
17074fi
17075if test -z "$ac_cpp_err"; then
21d1c967 17076 :
698dcdb6 17077else
e6cc62c6
VS
17078 echo "$as_me: failed program was:" >&5
17079sed 's/^/| /' conftest.$ac_ext >&5
17080
17081 # Broken: fails on valid input.
17082continue
17083fi
17084rm -f conftest.err conftest.$ac_ext
17085
17086 # OK, works on sane cases. Now check whether non-existent headers
17087 # can be detected and how.
17088 cat >conftest.$ac_ext <<_ACEOF
17089#line $LINENO "configure"
17090/* confdefs.h. */
17091_ACEOF
17092cat confdefs.h >>conftest.$ac_ext
17093cat >>conftest.$ac_ext <<_ACEOF
17094/* end confdefs.h. */
17095#include <ac_nonexistent.h>
17096_ACEOF
17097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } >/dev/null; then
17105 if test -s conftest.err; then
17106 ac_cpp_err=$ac_cxx_preproc_warn_flag
17107 else
17108 ac_cpp_err=
17109 fi
17110else
17111 ac_cpp_err=yes
247f5006 17112fi
e6cc62c6
VS
17113if test -z "$ac_cpp_err"; then
17114 # Broken: success on invalid input.
17115continue
17116else
17117 echo "$as_me: failed program was:" >&5
17118sed 's/^/| /' conftest.$ac_ext >&5
17119
17120 # Passes both tests.
17121ac_preproc_ok=:
17122break
328a083c 17123fi
e6cc62c6
VS
17124rm -f conftest.err conftest.$ac_ext
17125
17126done
17127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17128rm -f conftest.err conftest.$ac_ext
17129if $ac_preproc_ok; then
17130 :
17131else
17132 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17133See \`config.log' for more details." >&5
17134echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17135See \`config.log' for more details." >&2;}
17136 { (exit 1); exit 1; }; }
90dd450c 17137fi
e6cc62c6
VS
17138
17139ac_ext=cc
17140ac_cpp='$CXXCPP $CPPFLAGS'
17141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17144
1e6feb95 17145
1725144d 17146
21d1c967 17147 if test "$cross_compiling" = "yes"; then
e6cc62c6 17148 cat >>confdefs.h <<\_ACEOF
21d1c967 17149#define wxUSE_IOSTREAMH 1
e6cc62c6 17150_ACEOF
ab9b9eab 17151
21d1c967 17152 else
e6cc62c6
VS
17153
17154
17155 ac_ext=cc
5c6fa7d2 17156ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17160
52127426 17161
247f5006 17162
e6cc62c6 17163for ac_header in iostream
21d1c967 17164do
e6cc62c6
VS
17165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17166if eval "test \"\${$as_ac_Header+set}\" = set"; then
17167 echo "$as_me:$LINENO: checking for $ac_header" >&5
17168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17169if eval "test \"\${$as_ac_Header+set}\" = set"; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17171fi
17172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17174else
17175 # Is the header compilable?
17176echo "$as_me:$LINENO: checking $ac_header usability" >&5
17177echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17178cat >conftest.$ac_ext <<_ACEOF
17179#line $LINENO "configure"
17180/* confdefs.h. */
17181_ACEOF
17182cat confdefs.h >>conftest.$ac_ext
17183cat >>conftest.$ac_ext <<_ACEOF
17184/* end confdefs.h. */
17185$ac_includes_default
17186#include <$ac_header>
17187_ACEOF
17188rm -f conftest.$ac_objext
17189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17190 (eval $ac_compile) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -s conftest.$ac_objext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_header_compiler=yes
17201else
17202 echo "$as_me: failed program was:" >&5
17203sed 's/^/| /' conftest.$ac_ext >&5
17204
17205ac_header_compiler=no
17206fi
17207rm -f conftest.$ac_objext conftest.$ac_ext
17208echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17209echo "${ECHO_T}$ac_header_compiler" >&6
17210
17211# Is the header present?
17212echo "$as_me:$LINENO: checking $ac_header presence" >&5
17213echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17214cat >conftest.$ac_ext <<_ACEOF
17215#line $LINENO "configure"
17216/* confdefs.h. */
17217_ACEOF
17218cat confdefs.h >>conftest.$ac_ext
17219cat >>conftest.$ac_ext <<_ACEOF
17220/* end confdefs.h. */
17221#include <$ac_header>
17222_ACEOF
17223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17225 ac_status=$?
17226 grep -v '^ *+' conftest.er1 >conftest.err
17227 rm -f conftest.er1
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } >/dev/null; then
17231 if test -s conftest.err; then
17232 ac_cpp_err=$ac_cxx_preproc_warn_flag
17233 else
17234 ac_cpp_err=
17235 fi
17236else
17237 ac_cpp_err=yes
17238fi
17239if test -z "$ac_cpp_err"; then
17240 ac_header_preproc=yes
17241else
17242 echo "$as_me: failed program was:" >&5
17243sed 's/^/| /' conftest.$ac_ext >&5
17244
17245 ac_header_preproc=no
17246fi
17247rm -f conftest.err conftest.$ac_ext
17248echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17249echo "${ECHO_T}$ac_header_preproc" >&6
17250
17251# So? What about this header?
17252case $ac_header_compiler:$ac_header_preproc in
17253 yes:no )
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17255echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17257echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17258 (
17259 cat <<\_ASBOX
17260## ------------------------------------ ##
17261## Report this to bug-autoconf@gnu.org. ##
17262## ------------------------------------ ##
17263_ASBOX
17264 ) |
17265 sed "s/^/$as_me: WARNING: /" >&2
17266 ;;
17267 no:yes )
17268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17269echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17271echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17273echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17274 (
17275 cat <<\_ASBOX
17276## ------------------------------------ ##
17277## Report this to bug-autoconf@gnu.org. ##
17278## ------------------------------------ ##
17279_ASBOX
17280 ) |
17281 sed "s/^/$as_me: WARNING: /" >&2
17282 ;;
17283esac
17284echo "$as_me:$LINENO: checking for $ac_header" >&5
17285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17286if eval "test \"\${$as_ac_Header+set}\" = set"; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288else
17289 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17290fi
e6cc62c6
VS
17291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17293
90dd450c 17294fi
e6cc62c6
VS
17295if test `eval echo '${'$as_ac_Header'}'` = yes; then
17296 cat >>confdefs.h <<_ACEOF
17297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17298_ACEOF
17299
90dd450c 17300fi
e6cc62c6 17301
21d1c967 17302done
10f2d63a 17303
8284b0c5 17304
21d1c967
GD
17305 if test "$ac_cv_header_iostream" = "yes" ; then
17306 :
17307 else
e6cc62c6 17308 cat >>confdefs.h <<\_ACEOF
21d1c967 17309#define wxUSE_IOSTREAMH 1
e6cc62c6 17310_ACEOF
788deba1 17311
90dd450c 17312 fi
ab9b9eab 17313
21d1c967 17314 ac_ext=c
21d1c967 17315ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17318ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17319
21d1c967 17320 fi
ab9b9eab 17321
52127426 17322
8284b0c5 17323
e6cc62c6
VS
17324 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17325echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17326if test "${wx_cv_cpp_bool+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17328else
e6cc62c6
VS
17329
17330
17331
17332 ac_ext=cc
5c6fa7d2 17333ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17337
8284b0c5 17338
e6cc62c6
VS
17339 cat >conftest.$ac_ext <<_ACEOF
17340#line $LINENO "configure"
17341/* confdefs.h. */
17342_ACEOF
17343cat confdefs.h >>conftest.$ac_ext
17344cat >>conftest.$ac_ext <<_ACEOF
17345/* end confdefs.h. */
21d1c967 17346
e6cc62c6
VS
17347
17348int
17349main ()
17350{
21d1c967
GD
17351
17352 bool b = true;
17353
17354 return 0;
e6cc62c6
VS
17355
17356 ;
17357 return 0;
17358}
17359_ACEOF
17360rm -f conftest.$ac_objext
17361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17362 (eval $ac_compile) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -s conftest.$ac_objext'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372
21d1c967 17373 wx_cv_cpp_bool=yes
e6cc62c6 17374
698dcdb6 17375else
e6cc62c6
VS
17376 echo "$as_me: failed program was:" >&5
17377sed 's/^/| /' conftest.$ac_ext >&5
17378
17379
21d1c967 17380 wx_cv_cpp_bool=no
e6cc62c6
VS
17381
17382
698dcdb6 17383fi
e6cc62c6 17384rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17385
17386 ac_ext=c
21d1c967 17387ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17390ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17391
a0b9e27f 17392
e6cc62c6
VS
17393fi
17394echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17395echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17396
17397 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17398 cat >>confdefs.h <<\_ACEOF
21d1c967 17399#define HAVE_BOOL 1
e6cc62c6 17400_ACEOF
ab9b9eab 17401
21d1c967
GD
17402 fi
17403
52127426 17404
8284b0c5 17405
e6cc62c6
VS
17406 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17407echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17408if test "${wx_cv_explicit+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17410else
e6cc62c6
VS
17411
17412
17413
17414 ac_ext=cc
5c6fa7d2 17415ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17419
8284b0c5 17420
e6cc62c6
VS
17421 cat >conftest.$ac_ext <<_ACEOF
17422#line $LINENO "configure"
17423/* confdefs.h. */
17424_ACEOF
17425cat confdefs.h >>conftest.$ac_ext
17426cat >>conftest.$ac_ext <<_ACEOF
17427/* end confdefs.h. */
986ecc86
VZ
17428
17429 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17430
17431int
17432main ()
17433{
986ecc86
VZ
17434
17435 return 0;
e6cc62c6
VS
17436
17437 ;
17438 return 0;
17439}
17440_ACEOF
17441rm -f conftest.$ac_objext
17442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17443 (eval $ac_compile) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); } &&
17447 { ac_try='test -s conftest.$ac_objext'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453
17454 cat >conftest.$ac_ext <<_ACEOF
17455#line $LINENO "configure"
17456/* confdefs.h. */
17457_ACEOF
17458cat confdefs.h >>conftest.$ac_ext
17459cat >>conftest.$ac_ext <<_ACEOF
17460/* end confdefs.h. */
986ecc86
VZ
17461
17462 class Foo { public: explicit Foo(int) {} };
17463 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17464
17465int
17466main ()
17467{
986ecc86
VZ
17468
17469 TakeFoo(17);
17470 return 0;
e6cc62c6
VS
17471
17472 ;
17473 return 0;
17474}
17475_ACEOF
17476rm -f conftest.$ac_objext
17477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478 (eval $ac_compile) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
17482 { ac_try='test -s conftest.$ac_objext'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
986ecc86
VZ
17488 wx_cv_explicit=no
17489else
e6cc62c6
VS
17490 echo "$as_me: failed program was:" >&5
17491sed 's/^/| /' conftest.$ac_ext >&5
17492
17493wx_cv_explicit=yes
17494
986ecc86 17495fi
e6cc62c6
VS
17496rm -f conftest.$ac_objext conftest.$ac_ext
17497
986ecc86 17498else
e6cc62c6
VS
17499 echo "$as_me: failed program was:" >&5
17500sed 's/^/| /' conftest.$ac_ext >&5
17501
17502wx_cv_explicit=no
17503
986ecc86 17504fi
e6cc62c6 17505rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17506
17507 ac_ext=c
986ecc86 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_explicit" >&5
17516echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17517
17518 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17519 cat >>confdefs.h <<\_ACEOF
986ecc86 17520#define HAVE_EXPLICIT 1
e6cc62c6 17521_ACEOF
986ecc86
VZ
17522
17523 fi
17524
8284b0c5 17525
e6cc62c6
VS
17526echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17527echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17528if test "${ac_cv_cxx_const_cast+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17530else
521196a2 17531
521196a2 17532
e6cc62c6
VS
17533 ac_ext=cc
17534ac_cpp='$CXXCPP $CPPFLAGS'
17535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17538
17539 cat >conftest.$ac_ext <<_ACEOF
17540#line $LINENO "configure"
17541/* confdefs.h. */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h. */
17546
17547int
17548main ()
17549{
521196a2 17550int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17551 ;
17552 return 0;
17553}
17554_ACEOF
17555rm -f conftest.$ac_objext
17556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17557 (eval $ac_compile) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } &&
17561 { ac_try='test -s conftest.$ac_objext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
521196a2
MB
17567 ac_cv_cxx_const_cast=yes
17568else
e6cc62c6
VS
17569 echo "$as_me: failed program was:" >&5
17570sed 's/^/| /' conftest.$ac_ext >&5
17571
17572ac_cv_cxx_const_cast=no
521196a2 17573fi
e6cc62c6 17574rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17575 ac_ext=c
521196a2 17576ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17579ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17580
17581
17582fi
e6cc62c6
VS
17583echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17584echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17585if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17586
17587cat >>confdefs.h <<\_ACEOF
17588#define HAVE_CONST_CAST
17589_ACEOF
521196a2
MB
17590
17591fi
17592
17593
8284b0c5 17594
21d1c967
GD
17595SEARCH_INCLUDE="\
17596 /usr/local/include \
17597 \
17598 /usr/Motif-1.2/include \
17599 /usr/Motif-2.1/include \
17600 \
17601 /usr/include/Motif1.2 \
17602 /opt/xpm/include/X11 \
17603 /opt/GBxpm/include/ \
17604 /opt/GBxpm/X11/include/ \
17605 \
17606 /usr/Motif1.2/include \
17607 /usr/dt/include \
17608 /usr/openwin/include \
17609 \
17610 /usr/include/Xm \
17611 \
17612 /usr/X11R6/include \
17613 /usr/X11R6.4/include \
17614 /usr/X11R5/include \
17615 /usr/X11R4/include \
17616 \
17617 /usr/include/X11R6 \
17618 /usr/include/X11R5 \
17619 /usr/include/X11R4 \
17620 \
17621 /usr/local/X11R6/include \
17622 /usr/local/X11R5/include \
17623 /usr/local/X11R4/include \
17624 \
17625 /usr/local/include/X11R6 \
17626 /usr/local/include/X11R5 \
17627 /usr/local/include/X11R4 \
17628 \
17629 /usr/X11/include \
17630 /usr/include/X11 \
17631 /usr/local/X11/include \
17632 /usr/local/include/X11 \
17633 \
17634 /usr/X386/include \
17635 /usr/x386/include \
17636 /usr/XFree86/include/X11 \
17637 \
17638 X:/XFree86/include \
17639 X:/XFree86/include/X11 \
17640 \
17641 /usr/include/gtk \
17642 /usr/local/include/gtk \
17643 /usr/include/glib \
17644 /usr/local/include/glib \
17645 \
17646 /usr/include/qt \
17647 /usr/local/include/qt \
17648 \
17649 /usr/include/windows \
17650 /usr/include/wine \
17651 /usr/local/include/wine \
17652 \
17653 /usr/unsupported/include \
17654 /usr/athena/include \
17655 /usr/local/x11r5/include \
17656 /usr/lpp/Xamples/include \
17657 \
2b5f62a0 17658 /usr/openwin/share/include"
21d1c967
GD
17659
17660SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17661
8284b0c5 17662
e6cc62c6 17663cat >confcache <<\_ACEOF
21d1c967
GD
17664# This file is a shell script that caches the results of configure
17665# tests run on this system so they can be shared between configure
e6cc62c6
VS
17666# scripts and configure runs, see configure's option --config-cache.
17667# It is not useful on other systems. If it contains results you don't
17668# want to keep, you may remove or edit it.
21d1c967 17669#
e6cc62c6
VS
17670# config.status only pays attention to the cache file if you give it
17671# the --recheck option to rerun configure.
21d1c967 17672#
e6cc62c6
VS
17673# `ac_cv_env_foo' variables (set or unset) will be overridden when
17674# loading this file, other *unset* `ac_cv_foo' will be assigned the
17675# following values.
17676
17677_ACEOF
17678
21d1c967
GD
17679# The following way of writing the cache mishandles newlines in values,
17680# but we know of no workaround that is simple, portable, and efficient.
17681# So, don't put newlines in cache variables' values.
17682# Ultrix sh set writes to stderr and can't be redirected directly,
17683# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17684{
17685 (set) 2>&1 |
17686 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17687 *ac_space=\ *)
17688 # `set' does not quote correctly, so add quotes (double-quote
17689 # substitution turns \\\\ into \\, and sed turns \\ into \).
17690 sed -n \
17691 "s/'/'\\\\''/g;
17692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17693 ;;
17694 *)
17695 # `set' quotes correctly as required by POSIX, so do not add quotes.
17696 sed -n \
17697 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17698 ;;
17699 esac;
17700} |
17701 sed '
17702 t clear
17703 : clear
17704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17705 t end
17706 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17707 : end' >>confcache
17708if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17709 if test -w $cache_file; then
e6cc62c6
VS
17710 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17711 cat confcache >$cache_file
21d1c967
GD
17712 else
17713 echo "not updating unwritable cache $cache_file"
17714 fi
ab9b9eab 17715fi
21d1c967 17716rm -f confcache
ab9b9eab 17717
fe0895cf 17718if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17719 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17720echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17721if test "${wx_cv_lib_glibc21+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723else
17724
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. */
21d1c967 17732#include <features.h>
e6cc62c6
VS
17733int
17734main ()
17735{
ab9b9eab 17736
21d1c967
GD
17737 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17738 #error not glibc2.1
17739 #endif
e6cc62c6
VS
17740
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext
17746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17747 (eval $ac_compile) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -s conftest.$ac_objext'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757
21d1c967 17758 wx_cv_lib_glibc21=yes
e6cc62c6 17759
698dcdb6 17760else
e6cc62c6
VS
17761 echo "$as_me: failed program was:" >&5
17762sed 's/^/| /' conftest.$ac_ext >&5
17763
17764
21d1c967 17765 wx_cv_lib_glibc21=no
e6cc62c6
VS
17766
17767
247f5006 17768fi
e6cc62c6 17769rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17770
e6cc62c6
VS
17771fi
17772echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17773echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17774 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17775 cat >>confdefs.h <<\_ACEOF
21d1c967 17776#define wxHAVE_GLIBC2 1
e6cc62c6 17777_ACEOF
1e487827 17778
90dd450c 17779 fi
ab9b9eab
VZ
17780fi
17781
5c0a20c3
VZ
17782if test "x$wx_cv_lib_glibc21" = "xyes"; then
17783 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17784 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17785#define _GNU_SOURCE 1
e6cc62c6 17786_ACEOF
5c0a20c3
VZ
17787
17788 fi
17789fi
17790
8284b0c5
MB
17791
17792
21d1c967
GD
17793REGEX_INCLUDE=
17794if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17795 cat >>confdefs.h <<\_ACEOF
21d1c967 17796#define wxUSE_REGEX 1
e6cc62c6 17797_ACEOF
698dcdb6 17798
8284b0c5 17799
21d1c967 17800 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17801 if test "${ac_cv_header_regex_h+set}" = set; then
17802 echo "$as_me:$LINENO: checking for regex.h" >&5
17803echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17804if test "${ac_cv_header_regex_h+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17806fi
17807echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17808echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17809else
17810 # Is the header compilable?
17811echo "$as_me:$LINENO: checking regex.h usability" >&5
17812echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17813cat >conftest.$ac_ext <<_ACEOF
17814#line $LINENO "configure"
17815/* confdefs.h. */
17816_ACEOF
17817cat confdefs.h >>conftest.$ac_ext
17818cat >>conftest.$ac_ext <<_ACEOF
17819/* end confdefs.h. */
17820$ac_includes_default
247f5006 17821#include <regex.h>
e6cc62c6
VS
17822_ACEOF
17823rm -f conftest.$ac_objext
17824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17825 (eval $ac_compile) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -s conftest.$ac_objext'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_header_compiler=yes
17836else
17837 echo "$as_me: failed program was:" >&5
17838sed 's/^/| /' conftest.$ac_ext >&5
17839
17840ac_header_compiler=no
17841fi
17842rm -f conftest.$ac_objext conftest.$ac_ext
17843echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17844echo "${ECHO_T}$ac_header_compiler" >&6
17845
17846# Is the header present?
17847echo "$as_me:$LINENO: checking regex.h presence" >&5
17848echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17849cat >conftest.$ac_ext <<_ACEOF
17850#line $LINENO "configure"
17851/* confdefs.h. */
17852_ACEOF
17853cat confdefs.h >>conftest.$ac_ext
17854cat >>conftest.$ac_ext <<_ACEOF
17855/* end confdefs.h. */
17856#include <regex.h>
17857_ACEOF
17858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17860 ac_status=$?
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } >/dev/null; then
17866 if test -s conftest.err; then
17867 ac_cpp_err=$ac_c_preproc_warn_flag
17868 else
17869 ac_cpp_err=
17870 fi
17871else
17872 ac_cpp_err=yes
17873fi
17874if test -z "$ac_cpp_err"; then
17875 ac_header_preproc=yes
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 ac_header_preproc=no
17881fi
17882rm -f conftest.err conftest.$ac_ext
17883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17884echo "${ECHO_T}$ac_header_preproc" >&6
17885
17886# So? What about this header?
17887case $ac_header_compiler:$ac_header_preproc in
17888 yes:no )
17889 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17890echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17891 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17892echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17893 (
17894 cat <<\_ASBOX
17895## ------------------------------------ ##
17896## Report this to bug-autoconf@gnu.org. ##
17897## ------------------------------------ ##
17898_ASBOX
17899 ) |
17900 sed "s/^/$as_me: WARNING: /" >&2
17901 ;;
17902 no:yes )
17903 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17904echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17905 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17906echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17907 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17908echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17909 (
17910 cat <<\_ASBOX
17911## ------------------------------------ ##
17912## Report this to bug-autoconf@gnu.org. ##
17913## ------------------------------------ ##
17914_ASBOX
17915 ) |
17916 sed "s/^/$as_me: WARNING: /" >&2
17917 ;;
17918esac
17919echo "$as_me:$LINENO: checking for regex.h" >&5
17920echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17921if test "${ac_cv_header_regex_h+set}" = set; then
17922 echo $ECHO_N "(cached) $ECHO_C" >&6
17923else
17924 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 17925fi
e6cc62c6
VS
17926echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17927echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17928
698dcdb6 17929fi
e6cc62c6
VS
17930if test $ac_cv_header_regex_h = yes; then
17931
17932for ac_func in regcomp
21d1c967 17933do
e6cc62c6
VS
17934as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17935echo "$as_me:$LINENO: checking for $ac_func" >&5
17936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17937if eval "test \"\${$as_ac_var+set}\" = set"; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17939else
17940 cat >conftest.$ac_ext <<_ACEOF
17941#line $LINENO "configure"
17942/* confdefs.h. */
17943_ACEOF
17944cat confdefs.h >>conftest.$ac_ext
17945cat >>conftest.$ac_ext <<_ACEOF
17946/* end confdefs.h. */
a0b9e27f 17947/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
17948 which can conflict with char $ac_func (); below.
17949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17950 <limits.h> exists even on freestanding compilers. */
17951#ifdef __STDC__
17952# include <limits.h>
17953#else
17954# include <assert.h>
17955#endif
21d1c967 17956/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
17957#ifdef __cplusplus
17958extern "C"
17959{
17960#endif
21d1c967 17961/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
17962 builtin and then its argument prototype would still apply. */
17963char $ac_func ();
21d1c967
GD
17964/* The GNU C library defines this for functions which it implements
17965 to always fail with ENOSYS. Some functions are actually named
17966 something starting with __ and the normal name is an alias. */
17967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17968choke me
17969#else
e6cc62c6
VS
17970char (*f) () = $ac_func;
17971#endif
17972#ifdef __cplusplus
17973}
21d1c967 17974#endif
90dd450c 17975
e6cc62c6
VS
17976int
17977main ()
17978{
17979return f != $ac_func;
17980 ;
17981 return 0;
17982}
17983_ACEOF
17984rm -f conftest.$ac_objext conftest$ac_exeext
17985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17986 (eval $ac_link) 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } &&
17990 { ac_try='test -s conftest$ac_exeext'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17996 eval "$as_ac_var=yes"
17997else
17998 echo "$as_me: failed program was:" >&5
17999sed 's/^/| /' conftest.$ac_ext >&5
18000
18001eval "$as_ac_var=no"
18002fi
18003rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18004fi
18005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18006echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18007if test `eval echo '${'$as_ac_var'}'` = yes; then
18008 cat >>confdefs.h <<_ACEOF
18009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18010_ACEOF
5c6fa7d2 18011
698dcdb6 18012fi
21d1c967
GD
18013done
18014
ab9b9eab
VZ
18015fi
18016
8284b0c5 18017
e6cc62c6 18018
21d1c967
GD
18019 if test "x$ac_cv_func_regcomp" != "xyes"; then
18020 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18021 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18022echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18023 { (exit 1); exit 1; }; }
21d1c967 18024 else
e6cc62c6
VS
18025 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18026echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18027 wxUSE_REGEX=builtin
18028 fi
18029 else
18030 wxUSE_REGEX=sys
18031 fi
ab9b9eab 18032 fi
90dd450c 18033
21d1c967
GD
18034 if test "$wxUSE_REGEX" = "builtin" ; then
18035 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18036 fi
21d1c967 18037fi
90dd450c 18038
8284b0c5 18039
21d1c967
GD
18040ZLIB_INCLUDE=
18041ZLIB_LINK=
18042if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18043 cat >>confdefs.h <<\_ACEOF
21d1c967 18044#define wxUSE_ZLIB 1
e6cc62c6 18045_ACEOF
21d1c967 18046
8284b0c5 18047
21d1c967 18048 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18049 if test "$USE_DARWIN" = 1; then
18050 system_zlib_h_ok="yes"
18051 else
e6cc62c6
VS
18052 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18053echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18054if test "${ac_cv_header_zlib_h+set}" = set; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18056else
18057 if test "$cross_compiling" = yes; then
89e6bf6d 18058 unset ac_cv_header_zlib_h
e6cc62c6 18059
d643b80e 18060else
e6cc62c6
VS
18061 cat >conftest.$ac_ext <<_ACEOF
18062#line $LINENO "configure"
18063/* confdefs.h. */
18064_ACEOF
18065cat confdefs.h >>conftest.$ac_ext
18066cat >>conftest.$ac_ext <<_ACEOF
18067/* end confdefs.h. */
18068
ef33c576 18069 #include <zlib.h>
d775acfa 18070 #include <stdio.h>
d643b80e 18071
d775acfa
VZ
18072 int main()
18073 {
18074 FILE *f=fopen("conftestval", "w");
18075 if (!f) exit(1);
18076 fprintf(f, "%s",
18077 ZLIB_VERSION[0] == '1' &&
18078 (ZLIB_VERSION[2] > '1' ||
18079 (ZLIB_VERSION[2] == '1' &&
18080 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18081 exit(0);
18082 }
e6cc62c6
VS
18083
18084_ACEOF
18085rm -f conftest$ac_exeext
18086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18087 (eval $ac_link) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
d643b80e
VZ
18096 ac_cv_header_zlib_h=`cat conftestval`
18097else
e6cc62c6
VS
18098 echo "$as_me: program exited with status $ac_status" >&5
18099echo "$as_me: failed program was:" >&5
18100sed 's/^/| /' conftest.$ac_ext >&5
18101
18102( exit $ac_status )
18103ac_cv_header_zlib_h=no
d643b80e 18104fi
e6cc62c6 18105rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18106fi
18107
d643b80e 18108fi
e6cc62c6
VS
18109echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18110echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18111 if test "${ac_cv_header_zlib_h+set}" = set; then
18112 echo "$as_me:$LINENO: checking for zlib.h" >&5
18113echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18114if test "${ac_cv_header_zlib_h+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116fi
18117echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18118echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18119else
e6cc62c6
VS
18120 # Is the header compilable?
18121echo "$as_me:$LINENO: checking zlib.h usability" >&5
18122echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18123cat >conftest.$ac_ext <<_ACEOF
18124#line $LINENO "configure"
18125/* confdefs.h. */
18126_ACEOF
18127cat confdefs.h >>conftest.$ac_ext
18128cat >>conftest.$ac_ext <<_ACEOF
18129/* end confdefs.h. */
18130$ac_includes_default
89e6bf6d 18131#include <zlib.h>
e6cc62c6
VS
18132_ACEOF
18133rm -f conftest.$ac_objext
18134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18135 (eval $ac_compile) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
18139 { ac_try='test -s conftest.$ac_objext'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 ac_header_compiler=yes
18146else
18147 echo "$as_me: failed program was:" >&5
18148sed 's/^/| /' conftest.$ac_ext >&5
18149
18150ac_header_compiler=no
18151fi
18152rm -f conftest.$ac_objext conftest.$ac_ext
18153echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18154echo "${ECHO_T}$ac_header_compiler" >&6
18155
18156# Is the header present?
18157echo "$as_me:$LINENO: checking zlib.h presence" >&5
18158echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18159cat >conftest.$ac_ext <<_ACEOF
18160#line $LINENO "configure"
18161/* confdefs.h. */
18162_ACEOF
18163cat confdefs.h >>conftest.$ac_ext
18164cat >>conftest.$ac_ext <<_ACEOF
18165/* end confdefs.h. */
18166#include <zlib.h>
18167_ACEOF
18168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18170 ac_status=$?
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } >/dev/null; then
18176 if test -s conftest.err; then
18177 ac_cpp_err=$ac_c_preproc_warn_flag
18178 else
18179 ac_cpp_err=
18180 fi
18181else
18182 ac_cpp_err=yes
18183fi
18184if test -z "$ac_cpp_err"; then
18185 ac_header_preproc=yes
18186else
18187 echo "$as_me: failed program was:" >&5
18188sed 's/^/| /' conftest.$ac_ext >&5
18189
18190 ac_header_preproc=no
18191fi
18192rm -f conftest.err conftest.$ac_ext
18193echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18194echo "${ECHO_T}$ac_header_preproc" >&6
18195
18196# So? What about this header?
18197case $ac_header_compiler:$ac_header_preproc in
18198 yes:no )
18199 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18200echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18201 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18202echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18203 (
18204 cat <<\_ASBOX
18205## ------------------------------------ ##
18206## Report this to bug-autoconf@gnu.org. ##
18207## ------------------------------------ ##
18208_ASBOX
18209 ) |
18210 sed "s/^/$as_me: WARNING: /" >&2
18211 ;;
18212 no:yes )
18213 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18214echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18215 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18216echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18217 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18218echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18219 (
18220 cat <<\_ASBOX
18221## ------------------------------------ ##
18222## Report this to bug-autoconf@gnu.org. ##
18223## ------------------------------------ ##
18224_ASBOX
18225 ) |
18226 sed "s/^/$as_me: WARNING: /" >&2
18227 ;;
18228esac
18229echo "$as_me:$LINENO: checking for zlib.h" >&5
18230echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18231if test "${ac_cv_header_zlib_h+set}" = set; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18233else
e6cc62c6
VS
18234 ac_cv_header_zlib_h=$ac_header_preproc
18235fi
18236echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18237echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18238
89e6bf6d
VZ
18239fi
18240
d643b80e 18241
e6cc62c6 18242
d775acfa
VZ
18243 system_zlib_h_ok=$ac_cv_header_zlib_h
18244 fi
18245
18246 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18247 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18248echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18249if test "${ac_cv_lib_z_deflate+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18251else
e6cc62c6 18252 ac_check_lib_save_LIBS=$LIBS
21d1c967 18253LIBS="-lz $LIBS"
e6cc62c6
VS
18254cat >conftest.$ac_ext <<_ACEOF
18255#line $LINENO "configure"
18256/* confdefs.h. */
18257_ACEOF
18258cat confdefs.h >>conftest.$ac_ext
18259cat >>conftest.$ac_ext <<_ACEOF
18260/* end confdefs.h. */
18261
21d1c967 18262/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18263#ifdef __cplusplus
18264extern "C"
18265#endif
21d1c967 18266/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18267 builtin and then its argument prototype would still apply. */
18268char deflate ();
18269int
18270main ()
18271{
18272deflate ();
18273 ;
18274 return 0;
18275}
18276_ACEOF
18277rm -f conftest.$ac_objext conftest$ac_exeext
18278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18279 (eval $ac_link) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -s conftest$ac_exeext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_lib_z_deflate=yes
18290else
18291 echo "$as_me: failed program was:" >&5
18292sed 's/^/| /' conftest.$ac_ext >&5
18293
18294ac_cv_lib_z_deflate=no
18295fi
18296rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18297LIBS=$ac_check_lib_save_LIBS
18298fi
18299echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18300echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18301if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18302 ZLIB_LINK=" -lz"
a0b9e27f 18303fi
698dcdb6 18304
d643b80e 18305 fi
247f5006 18306
21d1c967
GD
18307 if test "x$ZLIB_LINK" = "x" ; then
18308 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18309 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18310echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18311 { (exit 1); exit 1; }; }
21d1c967 18312 else
e6cc62c6
VS
18313 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18314echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18315 wxUSE_ZLIB=builtin
18316 fi
18317 else
18318 wxUSE_ZLIB=sys
18319 fi
18320 fi
18321
18322 if test "$wxUSE_ZLIB" = "builtin" ; then
18323 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18324 fi
ab9b9eab
VZ
18325fi
18326
8284b0c5 18327
21d1c967
GD
18328PNG_INCLUDE=
18329PNG_LINK=
18330if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18331 cat >>confdefs.h <<\_ACEOF
21d1c967 18332#define wxUSE_LIBPNG 1
e6cc62c6 18333_ACEOF
90dd450c 18334
8284b0c5 18335
21d1c967 18336 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18337 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18338echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18339 wxUSE_LIBPNG=sys
18340 fi
90dd450c 18341
21d1c967 18342 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18343 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18344echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18345 wxUSE_LIBPNG=builtin
18346 fi
18347
18348 if test "$wxUSE_MGL" != 1 ; then
18349 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18350 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18351echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18352if test "${ac_cv_header_png_h+set}" = set; then
18353 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18354else
18355 if test "$cross_compiling" = yes; then
89e6bf6d 18356 unset ac_cv_header_png_h
e6cc62c6 18357
5d3f766d 18358else
e6cc62c6
VS
18359 cat >conftest.$ac_ext <<_ACEOF
18360#line $LINENO "configure"
18361/* confdefs.h. */
18362_ACEOF
18363cat confdefs.h >>conftest.$ac_ext
18364cat >>conftest.$ac_ext <<_ACEOF
18365/* end confdefs.h. */
18366
ef33c576 18367 #include <png.h>
5d3f766d
VZ
18368 #include <stdio.h>
18369
18370 int main()
18371 {
18372 FILE *f=fopen("conftestval", "w");
18373 if (!f) exit(1);
18374 fprintf(f, "%s",
18375 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18376 exit(0);
18377 }
e6cc62c6
VS
18378
18379_ACEOF
18380rm -f conftest$ac_exeext
18381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18382 (eval $ac_link) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
5d3f766d
VZ
18391 ac_cv_header_png_h=`cat conftestval`
18392else
e6cc62c6
VS
18393 echo "$as_me: program exited with status $ac_status" >&5
18394echo "$as_me: failed program was:" >&5
18395sed 's/^/| /' conftest.$ac_ext >&5
18396
18397( exit $ac_status )
18398ac_cv_header_png_h=no
5d3f766d 18399fi
e6cc62c6 18400rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18401fi
18402
5d3f766d 18403fi
e6cc62c6
VS
18404echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18405echo "${ECHO_T}$ac_cv_header_png_h" >&6
18406 if test "${ac_cv_header_png_h+set}" = set; then
18407 echo "$as_me:$LINENO: checking for png.h" >&5
18408echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18409if test "${ac_cv_header_png_h+set}" = set; then
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18411fi
18412echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18413echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18414else
e6cc62c6
VS
18415 # Is the header compilable?
18416echo "$as_me:$LINENO: checking png.h usability" >&5
18417echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18418cat >conftest.$ac_ext <<_ACEOF
18419#line $LINENO "configure"
18420/* confdefs.h. */
18421_ACEOF
18422cat confdefs.h >>conftest.$ac_ext
18423cat >>conftest.$ac_ext <<_ACEOF
18424/* end confdefs.h. */
18425$ac_includes_default
89e6bf6d 18426#include <png.h>
e6cc62c6
VS
18427_ACEOF
18428rm -f conftest.$ac_objext
18429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18430 (eval $ac_compile) 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -s conftest.$ac_objext'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 ac_header_compiler=yes
18441else
18442 echo "$as_me: failed program was:" >&5
18443sed 's/^/| /' conftest.$ac_ext >&5
18444
18445ac_header_compiler=no
18446fi
18447rm -f conftest.$ac_objext conftest.$ac_ext
18448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18449echo "${ECHO_T}$ac_header_compiler" >&6
18450
18451# Is the header present?
18452echo "$as_me:$LINENO: checking png.h presence" >&5
18453echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18454cat >conftest.$ac_ext <<_ACEOF
18455#line $LINENO "configure"
18456/* confdefs.h. */
18457_ACEOF
18458cat confdefs.h >>conftest.$ac_ext
18459cat >>conftest.$ac_ext <<_ACEOF
18460/* end confdefs.h. */
18461#include <png.h>
18462_ACEOF
18463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18465 ac_status=$?
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } >/dev/null; then
18471 if test -s conftest.err; then
18472 ac_cpp_err=$ac_c_preproc_warn_flag
18473 else
18474 ac_cpp_err=
18475 fi
18476else
18477 ac_cpp_err=yes
18478fi
18479if test -z "$ac_cpp_err"; then
18480 ac_header_preproc=yes
18481else
18482 echo "$as_me: failed program was:" >&5
18483sed 's/^/| /' conftest.$ac_ext >&5
18484
18485 ac_header_preproc=no
18486fi
18487rm -f conftest.err conftest.$ac_ext
18488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18489echo "${ECHO_T}$ac_header_preproc" >&6
18490
18491# So? What about this header?
18492case $ac_header_compiler:$ac_header_preproc in
18493 yes:no )
18494 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18495echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18496 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18497echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18498 (
18499 cat <<\_ASBOX
18500## ------------------------------------ ##
18501## Report this to bug-autoconf@gnu.org. ##
18502## ------------------------------------ ##
18503_ASBOX
18504 ) |
18505 sed "s/^/$as_me: WARNING: /" >&2
18506 ;;
18507 no:yes )
18508 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18509echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18510 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18511echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18512 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18513echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18514 (
18515 cat <<\_ASBOX
18516## ------------------------------------ ##
18517## Report this to bug-autoconf@gnu.org. ##
18518## ------------------------------------ ##
18519_ASBOX
18520 ) |
18521 sed "s/^/$as_me: WARNING: /" >&2
18522 ;;
18523esac
18524echo "$as_me:$LINENO: checking for png.h" >&5
18525echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18526if test "${ac_cv_header_png_h+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18528else
e6cc62c6
VS
18529 ac_cv_header_png_h=$ac_header_preproc
18530fi
18531echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18532echo "${ECHO_T}$ac_cv_header_png_h" >&6
18533
89e6bf6d
VZ
18534fi
18535
5d3f766d 18536
e6cc62c6 18537
5d3f766d 18538 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18539 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18540echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18541if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18543else
e6cc62c6 18544 ac_check_lib_save_LIBS=$LIBS
21d1c967 18545LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18546cat >conftest.$ac_ext <<_ACEOF
18547#line $LINENO "configure"
18548/* confdefs.h. */
18549_ACEOF
18550cat confdefs.h >>conftest.$ac_ext
18551cat >>conftest.$ac_ext <<_ACEOF
18552/* end confdefs.h. */
18553
21d1c967 18554/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18555#ifdef __cplusplus
18556extern "C"
18557#endif
21d1c967 18558/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18559 builtin and then its argument prototype would still apply. */
18560char png_check_sig ();
18561int
18562main ()
18563{
18564png_check_sig ();
18565 ;
18566 return 0;
18567}
18568_ACEOF
18569rm -f conftest.$ac_objext conftest$ac_exeext
18570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18571 (eval $ac_link) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } &&
18575 { ac_try='test -s conftest$ac_exeext'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 ac_cv_lib_png_png_check_sig=yes
18582else
18583 echo "$as_me: failed program was:" >&5
18584sed 's/^/| /' conftest.$ac_ext >&5
18585
18586ac_cv_lib_png_png_check_sig=no
18587fi
18588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18589LIBS=$ac_check_lib_save_LIBS
18590fi
18591echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18592echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18593if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18594 PNG_LINK=" -lpng"
a0b9e27f 18595fi
90dd450c 18596
5d3f766d 18597 fi
247f5006 18598
21d1c967
GD
18599 if test "x$PNG_LINK" = "x" ; then
18600 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18601 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18602echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18603 { (exit 1); exit 1; }; }
21d1c967 18604 else
e6cc62c6
VS
18605 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18606echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18607 wxUSE_LIBPNG=builtin
18608 fi
18609 else
2b5f62a0 18610 wxUSE_LIBPNG=sys
21d1c967
GD
18611 fi
18612 fi
18613 fi
90dd450c 18614
21d1c967
GD
18615 if test "$wxUSE_LIBPNG" = "builtin" ; then
18616 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18617 fi
90dd450c 18618
21d1c967 18619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18620fi
18621
8284b0c5 18622
21d1c967
GD
18623JPEG_INCLUDE=
18624JPEG_LINK=
18625if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18626 cat >>confdefs.h <<\_ACEOF
21d1c967 18627#define wxUSE_LIBJPEG 1
e6cc62c6 18628_ACEOF
90dd450c 18629
8284b0c5 18630
21d1c967 18631 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18632 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18633echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18634 wxUSE_LIBJPEG=sys
18635 fi
90dd450c 18636
21d1c967
GD
18637 if test "$wxUSE_MGL" != 1 ; then
18638 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18639 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18640echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18641 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643else
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. */
90dd450c 18651
21d1c967
GD
18652 #undef HAVE_STDLIB_H
18653 #include <stdio.h>
18654 #include <jpeglib.h>
90dd450c 18655
e6cc62c6
VS
18656int
18657main ()
18658{
18659
18660
18661 ;
18662 return 0;
18663}
18664_ACEOF
18665rm -f conftest.$ac_objext
18666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18667 (eval $ac_compile) 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } &&
18671 { ac_try='test -s conftest.$ac_objext'
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
21d1c967 18677 ac_cv_header_jpeglib_h=yes
90dd450c 18678else
e6cc62c6
VS
18679 echo "$as_me: failed program was:" >&5
18680sed 's/^/| /' conftest.$ac_ext >&5
18681
18682ac_cv_header_jpeglib_h=no
18683
90dd450c 18684fi
e6cc62c6
VS
18685rm -f conftest.$ac_objext conftest.$ac_ext
18686
90dd450c
VZ
18687fi
18688
e6cc62c6
VS
18689 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18690echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18691
21d1c967 18692 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18693 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18694echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18695if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18697else
e6cc62c6 18698 ac_check_lib_save_LIBS=$LIBS
21d1c967 18699LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18700cat >conftest.$ac_ext <<_ACEOF
18701#line $LINENO "configure"
18702/* confdefs.h. */
18703_ACEOF
18704cat confdefs.h >>conftest.$ac_ext
18705cat >>conftest.$ac_ext <<_ACEOF
18706/* end confdefs.h. */
18707
21d1c967 18708/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18709#ifdef __cplusplus
18710extern "C"
18711#endif
21d1c967 18712/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18713 builtin and then its argument prototype would still apply. */
18714char jpeg_read_header ();
18715int
18716main ()
18717{
18718jpeg_read_header ();
18719 ;
18720 return 0;
18721}
18722_ACEOF
18723rm -f conftest.$ac_objext conftest$ac_exeext
18724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 (eval $ac_link) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
18729 { ac_try='test -s conftest$ac_exeext'
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_cv_lib_jpeg_jpeg_read_header=yes
18736else
18737 echo "$as_me: failed program was:" >&5
18738sed 's/^/| /' conftest.$ac_ext >&5
18739
18740ac_cv_lib_jpeg_jpeg_read_header=no
18741fi
18742rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18743LIBS=$ac_check_lib_save_LIBS
18744fi
18745echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18746echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18747if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18748 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18749fi
18750
21d1c967 18751 fi
90dd450c 18752
21d1c967
GD
18753 if test "x$JPEG_LINK" = "x" ; then
18754 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18755 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18756echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18757 { (exit 1); exit 1; }; }
21d1c967 18758 else
e6cc62c6
VS
18759 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18760echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18761 wxUSE_LIBJPEG=builtin
18762 fi
18763 else
18764 wxUSE_LIBJPEG=sys
18765 fi
18766 fi
18767 fi
90dd450c 18768
21d1c967
GD
18769 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18770 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18771 fi
18772fi
90dd450c 18773
8284b0c5 18774
21d1c967
GD
18775TIFF_INCLUDE=
18776TIFF_LINK=
2b5f62a0 18777TIFF_PREREQ_LINKS=-lm
21d1c967 18778if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18779 cat >>confdefs.h <<\_ACEOF
21d1c967 18780#define wxUSE_LIBTIFF 1
e6cc62c6 18781_ACEOF
21d1c967 18782
8284b0c5 18783
21d1c967 18784 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18785 if test "$wxUSE_LIBJPEG" = "sys"; then
18786 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18787 fi
18788 if test "$wxUSE_ZLIB" = "sys"; then
18789 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18790 fi
e6cc62c6
VS
18791 if test "${ac_cv_header_tiffio_h+set}" = set; then
18792 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18793echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18794if test "${ac_cv_header_tiffio_h+set}" = set; then
18795 echo $ECHO_N "(cached) $ECHO_C" >&6
18796fi
18797echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18798echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18799else
18800 # Is the header compilable?
18801echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18802echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18803cat >conftest.$ac_ext <<_ACEOF
18804#line $LINENO "configure"
18805/* confdefs.h. */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
18809/* end confdefs.h. */
18810$ac_includes_default
247f5006 18811#include <tiffio.h>
e6cc62c6
VS
18812_ACEOF
18813rm -f conftest.$ac_objext
18814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18815 (eval $ac_compile) 2>&5
18816 ac_status=$?
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
18819 { ac_try='test -s conftest.$ac_objext'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; }; then
18825 ac_header_compiler=yes
18826else
18827 echo "$as_me: failed program was:" >&5
18828sed 's/^/| /' conftest.$ac_ext >&5
18829
18830ac_header_compiler=no
18831fi
18832rm -f conftest.$ac_objext conftest.$ac_ext
18833echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18834echo "${ECHO_T}$ac_header_compiler" >&6
18835
18836# Is the header present?
18837echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18838echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18839cat >conftest.$ac_ext <<_ACEOF
18840#line $LINENO "configure"
18841/* confdefs.h. */
18842_ACEOF
18843cat confdefs.h >>conftest.$ac_ext
18844cat >>conftest.$ac_ext <<_ACEOF
18845/* end confdefs.h. */
18846#include <tiffio.h>
18847_ACEOF
18848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } >/dev/null; then
18856 if test -s conftest.err; then
18857 ac_cpp_err=$ac_c_preproc_warn_flag
18858 else
18859 ac_cpp_err=
18860 fi
18861else
18862 ac_cpp_err=yes
18863fi
18864if test -z "$ac_cpp_err"; then
18865 ac_header_preproc=yes
18866else
18867 echo "$as_me: failed program was:" >&5
18868sed 's/^/| /' conftest.$ac_ext >&5
18869
18870 ac_header_preproc=no
18871fi
18872rm -f conftest.err conftest.$ac_ext
18873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18874echo "${ECHO_T}$ac_header_preproc" >&6
18875
18876# So? What about this header?
18877case $ac_header_compiler:$ac_header_preproc in
18878 yes:no )
18879 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18880echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18882echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18883 (
18884 cat <<\_ASBOX
18885## ------------------------------------ ##
18886## Report this to bug-autoconf@gnu.org. ##
18887## ------------------------------------ ##
18888_ASBOX
18889 ) |
18890 sed "s/^/$as_me: WARNING: /" >&2
18891 ;;
18892 no:yes )
18893 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18894echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18895 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18896echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18897 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18898echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18899 (
18900 cat <<\_ASBOX
18901## ------------------------------------ ##
18902## Report this to bug-autoconf@gnu.org. ##
18903## ------------------------------------ ##
18904_ASBOX
18905 ) |
18906 sed "s/^/$as_me: WARNING: /" >&2
18907 ;;
18908esac
18909echo "$as_me:$LINENO: checking for tiffio.h" >&5
18910echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18911if test "${ac_cv_header_tiffio_h+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18913else
18914 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 18915fi
e6cc62c6
VS
18916echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18917echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18918
21d1c967 18919fi
e6cc62c6
VS
18920if test $ac_cv_header_tiffio_h = yes; then
18921 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18922echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
18923if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 18925else
e6cc62c6 18926 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 18927LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
18928cat >conftest.$ac_ext <<_ACEOF
18929#line $LINENO "configure"
18930/* confdefs.h. */
18931_ACEOF
18932cat confdefs.h >>conftest.$ac_ext
18933cat >>conftest.$ac_ext <<_ACEOF
18934/* end confdefs.h. */
18935
ab9b9eab 18936/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18937#ifdef __cplusplus
18938extern "C"
18939#endif
ab9b9eab 18940/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18941 builtin and then its argument prototype would still apply. */
18942char TIFFError ();
18943int
18944main ()
18945{
18946TIFFError ();
18947 ;
18948 return 0;
18949}
18950_ACEOF
18951rm -f conftest.$ac_objext conftest$ac_exeext
18952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18953 (eval $ac_link) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_cv_lib_tiff_TIFFError=yes
18964else
18965 echo "$as_me: failed program was:" >&5
18966sed 's/^/| /' conftest.$ac_ext >&5
18967
18968ac_cv_lib_tiff_TIFFError=no
18969fi
18970rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18971LIBS=$ac_check_lib_save_LIBS
18972fi
18973echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
18974echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
18975if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 18976 TIFF_LINK=" -ltiff"
a0b9e27f 18977fi
cd6d6d5b 18978
e6cc62c6 18979
a0b9e27f 18980fi
8284b0c5 18981
247f5006 18982
e6cc62c6 18983
21d1c967
GD
18984 if test "x$TIFF_LINK" = "x" ; then
18985 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
18986 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
18987echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
18988 { (exit 1); exit 1; }; }
90dd450c 18989 else
e6cc62c6
VS
18990 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
18991echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 18992 wxUSE_LIBTIFF=builtin
d8356fa3 18993 fi
d8356fa3 18994 else
21d1c967 18995 wxUSE_LIBTIFF=sys
d8356fa3 18996 fi
21d1c967 18997 fi
d8356fa3 18998
21d1c967
GD
18999 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19000 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19001 fi
21d1c967 19002fi
10f2d63a 19003
8284b0c5 19004
21d1c967 19005AFMINSTALL=
2b5f62a0 19006WIN32INSTALL=
90dd450c 19007
21d1c967
GD
19008TOOLKIT=
19009TOOLKIT_INCLUDE=
19010WIDGET_SET=
19011
19012if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19013
19014for ac_header in w32api.h
21d1c967 19015do
e6cc62c6
VS
19016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19017if eval "test \"\${$as_ac_Header+set}\" = set"; then
19018 echo "$as_me:$LINENO: checking for $ac_header" >&5
19019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19020if eval "test \"\${$as_ac_Header+set}\" = set"; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19022fi
19023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19025else
19026 # Is the header compilable?
19027echo "$as_me:$LINENO: checking $ac_header usability" >&5
19028echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19029cat >conftest.$ac_ext <<_ACEOF
19030#line $LINENO "configure"
19031/* confdefs.h. */
19032_ACEOF
19033cat confdefs.h >>conftest.$ac_ext
19034cat >>conftest.$ac_ext <<_ACEOF
19035/* end confdefs.h. */
19036$ac_includes_default
19037#include <$ac_header>
19038_ACEOF
19039rm -f conftest.$ac_objext
19040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19041 (eval $ac_compile) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
19045 { ac_try='test -s conftest.$ac_objext'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 ac_header_compiler=yes
19052else
19053 echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056ac_header_compiler=no
19057fi
19058rm -f conftest.$ac_objext conftest.$ac_ext
19059echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19060echo "${ECHO_T}$ac_header_compiler" >&6
19061
19062# Is the header present?
19063echo "$as_me:$LINENO: checking $ac_header presence" >&5
19064echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19065cat >conftest.$ac_ext <<_ACEOF
19066#line $LINENO "configure"
19067/* confdefs.h. */
19068_ACEOF
19069cat confdefs.h >>conftest.$ac_ext
19070cat >>conftest.$ac_ext <<_ACEOF
19071/* end confdefs.h. */
19072#include <$ac_header>
19073_ACEOF
19074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19076 ac_status=$?
19077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } >/dev/null; then
19082 if test -s conftest.err; then
19083 ac_cpp_err=$ac_c_preproc_warn_flag
19084 else
19085 ac_cpp_err=
19086 fi
19087else
19088 ac_cpp_err=yes
19089fi
19090if test -z "$ac_cpp_err"; then
19091 ac_header_preproc=yes
19092else
19093 echo "$as_me: failed program was:" >&5
19094sed 's/^/| /' conftest.$ac_ext >&5
19095
19096 ac_header_preproc=no
19097fi
19098rm -f conftest.err conftest.$ac_ext
19099echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19100echo "${ECHO_T}$ac_header_preproc" >&6
19101
19102# So? What about this header?
19103case $ac_header_compiler:$ac_header_preproc in
19104 yes:no )
19105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19109 (
19110 cat <<\_ASBOX
19111## ------------------------------------ ##
19112## Report this to bug-autoconf@gnu.org. ##
19113## ------------------------------------ ##
19114_ASBOX
19115 ) |
19116 sed "s/^/$as_me: WARNING: /" >&2
19117 ;;
19118 no:yes )
19119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19120echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19122echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19125 (
19126 cat <<\_ASBOX
19127## ------------------------------------ ##
19128## Report this to bug-autoconf@gnu.org. ##
19129## ------------------------------------ ##
19130_ASBOX
19131 ) |
19132 sed "s/^/$as_me: WARNING: /" >&2
19133 ;;
19134esac
19135echo "$as_me:$LINENO: checking for $ac_header" >&5
19136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19137if eval "test \"\${$as_ac_Header+set}\" = set"; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19139else
19140 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19141fi
e6cc62c6
VS
19142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19144
21d1c967 19145fi
e6cc62c6
VS
19146if test `eval echo '${'$as_ac_Header'}'` = yes; then
19147 cat >>confdefs.h <<_ACEOF
19148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19149_ACEOF
19150
21d1c967 19151fi
e6cc62c6 19152
21d1c967 19153done
f79bd02d 19154
e6cc62c6
VS
19155 if test "${ac_cv_header_windows_h+set}" = set; then
19156 echo "$as_me:$LINENO: checking for windows.h" >&5
19157echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19158if test "${ac_cv_header_windows_h+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19160fi
19161echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19162echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19163else
19164 # Is the header compilable?
19165echo "$as_me:$LINENO: checking windows.h usability" >&5
19166echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19167cat >conftest.$ac_ext <<_ACEOF
19168#line $LINENO "configure"
19169/* confdefs.h. */
19170_ACEOF
19171cat confdefs.h >>conftest.$ac_ext
19172cat >>conftest.$ac_ext <<_ACEOF
19173/* end confdefs.h. */
19174$ac_includes_default
247f5006 19175#include <windows.h>
e6cc62c6
VS
19176_ACEOF
19177rm -f conftest.$ac_objext
19178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19179 (eval $ac_compile) 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
19183 { ac_try='test -s conftest.$ac_objext'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; }; then
19189 ac_header_compiler=yes
19190else
19191 echo "$as_me: failed program was:" >&5
19192sed 's/^/| /' conftest.$ac_ext >&5
19193
19194ac_header_compiler=no
19195fi
19196rm -f conftest.$ac_objext conftest.$ac_ext
19197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19198echo "${ECHO_T}$ac_header_compiler" >&6
19199
19200# Is the header present?
19201echo "$as_me:$LINENO: checking windows.h presence" >&5
19202echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19203cat >conftest.$ac_ext <<_ACEOF
19204#line $LINENO "configure"
19205/* confdefs.h. */
19206_ACEOF
19207cat confdefs.h >>conftest.$ac_ext
19208cat >>conftest.$ac_ext <<_ACEOF
19209/* end confdefs.h. */
19210#include <windows.h>
19211_ACEOF
19212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19214 ac_status=$?
19215 grep -v '^ *+' conftest.er1 >conftest.err
19216 rm -f conftest.er1
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } >/dev/null; then
19220 if test -s conftest.err; then
19221 ac_cpp_err=$ac_c_preproc_warn_flag
19222 else
19223 ac_cpp_err=
19224 fi
19225else
19226 ac_cpp_err=yes
19227fi
19228if test -z "$ac_cpp_err"; then
19229 ac_header_preproc=yes
19230else
19231 echo "$as_me: failed program was:" >&5
19232sed 's/^/| /' conftest.$ac_ext >&5
19233
19234 ac_header_preproc=no
19235fi
19236rm -f conftest.err conftest.$ac_ext
19237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19238echo "${ECHO_T}$ac_header_preproc" >&6
19239
19240# So? What about this header?
19241case $ac_header_compiler:$ac_header_preproc in
19242 yes:no )
19243 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19244echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19245 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19246echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19247 (
19248 cat <<\_ASBOX
19249## ------------------------------------ ##
19250## Report this to bug-autoconf@gnu.org. ##
19251## ------------------------------------ ##
19252_ASBOX
19253 ) |
19254 sed "s/^/$as_me: WARNING: /" >&2
19255 ;;
19256 no:yes )
19257 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19258echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19259 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19260echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19261 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19262echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19263 (
19264 cat <<\_ASBOX
19265## ------------------------------------ ##
19266## Report this to bug-autoconf@gnu.org. ##
19267## ------------------------------------ ##
19268_ASBOX
19269 ) |
19270 sed "s/^/$as_me: WARNING: /" >&2
19271 ;;
19272esac
19273echo "$as_me:$LINENO: checking for windows.h" >&5
19274echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19275if test "${ac_cv_header_windows_h+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19277else
19278 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19279fi
e6cc62c6
VS
19280echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19281echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19282
90dd450c 19283fi
e6cc62c6 19284if test $ac_cv_header_windows_h = yes; then
21d1c967 19285 :
90dd450c 19286else
21d1c967 19287
e6cc62c6
VS
19288 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19289echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19290 { (exit 1); exit 1; }; }
19291
5c6fa7d2 19292fi
7b4a847f 19293
5c6fa7d2 19294
e6cc62c6 19295
b3dfbbc9 19296 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19297
7bb2947d
MB
19298 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19299 LIBS="$LIBS -loleacc"
19300 fi
19301
21d1c967
GD
19302 case "${host}" in
19303 *-*-cygwin* )
b3dfbbc9 19304 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19305 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19306 esac
f79bd02d 19307
8647bec6
RG
19308 if test "$wxUSE_ODBC" = "sys" ; then
19309 wxUSE_ODBC = "yes"
21d1c967 19310 fi
8647bec6
RG
19311 if test "$wxUSE_ODBC" = "yes" ; then
19312 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19313 cat >>confdefs.h <<\_ACEOF
8647bec6 19314#define wxUSE_ODBC 1
e6cc62c6 19315_ACEOF
f79bd02d 19316
8647bec6 19317 fi
e6cc62c6 19318
21d1c967
GD
19319 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19320 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19321
19322 WIN32INSTALL=win32install
f79bd02d 19323fi
f79bd02d 19324
21d1c967
GD
19325if test "$wxUSE_GUI" = "yes"; then
19326 USE_GUI=1
f79bd02d 19327
21d1c967 19328 GUI_TK_LIBRARY=
f79bd02d 19329
21d1c967
GD
19330 WXGTK12=
19331 WXGTK127=
19332 WXGTK20=
f79bd02d 19333
21d1c967
GD
19334 if test "$wxUSE_MSW" = 1 ; then
19335 TOOLKIT=MSW
19336 GUIDIST=MSW_DIST
f79bd02d
JS
19337 fi
19338
21d1c967 19339 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19340 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19341echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19342
19343 gtk_version_cached=1
e6cc62c6
VS
19344 if test "${wx_cv_lib_gtk+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19346else
e6cc62c6 19347
21d1c967 19348 gtk_version_cached=0
e6cc62c6
VS
19349 echo "$as_me:$LINENO: result: " >&5
19350echo "${ECHO_T}" >&6
f79bd02d 19351
21d1c967
GD
19352 GTK_MODULES=
19353 if test "$wxUSE_THREADS" = "yes"; then
19354 GTK_MODULES=gthread
19355 fi
f79bd02d 19356
2b5f62a0 19357 wx_cv_lib_gtk=
21d1c967
GD
19358 if test "x$wxUSE_GTK2" = "xyes"; then
19359 # Check whether --enable-gtktest or --disable-gtktest was given.
19360if test "${enable_gtktest+set}" = set; then
19361 enableval="$enable_gtktest"
e6cc62c6 19362
f79bd02d 19363else
21d1c967 19364 enable_gtktest=yes
e6cc62c6 19365fi;
f79bd02d 19366
21d1c967
GD
19367 pkg_config_args=gtk+-2.0
19368 for module in . $GTK_MODULES
19369 do
19370 case "$module" in
e6cc62c6 19371 gthread)
21d1c967
GD
19372 pkg_config_args="$pkg_config_args gthread-2.0"
19373 ;;
19374 esac
19375 done
19376
19377 no_gtk=""
f79bd02d 19378
21d1c967
GD
19379 # Extract the first word of "pkg-config", so it can be a program name with args.
19380set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19381echo "$as_me:$LINENO: checking for $ac_word" >&5
19382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19383if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19385else
e6cc62c6
VS
19386 case $PKG_CONFIG in
19387 [\\/]* | ?:[\\/]*)
21d1c967
GD
19388 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19389 ;;
21d1c967 19390 *)
e6cc62c6
VS
19391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19392for as_dir in $PATH
19393do
19394 IFS=$as_save_IFS
19395 test -z "$as_dir" && as_dir=.
19396 for ac_exec_ext in '' $ac_executable_extensions; do
19397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19398 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19400 break 2
19401 fi
19402done
19403done
19404
21d1c967
GD
19405 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19406 ;;
19407esac
f79bd02d 19408fi
e6cc62c6
VS
19409PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19410
21d1c967 19411if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19412 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19413echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19414else
e6cc62c6
VS
19415 echo "$as_me:$LINENO: result: no" >&5
19416echo "${ECHO_T}no" >&6
f79bd02d
JS
19417fi
19418
8284b0c5 19419
21d1c967
GD
19420 if test x$PKG_CONFIG != xno ; then
19421 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19422 :
19423 else
19424 echo *** pkg-config too old; version 0.7 or better required.
19425 no_gtk=yes
19426 PKG_CONFIG=no
19427 fi
19428 else
19429 no_gtk=yes
19430 fi
f79bd02d 19431
21d1c967 19432 min_gtk_version=2.0.0
e6cc62c6
VS
19433 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19434echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19435
21d1c967
GD
19436 if test x$PKG_CONFIG != xno ; then
19437 ## don't try to run the test against uninstalled libtool libs
19438 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19439 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19440 enable_gtktest=no
19441 fi
f79bd02d 19442
21d1c967
GD
19443 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19444 :
19445 else
19446 no_gtk=yes
19447 fi
19448 fi
f79bd02d 19449
21d1c967
GD
19450 if test x"$no_gtk" = x ; then
19451 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19452 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19453 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19454 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19455 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19456 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19457 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19458 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19459 if test "x$enable_gtktest" = "xyes" ; then
19460 ac_save_CFLAGS="$CFLAGS"
19461 ac_save_LIBS="$LIBS"
19462 CFLAGS="$CFLAGS $GTK_CFLAGS"
19463 LIBS="$GTK_LIBS $LIBS"
19464 rm -f conf.gtktest
19465 if test "$cross_compiling" = yes; then
19466 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19467else
e6cc62c6
VS
19468 cat >conftest.$ac_ext <<_ACEOF
19469#line $LINENO "configure"
19470/* confdefs.h. */
19471_ACEOF
19472cat confdefs.h >>conftest.$ac_ext
19473cat >>conftest.$ac_ext <<_ACEOF
19474/* end confdefs.h. */
f79bd02d 19475
21d1c967
GD
19476#include <gtk/gtk.h>
19477#include <stdio.h>
19478#include <stdlib.h>
f79bd02d 19479
e6cc62c6 19480int
21d1c967
GD
19481main ()
19482{
19483 int major, minor, micro;
19484 char *tmp_version;
f79bd02d 19485
21d1c967 19486 system ("touch conf.gtktest");
f79bd02d 19487
21d1c967
GD
19488 /* HP/UX 9 (%@#!) writes to sscanf strings */
19489 tmp_version = g_strdup("$min_gtk_version");
19490 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19491 printf("%s, bad version string\n", "$min_gtk_version");
19492 exit(1);
19493 }
f79bd02d 19494
21d1c967
GD
19495 if ((gtk_major_version != $gtk_config_major_version) ||
19496 (gtk_minor_version != $gtk_config_minor_version) ||
19497 (gtk_micro_version != $gtk_config_micro_version))
19498 {
e6cc62c6 19499 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19500 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19501 gtk_major_version, gtk_minor_version, gtk_micro_version);
19502 printf ("*** was found! If pkg-config was correct, then it is best\n");
19503 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19504 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19505 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19506 printf("*** required on your system.\n");
19507 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19508 printf("*** to point to the correct configuration files\n");
e6cc62c6 19509 }
21d1c967
GD
19510 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19511 (gtk_minor_version != GTK_MINOR_VERSION) ||
19512 (gtk_micro_version != GTK_MICRO_VERSION))
19513 {
19514 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19515 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19516 printf("*** library (version %d.%d.%d)\n",
19517 gtk_major_version, gtk_minor_version, gtk_micro_version);
19518 }
19519 else
19520 {
19521 if ((gtk_major_version > major) ||
19522 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19523 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19524 {
19525 return 0;
19526 }
19527 else
19528 {
19529 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19530 gtk_major_version, gtk_minor_version, gtk_micro_version);
19531 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19532 major, minor, micro);
19533 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19534 printf("***\n");
19535 printf("*** If you have already installed a sufficiently new version, this error\n");
19536 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19537 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19538 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19539 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19540 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19541 printf("*** so that the correct libraries are found at run-time))\n");
19542 }
19543 }
19544 return 1;
19545}
f79bd02d 19546
e6cc62c6
VS
19547_ACEOF
19548rm -f conftest$ac_exeext
19549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550 (eval $ac_link) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
21d1c967 19559 :
f79bd02d 19560else
e6cc62c6
VS
19561 echo "$as_me: program exited with status $ac_status" >&5
19562echo "$as_me: failed program was:" >&5
19563sed 's/^/| /' conftest.$ac_ext >&5
19564
19565( exit $ac_status )
19566no_gtk=yes
f79bd02d 19567fi
e6cc62c6 19568rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 19569fi
21d1c967
GD
19570 CFLAGS="$ac_save_CFLAGS"
19571 LIBS="$ac_save_LIBS"
19572 fi
19573 fi
19574 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19575 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19576echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19577 wx_cv_lib_gtk=2.0
21d1c967 19578 else
e6cc62c6
VS
19579 echo "$as_me:$LINENO: result: no" >&5
19580echo "${ECHO_T}no" >&6
21d1c967
GD
19581 if test "$PKG_CONFIG" = "no" ; then
19582 echo "*** A new enough version of pkg-config was not found."
19583 echo "*** See http://pkgconfig.sourceforge.net"
19584 else
19585 if test -f conf.gtktest ; then
19586 :
19587 else
19588 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
19589 ac_save_CFLAGS="$CFLAGS"
19590 ac_save_LIBS="$LIBS"
21d1c967
GD
19591 CFLAGS="$CFLAGS $GTK_CFLAGS"
19592 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19593 cat >conftest.$ac_ext <<_ACEOF
19594#line $LINENO "configure"
19595/* confdefs.h. */
19596_ACEOF
19597cat confdefs.h >>conftest.$ac_ext
19598cat >>conftest.$ac_ext <<_ACEOF
19599/* end confdefs.h. */
21d1c967
GD
19600
19601#include <gtk/gtk.h>
19602#include <stdio.h>
f79bd02d 19603
e6cc62c6
VS
19604int
19605main ()
19606{
19607 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19608 ;
19609 return 0;
19610}
19611_ACEOF
19612rm -f conftest.$ac_objext conftest$ac_exeext
19613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19614 (eval $ac_link) 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } &&
19618 { ac_try='test -s conftest$ac_exeext'
19619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620 (eval $ac_try) 2>&5
19621 ac_status=$?
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; }; then
21d1c967
GD
19624 echo "*** The test program compiled, but did not run. This usually means"
19625 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
19626 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
19627 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19628 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19629 echo "*** is required on your system"
19630 echo "***"
19631 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 19632 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 19633else
e6cc62c6
VS
19634 echo "$as_me: failed program was:" >&5
19635sed 's/^/| /' conftest.$ac_ext >&5
19636
19637 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 19638 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 19639fi
e6cc62c6 19640rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
19641 CFLAGS="$ac_save_CFLAGS"
19642 LIBS="$ac_save_LIBS"
19643 fi
19644 fi
19645 GTK_CFLAGS=""
19646 GTK_LIBS=""
19647 :
19648 fi
e6cc62c6
VS
19649
19650
21d1c967 19651 rm -f conf.gtktest
f79bd02d 19652
2b5f62a0 19653 else
e6cc62c6
VS
19654
19655# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
19656if test "${with_gtk_prefix+set}" = set; then
19657 withval="$with_gtk_prefix"
19658 gtk_config_prefix="$withval"
19659else
19660 gtk_config_prefix=""
e6cc62c6 19661fi;
f79bd02d 19662
21d1c967
GD
19663# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
19664if test "${with_gtk_exec_prefix+set}" = set; then
19665 withval="$with_gtk_exec_prefix"
19666 gtk_config_exec_prefix="$withval"
19667else
19668 gtk_config_exec_prefix=""
e6cc62c6 19669fi;
21d1c967
GD
19670# Check whether --enable-gtktest or --disable-gtktest was given.
19671if test "${enable_gtktest+set}" = set; then
19672 enableval="$enable_gtktest"
e6cc62c6 19673
21d1c967
GD
19674else
19675 enable_gtktest=yes
e6cc62c6 19676fi;
21d1c967
GD
19677
19678 for module in . $GTK_MODULES
19679 do
19680 case "$module" in
e6cc62c6 19681 gthread)
21d1c967
GD
19682 gtk_config_args="$gtk_config_args gthread"
19683 ;;
19684 esac
19685 done
19686
19687 if test x$gtk_config_exec_prefix != x ; then
19688 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
19689 if test x${GTK_CONFIG+set} != xset ; then
19690 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
19691 fi
19692 fi
19693 if test x$gtk_config_prefix != x ; then
19694 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
19695 if test x${GTK_CONFIG+set} != xset ; then
19696 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
19697 fi
19698 fi
19699
19700 # Extract the first word of "gtk-config", so it can be a program name with args.
19701set dummy gtk-config; ac_word=$2
e6cc62c6
VS
19702echo "$as_me:$LINENO: checking for $ac_word" >&5
19703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19704if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19706else
e6cc62c6
VS
19707 case $GTK_CONFIG in
19708 [\\/]* | ?:[\\/]*)
21d1c967
GD
19709 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
19710 ;;
21d1c967 19711 *)
e6cc62c6
VS
19712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19713for as_dir in $PATH
19714do
19715 IFS=$as_save_IFS
19716 test -z "$as_dir" && as_dir=.
19717 for ac_exec_ext in '' $ac_executable_extensions; do
19718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19719 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19721 break 2
19722 fi
19723done
19724done
19725
21d1c967
GD
19726 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
19727 ;;
19728esac
19729fi
e6cc62c6
VS
19730GTK_CONFIG=$ac_cv_path_GTK_CONFIG
19731
21d1c967 19732if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
19733 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
19734echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 19735else
e6cc62c6
VS
19736 echo "$as_me:$LINENO: result: no" >&5
19737echo "${ECHO_T}no" >&6
21d1c967
GD
19738fi
19739
19740 min_gtk_version=1.2.7
e6cc62c6
VS
19741 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
19742echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
19743 no_gtk=""
19744 if test "$GTK_CONFIG" = "no" ; then
19745 no_gtk=yes
19746 else
19747 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
19748 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
19749 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
19750 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19751 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
19752 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19753 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
19754 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19755 if test "x$enable_gtktest" = "xyes" ; then
19756 ac_save_CFLAGS="$CFLAGS"
19757 ac_save_LIBS="$LIBS"
19758 CFLAGS="$CFLAGS $GTK_CFLAGS"
19759 LIBS="$GTK_LIBS $LIBS"
19760 rm -f conf.gtktest
19761 if test "$cross_compiling" = yes; then
19762 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19763else
e6cc62c6
VS
19764 cat >conftest.$ac_ext <<_ACEOF
19765#line $LINENO "configure"
19766/* confdefs.h. */
19767_ACEOF
19768cat confdefs.h >>conftest.$ac_ext
19769cat >>conftest.$ac_ext <<_ACEOF
19770/* end confdefs.h. */
f79bd02d 19771
21d1c967
GD
19772#include <gtk/gtk.h>
19773#include <stdio.h>
19774#include <stdlib.h>
f79bd02d 19775
e6cc62c6 19776int
21d1c967
GD
19777main ()
19778{
19779 int major, minor, micro;
19780 char *tmp_version;
19781
19782 system ("touch conf.gtktest");
19783
19784 /* HP/UX 9 (%@#!) writes to sscanf strings */
19785 tmp_version = g_strdup("$min_gtk_version");
19786 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19787 printf("%s, bad version string\n", "$min_gtk_version");
19788 exit(1);
19789 }
90dd450c 19790
21d1c967
GD
19791 if ((gtk_major_version != $gtk_config_major_version) ||
19792 (gtk_minor_version != $gtk_config_minor_version) ||
19793 (gtk_micro_version != $gtk_config_micro_version))
19794 {
e6cc62c6 19795 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19796 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19797 gtk_major_version, gtk_minor_version, gtk_micro_version);
19798 printf ("*** was found! If gtk-config was correct, then it is best\n");
19799 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19800 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19801 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19802 printf("*** required on your system.\n");
19803 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
19804 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
19805 printf("*** before re-running configure\n");
e6cc62c6 19806 }
21d1c967
GD
19807#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
19808 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19809 (gtk_minor_version != GTK_MINOR_VERSION) ||
19810 (gtk_micro_version != GTK_MICRO_VERSION))
19811 {
19812 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19813 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19814 printf("*** library (version %d.%d.%d)\n",
19815 gtk_major_version, gtk_minor_version, gtk_micro_version);
19816 }
19817#endif /* defined (GTK_MAJOR_VERSION) ... */
19818 else
19819 {
19820 if ((gtk_major_version > major) ||
19821 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19822 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19823 {
19824 return 0;
19825 }
19826 else
19827 {
19828 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19829 gtk_major_version, gtk_minor_version, gtk_micro_version);
19830 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19831 major, minor, micro);
19832 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19833 printf("***\n");
19834 printf("*** If you have already installed a sufficiently new version, this error\n");
19835 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
19836 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19837 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
19838 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
19839 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19840 printf("*** so that the correct libraries are found at run-time))\n");
19841 }
19842 }
19843 return 1;
19844}
19845
e6cc62c6
VS
19846_ACEOF
19847rm -f conftest$ac_exeext
19848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19849 (eval $ac_link) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19855 ac_status=$?
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; }; then
21d1c967
GD
19858 :
19859else
e6cc62c6
VS
19860 echo "$as_me: program exited with status $ac_status" >&5
19861echo "$as_me: failed program was:" >&5
19862sed 's/^/| /' conftest.$ac_ext >&5
19863
19864( exit $ac_status )
19865no_gtk=yes
21d1c967 19866fi
e6cc62c6 19867rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 19868fi
21d1c967
GD
19869 CFLAGS="$ac_save_CFLAGS"
19870 LIBS="$ac_save_LIBS"
19871 fi
19872 fi
19873 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19874 echo "$as_me:$LINENO: result: yes" >&5
19875echo "${ECHO_T}yes" >&6
19876 wx_cv_lib_gtk=1.2.7
21d1c967 19877 else
e6cc62c6
VS
19878 echo "$as_me:$LINENO: result: no" >&5
19879echo "${ECHO_T}no" >&6
21d1c967
GD
19880 if test "$GTK_CONFIG" = "no" ; then
19881 echo "*** The gtk-config script installed by GTK could not be found"
19882 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
19883 echo "*** your path, or set the GTK_CONFIG environment variable to the"
19884 echo "*** full path to gtk-config."
19885 else
19886 if test -f conf.gtktest ; then
19887 :
19888 else
19889 echo "*** Could not run GTK test program, checking why..."
19890 CFLAGS="$CFLAGS $GTK_CFLAGS"
19891 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19892 cat >conftest.$ac_ext <<_ACEOF
19893#line $LINENO "configure"
19894/* confdefs.h. */
19895_ACEOF
19896cat confdefs.h >>conftest.$ac_ext
19897cat >>conftest.$ac_ext <<_ACEOF
19898/* end confdefs.h. */
21d1c967
GD
19899
19900#include <gtk/gtk.h>
19901#include <stdio.h>
19902
e6cc62c6
VS
19903int
19904main ()
19905{
19906 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19907 ;
19908 return 0;
19909}
19910_ACEOF
19911rm -f conftest.$ac_objext conftest$ac_exeext
19912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19913 (eval $ac_link) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -s conftest$ac_exeext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
21d1c967
GD
19923 echo "*** The test program compiled, but did not run. This usually means"
19924 echo "*** that the run-time linker is not finding GTK or finding the wrong"
19925 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
19926 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19927 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19928 echo "*** is required on your system"
19929 echo "***"
19930 echo "*** If you have an old version installed, it is best to remove it, although"
19931 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
19932 echo "***"
19933 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
19934 echo "*** came with the system with the command"
19935 echo "***"
e6cc62c6 19936 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 19937else
e6cc62c6
VS
19938 echo "$as_me: failed program was:" >&5
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
19942 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
19943 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 19944 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 19945fi
e6cc62c6 19946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
19947 CFLAGS="$ac_save_CFLAGS"
19948 LIBS="$ac_save_LIBS"
19949 fi
19950 fi
19951 GTK_CFLAGS=""
19952 GTK_LIBS=""
19953 :
19954 fi
e6cc62c6
VS
19955
19956
21d1c967
GD
19957 rm -f conf.gtktest
19958
21d1c967 19959
2b5f62a0 19960 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
19961
19962# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
19963if test "${with_gtk_prefix+set}" = set; then
19964 withval="$with_gtk_prefix"
19965 gtk_config_prefix="$withval"
19966else
19967 gtk_config_prefix=""
e6cc62c6 19968fi;
f79bd02d 19969
21d1c967
GD
19970# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
19971if test "${with_gtk_exec_prefix+set}" = set; then
19972 withval="$with_gtk_exec_prefix"
19973 gtk_config_exec_prefix="$withval"
19974else
19975 gtk_config_exec_prefix=""
e6cc62c6 19976fi;
21d1c967
GD
19977# Check whether --enable-gtktest or --disable-gtktest was given.
19978if test "${enable_gtktest+set}" = set; then
19979 enableval="$enable_gtktest"
e6cc62c6 19980
90dd450c 19981else
21d1c967 19982 enable_gtktest=yes
e6cc62c6 19983fi;
21d1c967
GD
19984
19985 for module in . $GTK_MODULES
19986 do
19987 case "$module" in
e6cc62c6 19988 gthread)
21d1c967
GD
19989 gtk_config_args="$gtk_config_args gthread"
19990 ;;
19991 esac
19992 done
19993
19994 if test x$gtk_config_exec_prefix != x ; then
19995 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
19996 if test x${GTK_CONFIG+set} != xset ; then
19997 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
19998 fi
19999 fi
20000 if test x$gtk_config_prefix != x ; then
20001 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20002 if test x${GTK_CONFIG+set} != xset ; then
20003 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20004 fi
20005 fi
20006
20007 # Extract the first word of "gtk-config", so it can be a program name with args.
20008set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20009echo "$as_me:$LINENO: checking for $ac_word" >&5
20010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20011if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20013else
e6cc62c6
VS
20014 case $GTK_CONFIG in
20015 [\\/]* | ?:[\\/]*)
21d1c967
GD
20016 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20017 ;;
21d1c967 20018 *)
e6cc62c6
VS
20019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20020for as_dir in $PATH
20021do
20022 IFS=$as_save_IFS
20023 test -z "$as_dir" && as_dir=.
20024 for ac_exec_ext in '' $ac_executable_extensions; do
20025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20026 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20028 break 2
20029 fi
20030done
20031done
20032
21d1c967
GD
20033 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20034 ;;
20035esac
20036fi
e6cc62c6
VS
20037GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20038
21d1c967 20039if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20040 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20041echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20042else
e6cc62c6
VS
20043 echo "$as_me:$LINENO: result: no" >&5
20044echo "${ECHO_T}no" >&6
21d1c967
GD
20045fi
20046
20047 min_gtk_version=1.2.3
e6cc62c6
VS
20048 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20049echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20050 no_gtk=""
20051 if test "$GTK_CONFIG" = "no" ; then
20052 no_gtk=yes
20053 else
20054 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20055 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20056 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20057 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20058 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20059 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20060 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20061 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20062 if test "x$enable_gtktest" = "xyes" ; then
20063 ac_save_CFLAGS="$CFLAGS"
20064 ac_save_LIBS="$LIBS"
20065 CFLAGS="$CFLAGS $GTK_CFLAGS"
20066 LIBS="$GTK_LIBS $LIBS"
20067 rm -f conf.gtktest
20068 if test "$cross_compiling" = yes; then
20069 echo $ac_n "cross compiling; assumed OK... $ac_c"
20070else
e6cc62c6
VS
20071 cat >conftest.$ac_ext <<_ACEOF
20072#line $LINENO "configure"
20073/* confdefs.h. */
20074_ACEOF
20075cat confdefs.h >>conftest.$ac_ext
20076cat >>conftest.$ac_ext <<_ACEOF
20077/* end confdefs.h. */
21d1c967
GD
20078
20079#include <gtk/gtk.h>
20080#include <stdio.h>
20081#include <stdlib.h>
20082
e6cc62c6 20083int
21d1c967
GD
20084main ()
20085{
20086 int major, minor, micro;
20087 char *tmp_version;
20088
20089 system ("touch conf.gtktest");
20090
20091 /* HP/UX 9 (%@#!) writes to sscanf strings */
20092 tmp_version = g_strdup("$min_gtk_version");
20093 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20094 printf("%s, bad version string\n", "$min_gtk_version");
20095 exit(1);
20096 }
20097
20098 if ((gtk_major_version != $gtk_config_major_version) ||
20099 (gtk_minor_version != $gtk_config_minor_version) ||
20100 (gtk_micro_version != $gtk_config_micro_version))
20101 {
e6cc62c6 20102 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20103 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20104 gtk_major_version, gtk_minor_version, gtk_micro_version);
20105 printf ("*** was found! If gtk-config was correct, then it is best\n");
20106 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20107 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20108 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20109 printf("*** required on your system.\n");
20110 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20111 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20112 printf("*** before re-running configure\n");
e6cc62c6 20113 }
21d1c967
GD
20114#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20115 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20116 (gtk_minor_version != GTK_MINOR_VERSION) ||
20117 (gtk_micro_version != GTK_MICRO_VERSION))
20118 {
20119 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20120 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20121 printf("*** library (version %d.%d.%d)\n",
20122 gtk_major_version, gtk_minor_version, gtk_micro_version);
20123 }
20124#endif /* defined (GTK_MAJOR_VERSION) ... */
20125 else
20126 {
20127 if ((gtk_major_version > major) ||
20128 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20129 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20130 {
20131 return 0;
20132 }
20133 else
20134 {
20135 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20136 gtk_major_version, gtk_minor_version, gtk_micro_version);
20137 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20138 major, minor, micro);
20139 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20140 printf("***\n");
20141 printf("*** If you have already installed a sufficiently new version, this error\n");
20142 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20143 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20144 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20145 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20146 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20147 printf("*** so that the correct libraries are found at run-time))\n");
20148 }
20149 }
20150 return 1;
20151}
20152
e6cc62c6
VS
20153_ACEOF
20154rm -f conftest$ac_exeext
20155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20156 (eval $ac_link) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161 (eval $ac_try) 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
21d1c967
GD
20165 :
20166else
e6cc62c6
VS
20167 echo "$as_me: program exited with status $ac_status" >&5
20168echo "$as_me: failed program was:" >&5
20169sed 's/^/| /' conftest.$ac_ext >&5
20170
20171( exit $ac_status )
20172no_gtk=yes
21d1c967 20173fi
e6cc62c6 20174rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20175fi
21d1c967
GD
20176 CFLAGS="$ac_save_CFLAGS"
20177 LIBS="$ac_save_LIBS"
20178 fi
20179 fi
20180 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20181 echo "$as_me:$LINENO: result: yes" >&5
20182echo "${ECHO_T}yes" >&6
20183 wx_cv_lib_gtk=1.2.3
21d1c967 20184 else
e6cc62c6
VS
20185 echo "$as_me:$LINENO: result: no" >&5
20186echo "${ECHO_T}no" >&6
21d1c967
GD
20187 if test "$GTK_CONFIG" = "no" ; then
20188 echo "*** The gtk-config script installed by GTK could not be found"
20189 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20190 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20191 echo "*** full path to gtk-config."
20192 else
20193 if test -f conf.gtktest ; then
20194 :
20195 else
20196 echo "*** Could not run GTK test program, checking why..."
20197 CFLAGS="$CFLAGS $GTK_CFLAGS"
20198 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20199 cat >conftest.$ac_ext <<_ACEOF
20200#line $LINENO "configure"
20201/* confdefs.h. */
20202_ACEOF
20203cat confdefs.h >>conftest.$ac_ext
20204cat >>conftest.$ac_ext <<_ACEOF
20205/* end confdefs.h. */
21d1c967
GD
20206
20207#include <gtk/gtk.h>
20208#include <stdio.h>
f79bd02d 20209
e6cc62c6
VS
20210int
20211main ()
20212{
20213 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20214 ;
20215 return 0;
20216}
20217_ACEOF
20218rm -f conftest.$ac_objext conftest$ac_exeext
20219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20220 (eval $ac_link) 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } &&
20224 { ac_try='test -s conftest$ac_exeext'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
21d1c967
GD
20230 echo "*** The test program compiled, but did not run. This usually means"
20231 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20232 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20233 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20234 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20235 echo "*** is required on your system"
20236 echo "***"
20237 echo "*** If you have an old version installed, it is best to remove it, although"
20238 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20239 echo "***"
20240 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20241 echo "*** came with the system with the command"
20242 echo "***"
e6cc62c6 20243 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20244else
e6cc62c6
VS
20245 echo "$as_me: failed program was:" >&5
20246sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20249 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20250 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20251 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20252fi
e6cc62c6 20253rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20254 CFLAGS="$ac_save_CFLAGS"
20255 LIBS="$ac_save_LIBS"
20256 fi
20257 fi
20258 GTK_CFLAGS=""
20259 GTK_LIBS=""
20260 :
20261 fi
e6cc62c6
VS
20262
20263
21d1c967 20264 rm -f conf.gtktest
f79bd02d 20265
2b5f62a0 20266 fi
21d1c967
GD
20267 fi
20268
20269 if test -z "$wx_cv_lib_gtk"; then
20270 wx_cv_lib_gtk=none
20271 else
20272 wx_cv_cflags_gtk=$GTK_CFLAGS
20273 wx_cv_libs_gtk=$GTK_LIBS
20274 fi
e6cc62c6
VS
20275
20276
5c6fa7d2 20277fi
52127426 20278
8284b0c5 20279
21d1c967 20280 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20281 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20282echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20283 fi
20284
20285 case "$wx_cv_lib_gtk" in
20286 2.0) WXGTK20=1
2b5f62a0 20287 TOOLKIT_VERSION=2
21d1c967
GD
20288 ;;
20289 1.2.7) WXGTK127=1
20290 WXGTK12=1
20291 ;;
20292 1.2.3) WXGTK12=1
20293 ;;
e6cc62c6
VS
20294 *) { { echo "$as_me:$LINENO: error:
20295Please check that gtk-config is in path, the directory
20296where GTK+ libraries are installed (returned by
20297'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20298equivalent variable and GTK+ is version 1.2.3 or above.
20299 " >&5
20300echo "$as_me: error:
247f5006
VZ
20301Please check that gtk-config is in path, the directory
20302where GTK+ libraries are installed (returned by
20303'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20304equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20305 " >&2;}
20306 { (exit 1); exit 1; }; }
21d1c967
GD
20307 ;;
20308 esac
20309
b13cd66e
VZ
20310 if test "$WXGTK20" = 1; then
20311 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20312
f09359cf
VS
20313 succeeded=no
20314
20315 if test -z "$PKG_CONFIG"; then
20316 # Extract the first word of "pkg-config", so it can be a program name with args.
20317set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20318echo "$as_me:$LINENO: checking for $ac_word" >&5
20319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20320if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20322else
e6cc62c6
VS
20323 case $PKG_CONFIG in
20324 [\\/]* | ?:[\\/]*)
f09359cf
VS
20325 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20326 ;;
f09359cf 20327 *)
e6cc62c6
VS
20328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20329for as_dir in $PATH
20330do
20331 IFS=$as_save_IFS
20332 test -z "$as_dir" && as_dir=.
20333 for ac_exec_ext in '' $ac_executable_extensions; do
20334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20335 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20337 break 2
20338 fi
20339done
20340done
20341
f09359cf
VS
20342 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20343 ;;
20344esac
20345fi
e6cc62c6
VS
20346PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20347
f09359cf 20348if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20349 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20350echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20351else
e6cc62c6
VS
20352 echo "$as_me:$LINENO: result: no" >&5
20353echo "${ECHO_T}no" >&6
f09359cf
VS
20354fi
20355
20356 fi
20357
20358 if test "$PKG_CONFIG" = "no" ; then
20359 echo "*** The pkg-config script could not be found. Make sure it is"
20360 echo "*** in your path, or set the PKG_CONFIG environment variable"
20361 echo "*** to the full path to pkg-config."
20362 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20363 else
20364 PKG_CONFIG_MIN_VERSION=0.9.0
20365 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20366 echo "$as_me:$LINENO: checking for pangoft2" >&5
20367echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20368
20369 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20370 echo "$as_me:$LINENO: result: yes" >&5
20371echo "${ECHO_T}yes" >&6
f09359cf
VS
20372 succeeded=yes
20373
e6cc62c6
VS
20374 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20375echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20376 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20377 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20378echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20379
e6cc62c6
VS
20380 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20381echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20382 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20383 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20384echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20385 else
20386 PANGOFT2_CFLAGS=""
20387 PANGOFT2_LIBS=""
e6cc62c6 20388 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20389 ## do set a variable so people can do so.
20390 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20391
f09359cf
VS
20392 fi
20393
e6cc62c6
VS
20394
20395
f09359cf
VS
20396 else
20397 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20398 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20399 fi
20400 fi
20401
20402 if test $succeeded = yes; then
e6cc62c6 20403
b13cd66e 20404 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20405 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20406
f09359cf 20407 else
e6cc62c6
VS
20408
20409 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20410echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20411 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20412
20413
f09359cf
VS
20414 fi
20415
b13cd66e 20416 fi
2b5f62a0
VZ
20417 else
20418 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20419 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20420echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20421 wxUSE_UNICODE=no
20422 fi
20423 fi
20424
20425 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20426
20427for ac_func in poll
2b5f62a0 20428do
e6cc62c6
VS
20429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20430echo "$as_me:$LINENO: checking for $ac_func" >&5
20431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20432if eval "test \"\${$as_ac_var+set}\" = set"; then
20433 echo $ECHO_N "(cached) $ECHO_C" >&6
20434else
20435 cat >conftest.$ac_ext <<_ACEOF
20436#line $LINENO "configure"
20437/* confdefs.h. */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h. */
2b5f62a0 20442/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20443 which can conflict with char $ac_func (); below.
20444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20445 <limits.h> exists even on freestanding compilers. */
20446#ifdef __STDC__
20447# include <limits.h>
20448#else
20449# include <assert.h>
20450#endif
2b5f62a0 20451/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20452#ifdef __cplusplus
20453extern "C"
20454{
20455#endif
2b5f62a0 20456/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20457 builtin and then its argument prototype would still apply. */
20458char $ac_func ();
2b5f62a0
VZ
20459/* The GNU C library defines this for functions which it implements
20460 to always fail with ENOSYS. Some functions are actually named
20461 something starting with __ and the normal name is an alias. */
20462#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20463choke me
20464#else
e6cc62c6
VS
20465char (*f) () = $ac_func;
20466#endif
20467#ifdef __cplusplus
20468}
2b5f62a0
VZ
20469#endif
20470
e6cc62c6
VS
20471int
20472main ()
20473{
20474return f != $ac_func;
20475 ;
20476 return 0;
20477}
20478_ACEOF
20479rm -f conftest.$ac_objext conftest$ac_exeext
20480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20481 (eval $ac_link) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } &&
20485 { ac_try='test -s conftest$ac_exeext'
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 eval "$as_ac_var=yes"
20492else
20493 echo "$as_me: failed program was:" >&5
20494sed 's/^/| /' conftest.$ac_ext >&5
20495
20496eval "$as_ac_var=no"
20497fi
20498rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20499fi
20500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20501echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20502if test `eval echo '${'$as_ac_var'}'` = yes; then
20503 cat >>confdefs.h <<_ACEOF
20504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20505_ACEOF
2b5f62a0 20506
2b5f62a0
VZ
20507fi
20508done
20509
f09359cf
VS
20510 fi
20511
21d1c967 20512 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 20513 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
20514
20515 AFMINSTALL=afminstall
20516 TOOLKIT=GTK
20517 GUIDIST=GTK_DIST
20518
e6cc62c6
VS
20519 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20520echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20521if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20523else
e6cc62c6 20524 ac_check_lib_save_LIBS=$LIBS
21d1c967 20525LIBS="-lgdk $LIBS"
e6cc62c6
VS
20526cat >conftest.$ac_ext <<_ACEOF
20527#line $LINENO "configure"
20528/* confdefs.h. */
20529_ACEOF
20530cat confdefs.h >>conftest.$ac_ext
20531cat >>conftest.$ac_ext <<_ACEOF
20532/* end confdefs.h. */
20533
5c6fa7d2 20534/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20535#ifdef __cplusplus
20536extern "C"
20537#endif
5c6fa7d2 20538/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20539 builtin and then its argument prototype would still apply. */
20540char gdk_im_open ();
20541int
20542main ()
20543{
20544gdk_im_open ();
20545 ;
20546 return 0;
20547}
20548_ACEOF
20549rm -f conftest.$ac_objext conftest$ac_exeext
20550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20551 (eval $ac_link) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
20555 { ac_try='test -s conftest$ac_exeext'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_cv_lib_gdk_gdk_im_open=yes
20562else
20563 echo "$as_me: failed program was:" >&5
20564sed 's/^/| /' conftest.$ac_ext >&5
20565
20566ac_cv_lib_gdk_gdk_im_open=no
20567fi
20568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20569LIBS=$ac_check_lib_save_LIBS
20570fi
20571echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20572echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20573if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20574 cat >>confdefs.h <<\_ACEOF
21d1c967 20575#define HAVE_XIM 1
e6cc62c6 20576_ACEOF
21d1c967 20577
90dd450c 20578fi
1e6feb95 20579
21d1c967 20580 fi
1e6feb95 20581
21d1c967 20582 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
20583 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20584echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 20585 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
20586 echo "$as_me:$LINENO: result: not found" >&5
20587echo "${ECHO_T}not found" >&6
20588 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20589echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20590 { (exit 1); exit 1; }; }
21d1c967 20591 else
e6cc62c6
VS
20592 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20593echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
20594 fi
20595
e6cc62c6
VS
20596 echo "$as_me:$LINENO: checking for libmgl location" >&5
20597echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
20598 case "${host}" in
20599 *-*-linux* )
63a76696
VS
20600 if test "x$wxUSE_SHARED" = xyes ; then
20601 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20602 else
20603 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20604 fi
21d1c967
GD
20605 ;;
20606 *-pc-msdosdjgpp )
63a76696 20607 mgl_os_candidates="dos32/dj2"
21d1c967
GD
20608 ;;
20609 *)
e6cc62c6
VS
20610 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20611echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20612 { (exit 1); exit 1; }; }
21d1c967 20613 esac
1e6feb95 20614
21d1c967 20615 mgl_lib_type=""
63a76696
VS
20616 mgl_os=""
20617
20618 for mgl_os_i in $mgl_os_candidates ; do
20619 if test "x$mgl_os" = x ; then
20620 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20621 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20622 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
20623 mgl_lib_type=debug
20624 mgl_os=$mgl_os_i
20625 fi
20626 fi
20627 if test "x$mgl_lib_type" = x ; then
20628 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
20629 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
20630 mgl_lib_type=release
20631 mgl_os=$mgl_os_i
20632 fi
20633 fi
21d1c967 20634 fi
63a76696 20635 done
2224580a 20636
63a76696 20637 if test "x$mgl_os" = x ; then
e6cc62c6
VS
20638 echo "$as_me:$LINENO: result: not found" >&5
20639echo "${ECHO_T}not found" >&6
20640 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
20641echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
20642 { (exit 1); exit 1; }; }
63a76696 20643 fi
e6cc62c6
VS
20644 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
20645echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 20646
1d1b75ac
VZ
20647 wxUSE_UNIVERSAL="yes"
20648
21d1c967
GD
20649 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
20650 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
20651
90dd450c 20652 AFMINSTALL=afminstall
21d1c967
GD
20653 TOOLKIT=MGL
20654 GUIDIST=MGL_DIST
20655 fi
dad6c0ea 20656
21d1c967 20657 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
20658 echo "$as_me:$LINENO: checking for MicroWindows" >&5
20659echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 20660 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
20661 echo "$as_me:$LINENO: result: not found" >&5
20662echo "${ECHO_T}not found" >&6
20663 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
20664echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
20665 { (exit 1); exit 1; }; }
21d1c967 20666 else
e6cc62c6
VS
20667 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
20668echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 20669 fi
f6bcfd97 20670
21d1c967 20671 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
20672 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
20673echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 20674 else
e6cc62c6
VS
20675 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
20676echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
20677 { (exit 1); exit 1; }; }
90dd450c 20678 fi
0b2effe9 20679
21d1c967
GD
20680 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
20681 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
20682
1d1b75ac
VZ
20683 wxUSE_UNIVERSAL="yes"
20684
21d1c967
GD
20685 AFMINSTALL=afminstall
20686 TOOLKIT=MICROWIN
20687 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
20688
20689 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 20690 fi
f6bcfd97 20691
21d1c967 20692 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
20693 echo "$as_me:$LINENO: checking for X" >&5
20694echo $ECHO_N "checking for X... $ECHO_C" >&6
20695
d8356fa3 20696
21d1c967
GD
20697# Check whether --with-x or --without-x was given.
20698if test "${with_x+set}" = set; then
20699 withval="$with_x"
2224580a 20700
e6cc62c6 20701fi;
21d1c967
GD
20702# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20703if test "x$with_x" = xno; then
20704 # The user explicitly disabled X.
20705 have_x=disabled
20706else
20707 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20708 # Both variables are already set.
20709 have_x=yes
20710 else
e6cc62c6
VS
20711 if test "${ac_cv_have_x+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
20713else
20714 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
20715ac_x_includes=no ac_x_libraries=no
20716rm -fr conftest.dir
20717if mkdir conftest.dir; then
20718 cd conftest.dir
21d1c967 20719 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 20720 cat >Imakefile <<'_ACEOF'
21d1c967
GD
20721acfindx:
20722 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 20723_ACEOF
21d1c967
GD
20724 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20726 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20727 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20728 for ac_extension in a so sl; do
20729 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 20730 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
20731 ac_im_usrlibdir=$ac_im_libdir; break
20732 fi
20733 done
20734 # Screen out bogus values from the imake configuration. They are
20735 # bogus both because they are the default anyway, and because
20736 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 20737 case $ac_im_incroot in
21d1c967 20738 /usr/include) ;;
e6cc62c6 20739 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 20740 esac
e6cc62c6 20741 case $ac_im_usrlibdir in
21d1c967 20742 /usr/lib | /lib) ;;
e6cc62c6 20743 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
20744 esac
20745 fi
20746 cd ..
e6cc62c6 20747 rm -fr conftest.dir
21d1c967 20748fi
10f2d63a 20749
e6cc62c6
VS
20750# Standard set of common directories for X headers.
20751# Check X11 before X11Rn because it is often a symlink to the current release.
20752ac_x_header_dirs='
20753/usr/X11/include
20754/usr/X11R6/include
20755/usr/X11R5/include
20756/usr/X11R4/include
20757
20758/usr/include/X11
20759/usr/include/X11R6
20760/usr/include/X11R5
20761/usr/include/X11R4
20762
20763/usr/local/X11/include
20764/usr/local/X11R6/include
20765/usr/local/X11R5/include
20766/usr/local/X11R4/include
20767
20768/usr/local/include/X11
20769/usr/local/include/X11R6
20770/usr/local/include/X11R5
20771/usr/local/include/X11R4
20772
20773/usr/X386/include
20774/usr/x386/include
20775/usr/XFree86/include/X11
20776
20777/usr/include
20778/usr/local/include
20779/usr/unsupported/include
20780/usr/athena/include
20781/usr/local/x11r5/include
20782/usr/lpp/Xamples/include
20783
20784/usr/openwin/include
20785/usr/openwin/share/include'
20786
20787if test "$ac_x_includes" = no; then
20788 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 20789 # First, try using that file with no special directory specified.
e6cc62c6
VS
20790 cat >conftest.$ac_ext <<_ACEOF
20791#line $LINENO "configure"
20792/* confdefs.h. */
20793_ACEOF
20794cat confdefs.h >>conftest.$ac_ext
20795cat >>conftest.$ac_ext <<_ACEOF
20796/* end confdefs.h. */
20797#include <X11/Intrinsic.h>
20798_ACEOF
20799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20801 ac_status=$?
20802 grep -v '^ *+' conftest.er1 >conftest.err
20803 rm -f conftest.er1
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } >/dev/null; then
20807 if test -s conftest.err; then
20808 ac_cpp_err=$ac_c_preproc_warn_flag
20809 else
20810 ac_cpp_err=
20811 fi
20812else
20813 ac_cpp_err=yes
20814fi
20815if test -z "$ac_cpp_err"; then
21d1c967
GD
20816 # We can compile using X headers with no special include directory.
20817ac_x_includes=
90dd450c 20818else
e6cc62c6
VS
20819 echo "$as_me: failed program was:" >&5
20820sed 's/^/| /' conftest.$ac_ext >&5
20821
20822 for ac_dir in $ac_x_header_dirs; do
20823 if test -r "$ac_dir/X11/Intrinsic.h"; then
20824 ac_x_includes=$ac_dir
20825 break
20826 fi
20827done
3a922bb4 20828fi
e6cc62c6
VS
20829rm -f conftest.err conftest.$ac_ext
20830fi # $ac_x_includes = no
10f2d63a 20831
e6cc62c6 20832if test "$ac_x_libraries" = no; then
21d1c967 20833 # Check for the libraries.
21d1c967
GD
20834 # See if we find them without any special options.
20835 # Don't add to $LIBS permanently.
e6cc62c6
VS
20836 ac_save_LIBS=$LIBS
20837 LIBS="-lXt $LIBS"
20838 cat >conftest.$ac_ext <<_ACEOF
20839#line $LINENO "configure"
20840/* confdefs.h. */
20841_ACEOF
20842cat confdefs.h >>conftest.$ac_ext
20843cat >>conftest.$ac_ext <<_ACEOF
20844/* end confdefs.h. */
20845#include <X11/Intrinsic.h>
20846int
20847main ()
20848{
20849XtMalloc (0)
20850 ;
20851 return 0;
20852}
20853_ACEOF
20854rm -f conftest.$ac_objext conftest$ac_exeext
20855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20856 (eval $ac_link) 2>&5
20857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } &&
20860 { ac_try='test -s conftest$ac_exeext'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20863 ac_status=$?
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; }; then
20866 LIBS=$ac_save_LIBS
21d1c967
GD
20867# We can link X programs with no special library path.
20868ac_x_libraries=
3a922bb4 20869else
e6cc62c6
VS
20870 echo "$as_me: failed program was:" >&5
20871sed 's/^/| /' conftest.$ac_ext >&5
20872
20873LIBS=$ac_save_LIBS
20874for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 20875do
e6cc62c6 20876 # Don't even attempt the hair of trying to link an X program!
21d1c967 20877 for ac_extension in a so sl; do
e6cc62c6 20878 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
20879 ac_x_libraries=$ac_dir
20880 break 2
20881 fi
20882 done
20883done
3a922bb4 20884fi
e6cc62c6
VS
20885rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20886fi # $ac_x_libraries = no
90dd450c 20887
e6cc62c6 20888if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
20889 # Didn't find X anywhere. Cache the known absence of X.
20890 ac_cv_have_x="have_x=no"
20891else
20892 # Record where we found X for the cache.
20893 ac_cv_have_x="have_x=yes \
20894 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 20895fi
21d1c967 20896fi
e6cc62c6 20897
21d1c967
GD
20898 fi
20899 eval "$ac_cv_have_x"
20900fi # $with_x != no
90dd450c 20901
21d1c967 20902if test "$have_x" != yes; then
e6cc62c6
VS
20903 echo "$as_me:$LINENO: result: $have_x" >&5
20904echo "${ECHO_T}$have_x" >&6
21d1c967
GD
20905 no_x=yes
20906else
20907 # If each of the values was on the command line, it overrides each guess.
20908 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20909 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20910 # Update the cache value to reflect the command line values.
20911 ac_cv_have_x="have_x=yes \
20912 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
20913 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20914echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 20915fi
90dd450c 20916
21d1c967 20917if test "$no_x" = yes; then
90dd450c 20918 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
20919
20920cat >>confdefs.h <<\_ACEOF
90dd450c 20921#define X_DISPLAY_MISSING 1
e6cc62c6 20922_ACEOF
90dd450c
VZ
20923
20924 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20925else
20926 if test -n "$x_includes"; then
20927 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 20928 fi
3a922bb4 20929
90dd450c
VZ
20930 # It would also be nice to do this for all -L options, not just this one.
20931 if test -n "$x_libraries"; then
20932 X_LIBS="$X_LIBS -L$x_libraries"
20933 # For Solaris; some versions of Sun CC require a space after -R and
20934 # others require no space. Words are not sufficient . . . .
e6cc62c6 20935 case `(uname -sr) 2>/dev/null` in
90dd450c 20936 "SunOS 5"*)
e6cc62c6
VS
20937 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20938echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
20939 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20940 cat >conftest.$ac_ext <<_ACEOF
20941#line $LINENO "configure"
20942/* confdefs.h. */
20943_ACEOF
20944cat confdefs.h >>conftest.$ac_ext
20945cat >>conftest.$ac_ext <<_ACEOF
20946/* end confdefs.h. */
20947
20948int
20949main ()
20950{
90dd450c 20951
e6cc62c6
VS
20952 ;
20953 return 0;
20954}
20955_ACEOF
20956rm -f conftest.$ac_objext conftest$ac_exeext
20957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20958 (eval $ac_link) 2>&5
20959 ac_status=$?
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } &&
20962 { ac_try='test -s conftest$ac_exeext'
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; }; then
90dd450c 20968 ac_R_nospace=yes
3a922bb4 20969else
e6cc62c6
VS
20970 echo "$as_me: failed program was:" >&5
20971sed 's/^/| /' conftest.$ac_ext >&5
20972
20973ac_R_nospace=no
3a922bb4 20974fi
e6cc62c6 20975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 20976 if test $ac_R_nospace = yes; then
e6cc62c6
VS
20977 echo "$as_me:$LINENO: result: no" >&5
20978echo "${ECHO_T}no" >&6
90dd450c
VZ
20979 X_LIBS="$X_LIBS -R$x_libraries"
20980 else
20981 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
20982 cat >conftest.$ac_ext <<_ACEOF
20983#line $LINENO "configure"
20984/* confdefs.h. */
20985_ACEOF
20986cat confdefs.h >>conftest.$ac_ext
20987cat >>conftest.$ac_ext <<_ACEOF
20988/* end confdefs.h. */
20989
20990int
20991main ()
20992{
6f754473 20993
e6cc62c6
VS
20994 ;
20995 return 0;
20996}
20997_ACEOF
20998rm -f conftest.$ac_objext conftest$ac_exeext
20999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21000 (eval $ac_link) 2>&5
21001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
21004 { ac_try='test -s conftest$ac_exeext'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
90dd450c
VZ
21010 ac_R_space=yes
21011else
e6cc62c6
VS
21012 echo "$as_me: failed program was:" >&5
21013sed 's/^/| /' conftest.$ac_ext >&5
21014
21015ac_R_space=no
90dd450c 21016fi
e6cc62c6 21017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21018 if test $ac_R_space = yes; then
e6cc62c6
VS
21019 echo "$as_me:$LINENO: result: yes" >&5
21020echo "${ECHO_T}yes" >&6
90dd450c
VZ
21021 X_LIBS="$X_LIBS -R $x_libraries"
21022 else
e6cc62c6
VS
21023 echo "$as_me:$LINENO: result: neither works" >&5
21024echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21025 fi
21026 fi
e6cc62c6 21027 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21028 esac
21029 fi
21030
21031 # Check for system-dependent libraries X programs must link with.
21032 # Do this before checking for the system-independent R6 libraries
21033 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21034
90dd450c
VZ
21035 if test "$ISC" = yes; then
21036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21037 else
e6cc62c6
VS
21038 # Martyn Johnson says this is needed for Ultrix, if the X
21039 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21040 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21041 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21042 cat >conftest.$ac_ext <<_ACEOF
21043#line $LINENO "configure"
21044/* confdefs.h. */
21045_ACEOF
21046cat confdefs.h >>conftest.$ac_ext
21047cat >>conftest.$ac_ext <<_ACEOF
21048/* end confdefs.h. */
21049
247f5006 21050/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21051#ifdef __cplusplus
21052extern "C"
21053#endif
247f5006 21054/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21055 builtin and then its argument prototype would still apply. */
21056char XOpenDisplay ();
21057int
21058main ()
21059{
21060XOpenDisplay ();
21061 ;
21062 return 0;
21063}
21064_ACEOF
21065rm -f conftest.$ac_objext conftest$ac_exeext
21066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21067 (eval $ac_link) 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
21071 { ac_try='test -s conftest$ac_exeext'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21074 ac_status=$?
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21077 :
21078else
21079 echo "$as_me: failed program was:" >&5
21080sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21081
e6cc62c6
VS
21082echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21083echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21084if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21086else
e6cc62c6
VS
21087 ac_check_lib_save_LIBS=$LIBS
21088LIBS="-ldnet $LIBS"
21089cat >conftest.$ac_ext <<_ACEOF
21090#line $LINENO "configure"
21091/* confdefs.h. */
21092_ACEOF
21093cat confdefs.h >>conftest.$ac_ext
21094cat >>conftest.$ac_ext <<_ACEOF
21095/* end confdefs.h. */
a0b9e27f 21096
e6cc62c6
VS
21097/* Override any gcc2 internal prototype to avoid an error. */
21098#ifdef __cplusplus
21099extern "C"
21100#endif
21101/* We use char because int might match the return type of a gcc2
21102 builtin and then its argument prototype would still apply. */
21103char dnet_ntoa ();
21104int
21105main ()
21106{
21107dnet_ntoa ();
21108 ;
21109 return 0;
21110}
21111_ACEOF
21112rm -f conftest.$ac_objext conftest$ac_exeext
21113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21114 (eval $ac_link) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } &&
21118 { ac_try='test -s conftest$ac_exeext'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ac_cv_lib_dnet_dnet_ntoa=yes
21125else
21126 echo "$as_me: failed program was:" >&5
21127sed 's/^/| /' conftest.$ac_ext >&5
21128
21129ac_cv_lib_dnet_dnet_ntoa=no
21130fi
21131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21132LIBS=$ac_check_lib_save_LIBS
21133fi
21134echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21135echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21136if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21137 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21138fi
21139
90dd450c 21140 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21141 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21142echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21143if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21145else
e6cc62c6 21146 ac_check_lib_save_LIBS=$LIBS
90dd450c 21147LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21148cat >conftest.$ac_ext <<_ACEOF
21149#line $LINENO "configure"
21150/* confdefs.h. */
21151_ACEOF
21152cat confdefs.h >>conftest.$ac_ext
21153cat >>conftest.$ac_ext <<_ACEOF
21154/* end confdefs.h. */
21155
90dd450c 21156/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21157#ifdef __cplusplus
21158extern "C"
21159#endif
90dd450c 21160/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21161 builtin and then its argument prototype would still apply. */
21162char dnet_ntoa ();
21163int
21164main ()
21165{
21166dnet_ntoa ();
21167 ;
21168 return 0;
21169}
21170_ACEOF
21171rm -f conftest.$ac_objext conftest$ac_exeext
21172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21173 (eval $ac_link) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } &&
21177 { ac_try='test -s conftest$ac_exeext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21180 ac_status=$?
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21184else
21185 echo "$as_me: failed program was:" >&5
21186sed 's/^/| /' conftest.$ac_ext >&5
21187
21188ac_cv_lib_dnet_stub_dnet_ntoa=no
21189fi
21190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21191LIBS=$ac_check_lib_save_LIBS
21192fi
21193echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21194echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21195if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21196 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21197fi
21198
90dd450c 21199 fi
e6cc62c6
VS
21200fi
21201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21202 LIBS="$ac_xsave_LIBS"
978f1259 21203
90dd450c
VZ
21204 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21205 # to get the SysV transport functions.
e6cc62c6 21206 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21207 # needs -lnsl.
21208 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21209 # on Irix 5.2, according to T.E. Dickey.
21210 # The functions gethostbyname, getservbyname, and inet_addr are
21211 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21212 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21213echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21214if test "${ac_cv_func_gethostbyname+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21216else
21217 cat >conftest.$ac_ext <<_ACEOF
21218#line $LINENO "configure"
21219/* confdefs.h. */
21220_ACEOF
21221cat confdefs.h >>conftest.$ac_ext
21222cat >>conftest.$ac_ext <<_ACEOF
21223/* end confdefs.h. */
90dd450c 21224/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21225 which can conflict with char gethostbyname (); below.
21226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21227 <limits.h> exists even on freestanding compilers. */
21228#ifdef __STDC__
21229# include <limits.h>
21230#else
21231# include <assert.h>
21232#endif
90dd450c 21233/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21234#ifdef __cplusplus
21235extern "C"
21236{
21237#endif
90dd450c 21238/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21239 builtin and then its argument prototype would still apply. */
21240char gethostbyname ();
90dd450c
VZ
21241/* The GNU C library defines this for functions which it implements
21242 to always fail with ENOSYS. Some functions are actually named
21243 something starting with __ and the normal name is an alias. */
21244#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21245choke me
21246#else
e6cc62c6
VS
21247char (*f) () = gethostbyname;
21248#endif
21249#ifdef __cplusplus
21250}
90dd450c 21251#endif
978f1259 21252
e6cc62c6
VS
21253int
21254main ()
21255{
21256return f != gethostbyname;
21257 ;
21258 return 0;
21259}
21260_ACEOF
21261rm -f conftest.$ac_objext conftest$ac_exeext
21262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21263 (eval $ac_link) 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } &&
21267 { ac_try='test -s conftest$ac_exeext'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; }; then
21273 ac_cv_func_gethostbyname=yes
21274else
21275 echo "$as_me: failed program was:" >&5
21276sed 's/^/| /' conftest.$ac_ext >&5
21277
21278ac_cv_func_gethostbyname=no
21279fi
21280rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21281fi
21282echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21283echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21284
90dd450c 21285 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21286 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21287echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21288if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21290else
e6cc62c6 21291 ac_check_lib_save_LIBS=$LIBS
90dd450c 21292LIBS="-lnsl $LIBS"
e6cc62c6
VS
21293cat >conftest.$ac_ext <<_ACEOF
21294#line $LINENO "configure"
21295/* confdefs.h. */
21296_ACEOF
21297cat confdefs.h >>conftest.$ac_ext
21298cat >>conftest.$ac_ext <<_ACEOF
21299/* end confdefs.h. */
21300
90dd450c 21301/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21302#ifdef __cplusplus
21303extern "C"
21304#endif
90dd450c 21305/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21306 builtin and then its argument prototype would still apply. */
21307char gethostbyname ();
21308int
21309main ()
21310{
21311gethostbyname ();
21312 ;
21313 return 0;
21314}
21315_ACEOF
21316rm -f conftest.$ac_objext conftest$ac_exeext
21317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21318 (eval $ac_link) 2>&5
21319 ac_status=$?
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } &&
21322 { ac_try='test -s conftest$ac_exeext'
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21325 ac_status=$?
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; }; then
21328 ac_cv_lib_nsl_gethostbyname=yes
21329else
21330 echo "$as_me: failed program was:" >&5
21331sed 's/^/| /' conftest.$ac_ext >&5
21332
21333ac_cv_lib_nsl_gethostbyname=no
21334fi
21335rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21336LIBS=$ac_check_lib_save_LIBS
21337fi
21338echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21339echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21340if test $ac_cv_lib_nsl_gethostbyname = yes; then
21341 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21342fi
247f5006 21343
e6cc62c6
VS
21344 if test $ac_cv_lib_nsl_gethostbyname = no; then
21345 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21346echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21347if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21348 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21349else
e6cc62c6
VS
21350 ac_check_lib_save_LIBS=$LIBS
21351LIBS="-lbsd $LIBS"
21352cat >conftest.$ac_ext <<_ACEOF
21353#line $LINENO "configure"
21354/* confdefs.h. */
21355_ACEOF
21356cat confdefs.h >>conftest.$ac_ext
21357cat >>conftest.$ac_ext <<_ACEOF
21358/* end confdefs.h. */
21359
21360/* Override any gcc2 internal prototype to avoid an error. */
21361#ifdef __cplusplus
21362extern "C"
21363#endif
21364/* We use char because int might match the return type of a gcc2
21365 builtin and then its argument prototype would still apply. */
21366char gethostbyname ();
21367int
21368main ()
21369{
21370gethostbyname ();
21371 ;
21372 return 0;
21373}
21374_ACEOF
21375rm -f conftest.$ac_objext conftest$ac_exeext
21376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21377 (eval $ac_link) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); } &&
21381 { ac_try='test -s conftest$ac_exeext'
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387 ac_cv_lib_bsd_gethostbyname=yes
21388else
21389 echo "$as_me: failed program was:" >&5
21390sed 's/^/| /' conftest.$ac_ext >&5
21391
21392ac_cv_lib_bsd_gethostbyname=no
21393fi
21394rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21395LIBS=$ac_check_lib_save_LIBS
21396fi
21397echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21398echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21399if test $ac_cv_lib_bsd_gethostbyname = yes; then
21400 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21401fi
b12915c1 21402
e6cc62c6 21403 fi
90dd450c
VZ
21404 fi
21405
21406 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21407 # socket/setsockopt and other routines are undefined under SCO ODT
21408 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21409 # on later versions), says Simon Leinen: it contains gethostby*
21410 # variants that don't use the name server (or something). -lsocket
21411 # must be given before -lnsl if both are needed. We assume that
21412 # if connect needs -lnsl, so does gethostbyname.
21413 echo "$as_me:$LINENO: checking for connect" >&5
21414echo $ECHO_N "checking for connect... $ECHO_C" >&6
21415if test "${ac_cv_func_connect+set}" = set; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
21417else
21418 cat >conftest.$ac_ext <<_ACEOF
21419#line $LINENO "configure"
21420/* confdefs.h. */
21421_ACEOF
21422cat confdefs.h >>conftest.$ac_ext
21423cat >>conftest.$ac_ext <<_ACEOF
21424/* end confdefs.h. */
90dd450c 21425/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21426 which can conflict with char connect (); below.
21427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21428 <limits.h> exists even on freestanding compilers. */
21429#ifdef __STDC__
21430# include <limits.h>
21431#else
21432# include <assert.h>
21433#endif
90dd450c 21434/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21435#ifdef __cplusplus
21436extern "C"
21437{
21438#endif
90dd450c 21439/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21440 builtin and then its argument prototype would still apply. */
21441char connect ();
90dd450c
VZ
21442/* The GNU C library defines this for functions which it implements
21443 to always fail with ENOSYS. Some functions are actually named
21444 something starting with __ and the normal name is an alias. */
21445#if defined (__stub_connect) || defined (__stub___connect)
21446choke me
21447#else
e6cc62c6
VS
21448char (*f) () = connect;
21449#endif
21450#ifdef __cplusplus
21451}
90dd450c
VZ
21452#endif
21453
e6cc62c6
VS
21454int
21455main ()
21456{
21457return f != connect;
21458 ;
21459 return 0;
21460}
21461_ACEOF
21462rm -f conftest.$ac_objext conftest$ac_exeext
21463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21464 (eval $ac_link) 2>&5
21465 ac_status=$?
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } &&
21468 { ac_try='test -s conftest$ac_exeext'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21471 ac_status=$?
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; }; then
21474 ac_cv_func_connect=yes
21475else
21476 echo "$as_me: failed program was:" >&5
21477sed 's/^/| /' conftest.$ac_ext >&5
21478
21479ac_cv_func_connect=no
21480fi
21481rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21482fi
21483echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21484echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21485
90dd450c 21486 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21487 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21488echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21489if test "${ac_cv_lib_socket_connect+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21491else
e6cc62c6 21492 ac_check_lib_save_LIBS=$LIBS
90dd450c 21493LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21494cat >conftest.$ac_ext <<_ACEOF
21495#line $LINENO "configure"
21496/* confdefs.h. */
21497_ACEOF
21498cat confdefs.h >>conftest.$ac_ext
21499cat >>conftest.$ac_ext <<_ACEOF
21500/* end confdefs.h. */
21501
90dd450c 21502/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21503#ifdef __cplusplus
21504extern "C"
21505#endif
90dd450c 21506/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21507 builtin and then its argument prototype would still apply. */
21508char connect ();
21509int
21510main ()
21511{
21512connect ();
21513 ;
21514 return 0;
21515}
21516_ACEOF
21517rm -f conftest.$ac_objext conftest$ac_exeext
21518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21519 (eval $ac_link) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } &&
21523 { ac_try='test -s conftest$ac_exeext'
21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21526 ac_status=$?
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; }; then
21529 ac_cv_lib_socket_connect=yes
21530else
21531 echo "$as_me: failed program was:" >&5
21532sed 's/^/| /' conftest.$ac_ext >&5
21533
21534ac_cv_lib_socket_connect=no
21535fi
21536rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21537LIBS=$ac_check_lib_save_LIBS
21538fi
21539echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21540echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21541if test $ac_cv_lib_socket_connect = yes; then
90dd450c 21542 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 21543fi
77e13408 21544
90dd450c 21545 fi
25d0687a 21546
e6cc62c6
VS
21547 # Guillermo Gomez says -lposix is necessary on A/UX.
21548 echo "$as_me:$LINENO: checking for remove" >&5
21549echo $ECHO_N "checking for remove... $ECHO_C" >&6
21550if test "${ac_cv_func_remove+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21552else
21553 cat >conftest.$ac_ext <<_ACEOF
21554#line $LINENO "configure"
21555/* confdefs.h. */
21556_ACEOF
21557cat confdefs.h >>conftest.$ac_ext
21558cat >>conftest.$ac_ext <<_ACEOF
21559/* end confdefs.h. */
90dd450c 21560/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21561 which can conflict with char remove (); below.
21562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21563 <limits.h> exists even on freestanding compilers. */
21564#ifdef __STDC__
21565# include <limits.h>
21566#else
21567# include <assert.h>
21568#endif
90dd450c 21569/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21570#ifdef __cplusplus
21571extern "C"
21572{
21573#endif
90dd450c 21574/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21575 builtin and then its argument prototype would still apply. */
21576char remove ();
90dd450c
VZ
21577/* The GNU C library defines this for functions which it implements
21578 to always fail with ENOSYS. Some functions are actually named
21579 something starting with __ and the normal name is an alias. */
21580#if defined (__stub_remove) || defined (__stub___remove)
21581choke me
21582#else
e6cc62c6
VS
21583char (*f) () = remove;
21584#endif
21585#ifdef __cplusplus
21586}
90dd450c 21587#endif
55e80573 21588
e6cc62c6
VS
21589int
21590main ()
21591{
21592return f != remove;
21593 ;
21594 return 0;
21595}
21596_ACEOF
21597rm -f conftest.$ac_objext conftest$ac_exeext
21598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21599 (eval $ac_link) 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } &&
21603 { ac_try='test -s conftest$ac_exeext'
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21606 ac_status=$?
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }; then
21609 ac_cv_func_remove=yes
21610else
21611 echo "$as_me: failed program was:" >&5
21612sed 's/^/| /' conftest.$ac_ext >&5
21613
21614ac_cv_func_remove=no
21615fi
21616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21617fi
21618echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21619echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 21620
90dd450c 21621 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
21622 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21623echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21624if test "${ac_cv_lib_posix_remove+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21626else
e6cc62c6 21627 ac_check_lib_save_LIBS=$LIBS
90dd450c 21628LIBS="-lposix $LIBS"
e6cc62c6
VS
21629cat >conftest.$ac_ext <<_ACEOF
21630#line $LINENO "configure"
21631/* confdefs.h. */
21632_ACEOF
21633cat confdefs.h >>conftest.$ac_ext
21634cat >>conftest.$ac_ext <<_ACEOF
21635/* end confdefs.h. */
21636
90dd450c 21637/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21638#ifdef __cplusplus
21639extern "C"
21640#endif
90dd450c 21641/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21642 builtin and then its argument prototype would still apply. */
21643char remove ();
21644int
21645main ()
21646{
21647remove ();
21648 ;
21649 return 0;
21650}
21651_ACEOF
21652rm -f conftest.$ac_objext conftest$ac_exeext
21653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21654 (eval $ac_link) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } &&
21658 { ac_try='test -s conftest$ac_exeext'
21659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660 (eval $ac_try) 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; }; then
21664 ac_cv_lib_posix_remove=yes
21665else
21666 echo "$as_me: failed program was:" >&5
21667sed 's/^/| /' conftest.$ac_ext >&5
21668
21669ac_cv_lib_posix_remove=no
21670fi
21671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21672LIBS=$ac_check_lib_save_LIBS
21673fi
21674echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21675echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21676if test $ac_cv_lib_posix_remove = yes; then
90dd450c 21677 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 21678fi
f6bcfd97 21679
6fa882bd
RR
21680 fi
21681
90dd450c 21682 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
21683 echo "$as_me:$LINENO: checking for shmat" >&5
21684echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21685if test "${ac_cv_func_shmat+set}" = set; then
21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21687else
21688 cat >conftest.$ac_ext <<_ACEOF
21689#line $LINENO "configure"
21690/* confdefs.h. */
21691_ACEOF
21692cat confdefs.h >>conftest.$ac_ext
21693cat >>conftest.$ac_ext <<_ACEOF
21694/* end confdefs.h. */
90dd450c 21695/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21696 which can conflict with char shmat (); below.
21697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21698 <limits.h> exists even on freestanding compilers. */
21699#ifdef __STDC__
21700# include <limits.h>
21701#else
21702# include <assert.h>
21703#endif
90dd450c 21704/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21705#ifdef __cplusplus
21706extern "C"
21707{
21708#endif
90dd450c 21709/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21710 builtin and then its argument prototype would still apply. */
21711char shmat ();
90dd450c
VZ
21712/* The GNU C library defines this for functions which it implements
21713 to always fail with ENOSYS. Some functions are actually named
21714 something starting with __ and the normal name is an alias. */
21715#if defined (__stub_shmat) || defined (__stub___shmat)
21716choke me
21717#else
e6cc62c6
VS
21718char (*f) () = shmat;
21719#endif
21720#ifdef __cplusplus
21721}
90dd450c 21722#endif
10f2d63a 21723
e6cc62c6
VS
21724int
21725main ()
21726{
21727return f != shmat;
21728 ;
21729 return 0;
21730}
21731_ACEOF
21732rm -f conftest.$ac_objext conftest$ac_exeext
21733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21734 (eval $ac_link) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try='test -s conftest$ac_exeext'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; }; then
21744 ac_cv_func_shmat=yes
21745else
21746 echo "$as_me: failed program was:" >&5
21747sed 's/^/| /' conftest.$ac_ext >&5
21748
21749ac_cv_func_shmat=no
21750fi
21751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21752fi
21753echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21754echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 21755
90dd450c 21756 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
21757 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21758echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21759if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 21761else
e6cc62c6 21762 ac_check_lib_save_LIBS=$LIBS
90dd450c 21763LIBS="-lipc $LIBS"
e6cc62c6
VS
21764cat >conftest.$ac_ext <<_ACEOF
21765#line $LINENO "configure"
21766/* confdefs.h. */
21767_ACEOF
21768cat confdefs.h >>conftest.$ac_ext
21769cat >>conftest.$ac_ext <<_ACEOF
21770/* end confdefs.h. */
21771
8284b0c5 21772/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21773#ifdef __cplusplus
21774extern "C"
21775#endif
90dd450c 21776/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21777 builtin and then its argument prototype would still apply. */
21778char shmat ();
21779int
21780main ()
21781{
21782shmat ();
21783 ;
21784 return 0;
21785}
21786_ACEOF
21787rm -f conftest.$ac_objext conftest$ac_exeext
21788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21789 (eval $ac_link) 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } &&
21793 { ac_try='test -s conftest$ac_exeext'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_lib_ipc_shmat=yes
21800else
21801 echo "$as_me: failed program was:" >&5
21802sed 's/^/| /' conftest.$ac_ext >&5
21803
21804ac_cv_lib_ipc_shmat=no
21805fi
21806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21807LIBS=$ac_check_lib_save_LIBS
21808fi
21809echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21810echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21811if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 21812 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
21813fi
21814
d558c907 21815 fi
90dd450c 21816 fi
3a922bb4 21817
90dd450c 21818 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 21819 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
21820 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21821 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21822 # check for ICE first), but we must link in the order -lSM -lICE or
21823 # we get undefined symbols. So assume we have SM if we have ICE.
21824 # These have to be linked with before -lX11, unlike the other
21825 # libraries we check for below, so use a different variable.
e6cc62c6
VS
21826 # John Interrante, Karl Berry
21827 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21828echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21829if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21831else
21832 ac_check_lib_save_LIBS=$LIBS
f09359cf 21833LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21834cat >conftest.$ac_ext <<_ACEOF
21835#line $LINENO "configure"
21836/* confdefs.h. */
21837_ACEOF
21838cat confdefs.h >>conftest.$ac_ext
21839cat >>conftest.$ac_ext <<_ACEOF
21840/* end confdefs.h. */
21841
90dd450c 21842/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21843#ifdef __cplusplus
21844extern "C"
21845#endif
90dd450c 21846/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21847 builtin and then its argument prototype would still apply. */
21848char IceConnectionNumber ();
21849int
21850main ()
21851{
21852IceConnectionNumber ();
21853 ;
21854 return 0;
21855}
21856_ACEOF
21857rm -f conftest.$ac_objext conftest$ac_exeext
21858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21859 (eval $ac_link) 2>&5
21860 ac_status=$?
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); } &&
21863 { ac_try='test -s conftest$ac_exeext'
21864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865 (eval $ac_try) 2>&5
21866 ac_status=$?
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); }; }; then
21869 ac_cv_lib_ICE_IceConnectionNumber=yes
21870else
21871 echo "$as_me: failed program was:" >&5
21872sed 's/^/| /' conftest.$ac_ext >&5
21873
21874ac_cv_lib_ICE_IceConnectionNumber=no
21875fi
21876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21877LIBS=$ac_check_lib_save_LIBS
21878fi
21879echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21880echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21881if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 21882 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 21883fi
10f2d63a 21884
e6cc62c6 21885 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
21886
21887fi
21888
8284b0c5 21889
90dd450c 21890 if test "$no_x" = "yes"; then
e6cc62c6
VS
21891 { { echo "$as_me:$LINENO: error: X11 not found" >&5
21892echo "$as_me: error: X11 not found" >&2;}
21893 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
21894 fi
21895
21896 GUI_TK_LIBRARY="$X_LIBS"
21897 TOOLKIT_INCLUDE="$X_CFLAGS"
21898 AFMINSTALL=afminstall
21899 COMPILED_X_PROGRAM=0
21900
21d1c967 21901 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
21902 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
21903echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 21904 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
21905 echo "$as_me:$LINENO: result: not found" >&5
21906echo "${ECHO_T}not found" >&6
21907 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
21908echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
21909 { (exit 1); exit 1; }; }
90dd450c 21910 else
e6cc62c6
VS
21911 echo "$as_me:$LINENO: result: $MICROWIN" >&5
21912echo "${ECHO_T}$MICROWIN" >&6
21913 cat >>confdefs.h <<\_ACEOF
21d1c967 21914#define wxUSE_NANOX 1
e6cc62c6 21915_ACEOF
21d1c967 21916
90dd450c
VZ
21917 fi
21918 fi
21919
21920 xpm_link=
e6cc62c6
VS
21921 echo "$as_me:$LINENO: checking for Xpm library" >&5
21922echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
21923
90dd450c 21924ac_find_libraries=
2b5f62a0 21925for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
21926 do
21927 for ac_extension in a so sl dylib; do
21928 if test -f "$ac_dir/libXpm.$ac_extension"; then
21929 ac_find_libraries=$ac_dir
21930 break 2
21931 fi
21932 done
21933 done
21934
21935 if test "$ac_find_libraries" != "" ; then
e6cc62c6 21936
90dd450c
VZ
21937 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
21938 result=$?
21939 if test $result = 0; then
21940 ac_path_to_link=""
21941 else
21942 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 21943 fi
90dd450c 21944
21d1c967
GD
21945 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21946 xpm_link=" -lXpm"
e6cc62c6 21947 cat >>confdefs.h <<\_ACEOF
21d1c967 21948#define wxHAVE_LIB_XPM 1
e6cc62c6 21949_ACEOF
90dd450c 21950
e6cc62c6
VS
21951 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
21952echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 21953 else
e6cc62c6
VS
21954 cat >conftest.$ac_ext <<_ACEOF
21955#line $LINENO "configure"
21956/* confdefs.h. */
21957_ACEOF
21958cat confdefs.h >>conftest.$ac_ext
21959cat >>conftest.$ac_ext <<_ACEOF
21960/* end confdefs.h. */
90dd450c 21961
21d1c967 21962 #include <X11/xpm.h>
e6cc62c6
VS
21963
21964int
21965main ()
21966{
6f72b082 21967
21d1c967
GD
21968 int version;
21969 version = XpmLibraryVersion();
e6cc62c6
VS
21970
21971 ;
21972 return 0;
21973}
21974_ACEOF
21975rm -f conftest.$ac_objext
21976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21977 (eval $ac_compile) 2>&5
21978 ac_status=$?
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } &&
21981 { ac_try='test -s conftest.$ac_objext'
21982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983 (eval $ac_try) 2>&5
21984 ac_status=$?
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; }; then
21987
21d1c967 21988 xpm_link=" -lXpm"
e6cc62c6 21989 cat >>confdefs.h <<\_ACEOF
21d1c967 21990#define wxHAVE_LIB_XPM 1
e6cc62c6 21991_ACEOF
90dd450c 21992
e6cc62c6
VS
21993 echo "$as_me:$LINENO: result: found in default search path" >&5
21994echo "${ECHO_T}found in default search path" >&6
21d1c967 21995 COMPILED_X_PROGRAM=0
e6cc62c6 21996
21d1c967 21997else
e6cc62c6
VS
21998 echo "$as_me: failed program was:" >&5
21999sed 's/^/| /' conftest.$ac_ext >&5
22000
22001
22002 echo "$as_me:$LINENO: result: no" >&5
22003echo "${ECHO_T}no" >&6
22004 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22005echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22006
22007
6f72b082 22008fi
e6cc62c6 22009rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22010 fi
90dd450c 22011
e6cc62c6
VS
22012 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22013echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22014if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22016else
e6cc62c6 22017 ac_check_lib_save_LIBS=$LIBS
f7f78039 22018LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22019cat >conftest.$ac_ext <<_ACEOF
22020#line $LINENO "configure"
22021/* confdefs.h. */
22022_ACEOF
22023cat confdefs.h >>conftest.$ac_ext
22024cat >>conftest.$ac_ext <<_ACEOF
22025/* end confdefs.h. */
22026
f7f78039 22027/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22028#ifdef __cplusplus
22029extern "C"
22030#endif
f7f78039 22031/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22032 builtin and then its argument prototype would still apply. */
22033char XShapeQueryExtension ();
22034int
22035main ()
22036{
22037XShapeQueryExtension ();
22038 ;
22039 return 0;
22040}
22041_ACEOF
22042rm -f conftest.$ac_objext conftest$ac_exeext
22043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22044 (eval $ac_link) 2>&5
22045 ac_status=$?
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); } &&
22048 { ac_try='test -s conftest$ac_exeext'
22049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22051 ac_status=$?
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; }; then
22054 ac_cv_lib_Xext_XShapeQueryExtension=yes
22055else
22056 echo "$as_me: failed program was:" >&5
22057sed 's/^/| /' conftest.$ac_ext >&5
22058
22059ac_cv_lib_Xext_XShapeQueryExtension=no
22060fi
22061rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22062LIBS=$ac_check_lib_save_LIBS
22063fi
22064echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22065echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22066if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22067
f7f78039
MB
22068 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22069 wxHAVE_XEXT_LIB=1
e6cc62c6 22070
f7f78039
MB
22071fi
22072
22073
2b5f62a0 22074 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22075
2b5f62a0 22076 succeeded=no
90dd450c 22077
2b5f62a0
VZ
22078 if test -z "$PKG_CONFIG"; then
22079 # Extract the first word of "pkg-config", so it can be a program name with args.
22080set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22081echo "$as_me:$LINENO: checking for $ac_word" >&5
22082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22083if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22085else
e6cc62c6
VS
22086 case $PKG_CONFIG in
22087 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22088 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22089 ;;
2b5f62a0 22090 *)
e6cc62c6
VS
22091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22092for as_dir in $PATH
22093do
22094 IFS=$as_save_IFS
22095 test -z "$as_dir" && as_dir=.
22096 for ac_exec_ext in '' $ac_executable_extensions; do
22097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22098 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22100 break 2
22101 fi
22102done
22103done
22104
2b5f62a0
VZ
22105 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22106 ;;
22107esac
22108fi
e6cc62c6
VS
22109PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22110
2b5f62a0 22111if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22112 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22113echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22114else
e6cc62c6
VS
22115 echo "$as_me:$LINENO: result: no" >&5
22116echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22117fi
22118
22119 fi
22120
22121 if test "$PKG_CONFIG" = "no" ; then
22122 echo "*** The pkg-config script could not be found. Make sure it is"
22123 echo "*** in your path, or set the PKG_CONFIG environment variable"
22124 echo "*** to the full path to pkg-config."
22125 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22126 else
22127 PKG_CONFIG_MIN_VERSION=0.9.0
22128 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22129 echo "$as_me:$LINENO: checking for pangox" >&5
22130echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22131
22132 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22133 echo "$as_me:$LINENO: result: yes" >&5
22134echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22135 succeeded=yes
22136
e6cc62c6
VS
22137 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22138echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22139 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22140 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22141echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22142
e6cc62c6
VS
22143 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22144echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22145 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22146 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22147echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22148 else
22149 PANGOX_CFLAGS=""
22150 PANGOX_LIBS=""
e6cc62c6 22151 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22152 ## do set a variable so people can do so.
22153 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22154
2b5f62a0
VZ
22155 fi
22156
e6cc62c6
VS
22157
22158
2b5f62a0
VZ
22159 else
22160 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22161 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22162 fi
22163 fi
22164
22165 if test $succeeded = yes; then
e6cc62c6 22166
2b5f62a0 22167 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22168 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22169
2b5f62a0 22170 else
e6cc62c6
VS
22171
22172 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22173echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22174 { (exit 1); exit 1; }; }
22175
22176
2b5f62a0
VZ
22177 fi
22178
e6cc62c6 22179
2b5f62a0
VZ
22180 succeeded=no
22181
22182 if test -z "$PKG_CONFIG"; then
22183 # Extract the first word of "pkg-config", so it can be a program name with args.
22184set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22185echo "$as_me:$LINENO: checking for $ac_word" >&5
22186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22187if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22188 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22189else
e6cc62c6
VS
22190 case $PKG_CONFIG in
22191 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22192 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22193 ;;
2b5f62a0 22194 *)
e6cc62c6
VS
22195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22196for as_dir in $PATH
22197do
22198 IFS=$as_save_IFS
22199 test -z "$as_dir" && as_dir=.
22200 for ac_exec_ext in '' $ac_executable_extensions; do
22201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22202 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22204 break 2
22205 fi
22206done
22207done
22208
2b5f62a0
VZ
22209 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22210 ;;
22211esac
22212fi
e6cc62c6
VS
22213PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22214
2b5f62a0 22215if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22216 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22217echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22218else
e6cc62c6
VS
22219 echo "$as_me:$LINENO: result: no" >&5
22220echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22221fi
22222
22223 fi
22224
22225 if test "$PKG_CONFIG" = "no" ; then
22226 echo "*** The pkg-config script could not be found. Make sure it is"
22227 echo "*** in your path, or set the PKG_CONFIG environment variable"
22228 echo "*** to the full path to pkg-config."
22229 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22230 else
22231 PKG_CONFIG_MIN_VERSION=0.9.0
22232 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22233 echo "$as_me:$LINENO: checking for pangoft2" >&5
22234echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22235
22236 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22237 echo "$as_me:$LINENO: result: yes" >&5
22238echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22239 succeeded=yes
22240
e6cc62c6
VS
22241 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22242echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22243 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22244 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22245echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22246
e6cc62c6
VS
22247 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22248echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22249 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22250 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22251echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22252 else
22253 PANGOFT2_CFLAGS=""
22254 PANGOFT2_LIBS=""
e6cc62c6 22255 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22256 ## do set a variable so people can do so.
22257 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22258
2b5f62a0
VZ
22259 fi
22260
e6cc62c6
VS
22261
22262
2b5f62a0
VZ
22263 else
22264 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22265 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22266 fi
22267 fi
22268
22269 if test $succeeded = yes; then
e6cc62c6 22270
2b5f62a0 22271 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22272 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22273
2b5f62a0 22274 else
e6cc62c6
VS
22275
22276 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22277echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22278 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22279
22280
2b5f62a0
VZ
22281 fi
22282
e6cc62c6 22283
2b5f62a0
VZ
22284 succeeded=no
22285
22286 if test -z "$PKG_CONFIG"; then
22287 # Extract the first word of "pkg-config", so it can be a program name with args.
22288set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22289echo "$as_me:$LINENO: checking for $ac_word" >&5
22290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22291if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22293else
e6cc62c6
VS
22294 case $PKG_CONFIG in
22295 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22296 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22297 ;;
2b5f62a0 22298 *)
e6cc62c6
VS
22299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22300for as_dir in $PATH
22301do
22302 IFS=$as_save_IFS
22303 test -z "$as_dir" && as_dir=.
22304 for ac_exec_ext in '' $ac_executable_extensions; do
22305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22306 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22308 break 2
22309 fi
22310done
22311done
22312
2b5f62a0
VZ
22313 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22314 ;;
22315esac
22316fi
e6cc62c6
VS
22317PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22318
2b5f62a0 22319if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22320 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22321echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22322else
e6cc62c6
VS
22323 echo "$as_me:$LINENO: result: no" >&5
22324echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22325fi
22326
22327 fi
22328
22329 if test "$PKG_CONFIG" = "no" ; then
22330 echo "*** The pkg-config script could not be found. Make sure it is"
22331 echo "*** in your path, or set the PKG_CONFIG environment variable"
22332 echo "*** to the full path to pkg-config."
22333 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22334 else
22335 PKG_CONFIG_MIN_VERSION=0.9.0
22336 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22337 echo "$as_me:$LINENO: checking for pangoxft" >&5
22338echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22339
22340 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22341 echo "$as_me:$LINENO: result: yes" >&5
22342echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22343 succeeded=yes
22344
e6cc62c6
VS
22345 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22346echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22347 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22348 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22349echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22350
e6cc62c6
VS
22351 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22352echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22353 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22354 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22355echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22356 else
22357 PANGOXFT_CFLAGS=""
22358 PANGOXFT_LIBS=""
e6cc62c6 22359 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22360 ## do set a variable so people can do so.
22361 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22362
2b5f62a0
VZ
22363 fi
22364
e6cc62c6
VS
22365
22366
2b5f62a0
VZ
22367 else
22368 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22369 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22370 fi
22371 fi
22372
22373 if test $succeeded = yes; then
e6cc62c6 22374
2b5f62a0 22375 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22376 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22377
2b5f62a0 22378 else
e6cc62c6
VS
22379
22380 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22381echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22382
22383
2b5f62a0
VZ
22384 fi
22385
22386 fi
22387
22388 wxUSE_UNIVERSAL="yes"
22389
22390 if test "$wxUSE_NANOX" = "yes"; then
22391 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22392 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
22393 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22394 else
22395 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22396 fi
22397
22398 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22399 TOOLKIT=X11
22400 GUIDIST=X11_DIST
22401 fi
22402
21d1c967
GD
22403 if test "$wxUSE_MOTIF" = 1; then
22404 if test "$no_x" = yes; then
22405 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22406
22407cat >>confdefs.h <<\_ACEOF
21d1c967 22408#define X_DISPLAY_MISSING 1
e6cc62c6 22409_ACEOF
21d1c967
GD
22410
22411 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22412else
22413 if test -n "$x_includes"; then
22414 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22415 fi
22416
21d1c967
GD
22417 # It would also be nice to do this for all -L options, not just this one.
22418 if test -n "$x_libraries"; then
22419 X_LIBS="$X_LIBS -L$x_libraries"
22420 # For Solaris; some versions of Sun CC require a space after -R and
22421 # others require no space. Words are not sufficient . . . .
e6cc62c6 22422 case `(uname -sr) 2>/dev/null` in
21d1c967 22423 "SunOS 5"*)
e6cc62c6
VS
22424 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22425echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22426 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22427 cat >conftest.$ac_ext <<_ACEOF
22428#line $LINENO "configure"
22429/* confdefs.h. */
22430_ACEOF
22431cat confdefs.h >>conftest.$ac_ext
22432cat >>conftest.$ac_ext <<_ACEOF
22433/* end confdefs.h. */
22434
22435int
22436main ()
22437{
21d1c967 22438
e6cc62c6
VS
22439 ;
22440 return 0;
22441}
22442_ACEOF
22443rm -f conftest.$ac_objext conftest$ac_exeext
22444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22445 (eval $ac_link) 2>&5
22446 ac_status=$?
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); } &&
22449 { ac_try='test -s conftest$ac_exeext'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22452 ac_status=$?
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }; then
21d1c967 22455 ac_R_nospace=yes
698dcdb6 22456else
e6cc62c6
VS
22457 echo "$as_me: failed program was:" >&5
22458sed 's/^/| /' conftest.$ac_ext >&5
22459
22460ac_R_nospace=no
10f2d63a 22461fi
e6cc62c6 22462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22463 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22464 echo "$as_me:$LINENO: result: no" >&5
22465echo "${ECHO_T}no" >&6
21d1c967
GD
22466 X_LIBS="$X_LIBS -R$x_libraries"
22467 else
22468 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22469 cat >conftest.$ac_ext <<_ACEOF
22470#line $LINENO "configure"
22471/* confdefs.h. */
22472_ACEOF
22473cat confdefs.h >>conftest.$ac_ext
22474cat >>conftest.$ac_ext <<_ACEOF
22475/* end confdefs.h. */
22476
22477int
22478main ()
22479{
f0c87536 22480
e6cc62c6
VS
22481 ;
22482 return 0;
22483}
22484_ACEOF
22485rm -f conftest.$ac_objext conftest$ac_exeext
22486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22487 (eval $ac_link) 2>&5
22488 ac_status=$?
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); } &&
22491 { ac_try='test -s conftest$ac_exeext'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
21d1c967
GD
22497 ac_R_space=yes
22498else
e6cc62c6
VS
22499 echo "$as_me: failed program was:" >&5
22500sed 's/^/| /' conftest.$ac_ext >&5
22501
22502ac_R_space=no
21d1c967 22503fi
e6cc62c6 22504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22505 if test $ac_R_space = yes; then
e6cc62c6
VS
22506 echo "$as_me:$LINENO: result: yes" >&5
22507echo "${ECHO_T}yes" >&6
21d1c967
GD
22508 X_LIBS="$X_LIBS -R $x_libraries"
22509 else
e6cc62c6
VS
22510 echo "$as_me:$LINENO: result: neither works" >&5
22511echo "${ECHO_T}neither works" >&6
21d1c967
GD
22512 fi
22513 fi
e6cc62c6 22514 LIBS=$ac_xsave_LIBS
21d1c967
GD
22515 esac
22516 fi
90dd450c 22517
21d1c967
GD
22518 # Check for system-dependent libraries X programs must link with.
22519 # Do this before checking for the system-independent R6 libraries
22520 # (-lICE), since we may need -lsocket or whatever for X linking.
22521
22522 if test "$ISC" = yes; then
22523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22524 else
e6cc62c6
VS
22525 # Martyn Johnson says this is needed for Ultrix, if the X
22526 # libraries were built with DECnet support. And Karl Berry says
21d1c967 22527 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22528 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22529 cat >conftest.$ac_ext <<_ACEOF
22530#line $LINENO "configure"
22531/* confdefs.h. */
22532_ACEOF
22533cat confdefs.h >>conftest.$ac_ext
22534cat >>conftest.$ac_ext <<_ACEOF
22535/* end confdefs.h. */
22536
247f5006 22537/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22538#ifdef __cplusplus
22539extern "C"
22540#endif
247f5006 22541/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22542 builtin and then its argument prototype would still apply. */
22543char XOpenDisplay ();
22544int
22545main ()
22546{
22547XOpenDisplay ();
22548 ;
22549 return 0;
22550}
22551_ACEOF
22552rm -f conftest.$ac_objext conftest$ac_exeext
22553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22554 (eval $ac_link) 2>&5
22555 ac_status=$?
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } &&
22558 { ac_try='test -s conftest$ac_exeext'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }; then
22564 :
22565else
22566 echo "$as_me: failed program was:" >&5
22567sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22568
e6cc62c6
VS
22569echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22570echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22571if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22572 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22573else
e6cc62c6
VS
22574 ac_check_lib_save_LIBS=$LIBS
22575LIBS="-ldnet $LIBS"
22576cat >conftest.$ac_ext <<_ACEOF
22577#line $LINENO "configure"
22578/* confdefs.h. */
22579_ACEOF
22580cat confdefs.h >>conftest.$ac_ext
22581cat >>conftest.$ac_ext <<_ACEOF
22582/* end confdefs.h. */
a0b9e27f 22583
e6cc62c6
VS
22584/* Override any gcc2 internal prototype to avoid an error. */
22585#ifdef __cplusplus
22586extern "C"
22587#endif
22588/* We use char because int might match the return type of a gcc2
22589 builtin and then its argument prototype would still apply. */
22590char dnet_ntoa ();
22591int
22592main ()
22593{
22594dnet_ntoa ();
22595 ;
22596 return 0;
22597}
22598_ACEOF
22599rm -f conftest.$ac_objext conftest$ac_exeext
22600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22601 (eval $ac_link) 2>&5
22602 ac_status=$?
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } &&
22605 { ac_try='test -s conftest$ac_exeext'
22606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607 (eval $ac_try) 2>&5
22608 ac_status=$?
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; }; then
22611 ac_cv_lib_dnet_dnet_ntoa=yes
22612else
22613 echo "$as_me: failed program was:" >&5
22614sed 's/^/| /' conftest.$ac_ext >&5
22615
22616ac_cv_lib_dnet_dnet_ntoa=no
22617fi
22618rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22619LIBS=$ac_check_lib_save_LIBS
22620fi
22621echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22622echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22623if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 22624 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 22625fi
0fb0dd83 22626
21d1c967 22627 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
22628 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22629echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22630if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22631 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22632else
e6cc62c6 22633 ac_check_lib_save_LIBS=$LIBS
21d1c967 22634LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
22635cat >conftest.$ac_ext <<_ACEOF
22636#line $LINENO "configure"
22637/* confdefs.h. */
22638_ACEOF
22639cat confdefs.h >>conftest.$ac_ext
22640cat >>conftest.$ac_ext <<_ACEOF
22641/* end confdefs.h. */
22642
21d1c967 22643/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22644#ifdef __cplusplus
22645extern "C"
22646#endif
21d1c967 22647/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22648 builtin and then its argument prototype would still apply. */
22649char dnet_ntoa ();
22650int
22651main ()
22652{
22653dnet_ntoa ();
22654 ;
22655 return 0;
22656}
22657_ACEOF
22658rm -f conftest.$ac_objext conftest$ac_exeext
22659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22660 (eval $ac_link) 2>&5
22661 ac_status=$?
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } &&
22664 { ac_try='test -s conftest$ac_exeext'
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5
22667 ac_status=$?
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; }; then
22670 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22671else
22672 echo "$as_me: failed program was:" >&5
22673sed 's/^/| /' conftest.$ac_ext >&5
22674
22675ac_cv_lib_dnet_stub_dnet_ntoa=no
22676fi
22677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22678LIBS=$ac_check_lib_save_LIBS
22679fi
22680echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22681echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22682if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 22683 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
22684fi
22685
21d1c967 22686 fi
e6cc62c6
VS
22687fi
22688rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22689 LIBS="$ac_xsave_LIBS"
90dd450c 22690
21d1c967
GD
22691 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22692 # to get the SysV transport functions.
e6cc62c6 22693 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
22694 # needs -lnsl.
22695 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
22696 # on Irix 5.2, according to T.E. Dickey.
22697 # The functions gethostbyname, getservbyname, and inet_addr are
22698 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22699 echo "$as_me:$LINENO: checking for gethostbyname" >&5
22700echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22701if test "${ac_cv_func_gethostbyname+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22703else
22704 cat >conftest.$ac_ext <<_ACEOF
22705#line $LINENO "configure"
22706/* confdefs.h. */
22707_ACEOF
22708cat confdefs.h >>conftest.$ac_ext
22709cat >>conftest.$ac_ext <<_ACEOF
22710/* end confdefs.h. */
21d1c967 22711/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22712 which can conflict with char gethostbyname (); below.
22713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22714 <limits.h> exists even on freestanding compilers. */
22715#ifdef __STDC__
22716# include <limits.h>
22717#else
22718# include <assert.h>
22719#endif
21d1c967 22720/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22721#ifdef __cplusplus
22722extern "C"
22723{
22724#endif
21d1c967 22725/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22726 builtin and then its argument prototype would still apply. */
22727char gethostbyname ();
21d1c967
GD
22728/* The GNU C library defines this for functions which it implements
22729 to always fail with ENOSYS. Some functions are actually named
22730 something starting with __ and the normal name is an alias. */
22731#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22732choke me
22733#else
e6cc62c6
VS
22734char (*f) () = gethostbyname;
22735#endif
22736#ifdef __cplusplus
22737}
21d1c967 22738#endif
90dd450c 22739
e6cc62c6
VS
22740int
22741main ()
22742{
22743return f != gethostbyname;
22744 ;
22745 return 0;
22746}
22747_ACEOF
22748rm -f conftest.$ac_objext conftest$ac_exeext
22749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22750 (eval $ac_link) 2>&5
22751 ac_status=$?
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } &&
22754 { ac_try='test -s conftest$ac_exeext'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22757 ac_status=$?
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; }; then
22760 ac_cv_func_gethostbyname=yes
22761else
22762 echo "$as_me: failed program was:" >&5
22763sed 's/^/| /' conftest.$ac_ext >&5
22764
22765ac_cv_func_gethostbyname=no
22766fi
22767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22768fi
22769echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22770echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 22771
21d1c967 22772 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
22773 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22774echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22775if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22777else
e6cc62c6 22778 ac_check_lib_save_LIBS=$LIBS
21d1c967 22779LIBS="-lnsl $LIBS"
e6cc62c6
VS
22780cat >conftest.$ac_ext <<_ACEOF
22781#line $LINENO "configure"
22782/* confdefs.h. */
22783_ACEOF
22784cat confdefs.h >>conftest.$ac_ext
22785cat >>conftest.$ac_ext <<_ACEOF
22786/* end confdefs.h. */
22787
21d1c967 22788/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22789#ifdef __cplusplus
22790extern "C"
22791#endif
21d1c967 22792/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22793 builtin and then its argument prototype would still apply. */
22794char gethostbyname ();
22795int
22796main ()
22797{
22798gethostbyname ();
22799 ;
22800 return 0;
22801}
22802_ACEOF
22803rm -f conftest.$ac_objext conftest$ac_exeext
22804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22805 (eval $ac_link) 2>&5
22806 ac_status=$?
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); } &&
22809 { ac_try='test -s conftest$ac_exeext'
22810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811 (eval $ac_try) 2>&5
22812 ac_status=$?
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); }; }; then
22815 ac_cv_lib_nsl_gethostbyname=yes
22816else
22817 echo "$as_me: failed program was:" >&5
22818sed 's/^/| /' conftest.$ac_ext >&5
22819
22820ac_cv_lib_nsl_gethostbyname=no
22821fi
22822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22823LIBS=$ac_check_lib_save_LIBS
22824fi
22825echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22826echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22827if test $ac_cv_lib_nsl_gethostbyname = yes; then
22828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 22829fi
247f5006 22830
e6cc62c6
VS
22831 if test $ac_cv_lib_nsl_gethostbyname = no; then
22832 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22833echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22834if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22836else
e6cc62c6
VS
22837 ac_check_lib_save_LIBS=$LIBS
22838LIBS="-lbsd $LIBS"
22839cat >conftest.$ac_ext <<_ACEOF
22840#line $LINENO "configure"
22841/* confdefs.h. */
22842_ACEOF
22843cat confdefs.h >>conftest.$ac_ext
22844cat >>conftest.$ac_ext <<_ACEOF
22845/* end confdefs.h. */
22846
22847/* Override any gcc2 internal prototype to avoid an error. */
22848#ifdef __cplusplus
22849extern "C"
22850#endif
22851/* We use char because int might match the return type of a gcc2
22852 builtin and then its argument prototype would still apply. */
22853char gethostbyname ();
22854int
22855main ()
22856{
22857gethostbyname ();
22858 ;
22859 return 0;
22860}
22861_ACEOF
22862rm -f conftest.$ac_objext conftest$ac_exeext
22863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22864 (eval $ac_link) 2>&5
22865 ac_status=$?
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } &&
22868 { ac_try='test -s conftest$ac_exeext'
22869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 (eval $ac_try) 2>&5
22871 ac_status=$?
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); }; }; then
22874 ac_cv_lib_bsd_gethostbyname=yes
22875else
22876 echo "$as_me: failed program was:" >&5
22877sed 's/^/| /' conftest.$ac_ext >&5
22878
22879ac_cv_lib_bsd_gethostbyname=no
22880fi
22881rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22882LIBS=$ac_check_lib_save_LIBS
22883fi
22884echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22885echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22886if test $ac_cv_lib_bsd_gethostbyname = yes; then
22887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 22888fi
90dd450c 22889
e6cc62c6 22890 fi
90dd450c
VZ
22891 fi
22892
21d1c967
GD
22893 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22894 # socket/setsockopt and other routines are undefined under SCO ODT
22895 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
22896 # on later versions), says Simon Leinen: it contains gethostby*
22897 # variants that don't use the name server (or something). -lsocket
22898 # must be given before -lnsl if both are needed. We assume that
22899 # if connect needs -lnsl, so does gethostbyname.
22900 echo "$as_me:$LINENO: checking for connect" >&5
22901echo $ECHO_N "checking for connect... $ECHO_C" >&6
22902if test "${ac_cv_func_connect+set}" = set; then
22903 echo $ECHO_N "(cached) $ECHO_C" >&6
22904else
22905 cat >conftest.$ac_ext <<_ACEOF
22906#line $LINENO "configure"
22907/* confdefs.h. */
22908_ACEOF
22909cat confdefs.h >>conftest.$ac_ext
22910cat >>conftest.$ac_ext <<_ACEOF
22911/* end confdefs.h. */
21d1c967 22912/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22913 which can conflict with char connect (); below.
22914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22915 <limits.h> exists even on freestanding compilers. */
22916#ifdef __STDC__
22917# include <limits.h>
22918#else
22919# include <assert.h>
22920#endif
21d1c967 22921/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22922#ifdef __cplusplus
22923extern "C"
22924{
22925#endif
21d1c967 22926/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22927 builtin and then its argument prototype would still apply. */
22928char connect ();
21d1c967
GD
22929/* The GNU C library defines this for functions which it implements
22930 to always fail with ENOSYS. Some functions are actually named
22931 something starting with __ and the normal name is an alias. */
22932#if defined (__stub_connect) || defined (__stub___connect)
22933choke me
22934#else
e6cc62c6
VS
22935char (*f) () = connect;
22936#endif
22937#ifdef __cplusplus
22938}
21d1c967 22939#endif
90dd450c 22940
e6cc62c6
VS
22941int
22942main ()
22943{
22944return f != connect;
22945 ;
22946 return 0;
22947}
22948_ACEOF
22949rm -f conftest.$ac_objext conftest$ac_exeext
22950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22951 (eval $ac_link) 2>&5
22952 ac_status=$?
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } &&
22955 { ac_try='test -s conftest$ac_exeext'
22956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957 (eval $ac_try) 2>&5
22958 ac_status=$?
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); }; }; then
22961 ac_cv_func_connect=yes
22962else
22963 echo "$as_me: failed program was:" >&5
22964sed 's/^/| /' conftest.$ac_ext >&5
22965
22966ac_cv_func_connect=no
22967fi
22968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22969fi
22970echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22971echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 22972
21d1c967 22973 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
22974 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22975echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22976if test "${ac_cv_lib_socket_connect+set}" = set; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 22978else
e6cc62c6 22979 ac_check_lib_save_LIBS=$LIBS
21d1c967 22980LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22981cat >conftest.$ac_ext <<_ACEOF
22982#line $LINENO "configure"
22983/* confdefs.h. */
22984_ACEOF
22985cat confdefs.h >>conftest.$ac_ext
22986cat >>conftest.$ac_ext <<_ACEOF
22987/* end confdefs.h. */
22988
21d1c967 22989/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22990#ifdef __cplusplus
22991extern "C"
22992#endif
21d1c967 22993/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22994 builtin and then its argument prototype would still apply. */
22995char connect ();
22996int
22997main ()
22998{
22999connect ();
23000 ;
23001 return 0;
23002}
23003_ACEOF
23004rm -f conftest.$ac_objext conftest$ac_exeext
23005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23006 (eval $ac_link) 2>&5
23007 ac_status=$?
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } &&
23010 { ac_try='test -s conftest$ac_exeext'
23011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012 (eval $ac_try) 2>&5
23013 ac_status=$?
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; }; then
23016 ac_cv_lib_socket_connect=yes
23017else
23018 echo "$as_me: failed program was:" >&5
23019sed 's/^/| /' conftest.$ac_ext >&5
23020
23021ac_cv_lib_socket_connect=no
23022fi
23023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23024LIBS=$ac_check_lib_save_LIBS
23025fi
23026echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23027echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23028if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23029 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23030fi
90dd450c 23031
21d1c967 23032 fi
90dd450c 23033
e6cc62c6
VS
23034 # Guillermo Gomez says -lposix is necessary on A/UX.
23035 echo "$as_me:$LINENO: checking for remove" >&5
23036echo $ECHO_N "checking for remove... $ECHO_C" >&6
23037if test "${ac_cv_func_remove+set}" = set; then
23038 echo $ECHO_N "(cached) $ECHO_C" >&6
23039else
23040 cat >conftest.$ac_ext <<_ACEOF
23041#line $LINENO "configure"
23042/* confdefs.h. */
23043_ACEOF
23044cat confdefs.h >>conftest.$ac_ext
23045cat >>conftest.$ac_ext <<_ACEOF
23046/* end confdefs.h. */
21d1c967 23047/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23048 which can conflict with char remove (); below.
23049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23050 <limits.h> exists even on freestanding compilers. */
23051#ifdef __STDC__
23052# include <limits.h>
23053#else
23054# include <assert.h>
23055#endif
21d1c967 23056/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23057#ifdef __cplusplus
23058extern "C"
23059{
23060#endif
21d1c967 23061/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23062 builtin and then its argument prototype would still apply. */
23063char remove ();
21d1c967
GD
23064/* The GNU C library defines this for functions which it implements
23065 to always fail with ENOSYS. Some functions are actually named
23066 something starting with __ and the normal name is an alias. */
23067#if defined (__stub_remove) || defined (__stub___remove)
23068choke me
23069#else
e6cc62c6
VS
23070char (*f) () = remove;
23071#endif
23072#ifdef __cplusplus
23073}
21d1c967 23074#endif
90dd450c 23075
e6cc62c6
VS
23076int
23077main ()
23078{
23079return f != remove;
23080 ;
23081 return 0;
23082}
23083_ACEOF
23084rm -f conftest.$ac_objext conftest$ac_exeext
23085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23086 (eval $ac_link) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); } &&
23090 { ac_try='test -s conftest$ac_exeext'
23091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092 (eval $ac_try) 2>&5
23093 ac_status=$?
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); }; }; then
23096 ac_cv_func_remove=yes
23097else
23098 echo "$as_me: failed program was:" >&5
23099sed 's/^/| /' conftest.$ac_ext >&5
23100
23101ac_cv_func_remove=no
23102fi
23103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23104fi
23105echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23106echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23107
21d1c967 23108 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23109 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23110echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23111if test "${ac_cv_lib_posix_remove+set}" = set; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23113else
e6cc62c6 23114 ac_check_lib_save_LIBS=$LIBS
21d1c967 23115LIBS="-lposix $LIBS"
e6cc62c6
VS
23116cat >conftest.$ac_ext <<_ACEOF
23117#line $LINENO "configure"
23118/* confdefs.h. */
23119_ACEOF
23120cat confdefs.h >>conftest.$ac_ext
23121cat >>conftest.$ac_ext <<_ACEOF
23122/* end confdefs.h. */
23123
21d1c967 23124/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23125#ifdef __cplusplus
23126extern "C"
23127#endif
21d1c967 23128/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23129 builtin and then its argument prototype would still apply. */
23130char remove ();
23131int
23132main ()
23133{
23134remove ();
23135 ;
23136 return 0;
23137}
23138_ACEOF
23139rm -f conftest.$ac_objext conftest$ac_exeext
23140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23141 (eval $ac_link) 2>&5
23142 ac_status=$?
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } &&
23145 { ac_try='test -s conftest$ac_exeext'
23146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23147 (eval $ac_try) 2>&5
23148 ac_status=$?
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); }; }; then
23151 ac_cv_lib_posix_remove=yes
23152else
23153 echo "$as_me: failed program was:" >&5
23154sed 's/^/| /' conftest.$ac_ext >&5
23155
23156ac_cv_lib_posix_remove=no
23157fi
23158rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23159LIBS=$ac_check_lib_save_LIBS
23160fi
23161echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23162echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23163if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23165fi
19bc6aad 23166
90dd450c 23167 fi
19bc6aad 23168
21d1c967 23169 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23170 echo "$as_me:$LINENO: checking for shmat" >&5
23171echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23172if test "${ac_cv_func_shmat+set}" = set; then
23173 echo $ECHO_N "(cached) $ECHO_C" >&6
23174else
23175 cat >conftest.$ac_ext <<_ACEOF
23176#line $LINENO "configure"
23177/* confdefs.h. */
23178_ACEOF
23179cat confdefs.h >>conftest.$ac_ext
23180cat >>conftest.$ac_ext <<_ACEOF
23181/* end confdefs.h. */
21d1c967 23182/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23183 which can conflict with char shmat (); below.
23184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23185 <limits.h> exists even on freestanding compilers. */
23186#ifdef __STDC__
23187# include <limits.h>
23188#else
23189# include <assert.h>
23190#endif
21d1c967 23191/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23192#ifdef __cplusplus
23193extern "C"
23194{
23195#endif
21d1c967 23196/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23197 builtin and then its argument prototype would still apply. */
23198char shmat ();
21d1c967
GD
23199/* The GNU C library defines this for functions which it implements
23200 to always fail with ENOSYS. Some functions are actually named
23201 something starting with __ and the normal name is an alias. */
23202#if defined (__stub_shmat) || defined (__stub___shmat)
23203choke me
23204#else
e6cc62c6
VS
23205char (*f) () = shmat;
23206#endif
23207#ifdef __cplusplus
23208}
21d1c967 23209#endif
90dd450c 23210
e6cc62c6
VS
23211int
23212main ()
23213{
23214return f != shmat;
23215 ;
23216 return 0;
23217}
23218_ACEOF
23219rm -f conftest.$ac_objext conftest$ac_exeext
23220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23221 (eval $ac_link) 2>&5
23222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } &&
23225 { ac_try='test -s conftest$ac_exeext'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; }; then
23231 ac_cv_func_shmat=yes
23232else
23233 echo "$as_me: failed program was:" >&5
23234sed 's/^/| /' conftest.$ac_ext >&5
23235
23236ac_cv_func_shmat=no
23237fi
23238rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23239fi
23240echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23241echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23242
21d1c967 23243 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23244 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23245echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23246if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23248else
e6cc62c6 23249 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23250LIBS="-lipc $LIBS"
e6cc62c6
VS
23251cat >conftest.$ac_ext <<_ACEOF
23252#line $LINENO "configure"
23253/* confdefs.h. */
23254_ACEOF
23255cat confdefs.h >>conftest.$ac_ext
23256cat >>conftest.$ac_ext <<_ACEOF
23257/* end confdefs.h. */
23258
5c6fa7d2 23259/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23260#ifdef __cplusplus
23261extern "C"
23262#endif
5c6fa7d2 23263/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23264 builtin and then its argument prototype would still apply. */
23265char shmat ();
23266int
23267main ()
23268{
23269shmat ();
23270 ;
23271 return 0;
23272}
23273_ACEOF
23274rm -f conftest.$ac_objext conftest$ac_exeext
23275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23276 (eval $ac_link) 2>&5
23277 ac_status=$?
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } &&
23280 { ac_try='test -s conftest$ac_exeext'
23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23283 ac_status=$?
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 ac_cv_lib_ipc_shmat=yes
23287else
23288 echo "$as_me: failed program was:" >&5
23289sed 's/^/| /' conftest.$ac_ext >&5
23290
23291ac_cv_lib_ipc_shmat=no
23292fi
23293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23294LIBS=$ac_check_lib_save_LIBS
23295fi
23296echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23297echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23298if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23299 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23300fi
90dd450c 23301
90dd450c 23302 fi
21d1c967 23303 fi
10f2d63a 23304
21d1c967 23305 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23306 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23307 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23308 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23309 # check for ICE first), but we must link in the order -lSM -lICE or
23310 # we get undefined symbols. So assume we have SM if we have ICE.
23311 # These have to be linked with before -lX11, unlike the other
23312 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23313 # John Interrante, Karl Berry
23314 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23315echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23316if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23317 echo $ECHO_N "(cached) $ECHO_C" >&6
23318else
23319 ac_check_lib_save_LIBS=$LIBS
f09359cf 23320LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23321cat >conftest.$ac_ext <<_ACEOF
23322#line $LINENO "configure"
23323/* confdefs.h. */
23324_ACEOF
23325cat confdefs.h >>conftest.$ac_ext
23326cat >>conftest.$ac_ext <<_ACEOF
23327/* end confdefs.h. */
23328
21d1c967 23329/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23330#ifdef __cplusplus
23331extern "C"
23332#endif
21d1c967 23333/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23334 builtin and then its argument prototype would still apply. */
23335char IceConnectionNumber ();
23336int
23337main ()
23338{
23339IceConnectionNumber ();
23340 ;
23341 return 0;
23342}
23343_ACEOF
23344rm -f conftest.$ac_objext conftest$ac_exeext
23345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23346 (eval $ac_link) 2>&5
23347 ac_status=$?
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } &&
23350 { ac_try='test -s conftest$ac_exeext'
23351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23353 ac_status=$?
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; }; then
23356 ac_cv_lib_ICE_IceConnectionNumber=yes
23357else
23358 echo "$as_me: failed program was:" >&5
23359sed 's/^/| /' conftest.$ac_ext >&5
23360
23361ac_cv_lib_ICE_IceConnectionNumber=no
23362fi
23363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23364LIBS=$ac_check_lib_save_LIBS
23365fi
23366echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23367echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23368if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23369 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23370fi
21d1c967 23371
e6cc62c6 23372 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23373
10f2d63a
VZ
23374fi
23375
8284b0c5 23376
21d1c967 23377 if test "$no_x" = "yes"; then
e6cc62c6
VS
23378 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23379echo "$as_me: error: X11 not found" >&2;}
23380 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23381 fi
23382
2b5f62a0
VZ
23383 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23384 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23385 AFMINSTALL=afminstall
23386 COMPILED_X_PROGRAM=0
23387
e6cc62c6
VS
23388 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23389echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23390
21d1c967 23391ac_find_includes=
2b5f62a0 23392for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23393 do
23394 if test -f "$ac_dir/Xm/Xm.h"; then
23395 ac_find_includes=$ac_dir
23396 break
23397 fi
23398 done
23399
23400 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23401 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23402echo "${ECHO_T}found in $ac_find_includes" >&6
23403
2b5f62a0 23404 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23405 ac_path_to_include=""
23406 else
2b5f62a0
VZ
23407 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23408 result=$?
23409 if test $result = 0; then
23410 ac_path_to_include=""
23411 else
23412 ac_path_to_include=" -I$ac_find_includes"
23413 fi
dd0e4a90
VZ
23414 fi
23415
23416 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23417 else
e6cc62c6
VS
23418 cat >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. */
21d1c967
GD
23425
23426 #include <Xm/Xm.h>
e6cc62c6
VS
23427
23428int
23429main ()
23430{
21d1c967
GD
23431
23432 int version;
23433 version = xmUseVersion;
e6cc62c6
VS
23434
23435 ;
23436 return 0;
23437}
23438_ACEOF
23439rm -f conftest.$ac_objext
23440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23441 (eval $ac_compile) 2>&5
23442 ac_status=$?
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); } &&
23445 { ac_try='test -s conftest.$ac_objext'
23446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447 (eval $ac_try) 2>&5
23448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; }; then
23451
23452 echo "$as_me:$LINENO: result: found in default search path" >&5
23453echo "${ECHO_T}found in default search path" >&6
21d1c967 23454 COMPILED_X_PROGRAM=1
e6cc62c6 23455
10f2d63a 23456else
e6cc62c6
VS
23457 echo "$as_me: failed program was:" >&5
23458sed 's/^/| /' conftest.$ac_ext >&5
23459
23460
23461 echo "$as_me:$LINENO: result: no" >&5
23462echo "${ECHO_T}no" >&6
23463 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23464echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23465 { (exit 1); exit 1; }; }
23466
23467
10f2d63a 23468fi
e6cc62c6 23469rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23470 fi
10f2d63a 23471
21d1c967 23472 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23473 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23474echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23475
21d1c967 23476ac_find_libraries=
2b5f62a0 23477for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23478 do
23479 for ac_extension in a so sl dylib; do
23480 if test -f "$ac_dir/libXm.$ac_extension"; then
23481 ac_find_libraries=$ac_dir
23482 break 2
23483 fi
23484 done
23485 done
23486
23487 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23488 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23489echo "${ECHO_T}found at $ac_find_libraries" >&6
23490
21d1c967 23491
21d1c967
GD
23492 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23493 result=$?
23494 if test $result = 0; then
23495 ac_path_to_link=""
23496 else
23497 ac_path_to_link=" -L$ac_find_libraries"
23498 fi
23499
21d1c967 23500 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23501 else
dd0e4a90
VZ
23502 save_CFLAGS=$CFLAGS
23503 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23504
e6cc62c6
VS
23505 cat >conftest.$ac_ext <<_ACEOF
23506#line $LINENO "configure"
23507/* confdefs.h. */
23508_ACEOF
23509cat confdefs.h >>conftest.$ac_ext
23510cat >>conftest.$ac_ext <<_ACEOF
23511/* end confdefs.h. */
21d1c967
GD
23512
23513 #include <Xm/Xm.h>
e6cc62c6
VS
23514
23515int
23516main ()
23517{
21d1c967
GD
23518
23519 int version;
23520 version = xmUseVersion;
e6cc62c6
VS
23521
23522 ;
23523 return 0;
23524}
23525_ACEOF
23526rm -f conftest.$ac_objext
23527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23528 (eval $ac_compile) 2>&5
23529 ac_status=$?
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); } &&
23532 { ac_try='test -s conftest.$ac_objext'
23533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23534 (eval $ac_try) 2>&5
23535 ac_status=$?
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); }; }; then
23538
23539 echo "$as_me:$LINENO: result: found in default search path" >&5
23540echo "${ECHO_T}found in default search path" >&6
21d1c967 23541 COMPILED_X_PROGRAM=1
e6cc62c6 23542
d836ee96 23543else
e6cc62c6
VS
23544 echo "$as_me: failed program was:" >&5
23545sed 's/^/| /' conftest.$ac_ext >&5
23546
23547
23548 echo "$as_me:$LINENO: result: no" >&5
23549echo "${ECHO_T}no" >&6
23550 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23551echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23552 { (exit 1); exit 1; }; }
23553
23554
d836ee96 23555fi
e6cc62c6 23556rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23557
23558 CFLAGS=$save_CFLAGS
21d1c967
GD
23559 fi
23560 fi
23561
23562 xpm_link=
e6cc62c6
VS
23563 echo "$as_me:$LINENO: checking for Xpm library" >&5
23564echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23565
21d1c967 23566ac_find_libraries=
2b5f62a0 23567for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23568 do
23569 for ac_extension in a so sl dylib; do
23570 if test -f "$ac_dir/libXpm.$ac_extension"; then
23571 ac_find_libraries=$ac_dir
23572 break 2
23573 fi
23574 done
23575 done
23576
23577 if test "$ac_find_libraries" != "" ; then
e6cc62c6 23578
21d1c967
GD
23579 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23580 result=$?
23581 if test $result = 0; then
23582 ac_path_to_link=""
23583 else
23584 ac_path_to_link=" -L$ac_find_libraries"
23585 fi
23586
23587 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 23588
21d1c967 23589 xpm_link=" -lXpm"
e6cc62c6 23590 cat >>confdefs.h <<\_ACEOF
21d1c967 23591#define wxHAVE_LIB_XPM 1
e6cc62c6 23592_ACEOF
90dd450c 23593
e6cc62c6
VS
23594 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23595echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 23596 else
dd0e4a90
VZ
23597 save_CFLAGS=$CFLAGS
23598 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23599
e6cc62c6
VS
23600 cat >conftest.$ac_ext <<_ACEOF
23601#line $LINENO "configure"
23602/* confdefs.h. */
23603_ACEOF
23604cat confdefs.h >>conftest.$ac_ext
23605cat >>conftest.$ac_ext <<_ACEOF
23606/* end confdefs.h. */
21d1c967
GD
23607
23608 #include <X11/xpm.h>
e6cc62c6
VS
23609
23610int
23611main ()
23612{
21d1c967
GD
23613
23614 int version;
23615 version = XpmLibraryVersion();
e6cc62c6
VS
23616
23617 ;
23618 return 0;
23619}
23620_ACEOF
23621rm -f conftest.$ac_objext
23622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23623 (eval $ac_compile) 2>&5
23624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } &&
23627 { ac_try='test -s conftest.$ac_objext'
23628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23629 (eval $ac_try) 2>&5
23630 ac_status=$?
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); }; }; then
23633
21d1c967 23634 xpm_link=" -lXpm"
e6cc62c6 23635 cat >>confdefs.h <<\_ACEOF
21d1c967 23636#define wxHAVE_LIB_XPM 1
e6cc62c6 23637_ACEOF
21d1c967 23638
e6cc62c6
VS
23639 echo "$as_me:$LINENO: result: found in default search path" >&5
23640echo "${ECHO_T}found in default search path" >&6
21d1c967 23641 COMPILED_X_PROGRAM=0
e6cc62c6 23642
d836ee96 23643else
e6cc62c6
VS
23644 echo "$as_me: failed program was:" >&5
23645sed 's/^/| /' conftest.$ac_ext >&5
23646
23647
23648 echo "$as_me:$LINENO: result: no" >&5
23649echo "${ECHO_T}no" >&6
23650 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
23651echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
23652
23653
d836ee96 23654fi
e6cc62c6 23655rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23656
23657 CFLAGS=$save_CFLAGS
21d1c967
GD
23658 fi
23659
e6cc62c6
VS
23660 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
23661echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
23662 libp_link=""
23663 libsm_ice_link=""
23664 libs_found=0
23665 for libp in "" " -lXp"; do
23666 if test "$libs_found" = "0"; then
23667 for libsm_ice in " -lSM -lICE"; do
e26c13cf 23668 if test "$libs_found" = "0"; then
6a30f1c8
MB
23669 save_LIBS="$LIBS"
23670 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
23671 save_CFLAGS=$CFLAGS
23672 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23673
e6cc62c6
VS
23674 cat >conftest.$ac_ext <<_ACEOF
23675#line $LINENO "configure"
23676/* confdefs.h. */
23677_ACEOF
23678cat confdefs.h >>conftest.$ac_ext
23679cat >>conftest.$ac_ext <<_ACEOF
23680/* end confdefs.h. */
17234b26 23681
6a30f1c8
MB
23682 #include <Xm/Xm.h>
23683 #include <Xm/List.h>
e6cc62c6
VS
23684
23685int
23686main ()
23687{
6a30f1c8
MB
23688
23689 XmString string = NULL;
23690 Widget w = NULL;
23691 int position = 0;
23692 XmListAddItem(w, string, position);
e6cc62c6
VS
23693
23694 ;
23695 return 0;
23696}
23697_ACEOF
23698rm -f conftest.$ac_objext conftest$ac_exeext
23699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23700 (eval $ac_link) 2>&5
23701 ac_status=$?
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } &&
23704 { ac_try='test -s conftest$ac_exeext'
23705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706 (eval $ac_try) 2>&5
23707 ac_status=$?
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); }; }; then
23710
6a30f1c8
MB
23711 libp_link="$libp"
23712 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
23713 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
23714echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 23715 libs_found=1
e6cc62c6 23716
6a30f1c8 23717else
e6cc62c6
VS
23718 echo "$as_me: failed program was:" >&5
23719sed 's/^/| /' conftest.$ac_ext >&5
23720
23721
23722
6a30f1c8 23723fi
e6cc62c6 23724rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 23725
6a30f1c8 23726 LIBS="$save_LIBS"
dd0e4a90 23727 CFLAGS=$save_CFLAGS
6a30f1c8
MB
23728 fi
23729 done
23730 fi
23731 done
23732
23733 if test "$libs_found" = "0"; then
e6cc62c6
VS
23734 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
23735echo "${ECHO_T}can't find the right libraries" >&6
23736 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
23737echo "$as_me: error: can't link a simple motif program" >&2;}
23738 { (exit 1); exit 1; }; }
6a30f1c8
MB
23739 fi
23740
da494b40
MB
23741 save_CFLAGS=$CFLAGS
23742 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
23743 echo "$as_me:$LINENO: checking for Motif 2" >&5
23744echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
23745 cat >conftest.$ac_ext <<_ACEOF
23746#line $LINENO "configure"
23747/* confdefs.h. */
23748_ACEOF
23749cat confdefs.h >>conftest.$ac_ext
23750cat >>conftest.$ac_ext <<_ACEOF
23751/* end confdefs.h. */
da494b40
MB
23752
23753 #include <Xm/Xm.h>
e6cc62c6
VS
23754
23755int
23756main ()
23757{
da494b40
MB
23758
23759 #if XmVersion < 2000
23760 #error "Not Motif 2"
23761 #endif
e6cc62c6
VS
23762
23763 ;
23764 return 0;
23765}
23766_ACEOF
23767rm -f conftest.$ac_objext
23768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23769 (eval $ac_compile) 2>&5
23770 ac_status=$?
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } &&
23773 { ac_try='test -s conftest.$ac_objext'
23774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23775 (eval $ac_try) 2>&5
23776 ac_status=$?
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); }; }; then
23779
23780 cat >>confdefs.h <<\_ACEOF
da494b40 23781#define __WXMOTIF20__ 1
e6cc62c6
VS
23782_ACEOF
23783
23784 echo "$as_me:$LINENO: result: found" >&5
23785echo "${ECHO_T}found" >&6
da494b40 23786
da494b40 23787else
e6cc62c6
VS
23788 echo "$as_me: failed program was:" >&5
23789sed 's/^/| /' conftest.$ac_ext >&5
23790
23791
23792 cat >>confdefs.h <<\_ACEOF
da494b40 23793#define __WXMOTIF20__ 0
e6cc62c6
VS
23794_ACEOF
23795
23796 echo "$as_me:$LINENO: result: not found" >&5
23797echo "${ECHO_T}not found" >&6
da494b40 23798
da494b40 23799fi
e6cc62c6 23800rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
23801 CFLAGS=$save_CFLAGS
23802
6a30f1c8 23803 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 23804 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
23805 TOOLKIT=MOTIF
23806 GUIDIST=MOTIF_DIST
f7f78039
MB
23807 wxHAVE_XEXT_LIB=1
23808 fi
23809
23810 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
23811 test "$wxHAVE_XEXT_LIB" = 1; then
23812 save_CFLAGS="$CFLAGS"
23813 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23814
e6cc62c6
VS
23815 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
23816echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
23817 cat >conftest.$ac_ext <<_ACEOF
23818#line $LINENO "configure"
23819/* confdefs.h. */
23820_ACEOF
23821cat confdefs.h >>conftest.$ac_ext
23822cat >>conftest.$ac_ext <<_ACEOF
23823/* end confdefs.h. */
23824
23825 #include <X11/Xlib.h>
f7f78039 23826 #include <X11/extensions/shape.h>
e6cc62c6
VS
23827
23828int
23829main ()
23830{
f7f78039
MB
23831
23832 int dummy1, dummy2;
23833 XShapeQueryExtension((Display*)NULL,
23834 (int*)NULL, (int*)NULL);
e6cc62c6
VS
23835
23836 ;
23837 return 0;
23838}
23839_ACEOF
23840rm -f conftest.$ac_objext
23841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23842 (eval $ac_compile) 2>&5
23843 ac_status=$?
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); } &&
23846 { ac_try='test -s conftest.$ac_objext'
23847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23849 ac_status=$?
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; }; then
23852
23853 cat >>confdefs.h <<\_ACEOF
f7f78039 23854#define HAVE_XSHAPE 1
e6cc62c6
VS
23855_ACEOF
23856
23857 echo "$as_me:$LINENO: result: found" >&5
23858echo "${ECHO_T}found" >&6
f7f78039 23859
f7f78039 23860else
e6cc62c6
VS
23861 echo "$as_me: failed program was:" >&5
23862sed 's/^/| /' conftest.$ac_ext >&5
23863
23864
23865 echo "$as_me:$LINENO: result: not found" >&5
23866echo "${ECHO_T}not found" >&6
23867
f7f78039 23868fi
e6cc62c6 23869rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 23870 CFLAGS="$save_CFLAGS"
21d1c967
GD
23871 fi
23872
23873 if test "$wxUSE_MAC" = 1; then
0c98a14e 23874 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 23875
0c98a14e 23876 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
23877 TOOLKIT=MAC
23878 GUIDIST=MACX_DIST
23879 fi
23880
ac0c4cc3
DE
23881 if test "$wxUSE_COCOA" = 1; then
23882 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
23883 TOOLKIT=COCOA
23884 GUIDIST=COCOA_DIST
23885 fi
23886
21d1c967
GD
23887 if test "$wxUSE_PM" = 1; then
23888 TOOLKIT=PM
23889 GUIDIST=GTK_DIST
e6cc62c6
VS
23890 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
23891echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 23892 wxUSE_THREADS="no"
21d1c967
GD
23893 fi
23894
23895 if test "$TOOLKIT" = "PM" ; then
23896 TOOLKIT_DIR="os2"
23897 else
23898 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
23899 fi
23900
23901 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
23902
23903 if test "$wxUSE_UNIVERSAL" = "yes"; then
23904 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
23905
23906 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
23907 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
23908
23909 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
23910 if test "$wxUSE_X11" = 1; then
23911 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
23912 else
23913 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
23914 fi
23915 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
23916 WIDGET_SET=univ
23917 else
23918 ALL_OBJECTS="\$(GUIOBJS)"
23919 ALL_SOURCES="\$(ALL_SOURCES)"
23920 ALL_HEADERS="\$(ALL_HEADERS)"
23921 fi
23922
23923 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
23924
23925 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
23926 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
23927 fi
23928
23929 if test "$wxUSE_HTML" = "yes"; then
23930 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
23931 fi
23932
23933 if test "$wxUSE_LIBJPEG" = "builtin" ; then
23934 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
23935 fi
23936 if test "$wxUSE_LIBTIFF" = "builtin" ; then
23937 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
23938 fi
23939 if test "$wxUSE_LIBPNG" = "builtin" ; then
23940 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
23941 fi
23942
23943 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
23944 DISTDIR="wx\$(TOOLKIT)"
90dd450c 23945else
21d1c967
GD
23946 USE_GUI=0
23947
23948 TOOLKIT_DIR="base"
23949
23950 if test "$USE_WIN32" = 1 ; then
23951 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
23952 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
23953
23954 TOOLKIT="MSW"
23955 else
23956 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
23957 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
23958 fi
23959
23960 ALL_SOURCES="\$(ALL_SOURCES)"
23961 ALL_HEADERS="\$(ALL_HEADERS)"
23962
23963 PORT_FILES="\${top_srcdir}/src/files.lst"
23964
23965 GUIDIST="BASE_DIST"
23966 DISTDIR="wxBase"
d836ee96
VZ
23967fi
23968
8284b0c5 23969
8647bec6
RG
23970
23971
23972IODBC_C_SRC=""
23973
23974
23975if test "$TOOLKIT" != "MSW" ; then
23976
23977 if test "$wxUSE_ODBC" != "no" ; then
e6cc62c6 23978 cat >>confdefs.h <<\_ACEOF
8647bec6 23979#define wxUSE_ODBC 1
e6cc62c6 23980_ACEOF
8647bec6
RG
23981
23982 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
e6cc62c6 23983
8647bec6
RG
23984 WXODBCFLAG="-D_IODBC_"
23985
23986
23987 if test "$wxUSE_ODBC" = "sys" ; then
e6cc62c6
VS
23988
23989 if test "${ac_cv_header_sql_h+set}" = set; then
23990 echo "$as_me:$LINENO: checking for sql.h" >&5
23991echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
23992if test "${ac_cv_header_sql_h+set}" = set; then
23993 echo $ECHO_N "(cached) $ECHO_C" >&6
23994fi
23995echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
23996echo "${ECHO_T}$ac_cv_header_sql_h" >&6
23997else
23998 # Is the header compilable?
23999echo "$as_me:$LINENO: checking sql.h usability" >&5
24000echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24001cat >conftest.$ac_ext <<_ACEOF
24002#line $LINENO "configure"
24003/* confdefs.h. */
24004_ACEOF
24005cat confdefs.h >>conftest.$ac_ext
24006cat >>conftest.$ac_ext <<_ACEOF
24007/* end confdefs.h. */
24008$ac_includes_default
8647bec6 24009#include <sql.h>
e6cc62c6
VS
24010_ACEOF
24011rm -f conftest.$ac_objext
24012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24013 (eval $ac_compile) 2>&5
24014 ac_status=$?
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); } &&
24017 { ac_try='test -s conftest.$ac_objext'
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24020 ac_status=$?
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; }; then
24023 ac_header_compiler=yes
24024else
24025 echo "$as_me: failed program was:" >&5
24026sed 's/^/| /' conftest.$ac_ext >&5
24027
24028ac_header_compiler=no
24029fi
24030rm -f conftest.$ac_objext conftest.$ac_ext
24031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24032echo "${ECHO_T}$ac_header_compiler" >&6
24033
24034# Is the header present?
24035echo "$as_me:$LINENO: checking sql.h presence" >&5
24036echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24037cat >conftest.$ac_ext <<_ACEOF
24038#line $LINENO "configure"
24039/* confdefs.h. */
24040_ACEOF
24041cat confdefs.h >>conftest.$ac_ext
24042cat >>conftest.$ac_ext <<_ACEOF
24043/* end confdefs.h. */
24044#include <sql.h>
24045_ACEOF
24046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24048 ac_status=$?
24049 grep -v '^ *+' conftest.er1 >conftest.err
24050 rm -f conftest.er1
24051 cat conftest.err >&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } >/dev/null; then
24054 if test -s conftest.err; then
24055 ac_cpp_err=$ac_c_preproc_warn_flag
24056 else
24057 ac_cpp_err=
24058 fi
24059else
24060 ac_cpp_err=yes
24061fi
24062if test -z "$ac_cpp_err"; then
24063 ac_header_preproc=yes
24064else
24065 echo "$as_me: failed program was:" >&5
24066sed 's/^/| /' conftest.$ac_ext >&5
24067
24068 ac_header_preproc=no
24069fi
24070rm -f conftest.err conftest.$ac_ext
24071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24072echo "${ECHO_T}$ac_header_preproc" >&6
24073
24074# So? What about this header?
24075case $ac_header_compiler:$ac_header_preproc in
24076 yes:no )
24077 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24078echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24079 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24080echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24081 (
24082 cat <<\_ASBOX
24083## ------------------------------------ ##
24084## Report this to bug-autoconf@gnu.org. ##
24085## ------------------------------------ ##
24086_ASBOX
24087 ) |
24088 sed "s/^/$as_me: WARNING: /" >&2
24089 ;;
24090 no:yes )
24091 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24092echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24093 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24094echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24095 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24096echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24097 (
24098 cat <<\_ASBOX
24099## ------------------------------------ ##
24100## Report this to bug-autoconf@gnu.org. ##
24101## ------------------------------------ ##
24102_ASBOX
24103 ) |
24104 sed "s/^/$as_me: WARNING: /" >&2
24105 ;;
24106esac
24107echo "$as_me:$LINENO: checking for sql.h" >&5
24108echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24109if test "${ac_cv_header_sql_h+set}" = set; then
24110 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24111else
e6cc62c6
VS
24112 ac_cv_header_sql_h=$ac_header_preproc
24113fi
24114echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24115echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24116
8647bec6
RG
24117fi
24118
e6cc62c6
VS
24119
24120 echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5
24121echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6
24122if test "${ac_cv_search_SQLAllocEnv+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24124else
e6cc62c6
VS
24125 ac_func_search_save_LIBS=$LIBS
24126ac_cv_search_SQLAllocEnv=no
24127cat >conftest.$ac_ext <<_ACEOF
24128#line $LINENO "configure"
24129/* confdefs.h. */
24130_ACEOF
24131cat confdefs.h >>conftest.$ac_ext
24132cat >>conftest.$ac_ext <<_ACEOF
24133/* end confdefs.h. */
24134
8647bec6 24135/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24136#ifdef __cplusplus
24137extern "C"
24138#endif
8647bec6 24139/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24140 builtin and then its argument prototype would still apply. */
24141char SQLAllocEnv ();
24142int
24143main ()
24144{
24145SQLAllocEnv ();
24146 ;
24147 return 0;
24148}
24149_ACEOF
24150rm -f conftest.$ac_objext conftest$ac_exeext
24151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24152 (eval $ac_link) 2>&5
24153 ac_status=$?
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); } &&
24156 { ac_try='test -s conftest$ac_exeext'
24157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158 (eval $ac_try) 2>&5
24159 ac_status=$?
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); }; }; then
8647bec6
RG
24162 ac_cv_search_SQLAllocEnv="none required"
24163else
e6cc62c6
VS
24164 echo "$as_me: failed program was:" >&5
24165sed 's/^/| /' conftest.$ac_ext >&5
24166
8647bec6 24167fi
e6cc62c6
VS
24168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24169if test "$ac_cv_search_SQLAllocEnv" = no; then
24170 for ac_lib in iodbc unixodbc odbc ; do
24171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24172 cat >conftest.$ac_ext <<_ACEOF
24173#line $LINENO "configure"
24174/* confdefs.h. */
24175_ACEOF
24176cat confdefs.h >>conftest.$ac_ext
24177cat >>conftest.$ac_ext <<_ACEOF
24178/* end confdefs.h. */
24179
8647bec6 24180/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24181#ifdef __cplusplus
24182extern "C"
24183#endif
8647bec6 24184/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24185 builtin and then its argument prototype would still apply. */
24186char SQLAllocEnv ();
24187int
24188main ()
24189{
24190SQLAllocEnv ();
24191 ;
24192 return 0;
24193}
24194_ACEOF
24195rm -f conftest.$ac_objext conftest$ac_exeext
24196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24197 (eval $ac_link) 2>&5
24198 ac_status=$?
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } &&
24201 { ac_try='test -s conftest$ac_exeext'
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; }; then
24207 ac_cv_search_SQLAllocEnv="-l$ac_lib"
8647bec6
RG
24208break
24209else
e6cc62c6
VS
24210 echo "$as_me: failed program was:" >&5
24211sed 's/^/| /' conftest.$ac_ext >&5
24212
8647bec6 24213fi
e6cc62c6
VS
24214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24215 done
8647bec6 24216fi
e6cc62c6
VS
24217LIBS=$ac_func_search_save_LIBS
24218fi
24219echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5
24220echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6
24221if test "$ac_cv_search_SQLAllocEnv" != no; then
8647bec6 24222 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
e6cc62c6
VS
24223
24224else
24225
24226 wxUSE_ODBC=builtin;
24227 { echo "$as_me:$LINENO: WARNING: can't find system Odbc library falling back to builtin " >&5
24228echo "$as_me: WARNING: can't find system Odbc library falling back to builtin " >&2;}
24229
8647bec6 24230fi
e6cc62c6 24231
fd3d7534
RG
24232 fi
24233 if test "$wxUSE_ODBC" != "sys" ; then
24234 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8647bec6
RG
24235 fi
24236
24237 fi
e6cc62c6 24238
6232543b 24239fi
21d1c967
GD
24240
24241if test "$wxUSE_REGEX" = "builtin" ; then
24242 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24243fi
21d1c967
GD
24244if test "$wxUSE_ZLIB" = "builtin" ; then
24245 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24246fi
24247
8284b0c5 24248
4d264332 24249USE_OPENGL=0
21d1c967 24250if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24251 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24252 OPENGL_LIBS="-framework OpenGL -framework AGL"
24253 elif test "$wxUSE_MSW" = 1; then
24254 OPENGL_LIBS="-lopengl32 -lglu32"
24255 else
01aa5863
VS
24256
24257
24258ac_find_includes=
24259for ac_dir in $SEARCH_INCLUDE /usr/include;
24260 do
24261 if test -f "$ac_dir/GL/gl.h"; then
24262 ac_find_includes=$ac_dir
24263 break
24264 fi
24265 done
24266
24267 if test "$ac_find_includes" != "" ; then
24268 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24269echo "${ECHO_T}found in $ac_find_includes" >&6
24270 set -x
24271
24272 if test "x$ac_find_includes" = "x/usr/include"; then
24273 ac_path_to_include=""
24274 else
24275 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24276 result=$?
24277 if test $result = 0; then
24278 ac_path_to_include=""
24279 else
24280 ac_path_to_include=" -I$ac_find_includes"
24281 fi
24282 fi
24283
24284 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24285 set +x
24286 fi
24287
e6cc62c6
VS
24288 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24289 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24290echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24291if test "${ac_cv_header_GL_gl_h+set}" = set; then
24292 echo $ECHO_N "(cached) $ECHO_C" >&6
24293fi
24294echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24295echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24296else
24297 # Is the header compilable?
24298echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24299echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24300cat >conftest.$ac_ext <<_ACEOF
24301#line $LINENO "configure"
24302/* confdefs.h. */
24303_ACEOF
24304cat confdefs.h >>conftest.$ac_ext
24305cat >>conftest.$ac_ext <<_ACEOF
24306/* end confdefs.h. */
24307$ac_includes_default
21d1c967 24308#include <GL/gl.h>
e6cc62c6
VS
24309_ACEOF
24310rm -f conftest.$ac_objext
24311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24312 (eval $ac_compile) 2>&5
24313 ac_status=$?
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); } &&
24316 { ac_try='test -s conftest.$ac_objext'
24317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318 (eval $ac_try) 2>&5
24319 ac_status=$?
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); }; }; then
24322 ac_header_compiler=yes
24323else
24324 echo "$as_me: failed program was:" >&5
24325sed 's/^/| /' conftest.$ac_ext >&5
24326
24327ac_header_compiler=no
24328fi
24329rm -f conftest.$ac_objext conftest.$ac_ext
24330echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24331echo "${ECHO_T}$ac_header_compiler" >&6
24332
24333# Is the header present?
24334echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24335echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24336cat >conftest.$ac_ext <<_ACEOF
24337#line $LINENO "configure"
24338/* confdefs.h. */
24339_ACEOF
24340cat confdefs.h >>conftest.$ac_ext
24341cat >>conftest.$ac_ext <<_ACEOF
24342/* end confdefs.h. */
24343#include <GL/gl.h>
24344_ACEOF
24345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24347 ac_status=$?
24348 grep -v '^ *+' conftest.er1 >conftest.err
24349 rm -f conftest.er1
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } >/dev/null; then
24353 if test -s conftest.err; then
24354 ac_cpp_err=$ac_c_preproc_warn_flag
24355 else
24356 ac_cpp_err=
24357 fi
24358else
24359 ac_cpp_err=yes
24360fi
24361if test -z "$ac_cpp_err"; then
24362 ac_header_preproc=yes
24363else
24364 echo "$as_me: failed program was:" >&5
24365sed 's/^/| /' conftest.$ac_ext >&5
24366
24367 ac_header_preproc=no
24368fi
24369rm -f conftest.err conftest.$ac_ext
24370echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24371echo "${ECHO_T}$ac_header_preproc" >&6
24372
24373# So? What about this header?
24374case $ac_header_compiler:$ac_header_preproc in
24375 yes:no )
24376 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24377echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24378 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24379echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24380 (
24381 cat <<\_ASBOX
24382## ------------------------------------ ##
24383## Report this to bug-autoconf@gnu.org. ##
24384## ------------------------------------ ##
24385_ASBOX
24386 ) |
24387 sed "s/^/$as_me: WARNING: /" >&2
24388 ;;
24389 no:yes )
24390 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24391echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24392 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24393echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24394 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24395echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24396 (
24397 cat <<\_ASBOX
24398## ------------------------------------ ##
24399## Report this to bug-autoconf@gnu.org. ##
24400## ------------------------------------ ##
24401_ASBOX
24402 ) |
24403 sed "s/^/$as_me: WARNING: /" >&2
24404 ;;
24405esac
24406echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24407echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24408if test "${ac_cv_header_GL_gl_h+set}" = set; then
24409 echo $ECHO_N "(cached) $ECHO_C" >&6
24410else
24411 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24412fi
e6cc62c6
VS
24413echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24414echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24415
698dcdb6 24416fi
e6cc62c6
VS
24417if test $ac_cv_header_GL_gl_h = yes; then
24418
89e3b3e4
VZ
24419 found_gl=0
24420
e6cc62c6
VS
24421 echo "$as_me:$LINENO: checking for -lGL" >&5
24422echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24423
21d1c967 24424ac_find_libraries=
2b5f62a0 24425for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24426 do
24427 for ac_extension in a so sl dylib; do
24428 if test -f "$ac_dir/libGL.$ac_extension"; then
24429 ac_find_libraries=$ac_dir
24430 break 2
24431 fi
24432 done
24433 done
24434
24435 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24436
21d1c967
GD
24437 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24438 result=$?
24439 if test $result = 0; then
24440 ac_path_to_link=""
24441 else
24442 ac_path_to_link=" -L$ac_find_libraries"
24443 fi
24444
89e3b3e4
VZ
24445 if test "$ac_path_to_link" != " -L/usr/lib" ; then
24446 LDFLAGS_GL="$ac_path_to_link"
21d1c967 24447 fi
89e3b3e4 24448
e6cc62c6 24449
89e3b3e4
VZ
24450ac_find_libraries=
24451for ac_dir in $SEARCH_LIB /usr/lib;
24452 do
24453 for ac_extension in a so sl dylib; do
24454 if test -f "$ac_dir/libGLU.$ac_extension"; then
24455 ac_find_libraries=$ac_dir
24456 break 2
24457 fi
24458 done
24459 done
24460
24461 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24462
89e3b3e4
VZ
24463 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24464 result=$?
24465 if test $result = 0; then
24466 ac_path_to_link=""
24467 else
24468 ac_path_to_link=" -L$ac_find_libraries"
24469 fi
24470
24471 if test "$ac_path_to_link" != " -L/usr/lib" -a \
24472 "$ac_path_to_link" != "$LDFLAGS_GL"; then
24473 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24474 fi
24475
24476 found_gl=1
24477 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
24478 echo "$as_me:$LINENO: result: yes" >&5
24479echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
24480 fi
24481 fi
24482
24483 if "$found_gl" != 1; then
e6cc62c6
VS
24484 echo "$as_me:$LINENO: result: no" >&5
24485echo "${ECHO_T}no" >&6
24486 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24487echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24488
21d1c967 24489ac_find_libraries=
2b5f62a0 24490for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24491 do
24492 for ac_extension in a so sl dylib; do
24493 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24494 ac_find_libraries=$ac_dir
24495 break 2
24496 fi
24497 done
24498 done
24499
24500 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24501
21d1c967
GD
24502 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24503 result=$?
24504 if test $result = 0; then
24505 ac_path_to_link=""
24506 else
24507 ac_path_to_link=" -L$ac_find_libraries"
24508 fi
24509
24510 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24511 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
24512 echo "$as_me:$LINENO: result: yes" >&5
24513echo "${ECHO_T}yes" >&6
21d1c967 24514 else
e6cc62c6
VS
24515 echo "$as_me:$LINENO: result: no" >&5
24516echo "${ECHO_T}no" >&6
21d1c967
GD
24517 fi
24518 fi
e6cc62c6 24519
5c6fa7d2 24520fi
52127426 24521
8284b0c5 24522
e6cc62c6 24523
21d1c967 24524 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
24525 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24526echo "$as_me: error: OpenGL libraries not available" >&2;}
24527 { (exit 1); exit 1; }; }
21d1c967
GD
24528 fi
24529 fi
90dd450c 24530
21d1c967 24531 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 24532 USE_OPENGL=1
e6cc62c6 24533 cat >>confdefs.h <<\_ACEOF
21d1c967 24534#define wxUSE_OPENGL 1
e6cc62c6 24535_ACEOF
21d1c967 24536
e6cc62c6 24537 cat >>confdefs.h <<\_ACEOF
21d1c967 24538#define wxUSE_GLCANVAS 1
e6cc62c6 24539_ACEOF
21d1c967
GD
24540
24541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
24542 fi
10f2d63a 24543fi
21d1c967
GD
24544
24545if test -z "$TOOLKIT_VPATH" ; then
24546 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 24547fi
21d1c967
GD
24548
24549if test -n "$TOOLKIT" ; then
24550 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
24551fi
24552
fe0895cf 24553UNICODE=0
21d1c967
GD
24554lib_unicode_suffix=
24555if test "$wxUSE_UNICODE" = "yes"; then
24556 lib_unicode_suffix=u
fe0895cf 24557 UNICODE=1
90dd450c 24558fi
698dcdb6 24559
21d1c967 24560lib_debug_suffix=
fe0895cf 24561BUILD=release
21d1c967
GD
24562if test "$wxUSE_DEBUG_FLAG" = "yes"; then
24563 lib_debug_suffix=d
fe0895cf 24564 BUILD=debug
21d1c967 24565fi
698dcdb6 24566
2b5f62a0
VZ
24567WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
24568
24569TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
24570TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
24571
24572if test "$cross_compiling" = "yes"; then
24573 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
24574 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
24575fi
24576
24577WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
24578WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 24579WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
24580
24581WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24582WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24583
24584WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
24585WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24586WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
24587WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24588
24589case "${host}" in
24590 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
24591 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
24592 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
24593 ;;
24594
24595 *-*-darwin* )
e6cc62c6 24596
05159a27
GD
24597 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24598 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24599
24600 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
24601 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24602 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
24603 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24604
21d1c967 24605 if test "$wxUSE_MAC" = 1; then
f346733b
GD
24606 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
24607 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
24608 fi
24609 ;;
24610esac
24611
24612WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
24613WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
24614
24615WXCONFIG_LIBS="-l${WX_LIBRARY}"
24616WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
24617
24618if test "$wxUSE_OPENGL" = "yes"; then
24619 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
24620 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
24621fi
24622
8284b0c5
MB
24623
24624
21d1c967
GD
24625if test "$wxUSE_SHARED" = "yes"; then
24626 case "${host}" in
24627 *-pc-os2_emx | *-pc-os2-emx | \
24628 *-pc-msdosdjgpp )
24629 wxUSE_SHARED=no
e6cc62c6
VS
24630 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
24631echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
24632 ;;
24633 esac
24634fi
24635
fe0895cf 24636SHARED=0
2b5f62a0 24637if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 24638 SHARED=1
2b5f62a0 24639
e6cc62c6 24640
2b5f62a0
VZ
24641 found_versioning=no
24642
e6cc62c6 24643
2b5f62a0 24644 if test $found_versioning = no ; then
e6cc62c6
VS
24645 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
24646echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
24647if test "${wx_cv_version_script+set}" = set; then
24648 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24649else
e6cc62c6 24650
2b5f62a0
VZ
24651 echo "VER_1 { *; };" >conftest.sym
24652 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 24653
2b5f62a0
VZ
24654 if { ac_try='
24655 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
24656 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
24657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 (eval $ac_try) 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; } ; then
2b5f62a0
VZ
24662 if test -s conftest.stderr ; then
24663 wx_cv_version_script=no
24664 else
24665 wx_cv_version_script=yes
24666 fi
24667 else
24668 wx_cv_version_script=no
24669 fi
24670 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 24671
e6cc62c6
VS
24672fi
24673echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
24674echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 24675 if test $wx_cv_version_script = yes ; then
e6cc62c6 24676 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
24677 fi
24678 fi
21d1c967 24679
21d1c967 24680
21d1c967 24681 case "${host}" in
fe0895cf 24682 *-*-linux* | *-*-gnu* )
e6cc62c6 24683 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
21d1c967
GD
24684 ;;
24685
24686 *-*-solaris2* )
24687 if test "$GCC" = yes ; then
24688 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
24689
24690 saveLdflags="$LDFLAGS"
24691 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
24692 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
24693echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
24694 cat >conftest.$ac_ext <<_ACEOF
24695#line $LINENO "configure"
24696/* confdefs.h. */
24697_ACEOF
24698cat confdefs.h >>conftest.$ac_ext
24699cat >>conftest.$ac_ext <<_ACEOF
24700/* end confdefs.h. */
24701
24702int
24703main ()
24704{
fe0895cf 24705
e6cc62c6
VS
24706 ;
24707 return 0;
24708}
24709_ACEOF
24710rm -f conftest.$ac_objext conftest$ac_exeext
24711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24712 (eval $ac_link) 2>&5
24713 ac_status=$?
24714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715 (exit $ac_status); } &&
24716 { ac_try='test -s conftest$ac_exeext'
24717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); }; }; then
24722
24723 echo "$as_me:$LINENO: result: yes" >&5
24724echo "${ECHO_T}yes" >&6
24725 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
24726
24727else
24728 echo "$as_me: failed program was:" >&5
24729sed 's/^/| /' conftest.$ac_ext >&5
24730
24731
24732 echo "$as_me:$LINENO: result: no" >&5
24733echo "${ECHO_T}no" >&6
24734 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
24735echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 24736 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
24737 cat >conftest.$ac_ext <<_ACEOF
24738#line $LINENO "configure"
24739/* confdefs.h. */
24740_ACEOF
24741cat confdefs.h >>conftest.$ac_ext
24742cat >>conftest.$ac_ext <<_ACEOF
24743/* end confdefs.h. */
24744
24745int
24746main ()
24747{
24748
24749 ;
24750 return 0;
24751}
24752_ACEOF
24753rm -f conftest.$ac_objext conftest$ac_exeext
24754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24755 (eval $ac_link) 2>&5
24756 ac_status=$?
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); } &&
24759 { ac_try='test -s conftest$ac_exeext'
24760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761 (eval $ac_try) 2>&5
24762 ac_status=$?
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; }; then
24765
24766 echo "$as_me:$LINENO: result: yes" >&5
24767echo "${ECHO_T}yes" >&6
24768 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
24769else
24770 echo "$as_me: failed program was:" >&5
24771sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 24772
fe0895cf 24773
e6cc62c6
VS
24774 echo "$as_me:$LINENO: result: no" >&5
24775echo "${ECHO_T}no" >&6
24776
fe0895cf 24777fi
e6cc62c6
VS
24778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24779
24780fi
24781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 24782 LDFLAGS="$saveLdflags"
21d1c967
GD
24783 else
24784 SHARED_LD="${CXX} -G -o"
24785 PIC_FLAG="-KPIC"
e6cc62c6 24786 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
24787 fi
24788 ;;
24789
21d1c967 24790 *-*-cygwin* | *-*-mingw32* )
f657dbe7
MB
24791 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
24792 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
24793
24794 if test "$wxUSE_OPENGL" = "yes"; then
24795 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
24796 fi
24797 ;;
21d1c967
GD
24798 esac
24799
24800 if test "x$WX_TARGET_LIBRARY" = "x"; then
24801 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
24802 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
24803 fi
24804
24805 WX_TARGET_LIBRARY_TYPE="so"
24806 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 24807fi
10f2d63a 24808
21d1c967
GD
24809if test "$wxUSE_SHARED" = "no"; then
24810
24811 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
24812 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
24813 fi
24814
ac0c4cc3 24815 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
24816 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
24817 fi
24818
24819 if test "$wxUSE_OPENGL" = "yes"; then
24820 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
24821 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
24822 else
24823 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
24824 fi
24825
24826 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
24827 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
24828
24829 WX_TARGET_LIBRARY_TYPE="a"
24830 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
24831
24832 STATIC_FLAG="yes"
24833else
24834 STATIC_FLAG="no"
90dd450c 24835fi
1e487827 24836
93fac604
VZ
24837MACRESCOMP="@#"
24838MACSETFILE="@#"
36825681 24839MACRESWXCONFIG="#"
21d1c967 24840if test "$wxUSE_MAC" = 1; then
e6cc62c6 24841 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
24842 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
24843 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
24844 # Extract the first word of "Rez", so it can be a program name with args.
24845set dummy Rez; ac_word=$2
e6cc62c6
VS
24846echo "$as_me:$LINENO: checking for $ac_word" >&5
24847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24848if test "${ac_cv_prog_RESCOMP+set}" = set; then
24849 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 24850else
21d1c967
GD
24851 if test -n "$RESCOMP"; then
24852 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 24853else
e6cc62c6
VS
24854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24855for as_dir in $PATH
24856do
24857 IFS=$as_save_IFS
24858 test -z "$as_dir" && as_dir=.
24859 for ac_exec_ext in '' $ac_executable_extensions; do
24860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24861 ac_cv_prog_RESCOMP="Rez"
24862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24863 break 2
24864 fi
24865done
24866done
24867
21d1c967 24868 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 24869fi
b93d0d08 24870fi
e6cc62c6 24871RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 24872if test -n "$RESCOMP"; then
e6cc62c6
VS
24873 echo "$as_me:$LINENO: result: $RESCOMP" >&5
24874echo "${ECHO_T}$RESCOMP" >&6
90dd450c 24875else
e6cc62c6
VS
24876 echo "$as_me:$LINENO: result: no" >&5
24877echo "${ECHO_T}no" >&6
90dd450c 24878fi
b93d0d08 24879
21d1c967
GD
24880 # Extract the first word of "DeRez", so it can be a program name with args.
24881set dummy DeRez; ac_word=$2
e6cc62c6
VS
24882echo "$as_me:$LINENO: checking for $ac_word" >&5
24883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24884if test "${ac_cv_prog_DEREZ+set}" = set; then
24885 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 24886else
21d1c967
GD
24887 if test -n "$DEREZ"; then
24888 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 24889else
e6cc62c6
VS
24890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24891for as_dir in $PATH
24892do
24893 IFS=$as_save_IFS
24894 test -z "$as_dir" && as_dir=.
24895 for ac_exec_ext in '' $ac_executable_extensions; do
24896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24897 ac_cv_prog_DEREZ="DeRez"
24898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24899 break 2
24900 fi
24901done
24902done
24903
21d1c967 24904 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 24905fi
90dd450c 24906fi
e6cc62c6 24907DEREZ=$ac_cv_prog_DEREZ
21d1c967 24908if test -n "$DEREZ"; then
e6cc62c6
VS
24909 echo "$as_me:$LINENO: result: $DEREZ" >&5
24910echo "${ECHO_T}$DEREZ" >&6
90dd450c 24911else
e6cc62c6
VS
24912 echo "$as_me:$LINENO: result: no" >&5
24913echo "${ECHO_T}no" >&6
3a922bb4 24914fi
698dcdb6 24915
36825681
GD
24916 # Extract the first word of "SetFile", so it can be a program name with args.
24917set dummy SetFile; ac_word=$2
e6cc62c6
VS
24918echo "$as_me:$LINENO: checking for $ac_word" >&5
24919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24920if test "${ac_cv_prog_SETFILE+set}" = set; then
24921 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
24922else
24923 if test -n "$SETFILE"; then
24924 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
24925else
e6cc62c6
VS
24926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24927for as_dir in $PATH
24928do
24929 IFS=$as_save_IFS
24930 test -z "$as_dir" && as_dir=.
24931 for ac_exec_ext in '' $ac_executable_extensions; do
24932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24933 ac_cv_prog_SETFILE="SetFile"
24934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24935 break 2
24936 fi
24937done
24938done
24939
36825681
GD
24940 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
24941fi
24942fi
e6cc62c6 24943SETFILE=$ac_cv_prog_SETFILE
36825681 24944if test -n "$SETFILE"; then
e6cc62c6
VS
24945 echo "$as_me:$LINENO: result: $SETFILE" >&5
24946echo "${ECHO_T}$SETFILE" >&6
36825681 24947else
e6cc62c6
VS
24948 echo "$as_me:$LINENO: result: no" >&5
24949echo "${ECHO_T}no" >&6
36825681
GD
24950fi
24951
21d1c967 24952 MACOSX_BUNDLE="bundle"
36825681
GD
24953 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
24954 MACSETFILE="\$(SETFILE)"
9711d31e 24955 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
24956elif test "$wxUSE_COCOA" = 1; then
24957 # Extract the first word of "Rez", so it can be a program name with args.
24958set dummy Rez; ac_word=$2
e6cc62c6
VS
24959echo "$as_me:$LINENO: checking for $ac_word" >&5
24960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24961if test "${ac_cv_prog_RESCOMP+set}" = set; then
24962 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
24963else
24964 if test -n "$RESCOMP"; then
24965 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
24966else
e6cc62c6
VS
24967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24968for as_dir in $PATH
24969do
24970 IFS=$as_save_IFS
24971 test -z "$as_dir" && as_dir=.
24972 for ac_exec_ext in '' $ac_executable_extensions; do
24973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24974 ac_cv_prog_RESCOMP="Rez"
24975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24976 break 2
24977 fi
24978done
24979done
24980
64440d77
DE
24981 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
24982fi
24983fi
e6cc62c6 24984RESCOMP=$ac_cv_prog_RESCOMP
64440d77 24985if test -n "$RESCOMP"; then
e6cc62c6
VS
24986 echo "$as_me:$LINENO: result: $RESCOMP" >&5
24987echo "${ECHO_T}$RESCOMP" >&6
64440d77 24988else
e6cc62c6
VS
24989 echo "$as_me:$LINENO: result: no" >&5
24990echo "${ECHO_T}no" >&6
64440d77
DE
24991fi
24992
24993 # Extract the first word of "DeRez", so it can be a program name with args.
24994set dummy DeRez; ac_word=$2
e6cc62c6
VS
24995echo "$as_me:$LINENO: checking for $ac_word" >&5
24996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24997if test "${ac_cv_prog_DEREZ+set}" = set; then
24998 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
24999else
25000 if test -n "$DEREZ"; then
25001 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25002else
e6cc62c6
VS
25003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25004for as_dir in $PATH
25005do
25006 IFS=$as_save_IFS
25007 test -z "$as_dir" && as_dir=.
25008 for ac_exec_ext in '' $ac_executable_extensions; do
25009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25010 ac_cv_prog_DEREZ="DeRez"
25011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25012 break 2
25013 fi
25014done
25015done
25016
64440d77
DE
25017 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25018fi
25019fi
e6cc62c6 25020DEREZ=$ac_cv_prog_DEREZ
64440d77 25021if test -n "$DEREZ"; then
e6cc62c6
VS
25022 echo "$as_me:$LINENO: result: $DEREZ" >&5
25023echo "${ECHO_T}$DEREZ" >&6
64440d77 25024else
e6cc62c6
VS
25025 echo "$as_me:$LINENO: result: no" >&5
25026echo "${ECHO_T}no" >&6
64440d77
DE
25027fi
25028
25029 # Extract the first word of "SetFile", so it can be a program name with args.
25030set dummy SetFile; ac_word=$2
e6cc62c6
VS
25031echo "$as_me:$LINENO: checking for $ac_word" >&5
25032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25033if test "${ac_cv_prog_SETFILE+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25035else
25036 if test -n "$SETFILE"; then
25037 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25038else
e6cc62c6
VS
25039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25040for as_dir in $PATH
25041do
25042 IFS=$as_save_IFS
25043 test -z "$as_dir" && as_dir=.
25044 for ac_exec_ext in '' $ac_executable_extensions; do
25045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25046 ac_cv_prog_SETFILE="SetFile"
25047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25048 break 2
25049 fi
25050done
25051done
25052
64440d77
DE
25053 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25054fi
25055fi
e6cc62c6 25056SETFILE=$ac_cv_prog_SETFILE
64440d77 25057if test -n "$SETFILE"; then
e6cc62c6
VS
25058 echo "$as_me:$LINENO: result: $SETFILE" >&5
25059echo "${ECHO_T}$SETFILE" >&6
64440d77 25060else
e6cc62c6
VS
25061 echo "$as_me:$LINENO: result: no" >&5
25062echo "${ECHO_T}no" >&6
64440d77
DE
25063fi
25064
25065 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25066 MACSETFILE="\$(SETFILE)"
9711d31e 25067 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25068else
25069 if test "$wxUSE_PM" = 1; then
36825681 25070 MACRESCOMP="emxbind -ep"
90dd450c 25071 fi
4f14bcd8 25072fi
10f2d63a 25073
8284b0c5 25074
e6cc62c6
VS
25075echo "$as_me:$LINENO: checking for mode_t" >&5
25076echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25077if test "${ac_cv_type_mode_t+set}" = set; then
25078 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25079else
e6cc62c6
VS
25080 cat >conftest.$ac_ext <<_ACEOF
25081#line $LINENO "configure"
25082/* confdefs.h. */
25083_ACEOF
25084cat confdefs.h >>conftest.$ac_ext
25085cat >>conftest.$ac_ext <<_ACEOF
25086/* end confdefs.h. */
25087$ac_includes_default
25088int
25089main ()
25090{
25091if ((mode_t *) 0)
25092 return 0;
25093if (sizeof (mode_t))
25094 return 0;
25095 ;
25096 return 0;
25097}
25098_ACEOF
25099rm -f conftest.$ac_objext
25100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25101 (eval $ac_compile) 2>&5
25102 ac_status=$?
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } &&
25105 { ac_try='test -s conftest.$ac_objext'
25106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107 (eval $ac_try) 2>&5
25108 ac_status=$?
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); }; }; then
25111 ac_cv_type_mode_t=yes
a0b9e27f 25112else
e6cc62c6
VS
25113 echo "$as_me: failed program was:" >&5
25114sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25115
e6cc62c6 25116ac_cv_type_mode_t=no
a0b9e27f 25117fi
e6cc62c6 25118rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25119fi
e6cc62c6
VS
25120echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25121echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25122if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25123 :
25124else
a0b9e27f 25125
e6cc62c6
VS
25126cat >>confdefs.h <<_ACEOF
25127#define mode_t int
25128_ACEOF
8284b0c5
MB
25129
25130fi
25131
e6cc62c6
VS
25132echo "$as_me:$LINENO: checking for off_t" >&5
25133echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25134if test "${ac_cv_type_off_t+set}" = set; then
25135 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25136else
e6cc62c6
VS
25137 cat >conftest.$ac_ext <<_ACEOF
25138#line $LINENO "configure"
25139/* confdefs.h. */
25140_ACEOF
25141cat confdefs.h >>conftest.$ac_ext
25142cat >>conftest.$ac_ext <<_ACEOF
25143/* end confdefs.h. */
25144$ac_includes_default
25145int
25146main ()
25147{
25148if ((off_t *) 0)
25149 return 0;
25150if (sizeof (off_t))
25151 return 0;
25152 ;
25153 return 0;
25154}
25155_ACEOF
25156rm -f conftest.$ac_objext
25157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25158 (eval $ac_compile) 2>&5
25159 ac_status=$?
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); } &&
25162 { ac_try='test -s conftest.$ac_objext'
25163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); }; }; then
25168 ac_cv_type_off_t=yes
5c6fa7d2 25169else
e6cc62c6
VS
25170 echo "$as_me: failed program was:" >&5
25171sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25172
e6cc62c6 25173ac_cv_type_off_t=no
8284b0c5 25174fi
e6cc62c6 25175rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25176fi
e6cc62c6
VS
25177echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25178echo "${ECHO_T}$ac_cv_type_off_t" >&6
25179if test $ac_cv_type_off_t = yes; then
25180 :
247f5006
VZ
25181else
25182
e6cc62c6 25183cat >>confdefs.h <<_ACEOF
90dd450c 25184#define off_t long
e6cc62c6 25185_ACEOF
10f2d63a 25186
90dd450c 25187fi
10f2d63a 25188
e6cc62c6
VS
25189echo "$as_me:$LINENO: checking for pid_t" >&5
25190echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25191if test "${ac_cv_type_pid_t+set}" = set; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25193else
e6cc62c6
VS
25194 cat >conftest.$ac_ext <<_ACEOF
25195#line $LINENO "configure"
25196/* confdefs.h. */
25197_ACEOF
25198cat confdefs.h >>conftest.$ac_ext
25199cat >>conftest.$ac_ext <<_ACEOF
25200/* end confdefs.h. */
25201$ac_includes_default
25202int
25203main ()
25204{
25205if ((pid_t *) 0)
25206 return 0;
25207if (sizeof (pid_t))
25208 return 0;
25209 ;
25210 return 0;
25211}
25212_ACEOF
25213rm -f conftest.$ac_objext
25214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25215 (eval $ac_compile) 2>&5
25216 ac_status=$?
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); } &&
25219 { ac_try='test -s conftest.$ac_objext'
25220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25221 (eval $ac_try) 2>&5
25222 ac_status=$?
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); }; }; then
90dd450c 25225 ac_cv_type_pid_t=yes
698dcdb6 25226else
e6cc62c6
VS
25227 echo "$as_me: failed program was:" >&5
25228sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25229
e6cc62c6
VS
25230ac_cv_type_pid_t=no
25231fi
25232rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25233fi
e6cc62c6
VS
25234echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25235echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25236if test $ac_cv_type_pid_t = yes; then
25237 :
25238else
25239
25240cat >>confdefs.h <<_ACEOF
90dd450c 25241#define pid_t int
e6cc62c6 25242_ACEOF
10f2d63a 25243
7b4a847f
RR
25244fi
25245
e6cc62c6
VS
25246echo "$as_me:$LINENO: checking for size_t" >&5
25247echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25248if test "${ac_cv_type_size_t+set}" = set; then
25249 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25250else
e6cc62c6
VS
25251 cat >conftest.$ac_ext <<_ACEOF
25252#line $LINENO "configure"
25253/* confdefs.h. */
25254_ACEOF
25255cat confdefs.h >>conftest.$ac_ext
25256cat >>conftest.$ac_ext <<_ACEOF
25257/* end confdefs.h. */
25258$ac_includes_default
25259int
25260main ()
25261{
25262if ((size_t *) 0)
25263 return 0;
25264if (sizeof (size_t))
25265 return 0;
25266 ;
25267 return 0;
25268}
25269_ACEOF
25270rm -f conftest.$ac_objext
25271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25272 (eval $ac_compile) 2>&5
25273 ac_status=$?
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); } &&
25276 { ac_try='test -s conftest.$ac_objext'
25277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25278 (eval $ac_try) 2>&5
25279 ac_status=$?
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); }; }; then
90dd450c 25282 ac_cv_type_size_t=yes
18dbb1f6 25283else
e6cc62c6
VS
25284 echo "$as_me: failed program was:" >&5
25285sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25286
e6cc62c6 25287ac_cv_type_size_t=no
a0b9e27f 25288fi
e6cc62c6
VS
25289rm -f conftest.$ac_objext conftest.$ac_ext
25290fi
25291echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25292echo "${ECHO_T}$ac_cv_type_size_t" >&6
25293if test $ac_cv_type_size_t = yes; then
25294 :
25295else
25296
25297cat >>confdefs.h <<_ACEOF
90dd450c 25298#define size_t unsigned
e6cc62c6 25299_ACEOF
90dd450c
VZ
25300
25301fi
25302
e6cc62c6
VS
25303echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25304echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25305if test "${ac_cv_type_uid_t+set}" = set; then
25306 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25307else
e6cc62c6
VS
25308 cat >conftest.$ac_ext <<_ACEOF
25309#line $LINENO "configure"
25310/* confdefs.h. */
25311_ACEOF
25312cat confdefs.h >>conftest.$ac_ext
25313cat >>conftest.$ac_ext <<_ACEOF
25314/* end confdefs.h. */
90dd450c 25315#include <sys/types.h>
e6cc62c6
VS
25316
25317_ACEOF
90dd450c 25318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25319 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25320 ac_cv_type_uid_t=yes
b3e8d00a 25321else
90dd450c 25322 ac_cv_type_uid_t=no
b3e8d00a 25323fi
90dd450c 25324rm -f conftest*
b3e8d00a 25325
4f14bcd8 25326fi
e6cc62c6
VS
25327echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25328echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25329if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25330
25331cat >>confdefs.h <<\_ACEOF
90dd450c 25332#define uid_t int
e6cc62c6 25333_ACEOF
247f5006 25334
e6cc62c6
VS
25335
25336cat >>confdefs.h <<\_ACEOF
90dd450c 25337#define gid_t int
e6cc62c6 25338_ACEOF
4f14bcd8 25339
b3e8d00a 25340fi
b3e8d00a 25341
8284b0c5
MB
25342
25343
e6cc62c6
VS
25344
25345ac_ext=cc
4f14bcd8 25346ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25350
25351echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25352echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25353if test "${wx_cv_size_t_is_uint+set}" = set; then
25354 echo $ECHO_N "(cached) $ECHO_C" >&6
25355else
25356
25357 cat >conftest.$ac_ext <<_ACEOF
25358#line $LINENO "configure"
25359/* confdefs.h. */
25360_ACEOF
25361cat confdefs.h >>conftest.$ac_ext
25362cat >>conftest.$ac_ext <<_ACEOF
25363/* end confdefs.h. */
90dd450c 25364#include <stddef.h>
e6cc62c6
VS
25365int
25366main ()
25367{
90dd450c
VZ
25368
25369 return 0; }
25370
25371 struct Foo { void foo(size_t); void foo(unsigned int); };
25372
25373 int bar() {
e6cc62c6
VS
25374
25375 ;
25376 return 0;
25377}
25378_ACEOF
25379rm -f conftest.$ac_objext
25380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25381 (eval $ac_compile) 2>&5
25382 ac_status=$?
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); } &&
25385 { ac_try='test -s conftest.$ac_objext'
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25388 ac_status=$?
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; }; then
90dd450c 25391 wx_cv_size_t_is_uint=no
698dcdb6 25392else
e6cc62c6
VS
25393 echo "$as_me: failed program was:" >&5
25394sed 's/^/| /' conftest.$ac_ext >&5
25395
25396wx_cv_size_t_is_uint=yes
8284b0c5 25397
247f5006 25398fi
e6cc62c6
VS
25399rm -f conftest.$ac_objext conftest.$ac_ext
25400
a0b9e27f 25401
e6cc62c6
VS
25402fi
25403echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25404echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 25405
90dd450c 25406if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 25407 cat >>confdefs.h <<\_ACEOF
90dd450c 25408#define wxSIZE_T_IS_UINT 1
e6cc62c6 25409_ACEOF
698dcdb6 25410
90dd450c 25411else
e6cc62c6
VS
25412 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25413echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25414if test "${wx_cv_size_t_is_ulong+set}" = set; then
25415 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25416else
e6cc62c6
VS
25417 cat >conftest.$ac_ext <<_ACEOF
25418#line $LINENO "configure"
25419/* confdefs.h. */
25420_ACEOF
25421cat confdefs.h >>conftest.$ac_ext
25422cat >>conftest.$ac_ext <<_ACEOF
25423/* end confdefs.h. */
90dd450c 25424#include <stddef.h>
e6cc62c6
VS
25425int
25426main ()
25427{
90dd450c
VZ
25428
25429 return 0; }
25430
25431 struct Foo { void foo(size_t); void foo(unsigned long); };
25432
25433 int bar() {
e6cc62c6
VS
25434
25435 ;
25436 return 0;
25437}
25438_ACEOF
25439rm -f conftest.$ac_objext
25440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25441 (eval $ac_compile) 2>&5
25442 ac_status=$?
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); } &&
25445 { ac_try='test -s conftest.$ac_objext'
25446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25447 (eval $ac_try) 2>&5
25448 ac_status=$?
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); }; }; then
90dd450c 25451 wx_cv_size_t_is_ulong=no
698dcdb6 25452else
e6cc62c6
VS
25453 echo "$as_me: failed program was:" >&5
25454sed 's/^/| /' conftest.$ac_ext >&5
25455
25456wx_cv_size_t_is_ulong=yes
25457
247f5006 25458fi
e6cc62c6 25459rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25460
e6cc62c6
VS
25461fi
25462echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25463echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 25464
90dd450c 25465 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 25466 cat >>confdefs.h <<\_ACEOF
90dd450c 25467#define wxSIZE_T_IS_ULONG 1
e6cc62c6 25468_ACEOF
4f14bcd8
GD
25469
25470 fi
90dd450c 25471fi
1e487827 25472
90dd450c 25473ac_ext=c
4f14bcd8 25474ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
25475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25477ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 25478
5c6fa7d2 25479
8284b0c5 25480
e6cc62c6
VS
25481echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25482echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25483if test "${wx_cv_struct_pw_gecos+set}" = set; then
25484 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25485else
e6cc62c6
VS
25486
25487 cat >conftest.$ac_ext <<_ACEOF
25488#line $LINENO "configure"
25489/* confdefs.h. */
25490_ACEOF
25491cat confdefs.h >>conftest.$ac_ext
25492cat >>conftest.$ac_ext <<_ACEOF
25493/* end confdefs.h. */
90dd450c 25494#include <pwd.h>
e6cc62c6
VS
25495int
25496main ()
25497{
f6bcfd97 25498
90dd450c
VZ
25499 char *p;
25500 struct passwd *pw;
25501 p = pw->pw_gecos;
e6cc62c6
VS
25502
25503 ;
25504 return 0;
25505}
25506_ACEOF
25507rm -f conftest.$ac_objext
25508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25509 (eval $ac_compile) 2>&5
25510 ac_status=$?
25511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } &&
25513 { ac_try='test -s conftest.$ac_objext'
25514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25515 (eval $ac_try) 2>&5
25516 ac_status=$?
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; }; then
25519
90dd450c 25520 wx_cv_struct_pw_gecos=yes
e6cc62c6 25521
10f2d63a 25522else
e6cc62c6
VS
25523 echo "$as_me: failed program was:" >&5
25524sed 's/^/| /' conftest.$ac_ext >&5
25525
25526
90dd450c 25527 wx_cv_struct_pw_gecos=no
e6cc62c6 25528
247f5006
VZ
25529
25530fi
e6cc62c6 25531rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25532
e6cc62c6
VS
25533
25534fi
25535echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
25536echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 25537
90dd450c 25538if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 25539 cat >>confdefs.h <<\_ACEOF
90dd450c 25540#define HAVE_PW_GECOS 1
e6cc62c6 25541_ACEOF
c521c494 25542
90dd450c 25543fi
4f14bcd8 25544
8284b0c5 25545
d29b553b 25546if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 25547 cat >>confdefs.h <<\_ACEOF
d74f4b5a 25548#define wxUSE_WCHAR_T 1
e6cc62c6 25549_ACEOF
d74f4b5a 25550
8284b0c5 25551
d74f4b5a
VZ
25552 WCSLEN_FOUND=0
25553 WCHAR_LINK=
e6cc62c6
VS
25554
25555for ac_func in wcslen
7a30264c 25556do
e6cc62c6
VS
25557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25558echo "$as_me:$LINENO: checking for $ac_func" >&5
25559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25560if eval "test \"\${$as_ac_var+set}\" = set"; then
25561 echo $ECHO_N "(cached) $ECHO_C" >&6
25562else
25563 cat >conftest.$ac_ext <<_ACEOF
25564#line $LINENO "configure"
25565/* confdefs.h. */
25566_ACEOF
25567cat confdefs.h >>conftest.$ac_ext
25568cat >>conftest.$ac_ext <<_ACEOF
25569/* end confdefs.h. */
7a30264c 25570/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25571 which can conflict with char $ac_func (); below.
25572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25573 <limits.h> exists even on freestanding compilers. */
25574#ifdef __STDC__
25575# include <limits.h>
25576#else
25577# include <assert.h>
25578#endif
4f14bcd8 25579/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25580#ifdef __cplusplus
25581extern "C"
25582{
25583#endif
4f14bcd8 25584/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25585 builtin and then its argument prototype would still apply. */
25586char $ac_func ();
7a30264c
VZ
25587/* The GNU C library defines this for functions which it implements
25588 to always fail with ENOSYS. Some functions are actually named
25589 something starting with __ and the normal name is an alias. */
25590#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25591choke me
25592#else
e6cc62c6
VS
25593char (*f) () = $ac_func;
25594#endif
25595#ifdef __cplusplus
25596}
7a30264c
VZ
25597#endif
25598
e6cc62c6
VS
25599int
25600main ()
25601{
25602return f != $ac_func;
25603 ;
25604 return 0;
25605}
25606_ACEOF
25607rm -f conftest.$ac_objext conftest$ac_exeext
25608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25609 (eval $ac_link) 2>&5
25610 ac_status=$?
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); } &&
25613 { ac_try='test -s conftest$ac_exeext'
25614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615 (eval $ac_try) 2>&5
25616 ac_status=$?
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); }; }; then
25619 eval "$as_ac_var=yes"
25620else
25621 echo "$as_me: failed program was:" >&5
25622sed 's/^/| /' conftest.$ac_ext >&5
25623
25624eval "$as_ac_var=no"
25625fi
25626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25627fi
25628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25629echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25630if test `eval echo '${'$as_ac_var'}'` = yes; then
25631 cat >>confdefs.h <<_ACEOF
25632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25633_ACEOF
d74f4b5a 25634 WCSLEN_FOUND=1
7a30264c
VZ
25635fi
25636done
9d8deca0 25637
8284b0c5 25638
d74f4b5a 25639 if test "$WCSLEN_FOUND" = 0; then
7a30264c 25640 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
25641 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
25642echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
25643if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
25644 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 25645else
e6cc62c6 25646 ac_check_lib_save_LIBS=$LIBS
7a30264c 25647LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
25648cat >conftest.$ac_ext <<_ACEOF
25649#line $LINENO "configure"
25650/* confdefs.h. */
25651_ACEOF
25652cat confdefs.h >>conftest.$ac_ext
25653cat >>conftest.$ac_ext <<_ACEOF
25654/* end confdefs.h. */
25655
4f14bcd8 25656/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25657#ifdef __cplusplus
25658extern "C"
25659#endif
4f14bcd8 25660/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25661 builtin and then its argument prototype would still apply. */
25662char wcslen ();
25663int
25664main ()
25665{
25666wcslen ();
25667 ;
25668 return 0;
25669}
25670_ACEOF
25671rm -f conftest.$ac_objext conftest$ac_exeext
25672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25673 (eval $ac_link) 2>&5
25674 ac_status=$?
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); } &&
25677 { ac_try='test -s conftest$ac_exeext'
25678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25679 (eval $ac_try) 2>&5
25680 ac_status=$?
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; }; then
25683 ac_cv_lib_msvcrt_wcslen=yes
25684else
25685 echo "$as_me: failed program was:" >&5
25686sed 's/^/| /' conftest.$ac_ext >&5
25687
25688ac_cv_lib_msvcrt_wcslen=no
25689fi
25690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25691LIBS=$ac_check_lib_save_LIBS
25692fi
25693echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
25694echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
25695if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 25696 WCHAR_OK=1
d29b553b 25697fi
698dcdb6 25698
7a30264c 25699 else
e6cc62c6
VS
25700 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
25701echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
25702if test "${ac_cv_lib_w_wcslen+set}" = set; then
25703 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25704else
e6cc62c6 25705 ac_check_lib_save_LIBS=$LIBS
7a30264c 25706LIBS="-lw $LIBS"
e6cc62c6
VS
25707cat >conftest.$ac_ext <<_ACEOF
25708#line $LINENO "configure"
25709/* confdefs.h. */
25710_ACEOF
25711cat confdefs.h >>conftest.$ac_ext
25712cat >>conftest.$ac_ext <<_ACEOF
25713/* end confdefs.h. */
25714
4f14bcd8 25715/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25716#ifdef __cplusplus
25717extern "C"
25718#endif
4f14bcd8 25719/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25720 builtin and then its argument prototype would still apply. */
25721char wcslen ();
25722int
25723main ()
25724{
25725wcslen ();
25726 ;
25727 return 0;
25728}
25729_ACEOF
25730rm -f conftest.$ac_objext conftest$ac_exeext
25731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25732 (eval $ac_link) 2>&5
25733 ac_status=$?
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } &&
25736 { ac_try='test -s conftest$ac_exeext'
25737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25738 (eval $ac_try) 2>&5
25739 ac_status=$?
25740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741 (exit $ac_status); }; }; then
25742 ac_cv_lib_w_wcslen=yes
25743else
25744 echo "$as_me: failed program was:" >&5
25745sed 's/^/| /' conftest.$ac_ext >&5
25746
25747ac_cv_lib_w_wcslen=no
25748fi
25749rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25750LIBS=$ac_check_lib_save_LIBS
25751fi
25752echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
25753echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
25754if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 25755
7a30264c 25756 WCHAR_LINK=" -lw"
d74f4b5a 25757 WCSLEN_FOUND=1
e6cc62c6 25758
4f14bcd8 25759fi
10f2d63a 25760
7a30264c 25761 fi
d29b553b 25762 fi
95c8801c 25763
d74f4b5a 25764 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 25765 cat >>confdefs.h <<\_ACEOF
d74f4b5a 25766#define HAVE_WCSLEN 1
e6cc62c6 25767_ACEOF
10f2d63a 25768
d74f4b5a 25769 fi
52127426 25770
e6cc62c6
VS
25771
25772for ac_func in wcsrtombs
eb4efbdc 25773do
e6cc62c6
VS
25774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25775echo "$as_me:$LINENO: checking for $ac_func" >&5
25776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25777if eval "test \"\${$as_ac_var+set}\" = set"; then
25778 echo $ECHO_N "(cached) $ECHO_C" >&6
25779else
25780 cat >conftest.$ac_ext <<_ACEOF
25781#line $LINENO "configure"
25782/* confdefs.h. */
25783_ACEOF
25784cat confdefs.h >>conftest.$ac_ext
25785cat >>conftest.$ac_ext <<_ACEOF
25786/* end confdefs.h. */
eb4efbdc 25787/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25788 which can conflict with char $ac_func (); below.
25789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25790 <limits.h> exists even on freestanding compilers. */
25791#ifdef __STDC__
25792# include <limits.h>
25793#else
25794# include <assert.h>
25795#endif
eb4efbdc 25796/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25797#ifdef __cplusplus
25798extern "C"
25799{
25800#endif
4f14bcd8 25801/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25802 builtin and then its argument prototype would still apply. */
25803char $ac_func ();
10f2d63a
VZ
25804/* The GNU C library defines this for functions which it implements
25805 to always fail with ENOSYS. Some functions are actually named
25806 something starting with __ and the normal name is an alias. */
247f5006 25807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
25808choke me
25809#else
e6cc62c6
VS
25810char (*f) () = $ac_func;
25811#endif
25812#ifdef __cplusplus
25813}
10f2d63a
VZ
25814#endif
25815
e6cc62c6
VS
25816int
25817main ()
25818{
25819return f != $ac_func;
25820 ;
25821 return 0;
25822}
25823_ACEOF
25824rm -f conftest.$ac_objext conftest$ac_exeext
25825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25826 (eval $ac_link) 2>&5
25827 ac_status=$?
25828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); } &&
25830 { ac_try='test -s conftest$ac_exeext'
25831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25833 ac_status=$?
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; }; then
25836 eval "$as_ac_var=yes"
25837else
25838 echo "$as_me: failed program was:" >&5
25839sed 's/^/| /' conftest.$ac_ext >&5
25840
25841eval "$as_ac_var=no"
25842fi
25843rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25844fi
25845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25846echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25847if test `eval echo '${'$as_ac_var'}'` = yes; then
25848 cat >>confdefs.h <<_ACEOF
25849#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25850_ACEOF
270a909e 25851
4f14bcd8 25852fi
247f5006 25853done
1e487827 25854
af15babd 25855else
e6cc62c6
VS
25856 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
25857echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 25858fi
52127426 25859
8284b0c5 25860
e6cc62c6
VS
25861
25862ac_ext=cc
247f5006 25863ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25867
af15babd 25868
247f5006
VZ
25869
25870for ac_func in vsnprintf
25871do
e6cc62c6
VS
25872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25873echo "$as_me:$LINENO: checking for $ac_func" >&5
25874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25875if eval "test \"\${$as_ac_var+set}\" = set"; then
25876 echo $ECHO_N "(cached) $ECHO_C" >&6
25877else
25878 cat >conftest.$ac_ext <<_ACEOF
25879#line $LINENO "configure"
25880/* confdefs.h. */
25881_ACEOF
25882cat confdefs.h >>conftest.$ac_ext
25883cat >>conftest.$ac_ext <<_ACEOF
25884/* end confdefs.h. */
247f5006 25885/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25886 which can conflict with char $ac_func (); below.
25887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25888 <limits.h> exists even on freestanding compilers. */
25889#ifdef __STDC__
25890# include <limits.h>
25891#else
25892# include <assert.h>
25893#endif
247f5006
VZ
25894/* Override any gcc2 internal prototype to avoid an error. */
25895#ifdef __cplusplus
25896extern "C"
e6cc62c6 25897{
247f5006
VZ
25898#endif
25899/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25900 builtin and then its argument prototype would still apply. */
25901char $ac_func ();
247f5006
VZ
25902/* The GNU C library defines this for functions which it implements
25903 to always fail with ENOSYS. Some functions are actually named
25904 something starting with __ and the normal name is an alias. */
25905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25906choke me
25907#else
e6cc62c6
VS
25908char (*f) () = $ac_func;
25909#endif
25910#ifdef __cplusplus
25911}
247f5006 25912#endif
af15babd 25913
e6cc62c6
VS
25914int
25915main ()
25916{
25917return f != $ac_func;
25918 ;
25919 return 0;
25920}
25921_ACEOF
25922rm -f conftest.$ac_objext conftest$ac_exeext
25923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25924 (eval $ac_link) 2>&5
25925 ac_status=$?
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); } &&
25928 { ac_try='test -s conftest$ac_exeext'
25929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25930 (eval $ac_try) 2>&5
25931 ac_status=$?
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); }; }; then
25934 eval "$as_ac_var=yes"
25935else
25936 echo "$as_me: failed program was:" >&5
25937sed 's/^/| /' conftest.$ac_ext >&5
25938
25939eval "$as_ac_var=no"
25940fi
25941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25942fi
25943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25944echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25945if test `eval echo '${'$as_ac_var'}'` = yes; then
25946 cat >>confdefs.h <<_ACEOF
25947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25948_ACEOF
52127426 25949
5c6fa7d2 25950fi
247f5006 25951done
8284b0c5 25952
4f14bcd8 25953
8d90d2f2 25954if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
25955 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
25956echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
25957if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
25958 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 25959else
e6cc62c6
VS
25960
25961 cat >conftest.$ac_ext <<_ACEOF
25962#line $LINENO "configure"
25963/* confdefs.h. */
25964_ACEOF
25965cat confdefs.h >>conftest.$ac_ext
25966cat >>conftest.$ac_ext <<_ACEOF
25967/* end confdefs.h. */
8d90d2f2
VZ
25968
25969 #include <stdio.h>
25970 #include <stdarg.h>
e6cc62c6
VS
25971
25972int
25973main ()
25974{
8d90d2f2
VZ
25975
25976 char *buf;
25977 va_list ap;
25978 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
25979
25980 ;
25981 return 0;
25982}
25983_ACEOF
25984rm -f conftest.$ac_objext
25985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25986 (eval $ac_compile) 2>&5
25987 ac_status=$?
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); } &&
25990 { ac_try='test -s conftest.$ac_objext'
25991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992 (eval $ac_try) 2>&5
25993 ac_status=$?
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); }; }; then
8d90d2f2
VZ
25996 wx_cv_func_vsnprintf_decl=yes
25997else
e6cc62c6
VS
25998 echo "$as_me: failed program was:" >&5
25999sed 's/^/| /' conftest.$ac_ext >&5
26000
26001wx_cv_func_vsnprintf_decl=no
26002
8d90d2f2 26003fi
e6cc62c6
VS
26004rm -f conftest.$ac_objext conftest.$ac_ext
26005
8d90d2f2 26006
e6cc62c6
VS
26007fi
26008echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26009echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26010
26011 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26012 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26013#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26014_ACEOF
8d90d2f2
VZ
26015
26016 fi
26017fi
26018
247f5006 26019if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26020
26021
26022
26023for ac_func in fputwc wprintf vswprintf
d74f4b5a 26024do
e6cc62c6
VS
26025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26026echo "$as_me:$LINENO: checking for $ac_func" >&5
26027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26028if eval "test \"\${$as_ac_var+set}\" = set"; then
26029 echo $ECHO_N "(cached) $ECHO_C" >&6
26030else
26031 cat >conftest.$ac_ext <<_ACEOF
26032#line $LINENO "configure"
26033/* confdefs.h. */
26034_ACEOF
26035cat confdefs.h >>conftest.$ac_ext
26036cat >>conftest.$ac_ext <<_ACEOF
26037/* end confdefs.h. */
d74f4b5a 26038/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26039 which can conflict with char $ac_func (); below.
26040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26041 <limits.h> exists even on freestanding compilers. */
26042#ifdef __STDC__
26043# include <limits.h>
26044#else
26045# include <assert.h>
26046#endif
d74f4b5a 26047/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26048#ifdef __cplusplus
26049extern "C"
e6cc62c6 26050{
247f5006 26051#endif
d74f4b5a 26052/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26053 builtin and then its argument prototype would still apply. */
26054char $ac_func ();
d74f4b5a
VZ
26055/* The GNU C library defines this for functions which it implements
26056 to always fail with ENOSYS. Some functions are actually named
26057 something starting with __ and the normal name is an alias. */
26058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26059choke me
26060#else
e6cc62c6
VS
26061char (*f) () = $ac_func;
26062#endif
26063#ifdef __cplusplus
26064}
d74f4b5a
VZ
26065#endif
26066
e6cc62c6
VS
26067int
26068main ()
26069{
26070return f != $ac_func;
26071 ;
26072 return 0;
26073}
26074_ACEOF
26075rm -f conftest.$ac_objext conftest$ac_exeext
26076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26077 (eval $ac_link) 2>&5
26078 ac_status=$?
26079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080 (exit $ac_status); } &&
26081 { ac_try='test -s conftest$ac_exeext'
26082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083 (eval $ac_try) 2>&5
26084 ac_status=$?
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; }; then
26087 eval "$as_ac_var=yes"
26088else
26089 echo "$as_me: failed program was:" >&5
26090sed 's/^/| /' conftest.$ac_ext >&5
26091
26092eval "$as_ac_var=no"
26093fi
26094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26095fi
26096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26097echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26098if test `eval echo '${'$as_ac_var'}'` = yes; then
26099 cat >>confdefs.h <<_ACEOF
26100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26101_ACEOF
d74f4b5a 26102
d74f4b5a
VZ
26103fi
26104done
26105
8d90d2f2 26106
e6cc62c6
VS
26107 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26108echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26109 cat >conftest.$ac_ext <<_ACEOF
26110#line $LINENO "configure"
26111/* confdefs.h. */
26112_ACEOF
26113cat confdefs.h >>conftest.$ac_ext
26114cat >>conftest.$ac_ext <<_ACEOF
26115/* end confdefs.h. */
79668cae 26116#include <wchar.h>
e6cc62c6
VS
26117int
26118main ()
26119{
79668cae 26120&_vsnwprintf;
e6cc62c6
VS
26121 ;
26122 return 0;
26123}
26124_ACEOF
26125rm -f conftest.$ac_objext
26126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26127 (eval $ac_compile) 2>&5
26128 ac_status=$?
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); } &&
26131 { ac_try='test -s conftest.$ac_objext'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26134 ac_status=$?
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; }; then
26137 echo "$as_me:$LINENO: result: yes" >&5
26138echo "${ECHO_T}yes" >&6
26139 cat >>confdefs.h <<\_ACEOF
79668cae 26140#define HAVE__VSNWPRINTF 1
e6cc62c6 26141_ACEOF
79668cae
MB
26142
26143else
e6cc62c6
VS
26144 echo "$as_me: failed program was:" >&5
26145sed 's/^/| /' conftest.$ac_ext >&5
26146
26147echo "$as_me:$LINENO: result: no" >&5
26148echo "${ECHO_T}no" >&6
79668cae 26149fi
e6cc62c6 26150rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26151fi
26152
247f5006
VZ
26153ac_ext=c
26154ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26157ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26158
26159
26160
26161
4f14bcd8 26162if test "$TOOLKIT" != "MSW"; then
af15babd 26163
8284b0c5
MB
26164
26165
e6cc62c6
VS
26166
26167ac_ext=cc
4f14bcd8 26168ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26172
52127426 26173
e6cc62c6
VS
26174
26175
26176# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26177if test "${with_libiconv_prefix+set}" = set; then
26178 withval="$with_libiconv_prefix"
e6cc62c6 26179
b040e242
VS
26180 for dir in `echo "$withval" | tr : ' '`; do
26181 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26182 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26183 done
b040e242 26184
e6cc62c6 26185fi;
b040e242 26186
e6cc62c6
VS
26187 echo "$as_me:$LINENO: checking for iconv" >&5
26188echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26189if test "${am_cv_func_iconv+set}" = set; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26191else
e6cc62c6 26192
b040e242
VS
26193 am_cv_func_iconv="no, consider installing GNU libiconv"
26194 am_cv_lib_iconv=no
e6cc62c6
VS
26195 cat >conftest.$ac_ext <<_ACEOF
26196#line $LINENO "configure"
26197/* confdefs.h. */
26198_ACEOF
26199cat confdefs.h >>conftest.$ac_ext
26200cat >>conftest.$ac_ext <<_ACEOF
26201/* end confdefs.h. */
b040e242 26202#include <stdlib.h>
4f14bcd8 26203#include <iconv.h>
e6cc62c6
VS
26204int
26205main ()
26206{
b040e242
VS
26207iconv_t cd = iconv_open("","");
26208 iconv(cd,NULL,NULL,NULL,NULL);
26209 iconv_close(cd);
e6cc62c6
VS
26210 ;
26211 return 0;
26212}
26213_ACEOF
26214rm -f conftest.$ac_objext conftest$ac_exeext
26215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26216 (eval $ac_link) 2>&5
26217 ac_status=$?
26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219 (exit $ac_status); } &&
26220 { ac_try='test -s conftest$ac_exeext'
26221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222 (eval $ac_try) 2>&5
26223 ac_status=$?
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); }; }; then
b040e242 26226 am_cv_func_iconv=yes
af15babd 26227else
e6cc62c6
VS
26228 echo "$as_me: failed program was:" >&5
26229sed 's/^/| /' conftest.$ac_ext >&5
26230
b040e242 26231fi
e6cc62c6 26232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26233 if test "$am_cv_func_iconv" != yes; then
26234 am_save_LIBS="$LIBS"
26235 LIBS="$LIBS -liconv"
e6cc62c6
VS
26236 cat >conftest.$ac_ext <<_ACEOF
26237#line $LINENO "configure"
26238/* confdefs.h. */
26239_ACEOF
26240cat confdefs.h >>conftest.$ac_ext
26241cat >>conftest.$ac_ext <<_ACEOF
26242/* end confdefs.h. */
b040e242
VS
26243#include <stdlib.h>
26244#include <iconv.h>
e6cc62c6
VS
26245int
26246main ()
26247{
b040e242
VS
26248iconv_t cd = iconv_open("","");
26249 iconv(cd,NULL,NULL,NULL,NULL);
26250 iconv_close(cd);
e6cc62c6
VS
26251 ;
26252 return 0;
26253}
26254_ACEOF
26255rm -f conftest.$ac_objext conftest$ac_exeext
26256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26257 (eval $ac_link) 2>&5
26258 ac_status=$?
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); } &&
26261 { ac_try='test -s conftest$ac_exeext'
26262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263 (eval $ac_try) 2>&5
26264 ac_status=$?
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); }; }; then
b040e242
VS
26267 am_cv_lib_iconv=yes
26268 am_cv_func_iconv=yes
26269else
e6cc62c6
VS
26270 echo "$as_me: failed program was:" >&5
26271sed 's/^/| /' conftest.$ac_ext >&5
26272
af15babd 26273fi
e6cc62c6 26274rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26275 LIBS="$am_save_LIBS"
26276 fi
247f5006 26277
e6cc62c6
VS
26278fi
26279echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26280echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26281 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26282
26283cat >>confdefs.h <<\_ACEOF
b040e242 26284#define HAVE_ICONV 1
e6cc62c6 26285_ACEOF
b040e242 26286
e6cc62c6
VS
26287 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26288echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26289if test "${wx_cv_func_iconv_const+set}" = set; then
26290 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26291else
e6cc62c6
VS
26292 cat >conftest.$ac_ext <<_ACEOF
26293#line $LINENO "configure"
26294/* confdefs.h. */
26295_ACEOF
26296cat confdefs.h >>conftest.$ac_ext
26297cat >>conftest.$ac_ext <<_ACEOF
26298/* end confdefs.h. */
b040e242
VS
26299
26300#include <stdlib.h>
26301#include <iconv.h>
26302extern
26303#ifdef __cplusplus
26304"C"
26305#endif
26306#if defined(__STDC__) || defined(__cplusplus)
26307size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26308#else
26309size_t iconv();
26310#endif
af15babd 26311
e6cc62c6
VS
26312int
26313main ()
26314{
26315
26316 ;
26317 return 0;
26318}
26319_ACEOF
26320rm -f conftest.$ac_objext
26321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26322 (eval $ac_compile) 2>&5
26323 ac_status=$?
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); } &&
26326 { ac_try='test -s conftest.$ac_objext'
26327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26328 (eval $ac_try) 2>&5
26329 ac_status=$?
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); }; }; then
b7043674 26332 wx_cv_func_iconv_const="no"
b040e242 26333else
e6cc62c6
VS
26334 echo "$as_me: failed program was:" >&5
26335sed 's/^/| /' conftest.$ac_ext >&5
26336
26337wx_cv_func_iconv_const="yes"
26338
247f5006 26339fi
e6cc62c6 26340rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26341
e6cc62c6
VS
26342fi
26343echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26344echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26345
26346 iconv_const=
1c405bb5 26347 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26348 iconv_const="const"
26349 fi
26350
e6cc62c6
VS
26351
26352cat >>confdefs.h <<_ACEOF
f09359cf 26353#define ICONV_CONST $iconv_const
e6cc62c6 26354_ACEOF
b040e242
VS
26355
26356 fi
26357 LIBICONV=
26358 if test "$am_cv_lib_iconv" = yes; then
26359 LIBICONV="-liconv"
26360 fi
e6cc62c6 26361
b040e242
VS
26362
26363LIBS="$LIBICONV $LIBS"
4f14bcd8 26364ac_ext=c
4f14bcd8 26365ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26368ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26369
5c6fa7d2 26370
8284b0c5 26371if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26372
26373for ac_func in sigaction
af15babd 26374do
e6cc62c6
VS
26375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26376echo "$as_me:$LINENO: checking for $ac_func" >&5
26377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26378if eval "test \"\${$as_ac_var+set}\" = set"; then
26379 echo $ECHO_N "(cached) $ECHO_C" >&6
26380else
26381 cat >conftest.$ac_ext <<_ACEOF
26382#line $LINENO "configure"
26383/* confdefs.h. */
26384_ACEOF
26385cat confdefs.h >>conftest.$ac_ext
26386cat >>conftest.$ac_ext <<_ACEOF
26387/* end confdefs.h. */
af15babd 26388/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26389 which can conflict with char $ac_func (); below.
26390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26391 <limits.h> exists even on freestanding compilers. */
26392#ifdef __STDC__
26393# include <limits.h>
26394#else
26395# include <assert.h>
26396#endif
af15babd 26397/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26398#ifdef __cplusplus
26399extern "C"
26400{
26401#endif
af15babd 26402/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26403 builtin and then its argument prototype would still apply. */
26404char $ac_func ();
af15babd
VZ
26405/* The GNU C library defines this for functions which it implements
26406 to always fail with ENOSYS. Some functions are actually named
26407 something starting with __ and the normal name is an alias. */
26408#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26409choke me
26410#else
e6cc62c6
VS
26411char (*f) () = $ac_func;
26412#endif
26413#ifdef __cplusplus
26414}
af15babd
VZ
26415#endif
26416
e6cc62c6
VS
26417int
26418main ()
26419{
26420return f != $ac_func;
26421 ;
26422 return 0;
26423}
26424_ACEOF
26425rm -f conftest.$ac_objext conftest$ac_exeext
26426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26427 (eval $ac_link) 2>&5
26428 ac_status=$?
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); } &&
26431 { ac_try='test -s conftest$ac_exeext'
26432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26434 ac_status=$?
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); }; }; then
26437 eval "$as_ac_var=yes"
26438else
26439 echo "$as_me: failed program was:" >&5
26440sed 's/^/| /' conftest.$ac_ext >&5
26441
26442eval "$as_ac_var=no"
26443fi
26444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26445fi
26446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26448if test `eval echo '${'$as_ac_var'}'` = yes; then
26449 cat >>confdefs.h <<_ACEOF
26450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26451_ACEOF
7b4a847f 26452
4f14bcd8
GD
26453fi
26454done
26455
8284b0c5 26456
4f14bcd8 26457 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
26458 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26459echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
26460 wxUSE_ON_FATAL_EXCEPTION=no
26461 fi
26462
26463 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
26464
26465
26466 ac_ext=cc
5c6fa7d2 26467ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 26471
5c6fa7d2 26472
e6cc62c6
VS
26473 echo "$as_me:$LINENO: checking for sa_handler type" >&5
26474echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26475if test "${wx_cv_type_sa_handler+set}" = set; then
26476 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26477else
e6cc62c6
VS
26478
26479 cat >conftest.$ac_ext <<_ACEOF
26480#line $LINENO "configure"
26481/* confdefs.h. */
26482_ACEOF
26483cat confdefs.h >>conftest.$ac_ext
26484cat >>conftest.$ac_ext <<_ACEOF
26485/* end confdefs.h. */
4f14bcd8 26486#include <signal.h>
e6cc62c6
VS
26487int
26488main ()
26489{
4f14bcd8
GD
26490
26491 extern void testSigHandler(int);
26492
26493 struct sigaction sa;
26494 sa.sa_handler = testSigHandler;
e6cc62c6
VS
26495
26496 ;
26497 return 0;
26498}
26499_ACEOF
26500rm -f conftest.$ac_objext
26501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26502 (eval $ac_compile) 2>&5
26503 ac_status=$?
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } &&
26506 { ac_try='test -s conftest.$ac_objext'
26507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26508 (eval $ac_try) 2>&5
26509 ac_status=$?
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); }; }; then
26512
4f14bcd8 26513 wx_cv_type_sa_handler=int
e6cc62c6 26514
af15babd 26515else
e6cc62c6
VS
26516 echo "$as_me: failed program was:" >&5
26517sed 's/^/| /' conftest.$ac_ext >&5
26518
26519
4f14bcd8 26520 wx_cv_type_sa_handler=void
e6cc62c6 26521
247f5006 26522fi
e6cc62c6 26523rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26524
e6cc62c6
VS
26525fi
26526echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26527echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
26528
26529 ac_ext=c
4f14bcd8 26530ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26533ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 26534
8284b0c5 26535
e6cc62c6 26536 cat >>confdefs.h <<_ACEOF
4f14bcd8 26537#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 26538_ACEOF
af15babd 26539
4f14bcd8
GD
26540 fi
26541fi
af15babd 26542
e6cc62c6
VS
26543
26544
a1d22ad7 26545for ac_func in mkstemp mktemp
af15babd 26546do
e6cc62c6
VS
26547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26548echo "$as_me:$LINENO: checking for $ac_func" >&5
26549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26550if eval "test \"\${$as_ac_var+set}\" = set"; then
26551 echo $ECHO_N "(cached) $ECHO_C" >&6
26552else
26553 cat >conftest.$ac_ext <<_ACEOF
26554#line $LINENO "configure"
26555/* confdefs.h. */
26556_ACEOF
26557cat confdefs.h >>conftest.$ac_ext
26558cat >>conftest.$ac_ext <<_ACEOF
26559/* end confdefs.h. */
af15babd 26560/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26561 which can conflict with char $ac_func (); below.
26562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26563 <limits.h> exists even on freestanding compilers. */
26564#ifdef __STDC__
26565# include <limits.h>
26566#else
26567# include <assert.h>
26568#endif
af15babd 26569/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26570#ifdef __cplusplus
26571extern "C"
26572{
26573#endif
af15babd 26574/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26575 builtin and then its argument prototype would still apply. */
26576char $ac_func ();
af15babd
VZ
26577/* The GNU C library defines this for functions which it implements
26578 to always fail with ENOSYS. Some functions are actually named
26579 something starting with __ and the normal name is an alias. */
26580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26581choke me
26582#else
e6cc62c6
VS
26583char (*f) () = $ac_func;
26584#endif
26585#ifdef __cplusplus
26586}
af15babd
VZ
26587#endif
26588
e6cc62c6
VS
26589int
26590main ()
26591{
26592return f != $ac_func;
26593 ;
26594 return 0;
26595}
26596_ACEOF
26597rm -f conftest.$ac_objext conftest$ac_exeext
26598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26599 (eval $ac_link) 2>&5
26600 ac_status=$?
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); } &&
26603 { ac_try='test -s conftest$ac_exeext'
26604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605 (eval $ac_try) 2>&5
26606 ac_status=$?
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); }; }; then
26609 eval "$as_ac_var=yes"
26610else
26611 echo "$as_me: failed program was:" >&5
26612sed 's/^/| /' conftest.$ac_ext >&5
26613
26614eval "$as_ac_var=no"
26615fi
26616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26617fi
26618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26620if test `eval echo '${'$as_ac_var'}'` = yes; then
26621 cat >>confdefs.h <<_ACEOF
26622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26623_ACEOF
ade35f11 26624 break
ade35f11
VZ
26625fi
26626done
26627
8284b0c5 26628
e6cc62c6
VS
26629echo "$as_me:$LINENO: checking for statfs" >&5
26630echo $ECHO_N "checking for statfs... $ECHO_C" >&6
26631if test "${wx_cv_func_statfs+set}" = set; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 26633else
e6cc62c6
VS
26634 cat >conftest.$ac_ext <<_ACEOF
26635#line $LINENO "configure"
26636/* confdefs.h. */
26637_ACEOF
26638cat confdefs.h >>conftest.$ac_ext
26639cat >>conftest.$ac_ext <<_ACEOF
26640/* end confdefs.h. */
4f14bcd8
GD
26641
26642 #if defined(__BSD__)
26643 #include <sys/param.h>
26644 #include <sys/mount.h>
26645 #else
26646 #include <sys/vfs.h>
26647 #endif
e6cc62c6
VS
26648
26649int
26650main ()
26651{
4f14bcd8
GD
26652
26653 long l;
26654 struct statfs fs;
26655 statfs("/", &fs);
26656 l = fs.f_bsize;
26657 l += fs.f_blocks;
26658 l += fs.f_bavail;
e6cc62c6
VS
26659
26660 ;
26661 return 0;
26662}
26663_ACEOF
26664rm -f conftest.$ac_objext
26665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26666 (eval $ac_compile) 2>&5
26667 ac_status=$?
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); } &&
26670 { ac_try='test -s conftest.$ac_objext'
26671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672 (eval $ac_try) 2>&5
26673 ac_status=$?
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); }; }; then
26676
4f14bcd8 26677 wx_cv_func_statfs=yes
e6cc62c6 26678
4f14bcd8 26679else
e6cc62c6
VS
26680 echo "$as_me: failed program was:" >&5
26681sed 's/^/| /' conftest.$ac_ext >&5
26682
26683
4f14bcd8 26684 wx_cv_func_statfs=no
e6cc62c6 26685
8284b0c5 26686
247f5006 26687fi
e6cc62c6 26688rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26689
e6cc62c6
VS
26690fi
26691echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
26692echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
26693
26694if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 26695 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 26696 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26697#define HAVE_STATFS 1
e6cc62c6 26698_ACEOF
4f14bcd8
GD
26699
26700else
e6cc62c6
VS
26701 echo "$as_me:$LINENO: checking for statvfs" >&5
26702echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
26703if test "${wx_cv_func_statvfs+set}" = set; then
26704 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26705else
e6cc62c6
VS
26706 cat >conftest.$ac_ext <<_ACEOF
26707#line $LINENO "configure"
26708/* confdefs.h. */
26709_ACEOF
26710cat confdefs.h >>conftest.$ac_ext
26711cat >>conftest.$ac_ext <<_ACEOF
26712/* end confdefs.h. */
af15babd 26713
54ab82b3
VZ
26714 #include <stddef.h>
26715 #include <sys/statvfs.h>
e6cc62c6
VS
26716
26717int
26718main ()
26719{
af15babd 26720
54ab82b3 26721 statvfs("/", NULL);
e6cc62c6
VS
26722
26723 ;
26724 return 0;
26725}
26726_ACEOF
26727rm -f conftest.$ac_objext
26728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26729 (eval $ac_compile) 2>&5
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } &&
26733 { ac_try='test -s conftest.$ac_objext'
26734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; }; then
54ab82b3 26739 wx_cv_func_statvfs=yes
af15babd 26740else
e6cc62c6
VS
26741 echo "$as_me: failed program was:" >&5
26742sed 's/^/| /' conftest.$ac_ext >&5
26743
26744wx_cv_func_statvfs=no
26745
247f5006 26746fi
e6cc62c6 26747rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26748
e6cc62c6
VS
26749fi
26750echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
26751echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 26752
4f14bcd8 26753 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
26754
26755
26756 ac_ext=cc
54ab82b3 26757ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
26761
26762
e6cc62c6
VS
26763 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
26764echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
26765if test "${wx_cv_type_statvfs_t+set}" = set; then
26766 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 26767else
e6cc62c6
VS
26768 cat >conftest.$ac_ext <<_ACEOF
26769#line $LINENO "configure"
26770/* confdefs.h. */
26771_ACEOF
26772cat confdefs.h >>conftest.$ac_ext
26773cat >>conftest.$ac_ext <<_ACEOF
26774/* end confdefs.h. */
54ab82b3
VZ
26775
26776 #include <sys/statvfs.h>
e6cc62c6
VS
26777
26778int
26779main ()
26780{
54ab82b3
VZ
26781
26782 long l;
26783 statvfs_t fs;
26784 statvfs("/", &fs);
26785 l = fs.f_bsize;
26786 l += fs.f_blocks;
26787 l += fs.f_bavail;
e6cc62c6
VS
26788
26789 ;
26790 return 0;
26791}
26792_ACEOF
26793rm -f conftest.$ac_objext
26794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26795 (eval $ac_compile) 2>&5
26796 ac_status=$?
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); } &&
26799 { ac_try='test -s conftest.$ac_objext'
26800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801 (eval $ac_try) 2>&5
26802 ac_status=$?
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; }; then
54ab82b3
VZ
26805 wx_cv_type_statvfs_t=statvfs_t
26806else
e6cc62c6
VS
26807 echo "$as_me: failed program was:" >&5
26808sed 's/^/| /' conftest.$ac_ext >&5
26809
26810
26811 cat >conftest.$ac_ext <<_ACEOF
26812#line $LINENO "configure"
26813/* confdefs.h. */
26814_ACEOF
26815cat confdefs.h >>conftest.$ac_ext
26816cat >>conftest.$ac_ext <<_ACEOF
26817/* end confdefs.h. */
54ab82b3
VZ
26818
26819 #include <sys/statvfs.h>
e6cc62c6
VS
26820
26821int
26822main ()
26823{
54ab82b3
VZ
26824
26825 long l;
65d8ef1e 26826 struct statvfs fs;
54ab82b3
VZ
26827 statvfs("/", &fs);
26828 l = fs.f_bsize;
26829 l += fs.f_blocks;
26830 l += fs.f_bavail;
e6cc62c6
VS
26831
26832 ;
26833 return 0;
26834}
26835_ACEOF
26836rm -f conftest.$ac_objext
26837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26838 (eval $ac_compile) 2>&5
26839 ac_status=$?
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); } &&
26842 { ac_try='test -s conftest.$ac_objext'
26843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26844 (eval $ac_try) 2>&5
26845 ac_status=$?
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); }; }; then
54ab82b3
VZ
26848 wx_cv_type_statvfs_t="struct statvfs"
26849else
e6cc62c6
VS
26850 echo "$as_me: failed program was:" >&5
26851sed 's/^/| /' conftest.$ac_ext >&5
26852
26853wx_cv_type_statvfs_t="unknown"
26854
54ab82b3 26855fi
e6cc62c6
VS
26856rm -f conftest.$ac_objext conftest.$ac_ext
26857
26858
54ab82b3 26859fi
e6cc62c6 26860rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 26861
e6cc62c6
VS
26862fi
26863echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
26864echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
26865
26866 ac_ext=c
54ab82b3 26867ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26870ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
26871
26872
26873 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 26874 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26875#define HAVE_STATVFS 1
e6cc62c6 26876_ACEOF
af15babd 26877
54ab82b3 26878 fi
4f14bcd8 26879 else
54ab82b3 26880 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
26881 fi
26882fi
af15babd 26883
54ab82b3 26884if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 26885 cat >>confdefs.h <<_ACEOF
54ab82b3 26886#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 26887_ACEOF
54ab82b3
VZ
26888
26889else
e6cc62c6
VS
26890 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
26891echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
26892fi
26893
4f14bcd8 26894if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
26895
26896
26897for ac_func in fcntl flock
af15babd 26898do
e6cc62c6
VS
26899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26900echo "$as_me:$LINENO: checking for $ac_func" >&5
26901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26902if eval "test \"\${$as_ac_var+set}\" = set"; then
26903 echo $ECHO_N "(cached) $ECHO_C" >&6
26904else
26905 cat >conftest.$ac_ext <<_ACEOF
26906#line $LINENO "configure"
26907/* confdefs.h. */
26908_ACEOF
26909cat confdefs.h >>conftest.$ac_ext
26910cat >>conftest.$ac_ext <<_ACEOF
26911/* end confdefs.h. */
af15babd 26912/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26913 which can conflict with char $ac_func (); below.
26914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26915 <limits.h> exists even on freestanding compilers. */
26916#ifdef __STDC__
26917# include <limits.h>
26918#else
26919# include <assert.h>
26920#endif
af15babd 26921/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26922#ifdef __cplusplus
26923extern "C"
26924{
26925#endif
af15babd 26926/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26927 builtin and then its argument prototype would still apply. */
26928char $ac_func ();
af15babd
VZ
26929/* The GNU C library defines this for functions which it implements
26930 to always fail with ENOSYS. Some functions are actually named
26931 something starting with __ and the normal name is an alias. */
26932#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26933choke me
26934#else
e6cc62c6
VS
26935char (*f) () = $ac_func;
26936#endif
26937#ifdef __cplusplus
26938}
af15babd
VZ
26939#endif
26940
e6cc62c6
VS
26941int
26942main ()
26943{
26944return f != $ac_func;
26945 ;
26946 return 0;
26947}
26948_ACEOF
26949rm -f conftest.$ac_objext conftest$ac_exeext
26950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26951 (eval $ac_link) 2>&5
26952 ac_status=$?
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } &&
26955 { ac_try='test -s conftest$ac_exeext'
26956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957 (eval $ac_try) 2>&5
26958 ac_status=$?
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; }; then
26961 eval "$as_ac_var=yes"
26962else
26963 echo "$as_me: failed program was:" >&5
26964sed 's/^/| /' conftest.$ac_ext >&5
26965
26966eval "$as_ac_var=no"
26967fi
26968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26969fi
26970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26971echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26972if test `eval echo '${'$as_ac_var'}'` = yes; then
26973 cat >>confdefs.h <<_ACEOF
26974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26975_ACEOF
4f14bcd8 26976 break
af15babd
VZ
26977fi
26978done
26979
8284b0c5 26980
4f14bcd8 26981 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
26982 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
26983echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
26984 wxUSE_SNGLINST_CHECKER=no
26985 fi
26986fi
af15babd 26987
e6cc62c6 26988
4f14bcd8 26989for ac_func in timegm
af15babd 26990do
e6cc62c6
VS
26991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26992echo "$as_me:$LINENO: checking for $ac_func" >&5
26993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26994if eval "test \"\${$as_ac_var+set}\" = set"; then
26995 echo $ECHO_N "(cached) $ECHO_C" >&6
26996else
26997 cat >conftest.$ac_ext <<_ACEOF
26998#line $LINENO "configure"
26999/* confdefs.h. */
27000_ACEOF
27001cat confdefs.h >>conftest.$ac_ext
27002cat >>conftest.$ac_ext <<_ACEOF
27003/* end confdefs.h. */
af15babd 27004/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27005 which can conflict with char $ac_func (); below.
27006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27007 <limits.h> exists even on freestanding compilers. */
27008#ifdef __STDC__
27009# include <limits.h>
27010#else
27011# include <assert.h>
27012#endif
af15babd 27013/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27014#ifdef __cplusplus
27015extern "C"
27016{
27017#endif
af15babd 27018/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27019 builtin and then its argument prototype would still apply. */
27020char $ac_func ();
af15babd
VZ
27021/* The GNU C library defines this for functions which it implements
27022 to always fail with ENOSYS. Some functions are actually named
27023 something starting with __ and the normal name is an alias. */
247f5006
VZ
27024#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27025choke me
27026#else
e6cc62c6
VS
27027char (*f) () = $ac_func;
27028#endif
27029#ifdef __cplusplus
27030}
247f5006
VZ
27031#endif
27032
e6cc62c6
VS
27033int
27034main ()
27035{
27036return f != $ac_func;
27037 ;
27038 return 0;
27039}
27040_ACEOF
27041rm -f conftest.$ac_objext conftest$ac_exeext
27042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27043 (eval $ac_link) 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); } &&
27047 { ac_try='test -s conftest$ac_exeext'
27048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049 (eval $ac_try) 2>&5
27050 ac_status=$?
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); }; }; then
27053 eval "$as_ac_var=yes"
27054else
27055 echo "$as_me: failed program was:" >&5
27056sed 's/^/| /' conftest.$ac_ext >&5
27057
27058eval "$as_ac_var=no"
27059fi
27060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27061fi
27062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27064if test `eval echo '${'$as_ac_var'}'` = yes; then
27065 cat >>confdefs.h <<_ACEOF
27066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27067_ACEOF
703e0a69 27068
af15babd
VZ
27069fi
27070done
27071
8284b0c5 27072
e6cc62c6
VS
27073
27074
4f14bcd8 27075for ac_func in putenv setenv
10f2d63a 27076do
e6cc62c6
VS
27077as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27078echo "$as_me:$LINENO: checking for $ac_func" >&5
27079echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27080if eval "test \"\${$as_ac_var+set}\" = set"; then
27081 echo $ECHO_N "(cached) $ECHO_C" >&6
27082else
27083 cat >conftest.$ac_ext <<_ACEOF
27084#line $LINENO "configure"
27085/* confdefs.h. */
27086_ACEOF
27087cat confdefs.h >>conftest.$ac_ext
27088cat >>conftest.$ac_ext <<_ACEOF
27089/* end confdefs.h. */
af15babd 27090/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27091 which can conflict with char $ac_func (); below.
27092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27093 <limits.h> exists even on freestanding compilers. */
27094#ifdef __STDC__
27095# include <limits.h>
27096#else
27097# include <assert.h>
27098#endif
af15babd 27099/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27100#ifdef __cplusplus
27101extern "C"
27102{
27103#endif
af15babd 27104/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27105 builtin and then its argument prototype would still apply. */
27106char $ac_func ();
af15babd
VZ
27107/* The GNU C library defines this for functions which it implements
27108 to always fail with ENOSYS. Some functions are actually named
27109 something starting with __ and the normal name is an alias. */
27110#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27111choke me
27112#else
e6cc62c6
VS
27113char (*f) () = $ac_func;
27114#endif
27115#ifdef __cplusplus
27116}
af15babd
VZ
27117#endif
27118
e6cc62c6
VS
27119int
27120main ()
27121{
27122return f != $ac_func;
27123 ;
27124 return 0;
27125}
27126_ACEOF
27127rm -f conftest.$ac_objext conftest$ac_exeext
27128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27129 (eval $ac_link) 2>&5
27130 ac_status=$?
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); } &&
27133 { ac_try='test -s conftest$ac_exeext'
27134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27135 (eval $ac_try) 2>&5
27136 ac_status=$?
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); }; }; then
27139 eval "$as_ac_var=yes"
27140else
27141 echo "$as_me: failed program was:" >&5
27142sed 's/^/| /' conftest.$ac_ext >&5
27143
27144eval "$as_ac_var=no"
27145fi
27146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27147fi
27148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27149echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27150if test `eval echo '${'$as_ac_var'}'` = yes; then
27151 cat >>confdefs.h <<_ACEOF
27152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27153_ACEOF
4f14bcd8 27154 break
af15babd 27155fi
af15babd
VZ
27156done
27157
8284b0c5 27158
4f14bcd8
GD
27159HAVE_SOME_SLEEP_FUNC=0
27160if test "$USE_BEOS" = 1; then
e6cc62c6 27161 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27162#define HAVE_SLEEP 1
e6cc62c6 27163_ACEOF
af15babd 27164
4f14bcd8 27165 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27166fi
27167
4f14bcd8 27168if test "$USE_DARWIN" = 1; then
e6cc62c6 27169 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27170#define HAVE_USLEEP 1
e6cc62c6 27171_ACEOF
10f2d63a 27172
4f14bcd8 27173 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27174fi
27175
4f14bcd8
GD
27176if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27177 POSIX4_LINK=
e6cc62c6
VS
27178
27179for ac_func in nanosleep
4f14bcd8 27180do
e6cc62c6
VS
27181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27182echo "$as_me:$LINENO: checking for $ac_func" >&5
27183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27184if eval "test \"\${$as_ac_var+set}\" = set"; then
27185 echo $ECHO_N "(cached) $ECHO_C" >&6
27186else
27187 cat >conftest.$ac_ext <<_ACEOF
27188#line $LINENO "configure"
27189/* confdefs.h. */
27190_ACEOF
27191cat confdefs.h >>conftest.$ac_ext
27192cat >>conftest.$ac_ext <<_ACEOF
27193/* end confdefs.h. */
4f14bcd8 27194/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27195 which can conflict with char $ac_func (); below.
27196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27197 <limits.h> exists even on freestanding compilers. */
27198#ifdef __STDC__
27199# include <limits.h>
27200#else
27201# include <assert.h>
27202#endif
10f2d63a 27203/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27204#ifdef __cplusplus
27205extern "C"
27206{
27207#endif
10f2d63a 27208/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27209 builtin and then its argument prototype would still apply. */
27210char $ac_func ();
4f14bcd8
GD
27211/* The GNU C library defines this for functions which it implements
27212 to always fail with ENOSYS. Some functions are actually named
27213 something starting with __ and the normal name is an alias. */
27214#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27215choke me
27216#else
e6cc62c6
VS
27217char (*f) () = $ac_func;
27218#endif
27219#ifdef __cplusplus
27220}
4f14bcd8
GD
27221#endif
27222
e6cc62c6
VS
27223int
27224main ()
27225{
27226return f != $ac_func;
27227 ;
27228 return 0;
27229}
27230_ACEOF
27231rm -f conftest.$ac_objext conftest$ac_exeext
27232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27233 (eval $ac_link) 2>&5
27234 ac_status=$?
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); } &&
27237 { ac_try='test -s conftest$ac_exeext'
27238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239 (eval $ac_try) 2>&5
27240 ac_status=$?
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); }; }; then
27243 eval "$as_ac_var=yes"
27244else
27245 echo "$as_me: failed program was:" >&5
27246sed 's/^/| /' conftest.$ac_ext >&5
27247
27248eval "$as_ac_var=no"
27249fi
27250rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27251fi
27252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27253echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27254if test `eval echo '${'$as_ac_var'}'` = yes; then
27255 cat >>confdefs.h <<_ACEOF
27256#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27257_ACEOF
27258 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27259#define HAVE_NANOSLEEP 1
e6cc62c6 27260_ACEOF
4f14bcd8 27261
10f2d63a 27262else
e6cc62c6
VS
27263
27264 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27265echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27266if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27267 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27268else
e6cc62c6 27269 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27270LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27271cat >conftest.$ac_ext <<_ACEOF
27272#line $LINENO "configure"
27273/* confdefs.h. */
27274_ACEOF
27275cat confdefs.h >>conftest.$ac_ext
27276cat >>conftest.$ac_ext <<_ACEOF
27277/* end confdefs.h. */
27278
10f2d63a 27279/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27280#ifdef __cplusplus
27281extern "C"
27282#endif
10f2d63a 27283/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27284 builtin and then its argument prototype would still apply. */
27285char nanosleep ();
27286int
27287main ()
27288{
27289nanosleep ();
27290 ;
27291 return 0;
27292}
27293_ACEOF
27294rm -f conftest.$ac_objext conftest$ac_exeext
27295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27296 (eval $ac_link) 2>&5
27297 ac_status=$?
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } &&
27300 { ac_try='test -s conftest$ac_exeext'
27301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27302 (eval $ac_try) 2>&5
27303 ac_status=$?
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; }; then
27306 ac_cv_lib_posix4_nanosleep=yes
27307else
27308 echo "$as_me: failed program was:" >&5
27309sed 's/^/| /' conftest.$ac_ext >&5
27310
27311ac_cv_lib_posix4_nanosleep=no
27312fi
27313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27314LIBS=$ac_check_lib_save_LIBS
27315fi
27316echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27317echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27318if test $ac_cv_lib_posix4_nanosleep = yes; then
27319
27320 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27321#define HAVE_NANOSLEEP 1
e6cc62c6 27322_ACEOF
4f14bcd8 27323
3d63bc3a 27324 POSIX4_LINK=" -lposix4"
e6cc62c6 27325
10f2d63a 27326else
10f2d63a 27327
e6cc62c6
VS
27328
27329for ac_func in usleep
4f14bcd8 27330do
e6cc62c6
VS
27331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27332echo "$as_me:$LINENO: checking for $ac_func" >&5
27333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27334if eval "test \"\${$as_ac_var+set}\" = set"; then
27335 echo $ECHO_N "(cached) $ECHO_C" >&6
27336else
27337 cat >conftest.$ac_ext <<_ACEOF
27338#line $LINENO "configure"
27339/* confdefs.h. */
27340_ACEOF
27341cat confdefs.h >>conftest.$ac_ext
27342cat >>conftest.$ac_ext <<_ACEOF
27343/* end confdefs.h. */
4f14bcd8 27344/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27345 which can conflict with char $ac_func (); below.
27346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27347 <limits.h> exists even on freestanding compilers. */
27348#ifdef __STDC__
27349# include <limits.h>
27350#else
27351# include <assert.h>
27352#endif
4f14bcd8 27353/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27354#ifdef __cplusplus
27355extern "C"
27356{
27357#endif
4f14bcd8 27358/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27359 builtin and then its argument prototype would still apply. */
27360char $ac_func ();
4f14bcd8
GD
27361/* The GNU C library defines this for functions which it implements
27362 to always fail with ENOSYS. Some functions are actually named
27363 something starting with __ and the normal name is an alias. */
27364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27365choke me
27366#else
e6cc62c6
VS
27367char (*f) () = $ac_func;
27368#endif
27369#ifdef __cplusplus
27370}
4f14bcd8
GD
27371#endif
27372
e6cc62c6
VS
27373int
27374main ()
27375{
27376return f != $ac_func;
27377 ;
27378 return 0;
27379}
27380_ACEOF
27381rm -f conftest.$ac_objext conftest$ac_exeext
27382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27383 (eval $ac_link) 2>&5
27384 ac_status=$?
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); } &&
27387 { ac_try='test -s conftest$ac_exeext'
27388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27389 (eval $ac_try) 2>&5
27390 ac_status=$?
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; }; then
27393 eval "$as_ac_var=yes"
27394else
27395 echo "$as_me: failed program was:" >&5
27396sed 's/^/| /' conftest.$ac_ext >&5
27397
27398eval "$as_ac_var=no"
27399fi
27400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27401fi
27402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27403echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27404if test `eval echo '${'$as_ac_var'}'` = yes; then
27405 cat >>confdefs.h <<_ACEOF
27406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27407_ACEOF
27408 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27409#define HAVE_USLEEP 1
e6cc62c6 27410_ACEOF
4f14bcd8 27411
698dcdb6 27412else
e6cc62c6
VS
27413 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27414echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27415
10f2d63a 27416fi
4f14bcd8 27417done
10f2d63a 27418
e6cc62c6
VS
27419
27420
6232543b 27421fi
10f2d63a 27422
e6cc62c6
VS
27423
27424
1e487827 27425fi
4f14bcd8 27426done
703e0a69 27427
10f2d63a
VZ
27428fi
27429
e6cc62c6
VS
27430
27431
4f14bcd8 27432for ac_func in uname gethostname
70846f0a 27433do
e6cc62c6
VS
27434as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27435echo "$as_me:$LINENO: checking for $ac_func" >&5
27436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27437if eval "test \"\${$as_ac_var+set}\" = set"; then
27438 echo $ECHO_N "(cached) $ECHO_C" >&6
27439else
27440 cat >conftest.$ac_ext <<_ACEOF
27441#line $LINENO "configure"
27442/* confdefs.h. */
27443_ACEOF
27444cat confdefs.h >>conftest.$ac_ext
27445cat >>conftest.$ac_ext <<_ACEOF
27446/* end confdefs.h. */
70846f0a 27447/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27448 which can conflict with char $ac_func (); below.
27449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27450 <limits.h> exists even on freestanding compilers. */
27451#ifdef __STDC__
27452# include <limits.h>
27453#else
27454# include <assert.h>
27455#endif
70846f0a 27456/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27457#ifdef __cplusplus
27458extern "C"
27459{
27460#endif
70846f0a 27461/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27462 builtin and then its argument prototype would still apply. */
27463char $ac_func ();
70846f0a
VZ
27464/* The GNU C library defines this for functions which it implements
27465 to always fail with ENOSYS. Some functions are actually named
27466 something starting with __ and the normal name is an alias. */
27467#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27468choke me
27469#else
e6cc62c6
VS
27470char (*f) () = $ac_func;
27471#endif
27472#ifdef __cplusplus
27473}
70846f0a
VZ
27474#endif
27475
e6cc62c6
VS
27476int
27477main ()
27478{
27479return f != $ac_func;
27480 ;
27481 return 0;
27482}
27483_ACEOF
27484rm -f conftest.$ac_objext conftest$ac_exeext
27485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27486 (eval $ac_link) 2>&5
27487 ac_status=$?
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); } &&
27490 { ac_try='test -s conftest$ac_exeext'
27491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27492 (eval $ac_try) 2>&5
27493 ac_status=$?
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); }; }; then
27496 eval "$as_ac_var=yes"
27497else
27498 echo "$as_me: failed program was:" >&5
27499sed 's/^/| /' conftest.$ac_ext >&5
27500
27501eval "$as_ac_var=no"
27502fi
27503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27504fi
27505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27506echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27507if test `eval echo '${'$as_ac_var'}'` = yes; then
27508 cat >>confdefs.h <<_ACEOF
27509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27510_ACEOF
4f14bcd8 27511 break
70846f0a
VZ
27512fi
27513done
27514
8284b0c5
MB
27515
27516
e6cc62c6
VS
27517
27518ac_ext=cc
4f14bcd8 27519ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27523
8284b0c5 27524
4f14bcd8
GD
27525
27526for ac_func in strtok_r
10f2d63a 27527do
e6cc62c6
VS
27528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27529echo "$as_me:$LINENO: checking for $ac_func" >&5
27530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27531if eval "test \"\${$as_ac_var+set}\" = set"; then
27532 echo $ECHO_N "(cached) $ECHO_C" >&6
27533else
27534 cat >conftest.$ac_ext <<_ACEOF
27535#line $LINENO "configure"
27536/* confdefs.h. */
27537_ACEOF
27538cat confdefs.h >>conftest.$ac_ext
27539cat >>conftest.$ac_ext <<_ACEOF
27540/* end confdefs.h. */
4f14bcd8 27541/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27542 which can conflict with char $ac_func (); below.
27543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27544 <limits.h> exists even on freestanding compilers. */
27545#ifdef __STDC__
27546# include <limits.h>
27547#else
27548# include <assert.h>
27549#endif
4f14bcd8
GD
27550/* Override any gcc2 internal prototype to avoid an error. */
27551#ifdef __cplusplus
27552extern "C"
e6cc62c6 27553{
4f14bcd8
GD
27554#endif
27555/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27556 builtin and then its argument prototype would still apply. */
27557char $ac_func ();
4f14bcd8
GD
27558/* The GNU C library defines this for functions which it implements
27559 to always fail with ENOSYS. Some functions are actually named
27560 something starting with __ and the normal name is an alias. */
27561#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27562choke me
27563#else
e6cc62c6
VS
27564char (*f) () = $ac_func;
27565#endif
27566#ifdef __cplusplus
27567}
4f14bcd8
GD
27568#endif
27569
e6cc62c6
VS
27570int
27571main ()
27572{
27573return f != $ac_func;
27574 ;
27575 return 0;
27576}
27577_ACEOF
27578rm -f conftest.$ac_objext conftest$ac_exeext
27579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27580 (eval $ac_link) 2>&5
27581 ac_status=$?
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); } &&
27584 { ac_try='test -s conftest$ac_exeext'
27585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586 (eval $ac_try) 2>&5
27587 ac_status=$?
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; }; then
27590 eval "$as_ac_var=yes"
27591else
27592 echo "$as_me: failed program was:" >&5
27593sed 's/^/| /' conftest.$ac_ext >&5
27594
27595eval "$as_ac_var=no"
27596fi
27597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27598fi
27599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27600echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27601if test `eval echo '${'$as_ac_var'}'` = yes; then
27602 cat >>confdefs.h <<_ACEOF
27603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27604_ACEOF
4f14bcd8 27605
10f2d63a
VZ
27606fi
27607done
27608
8284b0c5 27609
4f14bcd8 27610ac_ext=c
4f14bcd8 27611ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27614ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27615
5c6fa7d2 27616
8284b0c5 27617INET_LINK=
e6cc62c6 27618
4f14bcd8
GD
27619for ac_func in inet_addr
27620do
e6cc62c6
VS
27621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27622echo "$as_me:$LINENO: checking for $ac_func" >&5
27623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27624if eval "test \"\${$as_ac_var+set}\" = set"; then
27625 echo $ECHO_N "(cached) $ECHO_C" >&6
27626else
27627 cat >conftest.$ac_ext <<_ACEOF
27628#line $LINENO "configure"
27629/* confdefs.h. */
27630_ACEOF
27631cat confdefs.h >>conftest.$ac_ext
27632cat >>conftest.$ac_ext <<_ACEOF
27633/* end confdefs.h. */
4f14bcd8 27634/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27635 which can conflict with char $ac_func (); below.
27636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27637 <limits.h> exists even on freestanding compilers. */
27638#ifdef __STDC__
27639# include <limits.h>
27640#else
27641# include <assert.h>
27642#endif
10f2d63a 27643/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27644#ifdef __cplusplus
27645extern "C"
27646{
27647#endif
10f2d63a 27648/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27649 builtin and then its argument prototype would still apply. */
27650char $ac_func ();
4f14bcd8
GD
27651/* The GNU C library defines this for functions which it implements
27652 to always fail with ENOSYS. Some functions are actually named
27653 something starting with __ and the normal name is an alias. */
27654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27655choke me
27656#else
e6cc62c6
VS
27657char (*f) () = $ac_func;
27658#endif
27659#ifdef __cplusplus
27660}
4f14bcd8
GD
27661#endif
27662
e6cc62c6
VS
27663int
27664main ()
27665{
27666return f != $ac_func;
27667 ;
27668 return 0;
27669}
27670_ACEOF
27671rm -f conftest.$ac_objext conftest$ac_exeext
27672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27673 (eval $ac_link) 2>&5
27674 ac_status=$?
27675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676 (exit $ac_status); } &&
27677 { ac_try='test -s conftest$ac_exeext'
27678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27679 (eval $ac_try) 2>&5
27680 ac_status=$?
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); }; }; then
27683 eval "$as_ac_var=yes"
27684else
27685 echo "$as_me: failed program was:" >&5
27686sed 's/^/| /' conftest.$ac_ext >&5
27687
27688eval "$as_ac_var=no"
27689fi
27690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27691fi
27692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27693echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27694if test `eval echo '${'$as_ac_var'}'` = yes; then
27695 cat >>confdefs.h <<_ACEOF
27696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27697_ACEOF
27698 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27699#define HAVE_INET_ADDR 1
e6cc62c6 27700_ACEOF
10f2d63a
VZ
27701
27702else
e6cc62c6
VS
27703
27704 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
27705echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
27706if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
27707 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27708else
e6cc62c6 27709 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27710LIBS="-lnsl $LIBS"
e6cc62c6
VS
27711cat >conftest.$ac_ext <<_ACEOF
27712#line $LINENO "configure"
27713/* confdefs.h. */
27714_ACEOF
27715cat confdefs.h >>conftest.$ac_ext
27716cat >>conftest.$ac_ext <<_ACEOF
27717/* end confdefs.h. */
27718
10f2d63a 27719/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27720#ifdef __cplusplus
27721extern "C"
27722#endif
10f2d63a 27723/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27724 builtin and then its argument prototype would still apply. */
27725char inet_addr ();
27726int
27727main ()
27728{
27729inet_addr ();
27730 ;
27731 return 0;
27732}
27733_ACEOF
27734rm -f conftest.$ac_objext conftest$ac_exeext
27735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27736 (eval $ac_link) 2>&5
27737 ac_status=$?
27738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739 (exit $ac_status); } &&
27740 { ac_try='test -s conftest$ac_exeext'
27741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27742 (eval $ac_try) 2>&5
27743 ac_status=$?
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); }; }; then
27746 ac_cv_lib_nsl_inet_addr=yes
27747else
27748 echo "$as_me: failed program was:" >&5
27749sed 's/^/| /' conftest.$ac_ext >&5
27750
27751ac_cv_lib_nsl_inet_addr=no
27752fi
27753rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27754LIBS=$ac_check_lib_save_LIBS
27755fi
27756echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
27757echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
27758if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 27759 INET_LINK="nsl"
10f2d63a 27760else
e6cc62c6
VS
27761 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
27762echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
27763if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
27764 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27765else
e6cc62c6 27766 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27767LIBS="-lresolv $LIBS"
e6cc62c6
VS
27768cat >conftest.$ac_ext <<_ACEOF
27769#line $LINENO "configure"
27770/* confdefs.h. */
27771_ACEOF
27772cat confdefs.h >>conftest.$ac_ext
27773cat >>conftest.$ac_ext <<_ACEOF
27774/* end confdefs.h. */
27775
5c6fa7d2 27776/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27777#ifdef __cplusplus
27778extern "C"
27779#endif
5c6fa7d2 27780/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27781 builtin and then its argument prototype would still apply. */
27782char inet_addr ();
27783int
27784main ()
27785{
27786inet_addr ();
27787 ;
27788 return 0;
27789}
27790_ACEOF
27791rm -f conftest.$ac_objext conftest$ac_exeext
27792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27793 (eval $ac_link) 2>&5
27794 ac_status=$?
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); } &&
27797 { ac_try='test -s conftest$ac_exeext'
27798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27799 (eval $ac_try) 2>&5
27800 ac_status=$?
27801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); }; }; then
27803 ac_cv_lib_resolv_inet_addr=yes
27804else
27805 echo "$as_me: failed program was:" >&5
27806sed 's/^/| /' conftest.$ac_ext >&5
27807
27808ac_cv_lib_resolv_inet_addr=no
27809fi
27810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27811LIBS=$ac_check_lib_save_LIBS
27812fi
27813echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
27814echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
27815if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 27816 INET_LINK="resolv"
698dcdb6 27817else
e6cc62c6
VS
27818 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
27819echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
27820if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
27821 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 27822else
e6cc62c6 27823 ac_check_lib_save_LIBS=$LIBS
3c011993 27824LIBS="-lsocket $LIBS"
e6cc62c6
VS
27825cat >conftest.$ac_ext <<_ACEOF
27826#line $LINENO "configure"
27827/* confdefs.h. */
27828_ACEOF
27829cat confdefs.h >>conftest.$ac_ext
27830cat >>conftest.$ac_ext <<_ACEOF
27831/* end confdefs.h. */
27832
3c011993 27833/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27834#ifdef __cplusplus
27835extern "C"
27836#endif
3c011993 27837/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27838 builtin and then its argument prototype would still apply. */
27839char inet_addr ();
27840int
27841main ()
27842{
27843inet_addr ();
27844 ;
27845 return 0;
27846}
27847_ACEOF
27848rm -f conftest.$ac_objext conftest$ac_exeext
27849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27850 (eval $ac_link) 2>&5
27851 ac_status=$?
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } &&
27854 { ac_try='test -s conftest$ac_exeext'
27855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856 (eval $ac_try) 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; }; then
27860 ac_cv_lib_socket_inet_addr=yes
27861else
27862 echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
27865ac_cv_lib_socket_inet_addr=no
27866fi
27867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27868LIBS=$ac_check_lib_save_LIBS
27869fi
27870echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
27871echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
27872if test $ac_cv_lib_socket_inet_addr = yes; then
27873 INET_LINK="socket"
4f14bcd8 27874
8284b0c5 27875fi
e6cc62c6 27876
698dcdb6 27877
7b4a847f 27878fi
e6cc62c6
VS
27879
27880
a0b9e27f 27881fi
579d8138 27882
e6cc62c6
VS
27883
27884
5c6fa7d2 27885fi
e6cc62c6
VS
27886done
27887
27888
27889
27890for ac_func in inet_aton
27891do
27892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27893echo "$as_me:$LINENO: checking for $ac_func" >&5
27894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27895if eval "test \"\${$as_ac_var+set}\" = set"; then
27896 echo $ECHO_N "(cached) $ECHO_C" >&6
27897else
27898 cat >conftest.$ac_ext <<_ACEOF
27899#line $LINENO "configure"
27900/* confdefs.h. */
27901_ACEOF
27902cat confdefs.h >>conftest.$ac_ext
27903cat >>conftest.$ac_ext <<_ACEOF
27904/* end confdefs.h. */
27905/* System header to define __stub macros and hopefully few prototypes,
27906 which can conflict with char $ac_func (); below.
27907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27908 <limits.h> exists even on freestanding compilers. */
27909#ifdef __STDC__
27910# include <limits.h>
27911#else
27912# include <assert.h>
27913#endif
27914/* Override any gcc2 internal prototype to avoid an error. */
27915#ifdef __cplusplus
27916extern "C"
27917{
27918#endif
27919/* We use char because int might match the return type of a gcc2
27920 builtin and then its argument prototype would still apply. */
27921char $ac_func ();
27922/* The GNU C library defines this for functions which it implements
27923 to always fail with ENOSYS. Some functions are actually named
27924 something starting with __ and the normal name is an alias. */
27925#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27926choke me
27927#else
27928char (*f) () = $ac_func;
27929#endif
27930#ifdef __cplusplus
27931}
27932#endif
27933
27934int
27935main ()
27936{
27937return f != $ac_func;
27938 ;
27939 return 0;
27940}
27941_ACEOF
27942rm -f conftest.$ac_objext conftest$ac_exeext
27943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27944 (eval $ac_link) 2>&5
27945 ac_status=$?
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); } &&
27948 { ac_try='test -s conftest$ac_exeext'
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27951 ac_status=$?
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
27954 eval "$as_ac_var=yes"
27955else
27956 echo "$as_me: failed program was:" >&5
27957sed 's/^/| /' conftest.$ac_ext >&5
27958
27959eval "$as_ac_var=no"
27960fi
27961rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27962fi
27963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27965if test `eval echo '${'$as_ac_var'}'` = yes; then
27966 cat >>confdefs.h <<_ACEOF
27967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27968_ACEOF
27969 cat >>confdefs.h <<\_ACEOF
27970#define HAVE_INET_ATON 1
27971_ACEOF
27972
27973else
27974
27975 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
27976echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
27977echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
27978if eval "test \"\${$as_ac_Lib+set}\" = set"; then
27979 echo $ECHO_N "(cached) $ECHO_C" >&6
27980else
27981 ac_check_lib_save_LIBS=$LIBS
27982LIBS="-l$INET_LINK $LIBS"
27983cat >conftest.$ac_ext <<_ACEOF
27984#line $LINENO "configure"
27985/* confdefs.h. */
27986_ACEOF
27987cat confdefs.h >>conftest.$ac_ext
27988cat >>conftest.$ac_ext <<_ACEOF
27989/* end confdefs.h. */
27990
27991/* Override any gcc2 internal prototype to avoid an error. */
27992#ifdef __cplusplus
27993extern "C"
27994#endif
27995/* We use char because int might match the return type of a gcc2
27996 builtin and then its argument prototype would still apply. */
27997char inet_aton ();
27998int
27999main ()
28000{
28001inet_aton ();
28002 ;
28003 return 0;
28004}
28005_ACEOF
28006rm -f conftest.$ac_objext conftest$ac_exeext
28007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28008 (eval $ac_link) 2>&5
28009 ac_status=$?
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } &&
28012 { ac_try='test -s conftest$ac_exeext'
28013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014 (eval $ac_try) 2>&5
28015 ac_status=$?
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); }; }; then
28018 eval "$as_ac_Lib=yes"
28019else
28020 echo "$as_me: failed program was:" >&5
28021sed 's/^/| /' conftest.$ac_ext >&5
28022
28023eval "$as_ac_Lib=no"
28024fi
28025rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28026LIBS=$ac_check_lib_save_LIBS
28027fi
28028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28029echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28030if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28031 cat >>confdefs.h <<\_ACEOF
28032#define HAVE_INET_ATON 1
28033_ACEOF
52127426 28034
a0b9e27f 28035fi
247f5006 28036
8284b0c5 28037
698dcdb6 28038fi
4f14bcd8
GD
28039done
28040
8284b0c5 28041
e6cc62c6
VS
28042if test "x$INET_LINK" != "x"; then
28043 cat >>confdefs.h <<\_ACEOF
28044#define HAVE_INET_ADDR 1
28045_ACEOF
28046
28047 INET_LINK=" -l$INET_LINK"
28048fi
28049
28050fi
a0b9e27f 28051
a0b9e27f 28052
4f14bcd8 28053
e6cc62c6
VS
28054ESD_LINK=
28055if test "${ac_cv_header_esd_h+set}" = set; then
28056 echo "$as_me:$LINENO: checking for esd.h" >&5
28057echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28058if test "${ac_cv_header_esd_h+set}" = set; then
28059 echo $ECHO_N "(cached) $ECHO_C" >&6
28060fi
28061echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28062echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28063else
28064 # Is the header compilable?
28065echo "$as_me:$LINENO: checking esd.h usability" >&5
28066echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6
28067cat >conftest.$ac_ext <<_ACEOF
28068#line $LINENO "configure"
28069/* confdefs.h. */
28070_ACEOF
28071cat confdefs.h >>conftest.$ac_ext
28072cat >>conftest.$ac_ext <<_ACEOF
28073/* end confdefs.h. */
28074$ac_includes_default
28075#include <esd.h>
28076_ACEOF
28077rm -f conftest.$ac_objext
28078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28079 (eval $ac_compile) 2>&5
28080 ac_status=$?
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); } &&
28083 { ac_try='test -s conftest.$ac_objext'
28084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28085 (eval $ac_try) 2>&5
28086 ac_status=$?
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }; }; then
28089 ac_header_compiler=yes
28090else
28091 echo "$as_me: failed program was:" >&5
28092sed 's/^/| /' conftest.$ac_ext >&5
28093
28094ac_header_compiler=no
28095fi
28096rm -f conftest.$ac_objext conftest.$ac_ext
28097echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28098echo "${ECHO_T}$ac_header_compiler" >&6
28099
28100# Is the header present?
28101echo "$as_me:$LINENO: checking esd.h presence" >&5
28102echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6
28103cat >conftest.$ac_ext <<_ACEOF
28104#line $LINENO "configure"
28105/* confdefs.h. */
28106_ACEOF
28107cat confdefs.h >>conftest.$ac_ext
28108cat >>conftest.$ac_ext <<_ACEOF
28109/* end confdefs.h. */
28110#include <esd.h>
28111_ACEOF
28112if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28114 ac_status=$?
28115 grep -v '^ *+' conftest.er1 >conftest.err
28116 rm -f conftest.er1
28117 cat conftest.err >&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); } >/dev/null; then
28120 if test -s conftest.err; then
28121 ac_cpp_err=$ac_c_preproc_warn_flag
28122 else
28123 ac_cpp_err=
28124 fi
a0b9e27f 28125else
e6cc62c6
VS
28126 ac_cpp_err=yes
28127fi
28128if test -z "$ac_cpp_err"; then
28129 ac_header_preproc=yes
28130else
28131 echo "$as_me: failed program was:" >&5
28132sed 's/^/| /' conftest.$ac_ext >&5
28133
28134 ac_header_preproc=no
28135fi
28136rm -f conftest.err conftest.$ac_ext
28137echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28138echo "${ECHO_T}$ac_header_preproc" >&6
28139
28140# So? What about this header?
28141case $ac_header_compiler:$ac_header_preproc in
28142 yes:no )
28143 { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5
28144echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28145 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28146echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28147 (
28148 cat <<\_ASBOX
28149## ------------------------------------ ##
28150## Report this to bug-autoconf@gnu.org. ##
28151## ------------------------------------ ##
28152_ASBOX
28153 ) |
28154 sed "s/^/$as_me: WARNING: /" >&2
28155 ;;
28156 no:yes )
28157 { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5
28158echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;}
28159 { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5
28160echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;}
28161 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28162echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28163 (
28164 cat <<\_ASBOX
28165## ------------------------------------ ##
28166## Report this to bug-autoconf@gnu.org. ##
28167## ------------------------------------ ##
28168_ASBOX
28169 ) |
28170 sed "s/^/$as_me: WARNING: /" >&2
28171 ;;
28172esac
28173echo "$as_me:$LINENO: checking for esd.h" >&5
28174echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28175if test "${ac_cv_header_esd_h+set}" = set; then
28176 echo $ECHO_N "(cached) $ECHO_C" >&6
28177else
28178 ac_cv_header_esd_h=$ac_header_preproc
a0b9e27f 28179fi
e6cc62c6
VS
28180echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28181echo "${ECHO_T}$ac_cv_header_esd_h" >&6
a0b9e27f 28182
e6cc62c6
VS
28183fi
28184if test $ac_cv_header_esd_h = yes; then
4f14bcd8 28185
e6cc62c6
VS
28186 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28187echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28188if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28189 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28190else
e6cc62c6
VS
28191 ac_check_lib_save_LIBS=$LIBS
28192LIBS="-lesd $LIBS"
28193cat >conftest.$ac_ext <<_ACEOF
28194#line $LINENO "configure"
28195/* confdefs.h. */
28196_ACEOF
28197cat confdefs.h >>conftest.$ac_ext
28198cat >>conftest.$ac_ext <<_ACEOF
28199/* end confdefs.h. */
28200
6232543b 28201/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28202#ifdef __cplusplus
28203extern "C"
28204#endif
6232543b 28205/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28206 builtin and then its argument prototype would still apply. */
28207char esd_close ();
28208int
28209main ()
28210{
28211esd_close ();
28212 ;
28213 return 0;
28214}
28215_ACEOF
28216rm -f conftest.$ac_objext conftest$ac_exeext
28217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28218 (eval $ac_link) 2>&5
28219 ac_status=$?
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); } &&
28222 { ac_try='test -s conftest$ac_exeext'
28223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224 (eval $ac_try) 2>&5
28225 ac_status=$?
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); }; }; then
28228 ac_cv_lib_esd_esd_close=yes
a0b9e27f 28229else
e6cc62c6
VS
28230 echo "$as_me: failed program was:" >&5
28231sed 's/^/| /' conftest.$ac_ext >&5
4f14bcd8 28232
e6cc62c6 28233ac_cv_lib_esd_esd_close=no
10f2d63a 28234fi
e6cc62c6
VS
28235rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28236LIBS=$ac_check_lib_save_LIBS
a0b9e27f 28237fi
e6cc62c6
VS
28238echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28239echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28240if test $ac_cv_lib_esd_esd_close = yes; then
247f5006 28241
e6cc62c6 28242 ESD_LINK="-lesd"
10f2d63a 28243
e6cc62c6 28244fi
8284b0c5 28245
4f14bcd8 28246
6232543b 28247fi
10f2d63a 28248
703e0a69 28249
8284b0c5 28250
e6cc62c6
VS
28251
28252
28253cat >confcache <<\_ACEOF
4f14bcd8
GD
28254# This file is a shell script that caches the results of configure
28255# tests run on this system so they can be shared between configure
e6cc62c6
VS
28256# scripts and configure runs, see configure's option --config-cache.
28257# It is not useful on other systems. If it contains results you don't
28258# want to keep, you may remove or edit it.
4f14bcd8 28259#
e6cc62c6
VS
28260# config.status only pays attention to the cache file if you give it
28261# the --recheck option to rerun configure.
4f14bcd8 28262#
e6cc62c6
VS
28263# `ac_cv_env_foo' variables (set or unset) will be overridden when
28264# loading this file, other *unset* `ac_cv_foo' will be assigned the
28265# following values.
28266
28267_ACEOF
28268
4f14bcd8
GD
28269# The following way of writing the cache mishandles newlines in values,
28270# but we know of no workaround that is simple, portable, and efficient.
28271# So, don't put newlines in cache variables' values.
28272# Ultrix sh set writes to stderr and can't be redirected directly,
28273# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28274{
28275 (set) 2>&1 |
28276 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28277 *ac_space=\ *)
28278 # `set' does not quote correctly, so add quotes (double-quote
28279 # substitution turns \\\\ into \\, and sed turns \\ into \).
28280 sed -n \
28281 "s/'/'\\\\''/g;
28282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28283 ;;
28284 *)
28285 # `set' quotes correctly as required by POSIX, so do not add quotes.
28286 sed -n \
28287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28288 ;;
28289 esac;
28290} |
28291 sed '
28292 t clear
28293 : clear
28294 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28295 t end
28296 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28297 : end' >>confcache
28298if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28299 if test -w $cache_file; then
e6cc62c6
VS
28300 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28301 cat confcache >$cache_file
f6bcfd97 28302 else
4f14bcd8 28303 echo "not updating unwritable cache $cache_file"
f6bcfd97 28304 fi
4f14bcd8
GD
28305fi
28306rm -f confcache
f6bcfd97 28307
8284b0c5 28308
009fead0 28309CPP_MT_FLAG=
4f14bcd8
GD
28310if test "$TOOLKIT" != "MSW"; then
28311
e6cc62c6 28312
7274f1c7 28313 THREADS_LINK=
009fead0 28314 THREADS_CFLAGS=
7274f1c7
RL
28315
28316 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28317 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28318 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28319echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28320 wxUSE_THREADS="no"
28321 fi
4f14bcd8 28322 fi
4f14bcd8 28323
7274f1c7 28324 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28325
28326
009fead0
VZ
28327 THREAD_OPTS="-pthread"
28328 case "${host}" in
28329 *-*-solaris2* | *-*-sunos4* )
28330 if test "x$GCC" = "xyes"; then
126be6b4 28331 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28332 else
28333 THREAD_OPTS="-mt $THREAD_OPTS"
28334 fi
28335 ;;
28336 *-*-freebsd*)
28337 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28338 ;;
17234b26
MB
28339 *-*-darwin* | *-*-cygwin* )
28340 THREAD_OPTS=""
4101db81 28341 ;;
8f4a9a10 28342 *-*-aix*)
009fead0
VZ
28343 THREAD_OPTS="pthreads"
28344 ;;
4f5a7f74
VZ
28345 *-hp-hpux* )
28346 if test "x$GCC" != "xyes"; then
28347 THREAD_OPTS=""
28348 fi
89e3b3e4
VZ
28349 ;;
28350
28351 *-*-irix* )
28352 if test "x$GCC" = "xyes"; then
28353 THREAD_OPTS=""
28354 fi
28355 ;;
28356
28357 *-*-*UnixWare*)
28358 if test "x$GCC" != "xyes"; then
28359 THREAD_OPTS="-Ethread"
28360 fi
28361 ;;
009fead0 28362 esac
4f14bcd8 28363
02a1dfba 28364 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 28365
009fead0
VZ
28366 THREADS_OK=no
28367 for flag in $THREAD_OPTS; do
28368 case $flag in
28369 none)
e6cc62c6
VS
28370 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28371echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 28372 ;;
698dcdb6 28373
009fead0 28374 -*)
e6cc62c6
VS
28375 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28376echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
28377 THREADS_CFLAGS="$flag"
28378 ;;
698dcdb6 28379
009fead0 28380 *)
e6cc62c6
VS
28381 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28382echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
28383 THREADS_LINK="-l$flag"
28384 ;;
28385 esac
10f2d63a 28386
009fead0
VZ
28387 save_LIBS="$LIBS"
28388 save_CFLAGS="$CFLAGS"
28389 LIBS="$THREADS_LINK $LIBS"
04727afd 28390 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 28391
e6cc62c6
VS
28392 cat >conftest.$ac_ext <<_ACEOF
28393#line $LINENO "configure"
28394/* confdefs.h. */
28395_ACEOF
28396cat confdefs.h >>conftest.$ac_ext
28397cat >>conftest.$ac_ext <<_ACEOF
28398/* end confdefs.h. */
009fead0 28399#include <pthread.h>
e6cc62c6
VS
28400int
28401main ()
28402{
009fead0 28403pthread_create(0,0,0,0);
e6cc62c6
VS
28404 ;
28405 return 0;
28406}
28407_ACEOF
28408rm -f conftest.$ac_objext conftest$ac_exeext
28409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28410 (eval $ac_link) 2>&5
28411 ac_status=$?
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } &&
28414 { ac_try='test -s conftest$ac_exeext'
28415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28416 (eval $ac_try) 2>&5
28417 ac_status=$?
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); }; }; then
009fead0 28420 THREADS_OK=yes
10f2d63a 28421else
e6cc62c6
VS
28422 echo "$as_me: failed program was:" >&5
28423sed 's/^/| /' conftest.$ac_ext >&5
28424
6232543b 28425fi
e6cc62c6 28426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 28427
009fead0
VZ
28428 LIBS="$save_LIBS"
28429 CFLAGS="$save_CFLAGS"
d9b9876f 28430
e6cc62c6
VS
28431 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28432echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
28433 if test "x$THREADS_OK" = "xyes"; then
28434 break;
28435 fi
d9b9876f 28436
009fead0
VZ
28437 THREADS_LINK=""
28438 THREADS_CFLAGS=""
28439 done
4f14bcd8 28440
009fead0
VZ
28441 if test "x$THREADS_OK" != "xyes"; then
28442 wxUSE_THREADS=no
e6cc62c6
VS
28443 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28444echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 28445 else
db82f09e
VZ
28446 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28447 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 28448
e6cc62c6
VS
28449 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28450echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
28451 flag=no
28452 case "${host}" in
2b5f62a0
VZ
28453 *-aix*)
28454 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28455 flag="-D_THREAD_SAFE"
28456 ;;
28457 *-freebsd*)
009fead0
VZ
28458 flag="-D_THREAD_SAFE"
28459 ;;
06313569
GD
28460 *-hp-hpux* )
28461 flag="-D_REENTRANT"
4f5a7f74
VZ
28462 if test "x$GCC" != "xyes"; then
28463 flag="$flag -D_RWSTD_MULTI_THREAD"
28464 fi
06313569 28465 ;;
009fead0
VZ
28466 *solaris* | alpha*-osf*)
28467 flag="-D_REENTRANT"
28468 ;;
28469 esac
e6cc62c6
VS
28470 echo "$as_me:$LINENO: result: ${flag}" >&5
28471echo "${ECHO_T}${flag}" >&6
009fead0 28472 if test "x$flag" != xno; then
04727afd 28473 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
28474 fi
28475
009fead0 28476 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 28477 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
28478 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28479 fi
28480 fi
4f14bcd8 28481 fi
4f14bcd8 28482
7274f1c7 28483 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28484
28485for ac_func in thr_setconcurrency
4f14bcd8 28486do
e6cc62c6
VS
28487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28488echo "$as_me:$LINENO: checking for $ac_func" >&5
28489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28490if eval "test \"\${$as_ac_var+set}\" = set"; then
28491 echo $ECHO_N "(cached) $ECHO_C" >&6
28492else
28493 cat >conftest.$ac_ext <<_ACEOF
28494#line $LINENO "configure"
28495/* confdefs.h. */
28496_ACEOF
28497cat confdefs.h >>conftest.$ac_ext
28498cat >>conftest.$ac_ext <<_ACEOF
28499/* end confdefs.h. */
4f14bcd8 28500/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28501 which can conflict with char $ac_func (); below.
28502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28503 <limits.h> exists even on freestanding compilers. */
28504#ifdef __STDC__
28505# include <limits.h>
28506#else
28507# include <assert.h>
28508#endif
4f14bcd8 28509/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28510#ifdef __cplusplus
28511extern "C"
28512{
28513#endif
4f14bcd8 28514/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28515 builtin and then its argument prototype would still apply. */
28516char $ac_func ();
4f14bcd8
GD
28517/* The GNU C library defines this for functions which it implements
28518 to always fail with ENOSYS. Some functions are actually named
28519 something starting with __ and the normal name is an alias. */
28520#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28521choke me
28522#else
e6cc62c6
VS
28523char (*f) () = $ac_func;
28524#endif
28525#ifdef __cplusplus
28526}
4f14bcd8
GD
28527#endif
28528
e6cc62c6
VS
28529int
28530main ()
28531{
28532return f != $ac_func;
28533 ;
28534 return 0;
28535}
28536_ACEOF
28537rm -f conftest.$ac_objext conftest$ac_exeext
28538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28539 (eval $ac_link) 2>&5
28540 ac_status=$?
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } &&
28543 { ac_try='test -s conftest$ac_exeext'
28544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28545 (eval $ac_try) 2>&5
28546 ac_status=$?
28547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548 (exit $ac_status); }; }; then
28549 eval "$as_ac_var=yes"
28550else
28551 echo "$as_me: failed program was:" >&5
28552sed 's/^/| /' conftest.$ac_ext >&5
28553
28554eval "$as_ac_var=no"
28555fi
28556rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28557fi
28558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28559echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28560if test `eval echo '${'$as_ac_var'}'` = yes; then
28561 cat >>confdefs.h <<_ACEOF
28562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28563_ACEOF
698dcdb6 28564
10f2d63a 28565fi
4f14bcd8 28566done
10f2d63a 28567
8284b0c5 28568
e6cc62c6
VS
28569
28570for ac_header in sched.h
4f14bcd8 28571do
e6cc62c6
VS
28572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28573if eval "test \"\${$as_ac_Header+set}\" = set"; then
28574 echo "$as_me:$LINENO: checking for $ac_header" >&5
28575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28576if eval "test \"\${$as_ac_Header+set}\" = set"; then
28577 echo $ECHO_N "(cached) $ECHO_C" >&6
28578fi
28579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28581else
28582 # Is the header compilable?
28583echo "$as_me:$LINENO: checking $ac_header usability" >&5
28584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28585cat >conftest.$ac_ext <<_ACEOF
28586#line $LINENO "configure"
28587/* confdefs.h. */
28588_ACEOF
28589cat confdefs.h >>conftest.$ac_ext
28590cat >>conftest.$ac_ext <<_ACEOF
28591/* end confdefs.h. */
28592$ac_includes_default
28593#include <$ac_header>
28594_ACEOF
28595rm -f conftest.$ac_objext
28596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28597 (eval $ac_compile) 2>&5
28598 ac_status=$?
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); } &&
28601 { ac_try='test -s conftest.$ac_objext'
28602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603 (eval $ac_try) 2>&5
28604 ac_status=$?
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); }; }; then
28607 ac_header_compiler=yes
28608else
28609 echo "$as_me: failed program was:" >&5
28610sed 's/^/| /' conftest.$ac_ext >&5
28611
28612ac_header_compiler=no
28613fi
28614rm -f conftest.$ac_objext conftest.$ac_ext
28615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28616echo "${ECHO_T}$ac_header_compiler" >&6
28617
28618# Is the header present?
28619echo "$as_me:$LINENO: checking $ac_header presence" >&5
28620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28621cat >conftest.$ac_ext <<_ACEOF
28622#line $LINENO "configure"
28623/* confdefs.h. */
28624_ACEOF
28625cat confdefs.h >>conftest.$ac_ext
28626cat >>conftest.$ac_ext <<_ACEOF
28627/* end confdefs.h. */
28628#include <$ac_header>
28629_ACEOF
28630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28632 ac_status=$?
28633 grep -v '^ *+' conftest.er1 >conftest.err
28634 rm -f conftest.er1
28635 cat conftest.err >&5
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); } >/dev/null; then
28638 if test -s conftest.err; then
28639 ac_cpp_err=$ac_c_preproc_warn_flag
28640 else
28641 ac_cpp_err=
28642 fi
28643else
28644 ac_cpp_err=yes
28645fi
28646if test -z "$ac_cpp_err"; then
28647 ac_header_preproc=yes
28648else
28649 echo "$as_me: failed program was:" >&5
28650sed 's/^/| /' conftest.$ac_ext >&5
28651
28652 ac_header_preproc=no
28653fi
28654rm -f conftest.err conftest.$ac_ext
28655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28656echo "${ECHO_T}$ac_header_preproc" >&6
28657
28658# So? What about this header?
28659case $ac_header_compiler:$ac_header_preproc in
28660 yes:no )
28661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28665 (
28666 cat <<\_ASBOX
28667## ------------------------------------ ##
28668## Report this to bug-autoconf@gnu.org. ##
28669## ------------------------------------ ##
28670_ASBOX
28671 ) |
28672 sed "s/^/$as_me: WARNING: /" >&2
28673 ;;
28674 no:yes )
28675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28681 (
28682 cat <<\_ASBOX
28683## ------------------------------------ ##
28684## Report this to bug-autoconf@gnu.org. ##
28685## ------------------------------------ ##
28686_ASBOX
28687 ) |
28688 sed "s/^/$as_me: WARNING: /" >&2
28689 ;;
28690esac
28691echo "$as_me:$LINENO: checking for $ac_header" >&5
28692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28693if eval "test \"\${$as_ac_Header+set}\" = set"; then
28694 echo $ECHO_N "(cached) $ECHO_C" >&6
28695else
28696 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 28697fi
e6cc62c6
VS
28698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28700
10f2d63a 28701fi
e6cc62c6
VS
28702if test `eval echo '${'$as_ac_Header'}'` = yes; then
28703 cat >>confdefs.h <<_ACEOF
28704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28705_ACEOF
28706
f6bcfd97 28707fi
e6cc62c6 28708
4f14bcd8 28709done
f6bcfd97 28710
009fead0 28711 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
28712 echo "$as_me:$LINENO: checking for sched_yield" >&5
28713echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
28714if test "${ac_cv_func_sched_yield+set}" = set; then
28715 echo $ECHO_N "(cached) $ECHO_C" >&6
28716else
28717 cat >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. */
009fead0 28724/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28725 which can conflict with char sched_yield (); below.
28726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28727 <limits.h> exists even on freestanding compilers. */
28728#ifdef __STDC__
28729# include <limits.h>
28730#else
28731# include <assert.h>
28732#endif
4f14bcd8 28733/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28734#ifdef __cplusplus
28735extern "C"
28736{
28737#endif
4f14bcd8 28738/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28739 builtin and then its argument prototype would still apply. */
28740char sched_yield ();
009fead0
VZ
28741/* The GNU C library defines this for functions which it implements
28742 to always fail with ENOSYS. Some functions are actually named
28743 something starting with __ and the normal name is an alias. */
28744#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
28745choke me
28746#else
e6cc62c6
VS
28747char (*f) () = sched_yield;
28748#endif
28749#ifdef __cplusplus
28750}
009fead0
VZ
28751#endif
28752
e6cc62c6
VS
28753int
28754main ()
28755{
28756return f != sched_yield;
28757 ;
28758 return 0;
28759}
28760_ACEOF
28761rm -f conftest.$ac_objext conftest$ac_exeext
28762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28763 (eval $ac_link) 2>&5
28764 ac_status=$?
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); } &&
28767 { ac_try='test -s conftest$ac_exeext'
28768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769 (eval $ac_try) 2>&5
28770 ac_status=$?
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; }; then
28773 ac_cv_func_sched_yield=yes
28774else
28775 echo "$as_me: failed program was:" >&5
28776sed 's/^/| /' conftest.$ac_ext >&5
28777
28778ac_cv_func_sched_yield=no
28779fi
28780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28781fi
28782echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
28783echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
28784if test $ac_cv_func_sched_yield = yes; then
28785 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28786#define HAVE_SCHED_YIELD 1
e6cc62c6 28787_ACEOF
10f2d63a 28788
4f14bcd8 28789else
009fead0 28790
e6cc62c6
VS
28791 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
28792echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
28793if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
28794 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 28795else
e6cc62c6 28796 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28797LIBS="-lposix4 $LIBS"
e6cc62c6
VS
28798cat >conftest.$ac_ext <<_ACEOF
28799#line $LINENO "configure"
28800/* confdefs.h. */
28801_ACEOF
28802cat confdefs.h >>conftest.$ac_ext
28803cat >>conftest.$ac_ext <<_ACEOF
28804/* end confdefs.h. */
28805
4f14bcd8 28806/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28807#ifdef __cplusplus
28808extern "C"
28809#endif
4f14bcd8 28810/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28811 builtin and then its argument prototype would still apply. */
28812char sched_yield ();
28813int
28814main ()
28815{
28816sched_yield ();
28817 ;
28818 return 0;
28819}
28820_ACEOF
28821rm -f conftest.$ac_objext conftest$ac_exeext
28822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28823 (eval $ac_link) 2>&5
28824 ac_status=$?
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); } &&
28827 { ac_try='test -s conftest$ac_exeext'
28828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28829 (eval $ac_try) 2>&5
28830 ac_status=$?
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); }; }; then
28833 ac_cv_lib_posix4_sched_yield=yes
28834else
28835 echo "$as_me: failed program was:" >&5
28836sed 's/^/| /' conftest.$ac_ext >&5
28837
28838ac_cv_lib_posix4_sched_yield=no
28839fi
28840rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28841LIBS=$ac_check_lib_save_LIBS
28842fi
28843echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
28844echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
28845if test $ac_cv_lib_posix4_sched_yield = yes; then
28846 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28847#define HAVE_SCHED_YIELD 1
e6cc62c6 28848_ACEOF
3d63bc3a 28849 POSIX4_LINK=" -lposix4"
4f14bcd8 28850else
e6cc62c6
VS
28851 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
28852echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
28853
54276ccf
VZ
28854fi
28855
e6cc62c6
VS
28856
28857
4f14bcd8 28858fi
698dcdb6 28859
009fead0 28860 fi
10f2d63a 28861
7274f1c7 28862 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
28863 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
28864echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
28865if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
28866 echo $ECHO_N "(cached) $ECHO_C" >&6
28867else
28868 cat >conftest.$ac_ext <<_ACEOF
28869#line $LINENO "configure"
28870/* confdefs.h. */
28871_ACEOF
28872cat confdefs.h >>conftest.$ac_ext
28873cat >>conftest.$ac_ext <<_ACEOF
28874/* end confdefs.h. */
009fead0 28875/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28876 which can conflict with char pthread_attr_getschedpolicy (); below.
28877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28878 <limits.h> exists even on freestanding compilers. */
28879#ifdef __STDC__
28880# include <limits.h>
28881#else
28882# include <assert.h>
28883#endif
4f14bcd8 28884/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28885#ifdef __cplusplus
28886extern "C"
28887{
28888#endif
4f14bcd8 28889/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28890 builtin and then its argument prototype would still apply. */
28891char pthread_attr_getschedpolicy ();
009fead0
VZ
28892/* The GNU C library defines this for functions which it implements
28893 to always fail with ENOSYS. Some functions are actually named
28894 something starting with __ and the normal name is an alias. */
28895#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
28896choke me
28897#else
e6cc62c6
VS
28898char (*f) () = pthread_attr_getschedpolicy;
28899#endif
28900#ifdef __cplusplus
28901}
009fead0
VZ
28902#endif
28903
e6cc62c6
VS
28904int
28905main ()
28906{
28907return f != pthread_attr_getschedpolicy;
28908 ;
28909 return 0;
28910}
28911_ACEOF
28912rm -f conftest.$ac_objext conftest$ac_exeext
28913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28914 (eval $ac_link) 2>&5
28915 ac_status=$?
28916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); } &&
28918 { ac_try='test -s conftest$ac_exeext'
28919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920 (eval $ac_try) 2>&5
28921 ac_status=$?
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); }; }; then
28924 ac_cv_func_pthread_attr_getschedpolicy=yes
28925else
28926 echo "$as_me: failed program was:" >&5
28927sed 's/^/| /' conftest.$ac_ext >&5
28928
28929ac_cv_func_pthread_attr_getschedpolicy=no
28930fi
28931rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28932fi
28933echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
28934echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
28935if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
28936 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
28937echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
28938if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
28939 echo $ECHO_N "(cached) $ECHO_C" >&6
28940else
28941 cat >conftest.$ac_ext <<_ACEOF
28942#line $LINENO "configure"
28943/* confdefs.h. */
28944_ACEOF
28945cat confdefs.h >>conftest.$ac_ext
28946cat >>conftest.$ac_ext <<_ACEOF
28947/* end confdefs.h. */
a0b9e27f 28948/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28949 which can conflict with char pthread_attr_setschedparam (); below.
28950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28951 <limits.h> exists even on freestanding compilers. */
28952#ifdef __STDC__
28953# include <limits.h>
28954#else
28955# include <assert.h>
28956#endif
422107f9 28957/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28958#ifdef __cplusplus
28959extern "C"
28960{
28961#endif
422107f9 28962/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28963 builtin and then its argument prototype would still apply. */
28964char pthread_attr_setschedparam ();
009fead0
VZ
28965/* The GNU C library defines this for functions which it implements
28966 to always fail with ENOSYS. Some functions are actually named
28967 something starting with __ and the normal name is an alias. */
28968#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
28969choke me
28970#else
e6cc62c6
VS
28971char (*f) () = pthread_attr_setschedparam;
28972#endif
28973#ifdef __cplusplus
28974}
009fead0
VZ
28975#endif
28976
e6cc62c6
VS
28977int
28978main ()
28979{
28980return f != pthread_attr_setschedparam;
28981 ;
28982 return 0;
28983}
28984_ACEOF
28985rm -f conftest.$ac_objext conftest$ac_exeext
28986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28987 (eval $ac_link) 2>&5
28988 ac_status=$?
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } &&
28991 { ac_try='test -s conftest$ac_exeext'
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28994 ac_status=$?
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; }; then
28997 ac_cv_func_pthread_attr_setschedparam=yes
28998else
28999 echo "$as_me: failed program was:" >&5
29000sed 's/^/| /' conftest.$ac_ext >&5
29001
29002ac_cv_func_pthread_attr_setschedparam=no
29003fi
29004rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29005fi
29006echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29007echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29008if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29009 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29010echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29011if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29012 echo $ECHO_N "(cached) $ECHO_C" >&6
29013else
29014 cat >conftest.$ac_ext <<_ACEOF
29015#line $LINENO "configure"
29016/* confdefs.h. */
29017_ACEOF
29018cat confdefs.h >>conftest.$ac_ext
29019cat >>conftest.$ac_ext <<_ACEOF
29020/* end confdefs.h. */
ef33c576 29021/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29022 which can conflict with char sched_get_priority_max (); below.
29023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29024 <limits.h> exists even on freestanding compilers. */
29025#ifdef __STDC__
29026# include <limits.h>
29027#else
29028# include <assert.h>
29029#endif
4f14bcd8 29030/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29031#ifdef __cplusplus
29032extern "C"
29033{
29034#endif
4f14bcd8 29035/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29036 builtin and then its argument prototype would still apply. */
29037char sched_get_priority_max ();
009fead0
VZ
29038/* The GNU C library defines this for functions which it implements
29039 to always fail with ENOSYS. Some functions are actually named
29040 something starting with __ and the normal name is an alias. */
29041#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29042choke me
29043#else
e6cc62c6
VS
29044char (*f) () = sched_get_priority_max;
29045#endif
29046#ifdef __cplusplus
29047}
009fead0
VZ
29048#endif
29049
e6cc62c6
VS
29050int
29051main ()
29052{
29053return f != sched_get_priority_max;
29054 ;
29055 return 0;
29056}
29057_ACEOF
29058rm -f conftest.$ac_objext conftest$ac_exeext
29059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29060 (eval $ac_link) 2>&5
29061 ac_status=$?
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); } &&
29064 { ac_try='test -s conftest$ac_exeext'
29065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066 (eval $ac_try) 2>&5
29067 ac_status=$?
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); }; }; then
29070 ac_cv_func_sched_get_priority_max=yes
29071else
29072 echo "$as_me: failed program was:" >&5
29073sed 's/^/| /' conftest.$ac_ext >&5
29074
29075ac_cv_func_sched_get_priority_max=no
29076fi
29077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29078fi
29079echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29080echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29081if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29082 HAVE_PRIOR_FUNCS=1
29083else
e6cc62c6
VS
29084 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29085echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29086if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29087 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29088else
e6cc62c6 29089 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29090LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29091cat >conftest.$ac_ext <<_ACEOF
29092#line $LINENO "configure"
29093/* confdefs.h. */
29094_ACEOF
29095cat confdefs.h >>conftest.$ac_ext
29096cat >>conftest.$ac_ext <<_ACEOF
29097/* end confdefs.h. */
29098
422107f9 29099/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29100#ifdef __cplusplus
29101extern "C"
29102#endif
422107f9 29103/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29104 builtin and then its argument prototype would still apply. */
29105char sched_get_priority_max ();
29106int
29107main ()
29108{
29109sched_get_priority_max ();
29110 ;
29111 return 0;
29112}
29113_ACEOF
29114rm -f conftest.$ac_objext conftest$ac_exeext
29115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29116 (eval $ac_link) 2>&5
29117 ac_status=$?
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); } &&
29120 { ac_try='test -s conftest$ac_exeext'
29121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122 (eval $ac_try) 2>&5
29123 ac_status=$?
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; }; then
29126 ac_cv_lib_posix4_sched_get_priority_max=yes
29127else
29128 echo "$as_me: failed program was:" >&5
29129sed 's/^/| /' conftest.$ac_ext >&5
29130
29131ac_cv_lib_posix4_sched_get_priority_max=no
29132fi
29133rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29134LIBS=$ac_check_lib_save_LIBS
29135fi
29136echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29137echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29138if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29139
7274f1c7
RL
29140 HAVE_PRIOR_FUNCS=1
29141 POSIX4_LINK=" -lposix4"
e6cc62c6 29142
4f14bcd8 29143fi
463abc64 29144
e6cc62c6 29145
328a083c 29146fi
463abc64 29147
e6cc62c6 29148
7b4a847f 29149fi
579d8138 29150
e6cc62c6 29151
5c6fa7d2 29152fi
52127426 29153
8284b0c5 29154
7274f1c7 29155 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29156 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29157#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29158_ACEOF
463abc64 29159
7274f1c7 29160 else
e6cc62c6
VS
29161 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29162echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29163 fi
463abc64 29164
e6cc62c6
VS
29165 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29166echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29167if test "${ac_cv_func_pthread_cancel+set}" = set; then
29168 echo $ECHO_N "(cached) $ECHO_C" >&6
29169else
29170 cat >conftest.$ac_ext <<_ACEOF
29171#line $LINENO "configure"
29172/* confdefs.h. */
29173_ACEOF
29174cat confdefs.h >>conftest.$ac_ext
29175cat >>conftest.$ac_ext <<_ACEOF
29176/* end confdefs.h. */
009fead0 29177/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29178 which can conflict with char pthread_cancel (); below.
29179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29180 <limits.h> exists even on freestanding compilers. */
29181#ifdef __STDC__
29182# include <limits.h>
29183#else
29184# include <assert.h>
29185#endif
422107f9 29186/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29187#ifdef __cplusplus
29188extern "C"
29189{
29190#endif
422107f9 29191/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29192 builtin and then its argument prototype would still apply. */
29193char pthread_cancel ();
009fead0
VZ
29194/* The GNU C library defines this for functions which it implements
29195 to always fail with ENOSYS. Some functions are actually named
29196 something starting with __ and the normal name is an alias. */
29197#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29198choke me
29199#else
e6cc62c6
VS
29200char (*f) () = pthread_cancel;
29201#endif
29202#ifdef __cplusplus
29203}
009fead0
VZ
29204#endif
29205
e6cc62c6
VS
29206int
29207main ()
29208{
29209return f != pthread_cancel;
29210 ;
29211 return 0;
29212}
29213_ACEOF
29214rm -f conftest.$ac_objext conftest$ac_exeext
29215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29216 (eval $ac_link) 2>&5
29217 ac_status=$?
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); } &&
29220 { ac_try='test -s conftest$ac_exeext'
29221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29222 (eval $ac_try) 2>&5
29223 ac_status=$?
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); }; }; then
29226 ac_cv_func_pthread_cancel=yes
29227else
29228 echo "$as_me: failed program was:" >&5
29229sed 's/^/| /' conftest.$ac_ext >&5
29230
29231ac_cv_func_pthread_cancel=no
29232fi
29233rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29234fi
29235echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29236echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29237if test $ac_cv_func_pthread_cancel = yes; then
29238 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29239#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29240_ACEOF
4f14bcd8 29241
698dcdb6 29242else
e6cc62c6
VS
29243 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29244echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29245fi
29246
5c6fa7d2 29247
e6cc62c6
VS
29248 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29249echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29250if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29251 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29252else
e6cc62c6
VS
29253
29254 cat >conftest.$ac_ext <<_ACEOF
29255#line $LINENO "configure"
29256/* confdefs.h. */
29257_ACEOF
29258cat confdefs.h >>conftest.$ac_ext
29259cat >>conftest.$ac_ext <<_ACEOF
29260/* end confdefs.h. */
4f14bcd8 29261#include <pthread.h>
e6cc62c6
VS
29262int
29263main ()
29264{
4f14bcd8 29265
7274f1c7
RL
29266 pthread_cleanup_push(NULL, NULL);
29267 pthread_cleanup_pop(0);
e6cc62c6
VS
29268
29269 ;
29270 return 0;
29271}
29272_ACEOF
29273rm -f conftest.$ac_objext
29274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29275 (eval $ac_compile) 2>&5
29276 ac_status=$?
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); } &&
29279 { ac_try='test -s conftest.$ac_objext'
29280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29281 (eval $ac_try) 2>&5
29282 ac_status=$?
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); }; }; then
29285
7274f1c7 29286 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29287
4f14bcd8 29288else
e6cc62c6
VS
29289 echo "$as_me: failed program was:" >&5
29290sed 's/^/| /' conftest.$ac_ext >&5
29291
29292
7274f1c7 29293 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29294
247f5006 29295fi
e6cc62c6 29296rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29297
e6cc62c6
VS
29298fi
29299echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29300echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29301
7274f1c7 29302 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29303 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29304#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29305_ACEOF
c7a2bf27 29306
7274f1c7 29307 fi
4f14bcd8 29308
e6cc62c6
VS
29309
29310 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29311echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29312if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29313 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29314else
e6cc62c6
VS
29315
29316 cat >conftest.$ac_ext <<_ACEOF
29317#line $LINENO "configure"
29318/* confdefs.h. */
29319_ACEOF
29320cat confdefs.h >>conftest.$ac_ext
29321cat >>conftest.$ac_ext <<_ACEOF
29322/* end confdefs.h. */
4f14bcd8 29323#include <pthread.h>
e6cc62c6
VS
29324int
29325main ()
29326{
4f14bcd8 29327
7274f1c7
RL
29328 pthread_mutexattr_t attr;
29329 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29330
29331 ;
29332 return 0;
29333}
29334_ACEOF
29335rm -f conftest.$ac_objext
29336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29337 (eval $ac_compile) 2>&5
29338 ac_status=$?
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } &&
29341 { ac_try='test -s conftest.$ac_objext'
29342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343 (eval $ac_try) 2>&5
29344 ac_status=$?
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); }; }; then
29347
7274f1c7 29348 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29349
3fed1840 29350else
e6cc62c6
VS
29351 echo "$as_me: failed program was:" >&5
29352sed 's/^/| /' conftest.$ac_ext >&5
29353
29354
7274f1c7 29355 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29356
29357
247f5006 29358fi
e6cc62c6 29359rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29360
e6cc62c6
VS
29361fi
29362echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29363echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29364
7274f1c7 29365 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29366 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29367#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29368_ACEOF
4f14bcd8 29369
7274f1c7 29370 else
e6cc62c6
VS
29371 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29372echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29373if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29374 echo $ECHO_N "(cached) $ECHO_C" >&6
29375else
29376
29377 cat >conftest.$ac_ext <<_ACEOF
29378#line $LINENO "configure"
29379/* confdefs.h. */
29380_ACEOF
29381cat confdefs.h >>conftest.$ac_ext
29382cat >>conftest.$ac_ext <<_ACEOF
29383/* end confdefs.h. */
4f14bcd8 29384#include <pthread.h>
e6cc62c6
VS
29385int
29386main ()
29387{
4f14bcd8 29388
7274f1c7 29389 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29390
29391 ;
29392 return 0;
29393}
29394_ACEOF
29395rm -f conftest.$ac_objext
29396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29397 (eval $ac_compile) 2>&5
29398 ac_status=$?
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); } &&
29401 { ac_try='test -s conftest.$ac_objext'
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29404 ac_status=$?
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; }; then
29407
7274f1c7 29408 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 29409
698dcdb6 29410else
e6cc62c6
VS
29411 echo "$as_me: failed program was:" >&5
29412sed 's/^/| /' conftest.$ac_ext >&5
29413
29414
7274f1c7 29415 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
29416
29417
247f5006 29418fi
e6cc62c6 29419rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29420
e6cc62c6
VS
29421fi
29422echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29423echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 29424 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 29425 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29426#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 29427_ACEOF
3fed1840 29428
7274f1c7 29429 else
e6cc62c6
VS
29430 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29431echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
29432 fi
29433 fi
7274f1c7 29434 fi
3fed1840 29435
a0b9e27f
MB
29436else
29437 if test "$wxUSE_THREADS" = "yes" ; then
29438 case "${host}" in
29439 *-*-mingw32* )
e6cc62c6
VS
29440 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29441echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29442if test "${wx_cv_cflags_mthread+set}" = set; then
29443 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 29444else
e6cc62c6 29445
ca8e52b3
VZ
29446 CFLAGS_OLD="$CFLAGS"
29447 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
29448 cat >conftest.$ac_ext <<_ACEOF
29449#line $LINENO "configure"
29450/* confdefs.h. */
29451_ACEOF
29452cat confdefs.h >>conftest.$ac_ext
29453cat >>conftest.$ac_ext <<_ACEOF
29454/* end confdefs.h. */
29455
29456int
29457main ()
29458{
ca8e52b3 29459
e6cc62c6
VS
29460 ;
29461 return 0;
29462}
29463_ACEOF
29464rm -f conftest.$ac_objext
29465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29466 (eval $ac_compile) 2>&5
29467 ac_status=$?
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); } &&
29470 { ac_try='test -s conftest.$ac_objext'
29471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29472 (eval $ac_try) 2>&5
29473 ac_status=$?
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; }; then
ca8e52b3
VZ
29476 wx_cv_cflags_mthread=yes
29477else
e6cc62c6
VS
29478 echo "$as_me: failed program was:" >&5
29479sed 's/^/| /' conftest.$ac_ext >&5
29480
29481wx_cv_cflags_mthread=no
29482
ca8e52b3 29483fi
e6cc62c6
VS
29484rm -f conftest.$ac_objext conftest.$ac_ext
29485
ca8e52b3 29486
e6cc62c6
VS
29487fi
29488echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29489echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
29490
29491 if test "$wx_cv_cflags_mthread" = "yes"; then
29492 CXXFLAGS="$CXXFLAGS -mthreads"
29493 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29494 LDFLAGS="$LDFLAGS -mthreads"
29495 else
29496 CFLAGS="$CFLAGS_OLD"
29497 fi
a0b9e27f
MB
29498 ;;
29499 esac
29500 fi
4f14bcd8
GD
29501fi
29502
29503if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 29504 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29505#define wxUSE_THREADS 1
e6cc62c6 29506_ACEOF
7b6058cd 29507
8284b0c5 29508
4f14bcd8 29509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 29510else
4f14bcd8 29511 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
29512 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29513echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
29514 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29515 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
29516 echo "$as_me:$LINENO: result: yes" >&5
29517echo "${ECHO_T}yes" >&6
4f14bcd8 29518 else
e6cc62c6
VS
29519 echo "$as_me:$LINENO: result: no" >&5
29520echo "${ECHO_T}no" >&6
4f14bcd8
GD
29521 fi
29522 fi
29523fi
29524
29525if test "$WXGTK20" = 1 ; then
e6cc62c6 29526 cat >>confdefs.h <<_ACEOF
4f14bcd8 29527#define __WXGTK20__ $WXGTK20
e6cc62c6 29528_ACEOF
4f14bcd8
GD
29529
29530 WXGTK12=1
10f2d63a 29531fi
4f14bcd8
GD
29532
29533if test "$WXGTK12" = 1 ; then
e6cc62c6 29534 cat >>confdefs.h <<_ACEOF
4f14bcd8 29535#define __WXGTK12__ $WXGTK12
e6cc62c6 29536_ACEOF
4f14bcd8 29537
10f2d63a 29538fi
698dcdb6 29539
4f14bcd8 29540if test "$WXGTK127" = 1 ; then
e6cc62c6 29541 cat >>confdefs.h <<_ACEOF
4f14bcd8 29542#define __WXGTK127__ $WXGTK127
e6cc62c6 29543_ACEOF
4f14bcd8 29544
698dcdb6 29545fi
10f2d63a 29546
4f14bcd8
GD
29547WXDEBUG=
29548
29549if test "$wxUSE_DEBUG_INFO" = "yes" ; then
29550 WXDEBUG="-g"
29551 wxUSE_OPTIMISE=no
698dcdb6 29552fi
4f14bcd8
GD
29553
29554if test "$wxUSE_DEBUG_GDB" = "yes" ; then
29555 wxUSE_DEBUG_INFO=yes
29556 WXDEBUG="-ggdb"
10f2d63a
VZ
29557fi
29558
4f14bcd8 29559if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 29560 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29561#define WXDEBUG 1
e6cc62c6 29562_ACEOF
4f14bcd8
GD
29563
29564 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 29565else
4f14bcd8
GD
29566 if test "$wxUSE_GTK" = 1 ; then
29567 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
29568 fi
29569fi
29570
29571if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 29572 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29573#define wxUSE_MEMORY_TRACING 1
e6cc62c6 29574_ACEOF
4f14bcd8 29575
e6cc62c6 29576 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29577#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 29578_ACEOF
4f14bcd8 29579
e6cc62c6 29580 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29581#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 29582_ACEOF
4f14bcd8
GD
29583
29584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
29585fi
29586
29587if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 29588 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
29589fi
29590
29591PROFILE=
29592if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 29593 PROFILE=" -pg"
10f2d63a
VZ
29594fi
29595
009fead0
VZ
29596CODE_GEN_FLAGS=
29597CODE_GEN_FLAGS_CXX=
88e30f2b 29598if test "$GCC" = "yes" ; then
4f14bcd8
GD
29599 if test "$wxUSE_NO_RTTI" = "yes" ; then
29600 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 29601 fi
4f14bcd8
GD
29602 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
29603 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
29604 fi
29605 if test "$wxUSE_PERMISSIVE" = "yes" ; then
29606 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
29607 fi
1d1b75ac 29608
2b5f62a0 29609 case "${host}" in
1d1b75ac
VZ
29610 powerpc*-*-aix* )
29611 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
29612 ;;
2b5f62a0
VZ
29613 *-hppa* )
29614 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
29615 ;;
1d1b75ac 29616 esac
4f14bcd8
GD
29617fi
29618
af7b5345 29619OPTIMISE=
4f14bcd8 29620if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
29621 if test "$GCC" = yes ; then
29622 OPTIMISE="-O0"
29623 fi
4f14bcd8
GD
29624else
29625 if test "$GCC" = yes ; then
29626 OPTIMISE="-O2"
af7b5345
VZ
29627
29628 case "${host}" in
4f14bcd8
GD
29629 i586-*-*|i686-*-* )
29630 OPTIMISE="${OPTIMISE} "
29631 ;;
29632 esac
29633 else
29634 OPTIMISE="-O"
29635 fi
29636fi
29637
8d90d2f2 29638
4f14bcd8 29639if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
e6cc62c6 29640 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29641#define WXWIN_COMPATIBILITY_2 1
e6cc62c6 29642_ACEOF
4f14bcd8 29643
8284b0c5 29644
4f14bcd8
GD
29645 WXWIN_COMPATIBILITY_2_2="yes"
29646fi
29647
65d8ef1e 29648if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 29649 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29650#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 29651_ACEOF
4f14bcd8 29652
8d90d2f2
VZ
29653
29654 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
29655fi
29656
65d8ef1e 29657if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 29658 cat >>confdefs.h <<\_ACEOF
65d8ef1e 29659#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 29660_ACEOF
65d8ef1e
VS
29661
29662fi
29663
8284b0c5 29664
10f2d63a 29665if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 29666 cat >>confdefs.h <<\_ACEOF
10f2d63a 29667#define wxUSE_GUI 1
e6cc62c6 29668_ACEOF
10f2d63a 29669
8284b0c5 29670
10f2d63a 29671 else
e6cc62c6 29672 cat >>confdefs.h <<\_ACEOF
10f2d63a 29673#define wxUSE_NOGUI 1
e6cc62c6 29674_ACEOF
10f2d63a
VZ
29675
29676fi
29677
8284b0c5 29678
10f2d63a 29679if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 29680 cat >>confdefs.h <<\_ACEOF
10f2d63a 29681#define wxUSE_UNIX 1
e6cc62c6 29682_ACEOF
10f2d63a
VZ
29683
29684fi
29685
8284b0c5 29686
df5168c4
MB
29687if test "$wxUSE_STL" = "yes"; then
29688 cat >>confdefs.h <<\_ACEOF
29689#define wxUSE_STL 1
29690_ACEOF
29691
29692fi
29693
10f2d63a 29694if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 29695 cat >>confdefs.h <<\_ACEOF
10f2d63a 29696#define wxUSE_APPLE_IEEE 1
e6cc62c6 29697_ACEOF
10f2d63a
VZ
29698
29699fi
29700
1e6feb95 29701if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 29702 cat >>confdefs.h <<\_ACEOF
1e6feb95 29703#define wxUSE_TIMER 1
e6cc62c6 29704_ACEOF
1e6feb95
VZ
29705
29706fi
29707
10f2d63a 29708if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 29709 cat >>confdefs.h <<\_ACEOF
10f2d63a 29710#define wxUSE_WAVE 1
e6cc62c6 29711_ACEOF
10f2d63a
VZ
29712
29713fi
29714
1e6feb95 29715if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 29716 cat >>confdefs.h <<\_ACEOF
1e6feb95 29717#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 29718_ACEOF
1e6feb95
VZ
29719
29720fi
29721
29722if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 29723 cat >>confdefs.h <<\_ACEOF
1e6feb95 29724#define wxUSE_STOPWATCH 1
e6cc62c6 29725_ACEOF
1e6feb95
VZ
29726
29727fi
29728
29729if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 29730 cat >>confdefs.h <<\_ACEOF
1e6feb95 29731#define wxUSE_DATETIME 1
e6cc62c6 29732_ACEOF
1e6feb95
VZ
29733
29734fi
29735
10f2d63a 29736if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 29737 cat >>confdefs.h <<\_ACEOF
10f2d63a 29738#define wxUSE_FILE 1
e6cc62c6 29739_ACEOF
10f2d63a
VZ
29740
29741fi
29742
1e6feb95 29743if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 29744 cat >>confdefs.h <<\_ACEOF
1e6feb95 29745#define wxUSE_FFILE 1
e6cc62c6 29746_ACEOF
1e6feb95
VZ
29747
29748fi
29749
24528b0c 29750if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 29751 cat >>confdefs.h <<\_ACEOF
24528b0c 29752#define wxUSE_FILESYSTEM 1
e6cc62c6 29753_ACEOF
24528b0c
VS
29754
29755fi
29756
10f2d63a 29757if test "$wxUSE_FS_INET" = "yes"; then
e6cc62c6 29758 cat >>confdefs.h <<\_ACEOF
10f2d63a 29759#define wxUSE_FS_INET 1
e6cc62c6 29760_ACEOF
10f2d63a
VZ
29761
29762fi
29763
29764if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 29765 cat >>confdefs.h <<\_ACEOF
10f2d63a 29766#define wxUSE_FS_ZIP 1
e6cc62c6 29767_ACEOF
10f2d63a
VZ
29768
29769fi
29770
29771if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 29772 cat >>confdefs.h <<\_ACEOF
10f2d63a 29773#define wxUSE_ZIPSTREAM 1
e6cc62c6 29774_ACEOF
10f2d63a
VZ
29775
29776fi
29777
eb4efbdc 29778if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 29779 cat >>confdefs.h <<\_ACEOF
eb4efbdc 29780#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 29781_ACEOF
eb4efbdc
VZ
29782
29783fi
29784
4f3c5f06 29785if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 29786 cat >>confdefs.h <<\_ACEOF
4f3c5f06 29787#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 29788_ACEOF
4f3c5f06
VZ
29789
29790fi
29791
10f2d63a 29792if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 29793 cat >>confdefs.h <<\_ACEOF
10f2d63a 29794#define wxUSE_BUSYINFO 1
e6cc62c6 29795_ACEOF
10f2d63a
VZ
29796
29797fi
29798
29799if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 29800 cat >>confdefs.h <<\_ACEOF
10f2d63a 29801#define wxUSE_STD_IOSTREAM 1
e6cc62c6 29802_ACEOF
10f2d63a
VZ
29803
29804fi
29805
a3a584a7 29806if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 29807 cat >>confdefs.h <<\_ACEOF
a3a584a7 29808#define wxUSE_TEXTBUFFER 1
e6cc62c6 29809_ACEOF
a3a584a7
VZ
29810
29811fi
29812
10f2d63a 29813if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 29814 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
29815 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
29816echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 29817 else
e6cc62c6 29818 cat >>confdefs.h <<\_ACEOF
10f2d63a 29819#define wxUSE_TEXTFILE 1
e6cc62c6 29820_ACEOF
10f2d63a
VZ
29821
29822 fi
29823fi
29824
29825if test "$wxUSE_CONFIG" = "yes" ; then
29826 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
29827 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
29828echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 29829 else
e6cc62c6 29830 cat >>confdefs.h <<\_ACEOF
10f2d63a 29831#define wxUSE_CONFIG 1
e6cc62c6 29832_ACEOF
10f2d63a
VZ
29833
29834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
29835 fi
29836fi
29837
29838if test "$wxUSE_INTL" = "yes" ; then
29839 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
29840 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
29841echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 29842 else
e6cc62c6 29843 cat >>confdefs.h <<\_ACEOF
10f2d63a 29844#define wxUSE_INTL 1
e6cc62c6 29845_ACEOF
10f2d63a
VZ
29846
29847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 29848 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
29849 fi
29850fi
29851
29852if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 29853 cat >>confdefs.h <<\_ACEOF
10f2d63a 29854#define wxUSE_LOG 1
e6cc62c6 29855_ACEOF
10f2d63a 29856
8284b0c5 29857
d73be714 29858 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 29859 cat >>confdefs.h <<\_ACEOF
d73be714 29860#define wxUSE_LOGGUI 1
e6cc62c6 29861_ACEOF
d73be714
VZ
29862
29863 fi
29864
29865 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 29866 cat >>confdefs.h <<\_ACEOF
d73be714 29867#define wxUSE_LOGWINDOW 1
e6cc62c6 29868_ACEOF
69d27ff7
MB
29869
29870 fi
29871
29872 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 29873 cat >>confdefs.h <<\_ACEOF
69d27ff7 29874#define wxUSE_LOG_DIALOG 1
e6cc62c6 29875_ACEOF
d73be714
VZ
29876
29877 fi
10f2d63a
VZ
29878fi
29879
29880if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 29881 cat >>confdefs.h <<\_ACEOF
10f2d63a 29882#define wxUSE_LONGLONG 1
e6cc62c6 29883_ACEOF
10f2d63a
VZ
29884
29885fi
29886
e8f65ba6 29887if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 29888 cat >>confdefs.h <<\_ACEOF
e8f65ba6 29889#define wxUSE_GEOMETRY 1
e6cc62c6 29890_ACEOF
e8f65ba6
RR
29891
29892fi
29893
10f2d63a 29894if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 29895 cat >>confdefs.h <<\_ACEOF
10f2d63a 29896#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 29897_ACEOF
10f2d63a 29898
70f7a477 29899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
29900fi
29901
29902if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 29903 cat >>confdefs.h <<\_ACEOF
10f2d63a 29904#define wxUSE_STREAMS 1
e6cc62c6 29905_ACEOF
10f2d63a
VZ
29906
29907fi
29908
5c6fa7d2 29909
8284b0c5 29910if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
29911
29912for ac_func in strptime
83307f33 29913do
e6cc62c6
VS
29914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29915echo "$as_me:$LINENO: checking for $ac_func" >&5
29916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29917if eval "test \"\${$as_ac_var+set}\" = set"; then
29918 echo $ECHO_N "(cached) $ECHO_C" >&6
29919else
29920 cat >conftest.$ac_ext <<_ACEOF
29921#line $LINENO "configure"
29922/* confdefs.h. */
29923_ACEOF
29924cat confdefs.h >>conftest.$ac_ext
29925cat >>conftest.$ac_ext <<_ACEOF
29926/* end confdefs.h. */
83307f33 29927/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29928 which can conflict with char $ac_func (); below.
29929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29930 <limits.h> exists even on freestanding compilers. */
29931#ifdef __STDC__
29932# include <limits.h>
29933#else
29934# include <assert.h>
29935#endif
83307f33 29936/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29937#ifdef __cplusplus
29938extern "C"
29939{
29940#endif
83307f33 29941/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29942 builtin and then its argument prototype would still apply. */
29943char $ac_func ();
83307f33
VZ
29944/* The GNU C library defines this for functions which it implements
29945 to always fail with ENOSYS. Some functions are actually named
29946 something starting with __ and the normal name is an alias. */
29947#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29948choke me
29949#else
e6cc62c6
VS
29950char (*f) () = $ac_func;
29951#endif
29952#ifdef __cplusplus
29953}
83307f33
VZ
29954#endif
29955
e6cc62c6
VS
29956int
29957main ()
29958{
29959return f != $ac_func;
29960 ;
29961 return 0;
29962}
29963_ACEOF
29964rm -f conftest.$ac_objext conftest$ac_exeext
29965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29966 (eval $ac_link) 2>&5
29967 ac_status=$?
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); } &&
29970 { ac_try='test -s conftest$ac_exeext'
29971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29972 (eval $ac_try) 2>&5
29973 ac_status=$?
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); }; }; then
29976 eval "$as_ac_var=yes"
29977else
29978 echo "$as_me: failed program was:" >&5
29979sed 's/^/| /' conftest.$ac_ext >&5
29980
29981eval "$as_ac_var=no"
29982fi
29983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29984fi
29985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29986echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29987if test `eval echo '${'$as_ac_var'}'` = yes; then
29988 cat >>confdefs.h <<_ACEOF
29989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29990_ACEOF
83307f33 29991
83307f33
VZ
29992fi
29993done
29994
5c6fa7d2 29995
e6cc62c6
VS
29996 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
29997echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
29998if test "${wx_cv_var_timezone+set}" = set; then
29999 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30000else
e6cc62c6
VS
30001
30002 cat >conftest.$ac_ext <<_ACEOF
30003#line $LINENO "configure"
30004/* confdefs.h. */
30005_ACEOF
30006cat confdefs.h >>conftest.$ac_ext
30007cat >>conftest.$ac_ext <<_ACEOF
30008/* end confdefs.h. */
360d6699 30009
b4085ce6 30010 #include <time.h>
e6cc62c6
VS
30011
30012int
30013main ()
30014{
360d6699
VZ
30015
30016 int tz;
4f11a343 30017 tz = timezone;
e6cc62c6
VS
30018
30019 ;
30020 return 0;
30021}
30022_ACEOF
30023rm -f conftest.$ac_objext
30024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30025 (eval $ac_compile) 2>&5
30026 ac_status=$?
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); } &&
30029 { ac_try='test -s conftest.$ac_objext'
30030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30031 (eval $ac_try) 2>&5
30032 ac_status=$?
30033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034 (exit $ac_status); }; }; then
30035
4f11a343 30036 wx_cv_var_timezone=timezone
e6cc62c6 30037
360d6699 30038else
e6cc62c6
VS
30039 echo "$as_me: failed program was:" >&5
30040sed 's/^/| /' conftest.$ac_ext >&5
30041
30042
30043 cat >conftest.$ac_ext <<_ACEOF
30044#line $LINENO "configure"
30045/* confdefs.h. */
30046_ACEOF
30047cat confdefs.h >>conftest.$ac_ext
30048cat >>conftest.$ac_ext <<_ACEOF
30049/* end confdefs.h. */
360d6699 30050
b4085ce6 30051 #include <time.h>
e6cc62c6
VS
30052
30053int
30054main ()
30055{
360d6699
VZ
30056
30057 int tz;
30058 tz = _timezone;
e6cc62c6
VS
30059
30060 ;
30061 return 0;
30062}
30063_ACEOF
30064rm -f conftest.$ac_objext
30065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30066 (eval $ac_compile) 2>&5
30067 ac_status=$?
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); } &&
30070 { ac_try='test -s conftest.$ac_objext'
30071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30072 (eval $ac_try) 2>&5
30073 ac_status=$?
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); }; }; then
30076
360d6699 30077 wx_cv_var_timezone=_timezone
e6cc62c6 30078
5357c8e8 30079else
e6cc62c6
VS
30080 echo "$as_me: failed program was:" >&5
30081sed 's/^/| /' conftest.$ac_ext >&5
30082
30083
30084 cat >conftest.$ac_ext <<_ACEOF
30085#line $LINENO "configure"
30086/* confdefs.h. */
30087_ACEOF
30088cat confdefs.h >>conftest.$ac_ext
30089cat >>conftest.$ac_ext <<_ACEOF
30090/* end confdefs.h. */
5357c8e8 30091
b4085ce6 30092 #include <time.h>
e6cc62c6
VS
30093
30094int
30095main ()
30096{
5357c8e8
VZ
30097
30098 int tz;
4f11a343 30099 tz = __timezone;
e6cc62c6
VS
30100
30101 ;
30102 return 0;
30103}
30104_ACEOF
30105rm -f conftest.$ac_objext
30106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30107 (eval $ac_compile) 2>&5
30108 ac_status=$?
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); } &&
30111 { ac_try='test -s conftest.$ac_objext'
30112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30113 (eval $ac_try) 2>&5
30114 ac_status=$?
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; }; then
30117
4f11a343 30118 wx_cv_var_timezone=__timezone
e6cc62c6 30119
360d6699 30120else
e6cc62c6
VS
30121 echo "$as_me: failed program was:" >&5
30122sed 's/^/| /' conftest.$ac_ext >&5
30123
30124
f9bc1684 30125 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30126 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30127echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30128 fi
e6cc62c6
VS
30129
30130
7b4a847f 30131fi
e6cc62c6
VS
30132rm -f conftest.$ac_objext conftest.$ac_ext
30133
30134
5c6fa7d2 30135fi
e6cc62c6
VS
30136rm -f conftest.$ac_objext conftest.$ac_ext
30137
30138
247f5006 30139fi
e6cc62c6 30140rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30141
e6cc62c6
VS
30142
30143fi
30144echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30145echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30146
f9bc1684 30147 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30148 cat >>confdefs.h <<_ACEOF
360d6699 30149#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30150_ACEOF
360d6699 30151
f9bc1684 30152 fi
698dcdb6 30153
e6cc62c6
VS
30154
30155for ac_func in localtime
afc31813 30156do
e6cc62c6
VS
30157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30158echo "$as_me:$LINENO: checking for $ac_func" >&5
30159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30160if eval "test \"\${$as_ac_var+set}\" = set"; then
30161 echo $ECHO_N "(cached) $ECHO_C" >&6
30162else
30163 cat >conftest.$ac_ext <<_ACEOF
30164#line $LINENO "configure"
30165/* confdefs.h. */
30166_ACEOF
30167cat confdefs.h >>conftest.$ac_ext
30168cat >>conftest.$ac_ext <<_ACEOF
30169/* end confdefs.h. */
afc31813 30170/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30171 which can conflict with char $ac_func (); below.
30172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30173 <limits.h> exists even on freestanding compilers. */
30174#ifdef __STDC__
30175# include <limits.h>
30176#else
30177# include <assert.h>
30178#endif
afc31813 30179/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30180#ifdef __cplusplus
30181extern "C"
30182{
30183#endif
afc31813 30184/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30185 builtin and then its argument prototype would still apply. */
30186char $ac_func ();
afc31813
VZ
30187/* The GNU C library defines this for functions which it implements
30188 to always fail with ENOSYS. Some functions are actually named
30189 something starting with __ and the normal name is an alias. */
30190#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30191choke me
30192#else
e6cc62c6
VS
30193char (*f) () = $ac_func;
30194#endif
30195#ifdef __cplusplus
30196}
afc31813
VZ
30197#endif
30198
e6cc62c6
VS
30199int
30200main ()
30201{
30202return f != $ac_func;
30203 ;
30204 return 0;
30205}
30206_ACEOF
30207rm -f conftest.$ac_objext conftest$ac_exeext
30208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30209 (eval $ac_link) 2>&5
30210 ac_status=$?
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); } &&
30213 { ac_try='test -s conftest$ac_exeext'
30214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30215 (eval $ac_try) 2>&5
30216 ac_status=$?
30217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); }; }; then
30219 eval "$as_ac_var=yes"
30220else
30221 echo "$as_me: failed program was:" >&5
30222sed 's/^/| /' conftest.$ac_ext >&5
30223
30224eval "$as_ac_var=no"
30225fi
30226rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30227fi
30228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30229echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30230if test `eval echo '${'$as_ac_var'}'` = yes; then
30231 cat >>confdefs.h <<_ACEOF
30232#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30233_ACEOF
afc31813 30234
afc31813
VZ
30235fi
30236done
30237
5c6fa7d2 30238
8284b0c5 30239 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30240 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30241echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30242if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30243 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30244else
e6cc62c6
VS
30245
30246 cat >conftest.$ac_ext <<_ACEOF
30247#line $LINENO "configure"
30248/* confdefs.h. */
30249_ACEOF
30250cat confdefs.h >>conftest.$ac_ext
30251cat >>conftest.$ac_ext <<_ACEOF
30252/* end confdefs.h. */
0470b1e6 30253
b4085ce6 30254 #include <time.h>
e6cc62c6
VS
30255
30256int
30257main ()
30258{
0470b1e6
VZ
30259
30260 struct tm tm;
30261 tm.tm_gmtoff++;
e6cc62c6
VS
30262
30263 ;
30264 return 0;
30265}
30266_ACEOF
30267rm -f conftest.$ac_objext
30268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30269 (eval $ac_compile) 2>&5
30270 ac_status=$?
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); } &&
30273 { ac_try='test -s conftest.$ac_objext'
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; }; then
30279
f03a98d8 30280 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30281
0470b1e6 30282else
e6cc62c6
VS
30283 echo "$as_me: failed program was:" >&5
30284sed 's/^/| /' conftest.$ac_ext >&5
30285
30286wx_cv_struct_tm_has_gmtoff=no
30287
247f5006 30288fi
e6cc62c6 30289rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30290
e6cc62c6
VS
30291fi
30292echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30293echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30294 fi
30295
30296 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30297 cat >>confdefs.h <<\_ACEOF
6232543b 30298#define WX_GMTOFF_IN_TM 1
e6cc62c6 30299_ACEOF
0470b1e6 30300
3fcdd07b
VZ
30301 fi
30302
e6cc62c6
VS
30303
30304
30305for ac_func in gettimeofday ftime
3fcdd07b 30306do
e6cc62c6
VS
30307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30308echo "$as_me:$LINENO: checking for $ac_func" >&5
30309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30310if eval "test \"\${$as_ac_var+set}\" = set"; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30312else
30313 cat >conftest.$ac_ext <<_ACEOF
30314#line $LINENO "configure"
30315/* confdefs.h. */
30316_ACEOF
30317cat confdefs.h >>conftest.$ac_ext
30318cat >>conftest.$ac_ext <<_ACEOF
30319/* end confdefs.h. */
3fcdd07b 30320/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30321 which can conflict with char $ac_func (); below.
30322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30323 <limits.h> exists even on freestanding compilers. */
30324#ifdef __STDC__
30325# include <limits.h>
30326#else
30327# include <assert.h>
30328#endif
3fcdd07b 30329/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30330#ifdef __cplusplus
30331extern "C"
30332{
30333#endif
3fcdd07b 30334/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30335 builtin and then its argument prototype would still apply. */
30336char $ac_func ();
3fcdd07b
VZ
30337/* The GNU C library defines this for functions which it implements
30338 to always fail with ENOSYS. Some functions are actually named
30339 something starting with __ and the normal name is an alias. */
30340#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30341choke me
30342#else
e6cc62c6
VS
30343char (*f) () = $ac_func;
30344#endif
30345#ifdef __cplusplus
30346}
3fcdd07b
VZ
30347#endif
30348
e6cc62c6
VS
30349int
30350main ()
30351{
30352return f != $ac_func;
30353 ;
30354 return 0;
30355}
30356_ACEOF
30357rm -f conftest.$ac_objext conftest$ac_exeext
30358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30359 (eval $ac_link) 2>&5
30360 ac_status=$?
30361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362 (exit $ac_status); } &&
30363 { ac_try='test -s conftest$ac_exeext'
30364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30365 (eval $ac_try) 2>&5
30366 ac_status=$?
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368 (exit $ac_status); }; }; then
30369 eval "$as_ac_var=yes"
30370else
30371 echo "$as_me: failed program was:" >&5
30372sed 's/^/| /' conftest.$ac_ext >&5
30373
30374eval "$as_ac_var=no"
30375fi
30376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30377fi
30378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30380if test `eval echo '${'$as_ac_var'}'` = yes; then
30381 cat >>confdefs.h <<_ACEOF
30382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30383_ACEOF
3fcdd07b 30384 break
3fcdd07b
VZ
30385fi
30386done
30387
698dcdb6 30388
8284b0c5 30389 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30390 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30391echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30392if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30393 echo $ECHO_N "(cached) $ECHO_C" >&6
30394else
30395
30396
30397
30398 ac_ext=cc
5c6fa7d2 30399ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 30403
8284b0c5 30404
e6cc62c6
VS
30405 cat >conftest.$ac_ext <<_ACEOF
30406#line $LINENO "configure"
30407/* confdefs.h. */
30408_ACEOF
30409cat confdefs.h >>conftest.$ac_ext
30410cat >>conftest.$ac_ext <<_ACEOF
30411/* end confdefs.h. */
afc31813
VZ
30412
30413 #include <sys/time.h>
30414 #include <unistd.h>
e6cc62c6
VS
30415
30416int
30417main ()
30418{
afc31813
VZ
30419
30420 struct timeval tv;
776862b4 30421 gettimeofday(&tv, NULL);
e6cc62c6
VS
30422
30423 ;
30424 return 0;
30425}
30426_ACEOF
30427rm -f conftest.$ac_objext
30428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30429 (eval $ac_compile) 2>&5
30430 ac_status=$?
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); } &&
30433 { ac_try='test -s conftest.$ac_objext'
30434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30435 (eval $ac_try) 2>&5
30436 ac_status=$?
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); }; }; then
afc31813 30439 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 30440else
e6cc62c6
VS
30441 echo "$as_me: failed program was:" >&5
30442sed 's/^/| /' conftest.$ac_ext >&5
30443
30444cat >conftest.$ac_ext <<_ACEOF
30445#line $LINENO "configure"
30446/* confdefs.h. */
30447_ACEOF
30448cat confdefs.h >>conftest.$ac_ext
30449cat >>conftest.$ac_ext <<_ACEOF
30450/* end confdefs.h. */
afc31813
VZ
30451
30452 #include <sys/time.h>
30453 #include <unistd.h>
e6cc62c6
VS
30454
30455int
30456main ()
30457{
afc31813
VZ
30458
30459 struct timeval tv;
30460 gettimeofday(&tv);
e6cc62c6
VS
30461
30462 ;
30463 return 0;
30464}
30465_ACEOF
30466rm -f conftest.$ac_objext
30467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30468 (eval $ac_compile) 2>&5
30469 ac_status=$?
30470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471 (exit $ac_status); } &&
30472 { ac_try='test -s conftest.$ac_objext'
30473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30474 (eval $ac_try) 2>&5
30475 ac_status=$?
30476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); }; }; then
afc31813 30478 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 30479else
e6cc62c6
VS
30480 echo "$as_me: failed program was:" >&5
30481sed 's/^/| /' conftest.$ac_ext >&5
30482
30483
30484 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30485echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 30486 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
30487
30488
10f2d63a 30489fi
e6cc62c6
VS
30490rm -f conftest.$ac_objext conftest.$ac_ext
30491
10f2d63a 30492fi
e6cc62c6 30493rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 30494 ac_ext=c
10f2d63a 30495ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30498ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 30499
a0b9e27f 30500
e6cc62c6
VS
30501fi
30502echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30503echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 30504
afc31813 30505 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 30506 cat >>confdefs.h <<\_ACEOF
afc31813 30507#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 30508_ACEOF
afc31813
VZ
30509
30510 fi
30511 fi
30512
afc31813
VZ
30513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30514fi
30515
8284b0c5 30516
52127426 30517if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 30518 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
30519 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30520echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
30521 wxUSE_SOCKETS="no"
30522 fi
0feee163 30523fi
b089607b 30524
0feee163
VZ
30525if test "$wxUSE_SOCKETS" = "yes"; then
30526 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30527 echo "$as_me:$LINENO: checking for socket" >&5
30528echo $ECHO_N "checking for socket... $ECHO_C" >&6
30529if test "${ac_cv_func_socket+set}" = set; then
30530 echo $ECHO_N "(cached) $ECHO_C" >&6
30531else
30532 cat >conftest.$ac_ext <<_ACEOF
30533#line $LINENO "configure"
30534/* confdefs.h. */
30535_ACEOF
30536cat confdefs.h >>conftest.$ac_ext
30537cat >>conftest.$ac_ext <<_ACEOF
30538/* end confdefs.h. */
c63c7106 30539/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30540 which can conflict with char socket (); below.
30541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30542 <limits.h> exists even on freestanding compilers. */
30543#ifdef __STDC__
30544# include <limits.h>
30545#else
30546# include <assert.h>
30547#endif
c63c7106 30548/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30549#ifdef __cplusplus
30550extern "C"
30551{
30552#endif
c63c7106 30553/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30554 builtin and then its argument prototype would still apply. */
30555char socket ();
c63c7106
VZ
30556/* The GNU C library defines this for functions which it implements
30557 to always fail with ENOSYS. Some functions are actually named
30558 something starting with __ and the normal name is an alias. */
30559#if defined (__stub_socket) || defined (__stub___socket)
30560choke me
30561#else
e6cc62c6
VS
30562char (*f) () = socket;
30563#endif
30564#ifdef __cplusplus
30565}
c63c7106
VZ
30566#endif
30567
e6cc62c6
VS
30568int
30569main ()
30570{
30571return f != socket;
30572 ;
30573 return 0;
30574}
30575_ACEOF
30576rm -f conftest.$ac_objext conftest$ac_exeext
30577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30578 (eval $ac_link) 2>&5
30579 ac_status=$?
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); } &&
30582 { ac_try='test -s conftest$ac_exeext'
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30585 ac_status=$?
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; }; then
30588 ac_cv_func_socket=yes
30589else
30590 echo "$as_me: failed program was:" >&5
30591sed 's/^/| /' conftest.$ac_ext >&5
30592
30593ac_cv_func_socket=no
30594fi
30595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30596fi
30597echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
30598echo "${ECHO_T}$ac_cv_func_socket" >&6
30599if test $ac_cv_func_socket = yes; then
c63c7106
VZ
30600 :
30601else
e6cc62c6
VS
30602 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
30603echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
30604if test "${ac_cv_lib_socket_socket+set}" = set; then
30605 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 30606else
e6cc62c6 30607 ac_check_lib_save_LIBS=$LIBS
c63c7106 30608LIBS="-lsocket $LIBS"
e6cc62c6
VS
30609cat >conftest.$ac_ext <<_ACEOF
30610#line $LINENO "configure"
30611/* confdefs.h. */
30612_ACEOF
30613cat confdefs.h >>conftest.$ac_ext
30614cat >>conftest.$ac_ext <<_ACEOF
30615/* end confdefs.h. */
30616
c63c7106 30617/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30618#ifdef __cplusplus
30619extern "C"
30620#endif
c63c7106 30621/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30622 builtin and then its argument prototype would still apply. */
30623char socket ();
30624int
30625main ()
30626{
30627socket ();
30628 ;
30629 return 0;
30630}
30631_ACEOF
30632rm -f conftest.$ac_objext conftest$ac_exeext
30633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30634 (eval $ac_link) 2>&5
30635 ac_status=$?
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); } &&
30638 { ac_try='test -s conftest$ac_exeext'
30639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640 (eval $ac_try) 2>&5
30641 ac_status=$?
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; }; then
30644 ac_cv_lib_socket_socket=yes
30645else
30646 echo "$as_me: failed program was:" >&5
30647sed 's/^/| /' conftest.$ac_ext >&5
30648
30649ac_cv_lib_socket_socket=no
30650fi
30651rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30652LIBS=$ac_check_lib_save_LIBS
30653fi
30654echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
30655echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
30656if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
30657 if test "$INET_LINK" != " -lsocket"; then
30658 INET_LINK="$INET_LINK -lsocket"
30659 fi
c63c7106 30660else
afc31813 30661
e6cc62c6
VS
30662 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
30663echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 30664 wxUSE_SOCKETS=no
e6cc62c6
VS
30665
30666
6232543b 30667fi
b089607b 30668
e6cc62c6 30669
1e487827 30670fi
afc31813 30671
3a922bb4 30672 fi
0feee163 30673fi
51a9faba 30674
0feee163
VZ
30675if test "$wxUSE_SOCKETS" = "yes" ; then
30676 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30677 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
30678echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
30679if test "${wx_cv_type_getsockname3+set}" = set; then
30680 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30681else
e6cc62c6
VS
30682
30683 cat >conftest.$ac_ext <<_ACEOF
30684#line $LINENO "configure"
30685/* confdefs.h. */
30686_ACEOF
30687cat confdefs.h >>conftest.$ac_ext
30688cat >>conftest.$ac_ext <<_ACEOF
30689/* end confdefs.h. */
51a9faba 30690
3a922bb4
RL
30691 #include <sys/types.h>
30692 #include <sys/socket.h>
e6cc62c6
VS
30693
30694int
30695main ()
30696{
51a9faba 30697
3a922bb4
RL
30698 socklen_t len;
30699 getsockname(0, 0, &len);
e6cc62c6
VS
30700
30701 ;
30702 return 0;
30703}
30704_ACEOF
30705rm -f conftest.$ac_objext
30706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30707 (eval $ac_compile) 2>&5
30708 ac_status=$?
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); } &&
30711 { ac_try='test -s conftest.$ac_objext'
30712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30713 (eval $ac_try) 2>&5
30714 ac_status=$?
30715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716 (exit $ac_status); }; }; then
51a9faba 30717 wx_cv_type_getsockname3=socklen_t
afc31813 30718else
e6cc62c6
VS
30719 echo "$as_me: failed program was:" >&5
30720sed 's/^/| /' conftest.$ac_ext >&5
30721
30722
9711d31e
GD
30723 CFLAGS_OLD="$CFLAGS"
30724 if test "$GCC" = yes ; then
30725 CFLAGS="$CFLAGS -Werror"
30726 fi
30727
e6cc62c6
VS
30728 cat >conftest.$ac_ext <<_ACEOF
30729#line $LINENO "configure"
30730/* confdefs.h. */
30731_ACEOF
30732cat confdefs.h >>conftest.$ac_ext
30733cat >>conftest.$ac_ext <<_ACEOF
30734/* end confdefs.h. */
51a9faba 30735
9711d31e
GD
30736 #include <sys/types.h>
30737 #include <sys/socket.h>
e6cc62c6
VS
30738
30739int
30740main ()
30741{
51a9faba 30742
9711d31e
GD
30743 size_t len;
30744 getsockname(0, 0, &len);
e6cc62c6
VS
30745
30746 ;
30747 return 0;
30748}
30749_ACEOF
30750rm -f conftest.$ac_objext
30751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30752 (eval $ac_compile) 2>&5
30753 ac_status=$?
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); } &&
30756 { ac_try='test -s conftest.$ac_objext'
30757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30758 (eval $ac_try) 2>&5
30759 ac_status=$?
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); }; }; then
51a9faba 30762 wx_cv_type_getsockname3=size_t
afc31813 30763else
e6cc62c6
VS
30764 echo "$as_me: failed program was:" >&5
30765sed 's/^/| /' conftest.$ac_ext >&5
30766
30767cat >conftest.$ac_ext <<_ACEOF
30768#line $LINENO "configure"
30769/* confdefs.h. */
30770_ACEOF
30771cat confdefs.h >>conftest.$ac_ext
30772cat >>conftest.$ac_ext <<_ACEOF
30773/* end confdefs.h. */
51a9faba 30774
9711d31e
GD
30775 #include <sys/types.h>
30776 #include <sys/socket.h>
e6cc62c6
VS
30777
30778int
30779main ()
30780{
51a9faba 30781
9711d31e
GD
30782 int len;
30783 getsockname(0, 0, &len);
e6cc62c6
VS
30784
30785 ;
30786 return 0;
30787}
30788_ACEOF
30789rm -f conftest.$ac_objext
30790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30791 (eval $ac_compile) 2>&5
30792 ac_status=$?
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); } &&
30795 { ac_try='test -s conftest.$ac_objext'
30796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30797 (eval $ac_try) 2>&5
30798 ac_status=$?
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); }; }; then
51a9faba 30801 wx_cv_type_getsockname3=int
afc31813 30802else
e6cc62c6
VS
30803 echo "$as_me: failed program was:" >&5
30804sed 's/^/| /' conftest.$ac_ext >&5
30805
30806wx_cv_type_getsockname3=unknown
30807
afc31813 30808fi
e6cc62c6
VS
30809rm -f conftest.$ac_objext conftest.$ac_ext
30810
afc31813 30811fi
e6cc62c6 30812rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
30813
30814 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
30815
30816
247f5006 30817fi
e6cc62c6 30818rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30819
e6cc62c6
VS
30820fi
30821echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
30822echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 30823
3a922bb4
RL
30824 if test "$wx_cv_type_getsockname3" = "unknown"; then
30825 wxUSE_SOCKETS=no
e6cc62c6
VS
30826 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
30827echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 30828 else
e6cc62c6 30829 cat >>confdefs.h <<_ACEOF
51a9faba 30830#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 30831_ACEOF
51a9faba 30832
3a922bb4 30833 fi
51a9faba
VZ
30834 fi
30835fi
afc31813 30836
51a9faba 30837if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 30838 cat >>confdefs.h <<\_ACEOF
afc31813 30839#define wxUSE_SOCKETS 1
e6cc62c6 30840_ACEOF
afc31813 30841
70f7a477 30842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
30843fi
30844
8284b0c5 30845
dc3d889d
VZ
30846if test "$wxUSE_GUI" = "yes"; then
30847
ac0c4cc3 30848 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
30849 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
30850echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
30851 wxUSE_JOYSTICK=no
30852 fi
30853 if test "$TOOLKIT" = "MOTIF"; then
e6cc62c6
VS
30854 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5
30855echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
156b2523 30856 wxUSE_JOYSTICK=no
f79bd02d
JS
30857 fi
30858 if test "$TOOLKIT" = "X11"; then
e6cc62c6
VS
30859 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5
30860echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
f79bd02d 30861 wxUSE_JOYSTICK=no
156b2523
GD
30862 fi
30863
3a922bb4
RL
30864 if test "$TOOLKIT" != "MSW"; then
30865 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
30866
30867for ac_header in linux/joystick.h
10f2d63a 30868do
e6cc62c6
VS
30869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30870if eval "test \"\${$as_ac_Header+set}\" = set"; then
30871 echo "$as_me:$LINENO: checking for $ac_header" >&5
30872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30873if eval "test \"\${$as_ac_Header+set}\" = set"; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
30875fi
30876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30878else
30879 # Is the header compilable?
30880echo "$as_me:$LINENO: checking $ac_header usability" >&5
30881echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30882cat >conftest.$ac_ext <<_ACEOF
30883#line $LINENO "configure"
30884/* confdefs.h. */
30885_ACEOF
30886cat confdefs.h >>conftest.$ac_ext
30887cat >>conftest.$ac_ext <<_ACEOF
30888/* end confdefs.h. */
30889$ac_includes_default
30890#include <$ac_header>
30891_ACEOF
30892rm -f conftest.$ac_objext
30893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30894 (eval $ac_compile) 2>&5
30895 ac_status=$?
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); } &&
30898 { ac_try='test -s conftest.$ac_objext'
30899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30900 (eval $ac_try) 2>&5
30901 ac_status=$?
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903 (exit $ac_status); }; }; then
30904 ac_header_compiler=yes
30905else
30906 echo "$as_me: failed program was:" >&5
30907sed 's/^/| /' conftest.$ac_ext >&5
30908
30909ac_header_compiler=no
30910fi
30911rm -f conftest.$ac_objext conftest.$ac_ext
30912echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30913echo "${ECHO_T}$ac_header_compiler" >&6
30914
30915# Is the header present?
30916echo "$as_me:$LINENO: checking $ac_header presence" >&5
30917echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30918cat >conftest.$ac_ext <<_ACEOF
30919#line $LINENO "configure"
30920/* confdefs.h. */
30921_ACEOF
30922cat confdefs.h >>conftest.$ac_ext
30923cat >>conftest.$ac_ext <<_ACEOF
30924/* end confdefs.h. */
30925#include <$ac_header>
30926_ACEOF
30927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30929 ac_status=$?
30930 grep -v '^ *+' conftest.er1 >conftest.err
30931 rm -f conftest.er1
30932 cat conftest.err >&5
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); } >/dev/null; then
30935 if test -s conftest.err; then
30936 ac_cpp_err=$ac_c_preproc_warn_flag
30937 else
30938 ac_cpp_err=
30939 fi
30940else
30941 ac_cpp_err=yes
30942fi
30943if test -z "$ac_cpp_err"; then
30944 ac_header_preproc=yes
30945else
30946 echo "$as_me: failed program was:" >&5
30947sed 's/^/| /' conftest.$ac_ext >&5
30948
30949 ac_header_preproc=no
30950fi
30951rm -f conftest.err conftest.$ac_ext
30952echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30953echo "${ECHO_T}$ac_header_preproc" >&6
30954
30955# So? What about this header?
30956case $ac_header_compiler:$ac_header_preproc in
30957 yes:no )
30958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30962 (
30963 cat <<\_ASBOX
30964## ------------------------------------ ##
30965## Report this to bug-autoconf@gnu.org. ##
30966## ------------------------------------ ##
30967_ASBOX
30968 ) |
30969 sed "s/^/$as_me: WARNING: /" >&2
30970 ;;
30971 no:yes )
30972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30977echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30978 (
30979 cat <<\_ASBOX
30980## ------------------------------------ ##
30981## Report this to bug-autoconf@gnu.org. ##
30982## ------------------------------------ ##
30983_ASBOX
30984 ) |
30985 sed "s/^/$as_me: WARNING: /" >&2
30986 ;;
30987esac
30988echo "$as_me:$LINENO: checking for $ac_header" >&5
30989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30990if eval "test \"\${$as_ac_Header+set}\" = set"; then
30991 echo $ECHO_N "(cached) $ECHO_C" >&6
30992else
30993 eval "$as_ac_Header=$ac_header_preproc"
247f5006 30994fi
e6cc62c6
VS
30995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30997
10f2d63a 30998fi
e6cc62c6
VS
30999if test `eval echo '${'$as_ac_Header'}'` = yes; then
31000 cat >>confdefs.h <<_ACEOF
31001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31002_ACEOF
31003
247f5006 31004fi
e6cc62c6 31005
10f2d63a
VZ
31006done
31007
3a922bb4
RL
31008 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31009 wxUSE_JOYSTICK=no
e6cc62c6
VS
31010 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31011echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31012 fi
31013 fi
31014 fi
b089607b 31015
3a922bb4 31016 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31017 cat >>confdefs.h <<\_ACEOF
10f2d63a 31018#define wxUSE_JOYSTICK 1
e6cc62c6 31019_ACEOF
10f2d63a 31020
3a922bb4
RL
31021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31022 fi
dc3d889d
VZ
31023fi
31024
8284b0c5 31025
b089607b
VZ
31026if test "$TOOLKIT" != "MSW"; then
31027
3a922bb4
RL
31028 HAVE_DL_FUNCS=0
31029 HAVE_SHL_FUNCS=0
0b9ab0bd 31030 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31031 if test "$USE_DARWIN" = 1; then
31032 HAVE_DL_FUNCS=1
31033 else
e6cc62c6
VS
31034
31035for ac_func in dlopen
10f2d63a 31036do
e6cc62c6
VS
31037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31038echo "$as_me:$LINENO: checking for $ac_func" >&5
31039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31040if eval "test \"\${$as_ac_var+set}\" = set"; then
31041 echo $ECHO_N "(cached) $ECHO_C" >&6
31042else
31043 cat >conftest.$ac_ext <<_ACEOF
31044#line $LINENO "configure"
31045/* confdefs.h. */
31046_ACEOF
31047cat confdefs.h >>conftest.$ac_ext
31048cat >>conftest.$ac_ext <<_ACEOF
31049/* end confdefs.h. */
10f2d63a 31050/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31051 which can conflict with char $ac_func (); below.
31052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31053 <limits.h> exists even on freestanding compilers. */
31054#ifdef __STDC__
31055# include <limits.h>
31056#else
31057# include <assert.h>
31058#endif
10f2d63a 31059/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31060#ifdef __cplusplus
31061extern "C"
31062{
31063#endif
10f2d63a 31064/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31065 builtin and then its argument prototype would still apply. */
31066char $ac_func ();
10f2d63a
VZ
31067/* The GNU C library defines this for functions which it implements
31068 to always fail with ENOSYS. Some functions are actually named
31069 something starting with __ and the normal name is an alias. */
31070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31071choke me
31072#else
e6cc62c6
VS
31073char (*f) () = $ac_func;
31074#endif
31075#ifdef __cplusplus
31076}
10f2d63a
VZ
31077#endif
31078
e6cc62c6
VS
31079int
31080main ()
31081{
31082return f != $ac_func;
31083 ;
31084 return 0;
31085}
31086_ACEOF
31087rm -f conftest.$ac_objext conftest$ac_exeext
31088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31089 (eval $ac_link) 2>&5
31090 ac_status=$?
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); } &&
31093 { ac_try='test -s conftest$ac_exeext'
31094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31095 (eval $ac_try) 2>&5
31096 ac_status=$?
31097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098 (exit $ac_status); }; }; then
31099 eval "$as_ac_var=yes"
31100else
31101 echo "$as_me: failed program was:" >&5
31102sed 's/^/| /' conftest.$ac_ext >&5
31103
31104eval "$as_ac_var=no"
31105fi
31106rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31107fi
31108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31109echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31110if test `eval echo '${'$as_ac_var'}'` = yes; then
31111 cat >>confdefs.h <<_ACEOF
31112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31113_ACEOF
31114
31115 cat >>confdefs.h <<\_ACEOF
10f2d63a 31116#define HAVE_DLOPEN 1
e6cc62c6 31117_ACEOF
10f2d63a 31118
3a922bb4 31119 HAVE_DL_FUNCS=1
e6cc62c6 31120
10f2d63a 31121else
e6cc62c6
VS
31122
31123 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31124echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31125if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31126 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31127else
e6cc62c6 31128 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31129LIBS="-ldl $LIBS"
e6cc62c6
VS
31130cat >conftest.$ac_ext <<_ACEOF
31131#line $LINENO "configure"
31132/* confdefs.h. */
31133_ACEOF
31134cat confdefs.h >>conftest.$ac_ext
31135cat >>conftest.$ac_ext <<_ACEOF
31136/* end confdefs.h. */
31137
10f2d63a 31138/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31139#ifdef __cplusplus
31140extern "C"
31141#endif
10f2d63a 31142/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31143 builtin and then its argument prototype would still apply. */
31144char dlopen ();
31145int
31146main ()
31147{
31148dlopen ();
31149 ;
31150 return 0;
31151}
31152_ACEOF
31153rm -f conftest.$ac_objext conftest$ac_exeext
31154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31155 (eval $ac_link) 2>&5
31156 ac_status=$?
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); } &&
31159 { ac_try='test -s conftest$ac_exeext'
31160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31161 (eval $ac_try) 2>&5
31162 ac_status=$?
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); }; }; then
31165 ac_cv_lib_dl_dlopen=yes
31166else
31167 echo "$as_me: failed program was:" >&5
31168sed 's/^/| /' conftest.$ac_ext >&5
31169
31170ac_cv_lib_dl_dlopen=no
31171fi
31172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31173LIBS=$ac_check_lib_save_LIBS
31174fi
31175echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31176echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31177if test $ac_cv_lib_dl_dlopen = yes; then
31178
31179 cat >>confdefs.h <<\_ACEOF
10f2d63a 31180#define HAVE_DLOPEN 1
e6cc62c6 31181_ACEOF
10f2d63a 31182
3a922bb4 31183 HAVE_DL_FUNCS=1
3d63bc3a 31184 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31185
10f2d63a 31186else
10f2d63a 31187
e6cc62c6
VS
31188
31189for ac_func in shl_load
10f2d63a 31190do
e6cc62c6
VS
31191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31192echo "$as_me:$LINENO: checking for $ac_func" >&5
31193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31194if eval "test \"\${$as_ac_var+set}\" = set"; then
31195 echo $ECHO_N "(cached) $ECHO_C" >&6
31196else
31197 cat >conftest.$ac_ext <<_ACEOF
31198#line $LINENO "configure"
31199/* confdefs.h. */
31200_ACEOF
31201cat confdefs.h >>conftest.$ac_ext
31202cat >>conftest.$ac_ext <<_ACEOF
31203/* end confdefs.h. */
10f2d63a 31204/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31205 which can conflict with char $ac_func (); below.
31206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31207 <limits.h> exists even on freestanding compilers. */
31208#ifdef __STDC__
31209# include <limits.h>
31210#else
31211# include <assert.h>
31212#endif
10f2d63a 31213/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31214#ifdef __cplusplus
31215extern "C"
31216{
31217#endif
10f2d63a 31218/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31219 builtin and then its argument prototype would still apply. */
31220char $ac_func ();
10f2d63a
VZ
31221/* The GNU C library defines this for functions which it implements
31222 to always fail with ENOSYS. Some functions are actually named
31223 something starting with __ and the normal name is an alias. */
31224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31225choke me
31226#else
e6cc62c6
VS
31227char (*f) () = $ac_func;
31228#endif
31229#ifdef __cplusplus
31230}
10f2d63a
VZ
31231#endif
31232
e6cc62c6
VS
31233int
31234main ()
31235{
31236return f != $ac_func;
31237 ;
31238 return 0;
31239}
31240_ACEOF
31241rm -f conftest.$ac_objext conftest$ac_exeext
31242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31243 (eval $ac_link) 2>&5
31244 ac_status=$?
31245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); } &&
31247 { ac_try='test -s conftest$ac_exeext'
31248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31249 (eval $ac_try) 2>&5
31250 ac_status=$?
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); }; }; then
31253 eval "$as_ac_var=yes"
31254else
31255 echo "$as_me: failed program was:" >&5
31256sed 's/^/| /' conftest.$ac_ext >&5
31257
31258eval "$as_ac_var=no"
31259fi
31260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31261fi
31262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31263echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31264if test `eval echo '${'$as_ac_var'}'` = yes; then
31265 cat >>confdefs.h <<_ACEOF
31266#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31267_ACEOF
31268
31269 cat >>confdefs.h <<\_ACEOF
10f2d63a 31270#define HAVE_SHL_LOAD 1
e6cc62c6 31271_ACEOF
10f2d63a 31272
3a922bb4 31273 HAVE_SHL_FUNCS=1
e6cc62c6 31274
10f2d63a 31275else
e6cc62c6
VS
31276
31277 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31278echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31279if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31280 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31281else
e6cc62c6 31282 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31283LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31284cat >conftest.$ac_ext <<_ACEOF
31285#line $LINENO "configure"
31286/* confdefs.h. */
31287_ACEOF
31288cat confdefs.h >>conftest.$ac_ext
31289cat >>conftest.$ac_ext <<_ACEOF
31290/* end confdefs.h. */
31291
8284b0c5 31292/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31293#ifdef __cplusplus
31294extern "C"
31295#endif
f6bcfd97 31296/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31297 builtin and then its argument prototype would still apply. */
31298char dld ();
31299int
31300main ()
31301{
31302dld ();
31303 ;
31304 return 0;
31305}
31306_ACEOF
31307rm -f conftest.$ac_objext conftest$ac_exeext
31308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31309 (eval $ac_link) 2>&5
31310 ac_status=$?
31311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312 (exit $ac_status); } &&
31313 { ac_try='test -s conftest$ac_exeext'
31314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31315 (eval $ac_try) 2>&5
31316 ac_status=$?
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; }; then
31319 ac_cv_lib_shl_load_dld=yes
31320else
31321 echo "$as_me: failed program was:" >&5
31322sed 's/^/| /' conftest.$ac_ext >&5
31323
31324ac_cv_lib_shl_load_dld=no
31325fi
31326rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31327LIBS=$ac_check_lib_save_LIBS
31328fi
31329echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31330echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31331if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31332
3a922bb4 31333 HAVE_SHL_FUNCS=1
3d63bc3a 31334 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31335
f6bcfd97
BP
31336fi
31337
e6cc62c6 31338
10f2d63a
VZ
31339fi
31340done
31341
e6cc62c6 31342
10f2d63a
VZ
31343fi
31344
e6cc62c6 31345
10f2d63a
VZ
31346fi
31347done
31348
5c6fa7d2 31349
8284b0c5 31350 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
31351
31352for ac_func in dlerror
f6bcfd97 31353do
e6cc62c6
VS
31354as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31355echo "$as_me:$LINENO: checking for $ac_func" >&5
31356echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31357if eval "test \"\${$as_ac_var+set}\" = set"; then
31358 echo $ECHO_N "(cached) $ECHO_C" >&6
31359else
31360 cat >conftest.$ac_ext <<_ACEOF
31361#line $LINENO "configure"
31362/* confdefs.h. */
31363_ACEOF
31364cat confdefs.h >>conftest.$ac_ext
31365cat >>conftest.$ac_ext <<_ACEOF
31366/* end confdefs.h. */
f6bcfd97 31367/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31368 which can conflict with char $ac_func (); below.
31369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31370 <limits.h> exists even on freestanding compilers. */
31371#ifdef __STDC__
31372# include <limits.h>
31373#else
31374# include <assert.h>
31375#endif
f6bcfd97 31376/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31377#ifdef __cplusplus
31378extern "C"
31379{
31380#endif
f6bcfd97 31381/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31382 builtin and then its argument prototype would still apply. */
31383char $ac_func ();
f6bcfd97
BP
31384/* The GNU C library defines this for functions which it implements
31385 to always fail with ENOSYS. Some functions are actually named
31386 something starting with __ and the normal name is an alias. */
31387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31388choke me
31389#else
e6cc62c6
VS
31390char (*f) () = $ac_func;
31391#endif
31392#ifdef __cplusplus
31393}
f6bcfd97
BP
31394#endif
31395
e6cc62c6
VS
31396int
31397main ()
31398{
31399return f != $ac_func;
31400 ;
31401 return 0;
31402}
31403_ACEOF
31404rm -f conftest.$ac_objext conftest$ac_exeext
31405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31406 (eval $ac_link) 2>&5
31407 ac_status=$?
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); } &&
31410 { ac_try='test -s conftest$ac_exeext'
31411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31412 (eval $ac_try) 2>&5
31413 ac_status=$?
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); }; }; then
31416 eval "$as_ac_var=yes"
31417else
31418 echo "$as_me: failed program was:" >&5
31419sed 's/^/| /' conftest.$ac_ext >&5
31420
31421eval "$as_ac_var=no"
31422fi
31423rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31424fi
31425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31427if test `eval echo '${'$as_ac_var'}'` = yes; then
31428 cat >>confdefs.h <<_ACEOF
31429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31430_ACEOF
31431 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31432#define HAVE_DLERROR 1
e6cc62c6 31433_ACEOF
f6bcfd97
BP
31434
31435else
e6cc62c6
VS
31436 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31437echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31438if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31439 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31440else
e6cc62c6 31441 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31442LIBS="-ldl $LIBS"
e6cc62c6
VS
31443cat >conftest.$ac_ext <<_ACEOF
31444#line $LINENO "configure"
31445/* confdefs.h. */
31446_ACEOF
31447cat confdefs.h >>conftest.$ac_ext
31448cat >>conftest.$ac_ext <<_ACEOF
31449/* end confdefs.h. */
31450
f6bcfd97 31451/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31452#ifdef __cplusplus
31453extern "C"
31454#endif
f6bcfd97 31455/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31456 builtin and then its argument prototype would still apply. */
31457char dlerror ();
31458int
31459main ()
31460{
31461dlerror ();
31462 ;
31463 return 0;
31464}
31465_ACEOF
31466rm -f conftest.$ac_objext conftest$ac_exeext
31467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31468 (eval $ac_link) 2>&5
31469 ac_status=$?
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); } &&
31472 { ac_try='test -s conftest$ac_exeext'
31473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31474 (eval $ac_try) 2>&5
31475 ac_status=$?
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); }; }; then
31478 ac_cv_lib_dl_dlerror=yes
31479else
31480 echo "$as_me: failed program was:" >&5
31481sed 's/^/| /' conftest.$ac_ext >&5
31482
31483ac_cv_lib_dl_dlerror=no
31484fi
31485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31486LIBS=$ac_check_lib_save_LIBS
31487fi
31488echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31489echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31490if test $ac_cv_lib_dl_dlerror = yes; then
31491 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31492#define HAVE_DLERROR 1
e6cc62c6 31493_ACEOF
f6bcfd97 31494
f6bcfd97
BP
31495fi
31496
31497fi
31498done
31499
3a922bb4
RL
31500 fi
31501 fi
f6bcfd97 31502
3a922bb4
RL
31503 if test "$HAVE_DL_FUNCS" = 0; then
31504 if test "$HAVE_SHL_FUNCS" = 0; then
31505 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
31506 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31507echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 31508 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
31509 wxUSE_DYNLIB_CLASS=no
31510 else
e6cc62c6
VS
31511 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31512echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
31513 fi
31514 fi
10f2d63a
VZ
31515 fi
31516 fi
31517fi
31518
0b9ab0bd 31519if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 31520 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 31521#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 31522_ACEOF
0b9ab0bd
RL
31523
31524elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 31525 cat >>confdefs.h <<\_ACEOF
10f2d63a 31526#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 31527_ACEOF
10f2d63a
VZ
31528
31529fi
31530
8284b0c5 31531
1e6feb95 31532if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 31533 cat >>confdefs.h <<\_ACEOF
1e6feb95 31534#define wxUSE_FONTMAP 1
e6cc62c6 31535_ACEOF
1e6feb95
VZ
31536
31537fi
31538
10f2d63a 31539if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 31540 cat >>confdefs.h <<\_ACEOF
10f2d63a 31541#define wxUSE_UNICODE 1
e6cc62c6 31542_ACEOF
10f2d63a 31543
8284b0c5 31544
bbc3925a
VS
31545 if test "$wxUSE_MSW" != 1; then
31546 wxUSE_UNICODE_MSLU=no
31547 fi
a72a4bfa
VS
31548
31549 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
31550 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
31551echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
31552if test "${ac_cv_lib_unicows_main+set}" = set; then
31553 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 31554else
e6cc62c6 31555 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 31556LIBS="-lunicows $LIBS"
e6cc62c6
VS
31557cat >conftest.$ac_ext <<_ACEOF
31558#line $LINENO "configure"
31559/* confdefs.h. */
31560_ACEOF
31561cat confdefs.h >>conftest.$ac_ext
31562cat >>conftest.$ac_ext <<_ACEOF
31563/* end confdefs.h. */
a72a4bfa 31564
8284b0c5 31565
e6cc62c6
VS
31566int
31567main ()
31568{
31569main ();
31570 ;
31571 return 0;
31572}
31573_ACEOF
31574rm -f conftest.$ac_objext conftest$ac_exeext
31575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31576 (eval $ac_link) 2>&5
31577 ac_status=$?
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); } &&
31580 { ac_try='test -s conftest$ac_exeext'
31581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31582 (eval $ac_try) 2>&5
31583 ac_status=$?
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); }; }; then
31586 ac_cv_lib_unicows_main=yes
31587else
31588 echo "$as_me: failed program was:" >&5
31589sed 's/^/| /' conftest.$ac_ext >&5
31590
31591ac_cv_lib_unicows_main=no
31592fi
31593rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31594LIBS=$ac_check_lib_save_LIBS
31595fi
31596echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
31597echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
31598if test $ac_cv_lib_unicows_main = yes; then
31599
31600 cat >>confdefs.h <<\_ACEOF
a72a4bfa 31601#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
31602_ACEOF
31603
a72a4bfa 31604
a72a4bfa 31605else
a72a4bfa 31606
e6cc62c6
VS
31607 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31608 Applications will only run on Windows NT/2000/XP!" >&5
31609echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31610 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 31611 wxUSE_UNICODE_MSLU=no
e6cc62c6 31612
a72a4bfa
VS
31613fi
31614
31615 fi
10f2d63a
VZ
31616fi
31617
10f2d63a 31618if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 31619 cat >>confdefs.h <<\_ACEOF
10f2d63a 31620#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 31621_ACEOF
10f2d63a
VZ
31622
31623fi
31624
8284b0c5 31625
10f2d63a 31626if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 31627 cat >>confdefs.h <<\_ACEOF
10f2d63a 31628#define wxUSE_POSTSCRIPT 1
e6cc62c6 31629_ACEOF
10f2d63a
VZ
31630
31631fi
31632
e6cc62c6 31633cat >>confdefs.h <<\_ACEOF
10f2d63a 31634#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 31635_ACEOF
10f2d63a 31636
8284b0c5 31637
e6cc62c6 31638cat >>confdefs.h <<\_ACEOF
10f2d63a 31639#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 31640_ACEOF
10f2d63a 31641
8284b0c5
MB
31642
31643
10f2d63a 31644if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 31645 cat >>confdefs.h <<\_ACEOF
10f2d63a 31646#define wxUSE_CONSTRAINTS 1
e6cc62c6 31647_ACEOF
10f2d63a
VZ
31648
31649 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
31650fi
31651
31652if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 31653
8284b0c5 31654
bb811f17 31655 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
e6cc62c6 31656 cat >>confdefs.h <<\_ACEOF
10f2d63a 31657#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 31658_ACEOF
10f2d63a 31659
bb811f17
JS
31660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
31661 fi
10f2d63a
VZ
31662fi
31663
31664if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 31665 cat >>confdefs.h <<\_ACEOF
10f2d63a 31666#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 31667_ACEOF
10f2d63a
VZ
31668
31669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
31670 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
31672 fi
31673fi
31674
31675if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 31676 cat >>confdefs.h <<\_ACEOF
10f2d63a 31677#define wxUSE_HELP 1
e6cc62c6 31678_ACEOF
10f2d63a
VZ
31679
31680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 31681
77e13408 31682 if test "$wxUSE_MSW" = 1; then
031d8228 31683 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 31684 cat >>confdefs.h <<\_ACEOF
29fd3c0c 31685#define wxUSE_MS_HTML_HELP 1
e6cc62c6 31686_ACEOF
29fd3c0c 31687
3e44f09d 31688 fi
3379ed37 31689 fi
031d8228
VS
31690
31691 if test "$wxUSE_WXHTML_HELP" = "yes"; then
31692 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 31693 cat >>confdefs.h <<\_ACEOF
031d8228 31694#define wxUSE_WXHTML_HELP 1
e6cc62c6 31695_ACEOF
031d8228
VS
31696
31697 else
e6cc62c6
VS
31698 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
31699echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
31700 wxUSE_WXHTML_HELP=no
31701 fi
31702 fi
10f2d63a
VZ
31703fi
31704
31705if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
31706 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
31707 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
31708echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 31709 else
e6cc62c6 31710 cat >>confdefs.h <<\_ACEOF
10f2d63a 31711#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 31712_ACEOF
10f2d63a
VZ
31713
31714 fi
31715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
31716fi
31717
e6cc62c6
VS
31718if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
31719 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
31720echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
31721 { (exit 1); exit 1; }; }
31722fi
31723
31724
31725if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
31726 -o "$wxUSE_CLIPBOARD" = "yes" \
31727 -o "$wxUSE_OLE" = "yes" \
31728 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
31729
31730for ac_header in ole2.h
31731do
31732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31733if eval "test \"\${$as_ac_Header+set}\" = set"; then
31734 echo "$as_me:$LINENO: checking for $ac_header" >&5
31735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31736if eval "test \"\${$as_ac_Header+set}\" = set"; then
31737 echo $ECHO_N "(cached) $ECHO_C" >&6
31738fi
31739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31741else
31742 # Is the header compilable?
31743echo "$as_me:$LINENO: checking $ac_header usability" >&5
31744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31745cat >conftest.$ac_ext <<_ACEOF
31746#line $LINENO "configure"
31747/* confdefs.h. */
31748_ACEOF
31749cat confdefs.h >>conftest.$ac_ext
31750cat >>conftest.$ac_ext <<_ACEOF
31751/* end confdefs.h. */
31752$ac_includes_default
31753#include <$ac_header>
31754_ACEOF
31755rm -f conftest.$ac_objext
31756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31757 (eval $ac_compile) 2>&5
31758 ac_status=$?
31759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); } &&
31761 { ac_try='test -s conftest.$ac_objext'
31762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31763 (eval $ac_try) 2>&5
31764 ac_status=$?
31765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766 (exit $ac_status); }; }; then
31767 ac_header_compiler=yes
31768else
31769 echo "$as_me: failed program was:" >&5
31770sed 's/^/| /' conftest.$ac_ext >&5
31771
31772ac_header_compiler=no
31773fi
31774rm -f conftest.$ac_objext conftest.$ac_ext
31775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31776echo "${ECHO_T}$ac_header_compiler" >&6
31777
31778# Is the header present?
31779echo "$as_me:$LINENO: checking $ac_header presence" >&5
31780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31781cat >conftest.$ac_ext <<_ACEOF
31782#line $LINENO "configure"
31783/* confdefs.h. */
31784_ACEOF
31785cat confdefs.h >>conftest.$ac_ext
31786cat >>conftest.$ac_ext <<_ACEOF
31787/* end confdefs.h. */
31788#include <$ac_header>
31789_ACEOF
31790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31792 ac_status=$?
31793 grep -v '^ *+' conftest.er1 >conftest.err
31794 rm -f conftest.er1
31795 cat conftest.err >&5
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); } >/dev/null; then
31798 if test -s conftest.err; then
31799 ac_cpp_err=$ac_c_preproc_warn_flag
31800 else
31801 ac_cpp_err=
31802 fi
31803else
31804 ac_cpp_err=yes
31805fi
31806if test -z "$ac_cpp_err"; then
31807 ac_header_preproc=yes
31808else
31809 echo "$as_me: failed program was:" >&5
31810sed 's/^/| /' conftest.$ac_ext >&5
31811
31812 ac_header_preproc=no
31813fi
31814rm -f conftest.err conftest.$ac_ext
31815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31816echo "${ECHO_T}$ac_header_preproc" >&6
31817
31818# So? What about this header?
31819case $ac_header_compiler:$ac_header_preproc in
31820 yes:no )
31821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31824echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31825 (
31826 cat <<\_ASBOX
31827## ------------------------------------ ##
31828## Report this to bug-autoconf@gnu.org. ##
31829## ------------------------------------ ##
31830_ASBOX
31831 ) |
31832 sed "s/^/$as_me: WARNING: /" >&2
31833 ;;
31834 no:yes )
31835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31841 (
31842 cat <<\_ASBOX
31843## ------------------------------------ ##
31844## Report this to bug-autoconf@gnu.org. ##
31845## ------------------------------------ ##
31846_ASBOX
31847 ) |
31848 sed "s/^/$as_me: WARNING: /" >&2
31849 ;;
31850esac
31851echo "$as_me:$LINENO: checking for $ac_header" >&5
31852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31853if eval "test \"\${$as_ac_Header+set}\" = set"; then
31854 echo $ECHO_N "(cached) $ECHO_C" >&6
31855else
31856 eval "$as_ac_Header=$ac_header_preproc"
31857fi
31858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31860
10f2d63a 31861fi
e6cc62c6
VS
31862if test `eval echo '${'$as_ac_Header'}'` = yes; then
31863 cat >>confdefs.h <<_ACEOF
31864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31865_ACEOF
10f2d63a 31866
10f2d63a 31867fi
e6cc62c6 31868
10f2d63a
VZ
31869done
31870
8284b0c5 31871
2b9bdf71
VZ
31872 if test "$ac_cv_header_ole2_h" = "yes" ; then
31873 if test "$GCC" = yes ; then
8284b0c5
MB
31874
31875
e6cc62c6
VS
31876 ac_ext=cc
31877ac_cpp='$CXXCPP $CPPFLAGS'
31878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31881
31882
31883 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
31884echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
31885 cat >conftest.$ac_ext <<_ACEOF
31886#line $LINENO "configure"
31887/* confdefs.h. */
31888_ACEOF
31889cat confdefs.h >>conftest.$ac_ext
31890cat >>conftest.$ac_ext <<_ACEOF
31891/* end confdefs.h. */
8284b0c5
MB
31892#include <windows.h>
31893 #include <ole2.h>
e6cc62c6
VS
31894int
31895main ()
31896{
8284b0c5 31897
e6cc62c6
VS
31898 ;
31899 return 0;
31900}
31901_ACEOF
31902rm -f conftest.$ac_objext
31903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31904 (eval $ac_compile) 2>&5
31905 ac_status=$?
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); } &&
31908 { ac_try='test -s conftest.$ac_objext'
31909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31910 (eval $ac_try) 2>&5
31911 ac_status=$?
31912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913 (exit $ac_status); }; }; then
31914 echo "$as_me:$LINENO: result: no" >&5
31915echo "${ECHO_T}no" >&6
31916else
31917 echo "$as_me: failed program was:" >&5
31918sed 's/^/| /' conftest.$ac_ext >&5
31919
31920echo "$as_me:$LINENO: result: yes" >&5
31921echo "${ECHO_T}yes" >&6
8284b0c5
MB
31922 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
31923fi
e6cc62c6 31924rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 31925 ac_ext=c
8284b0c5 31926ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31929ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 31930
2b9bdf71 31931 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 31932 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 31933 cat >>confdefs.h <<\_ACEOF
4f11a343 31934#define wxUSE_OLE 1
e6cc62c6 31935_ACEOF
4f11a343 31936
8284b0c5 31937
2b9bdf71
VZ
31938 fi
31939
e6cc62c6 31940 cat >>confdefs.h <<\_ACEOF
2b9bdf71 31941#define wxUSE_DATAOBJ 1
e6cc62c6 31942_ACEOF
2b9bdf71
VZ
31943
31944 else
e6cc62c6
VS
31945 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
31946echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
31947
31948 wxUSE_CLIPBOARD=no
31949 wxUSE_DRAG_AND_DROP=no
31950 wxUSE_DATAOBJ=no
3bce6687
JS
31951 wxUSE_OLE=no
31952 fi
31953
31954 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 31955 cat >>confdefs.h <<\_ACEOF
3bce6687 31956#define wxUSE_METAFILE 1
e6cc62c6 31957_ACEOF
3bce6687
JS
31958
31959
e6cc62c6 31960 cat >>confdefs.h <<\_ACEOF
3bce6687 31961#define wxUSE_ENH_METAFILE 1
e6cc62c6 31962_ACEOF
3bce6687
JS
31963
31964 fi
31965fi
31966
2b9bdf71
VZ
31967if test "$wxUSE_IPC" = "yes"; then
31968 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
31969 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
31970echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
31971 fi
31972
e6cc62c6 31973 cat >>confdefs.h <<\_ACEOF
2b9bdf71 31974#define wxUSE_IPC 1
e6cc62c6 31975_ACEOF
2b9bdf71
VZ
31976
31977fi
31978
31979if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 31980 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
31981 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
31982echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
31983 wxUSE_CLIPBOARD=no
31984 fi
31985
31986 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 31987 cat >>confdefs.h <<\_ACEOF
2b9bdf71 31988#define wxUSE_CLIPBOARD 1
e6cc62c6 31989_ACEOF
2b9bdf71 31990
8284b0c5 31991
e6cc62c6 31992 cat >>confdefs.h <<\_ACEOF
673f4220 31993#define wxUSE_DATAOBJ 1
e6cc62c6 31994_ACEOF
673f4220 31995
6c657b52 31996 fi
2b9bdf71
VZ
31997fi
31998
31999if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32000 if test "$wxUSE_GTK" = 1; then
32001 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32002 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32003echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32004 wxUSE_DRAG_AND_DROP=no
32005 fi
32006 fi
32007
2b9bdf71 32008 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32009 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32010echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32011 wxUSE_DRAG_AND_DROP=no
32012 fi
32013
f79bd02d 32014 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32015 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32016echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32017 wxUSE_DRAG_AND_DROP=no
32018 fi
32019
6c657b52 32020 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32021 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32022echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32023 wxUSE_DRAG_AND_DROP=no
32024 fi
32025
10f2d63a 32026 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32027 cat >>confdefs.h <<\_ACEOF
10f2d63a 32028#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32029_ACEOF
10f2d63a
VZ
32030
32031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32032 fi
32033
32034fi
32035
32036if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32037 cat >>confdefs.h <<\_ACEOF
10f2d63a 32038#define wxUSE_SPLINES 1
e6cc62c6 32039_ACEOF
10f2d63a
VZ
32040
32041fi
32042
8284b0c5 32043
1e6feb95
VZ
32044USES_CONTROLS=0
32045if test "$wxUSE_CONTROLS" = "yes"; then
32046 USES_CONTROLS=1
32047fi
32048
10f2d63a 32049if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32050 cat >>confdefs.h <<\_ACEOF
10f2d63a 32051#define wxUSE_ACCEL 1
e6cc62c6 32052_ACEOF
10f2d63a 32053
1e6feb95
VZ
32054 USES_CONTROLS=1
32055fi
32056
32057if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32058 cat >>confdefs.h <<\_ACEOF
1e6feb95 32059#define wxUSE_BUTTON 1
e6cc62c6 32060_ACEOF
1e6feb95
VZ
32061
32062 USES_CONTROLS=1
32063fi
32064
32065if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32066 cat >>confdefs.h <<\_ACEOF
1e6feb95 32067#define wxUSE_BMPBUTTON 1
e6cc62c6 32068_ACEOF
1e6feb95
VZ
32069
32070 USES_CONTROLS=1
32071fi
32072
32073if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32074 cat >>confdefs.h <<\_ACEOF
1e6feb95 32075#define wxUSE_CALENDARCTRL 1
e6cc62c6 32076_ACEOF
1e6feb95
VZ
32077
32078 USES_CONTROLS=1
32079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32080fi
32081
32082if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32083 cat >>confdefs.h <<\_ACEOF
10f2d63a 32084#define wxUSE_CARET 1
e6cc62c6 32085_ACEOF
10f2d63a 32086
1e6feb95 32087 USES_CONTROLS=1
10f2d63a
VZ
32088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32089fi
32090
32091if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32092 cat >>confdefs.h <<\_ACEOF
10f2d63a 32093#define wxUSE_COMBOBOX 1
e6cc62c6 32094_ACEOF
10f2d63a 32095
1e6feb95 32096 USES_CONTROLS=1
10f2d63a
VZ
32097fi
32098
32099if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32100 cat >>confdefs.h <<\_ACEOF
10f2d63a 32101#define wxUSE_CHOICE 1
e6cc62c6 32102_ACEOF
10f2d63a 32103
1e6feb95 32104 USES_CONTROLS=1
10f2d63a
VZ
32105fi
32106
32107if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32108 cat >>confdefs.h <<\_ACEOF
10f2d63a 32109#define wxUSE_CHECKBOX 1
e6cc62c6 32110_ACEOF
10f2d63a 32111
1e6feb95 32112 USES_CONTROLS=1
10f2d63a
VZ
32113fi
32114
32115if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32116 cat >>confdefs.h <<\_ACEOF
10f2d63a 32117#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32118_ACEOF
10f2d63a 32119
1e6feb95 32120 USES_CONTROLS=1
10f2d63a
VZ
32121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32122fi
32123
da494b40 32124if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32125 cat >>confdefs.h <<\_ACEOF
da494b40 32126#define wxUSE_DISPLAY 1
e6cc62c6 32127_ACEOF
da494b40
MB
32128
32129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32130fi
32131
10f2d63a 32132if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32133 cat >>confdefs.h <<\_ACEOF
10f2d63a 32134#define wxUSE_GAUGE 1
e6cc62c6 32135_ACEOF
10f2d63a 32136
1e6feb95 32137 USES_CONTROLS=1
10f2d63a
VZ
32138fi
32139
d6a55c4b 32140if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32141 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32142#define wxUSE_GRID 1
e6cc62c6 32143_ACEOF
10f2d63a 32144
1e6feb95 32145 USES_CONTROLS=1
d6a55c4b 32146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32147fi
32148
32149if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32150 cat >>confdefs.h <<\_ACEOF
10f2d63a 32151#define wxUSE_IMAGLIST 1
e6cc62c6 32152_ACEOF
10f2d63a
VZ
32153
32154fi
32155
32156if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32157 cat >>confdefs.h <<\_ACEOF
10f2d63a 32158#define wxUSE_LISTBOX 1
e6cc62c6 32159_ACEOF
10f2d63a 32160
1e6feb95 32161 USES_CONTROLS=1
10f2d63a
VZ
32162fi
32163
32164if test "$wxUSE_LISTCTRL" = "yes"; then
32165 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32166 cat >>confdefs.h <<\_ACEOF
10f2d63a 32167#define wxUSE_LISTCTRL 1
e6cc62c6 32168_ACEOF
10f2d63a 32169
1e6feb95 32170 USES_CONTROLS=1
10f2d63a
VZ
32171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32172 else
e6cc62c6
VS
32173 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32174echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32175 fi
32176fi
32177
32178if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32179 cat >>confdefs.h <<\_ACEOF
10f2d63a 32180#define wxUSE_NOTEBOOK 1
e6cc62c6 32181_ACEOF
10f2d63a 32182
1e6feb95 32183 USES_CONTROLS=1
10f2d63a
VZ
32184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32185fi
32186
24176f2c 32187
10f2d63a 32188if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32189 cat >>confdefs.h <<\_ACEOF
10f2d63a 32190#define wxUSE_RADIOBOX 1
e6cc62c6 32191_ACEOF
10f2d63a 32192
1e6feb95 32193 USES_CONTROLS=1
10f2d63a
VZ
32194fi
32195
32196if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32197 cat >>confdefs.h <<\_ACEOF
10f2d63a 32198#define wxUSE_RADIOBTN 1
e6cc62c6 32199_ACEOF
10f2d63a 32200
1e6feb95 32201 USES_CONTROLS=1
10f2d63a
VZ
32202fi
32203
32204if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32205 cat >>confdefs.h <<\_ACEOF
10f2d63a 32206#define wxUSE_SASH 1
e6cc62c6 32207_ACEOF
10f2d63a
VZ
32208
32209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32210fi
32211
32212if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32213 cat >>confdefs.h <<\_ACEOF
10f2d63a 32214#define wxUSE_SCROLLBAR 1
e6cc62c6 32215_ACEOF
10f2d63a 32216
1e6feb95 32217 USES_CONTROLS=1
741a9306 32218 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32219fi
32220
32221if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32222 cat >>confdefs.h <<\_ACEOF
10f2d63a 32223#define wxUSE_SLIDER 1
e6cc62c6 32224_ACEOF
10f2d63a 32225
1e6feb95 32226 USES_CONTROLS=1
10f2d63a
VZ
32227fi
32228
32229if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32230 cat >>confdefs.h <<\_ACEOF
10f2d63a 32231#define wxUSE_SPINBTN 1
e6cc62c6 32232_ACEOF
10f2d63a 32233
1e6feb95 32234 USES_CONTROLS=1
10f2d63a
VZ
32235fi
32236
56cfaa52 32237if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32238 cat >>confdefs.h <<\_ACEOF
56cfaa52 32239#define wxUSE_SPINCTRL 1
e6cc62c6 32240_ACEOF
56cfaa52 32241
1e6feb95 32242 USES_CONTROLS=1
56cfaa52
RR
32243fi
32244
10f2d63a 32245if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32246 cat >>confdefs.h <<\_ACEOF
10f2d63a 32247#define wxUSE_SPLITTER 1
e6cc62c6 32248_ACEOF
10f2d63a
VZ
32249
32250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32251fi
32252
32253if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32254 cat >>confdefs.h <<\_ACEOF
10f2d63a 32255#define wxUSE_STATBMP 1
e6cc62c6 32256_ACEOF
10f2d63a 32257
1e6feb95 32258 USES_CONTROLS=1
10f2d63a
VZ
32259fi
32260
32261if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32262 cat >>confdefs.h <<\_ACEOF
10f2d63a 32263#define wxUSE_STATBOX 1
e6cc62c6 32264_ACEOF
10f2d63a 32265
1e6feb95
VZ
32266 USES_CONTROLS=1
32267fi
32268
32269if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32270 cat >>confdefs.h <<\_ACEOF
1e6feb95 32271#define wxUSE_STATTEXT 1
e6cc62c6 32272_ACEOF
1e6feb95
VZ
32273
32274 USES_CONTROLS=1
10f2d63a
VZ
32275fi
32276
32277if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32278 cat >>confdefs.h <<\_ACEOF
10f2d63a 32279#define wxUSE_STATLINE 1
e6cc62c6 32280_ACEOF
10f2d63a 32281
89e6bf6d 32282 USES_CONTROLS=1
10f2d63a
VZ
32283fi
32284
32285if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32286 cat >>confdefs.h <<\_ACEOF
10f2d63a 32287#define wxUSE_STATUSBAR 1
e6cc62c6 32288_ACEOF
10f2d63a 32289
1e6feb95 32290 USES_CONTROLS=1
698dcdb6 32291
2286341c 32292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32293fi
32294
32295if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32296 cat >>confdefs.h <<\_ACEOF
10f2d63a 32297#define wxUSE_TAB_DIALOG 1
e6cc62c6 32298_ACEOF
10f2d63a
VZ
32299
32300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32301fi
32302
1e6feb95 32303if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32304 cat >>confdefs.h <<\_ACEOF
1e6feb95 32305#define wxUSE_TEXTCTRL 1
e6cc62c6 32306_ACEOF
1e6feb95
VZ
32307
32308 USES_CONTROLS=1
32309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32310fi
32311
1db8dc4a 32312if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32313 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32314 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32315echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32316 wxUSE_TOGGLEBTN=no
32317 fi
32318 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32319 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32320echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32321 wxUSE_TOGGLEBTN=no
32322 fi
32323
32324 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32325 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32326#define wxUSE_TOGGLEBTN 1
e6cc62c6 32327_ACEOF
1db8dc4a 32328
1e6feb95 32329 USES_CONTROLS=1
a45d7ab7 32330 fi
1db8dc4a
VZ
32331fi
32332
360d6699 32333if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32334 cat >>confdefs.h <<\_ACEOF
360d6699 32335#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32336_ACEOF
360d6699
VZ
32337
32338 wxUSE_TOOLBAR="yes"
1e6feb95 32339 USES_CONTROLS=1
360d6699
VZ
32340fi
32341
10f2d63a 32342if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 32343 cat >>confdefs.h <<\_ACEOF
10f2d63a 32344#define wxUSE_TOOLBAR 1
e6cc62c6 32345_ACEOF
10f2d63a 32346
1e6feb95 32347 USES_CONTROLS=1
698dcdb6 32348
360d6699
VZ
32349 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32350 wxUSE_TOOLBAR_NATIVE="yes"
32351 fi
32352
1e6feb95 32353 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 32354 cat >>confdefs.h <<\_ACEOF
360d6699 32355#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 32356_ACEOF
360d6699 32357
1e6feb95
VZ
32358 USES_CONTROLS=1
32359 fi
32360
32361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
32362fi
32363
10f2d63a
VZ
32364if test "$wxUSE_TOOLTIPS" = "yes"; then
32365 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32366 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32367echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 32368 else
89e6bf6d 32369 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32370 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32371echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 32372 else
e6cc62c6 32373 cat >>confdefs.h <<\_ACEOF
10f2d63a 32374#define wxUSE_TOOLTIPS 1
e6cc62c6 32375_ACEOF
10f2d63a
VZ
32376
32377 fi
32378 fi
32379fi
32380
32381if test "$wxUSE_TREECTRL" = "yes"; then
32382 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32383 cat >>confdefs.h <<\_ACEOF
10f2d63a 32384#define wxUSE_TREECTRL 1
e6cc62c6 32385_ACEOF
10f2d63a 32386
1e6feb95 32387 USES_CONTROLS=1
10f2d63a
VZ
32388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32389 else
e6cc62c6
VS
32390 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32391echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32392 fi
32393fi
32394
9f41d601 32395if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 32396 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32397 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32398echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 32399 else
485cf710 32400 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32401 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32402echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 32403 else
3c011993 32404 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32405 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32406echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32407 else
e6cc62c6 32408 cat >>confdefs.h <<\_ACEOF
9f41d601 32409#define wxUSE_POPUPWIN 1
e6cc62c6 32410_ACEOF
9f41d601 32411
8284b0c5 32412
3c011993
VZ
32413 USES_CONTROLS=1
32414 fi
485cf710 32415 fi
6abe4b65 32416 fi
9f41d601
RR
32417fi
32418
dd964dcc 32419if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 32420 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32421 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32422echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32423 else
e6cc62c6 32424 cat >>confdefs.h <<\_ACEOF
dd964dcc 32425#define wxUSE_TIPWINDOW 1
e6cc62c6 32426_ACEOF
dd964dcc 32427
3c011993 32428 fi
dd964dcc
VZ
32429fi
32430
1e6feb95 32431if test "$USES_CONTROLS" = 1; then
e6cc62c6 32432 cat >>confdefs.h <<\_ACEOF
1e6feb95 32433#define wxUSE_CONTROLS 1
e6cc62c6 32434_ACEOF
10f2d63a 32435
10f2d63a
VZ
32436fi
32437
8284b0c5 32438
1e6feb95 32439
24fd6d87 32440if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 32441 cat >>confdefs.h <<\_ACEOF
24fd6d87 32442#define wxUSE_DRAGIMAGE 1
e6cc62c6 32443_ACEOF
24fd6d87
VZ
32444
32445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32446fi
32447
7bb2947d 32448if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 32449 cat >>confdefs.h <<\_ACEOF
7bb2947d 32450#define wxUSE_ACCESSIBILITY 1
e6cc62c6 32451_ACEOF
7bb2947d
MB
32452
32453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32454fi
32455
1e6feb95 32456if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 32457 cat >>confdefs.h <<\_ACEOF
1e6feb95 32458#define wxUSE_MENUS 1
e6cc62c6 32459_ACEOF
10f2d63a 32460
1e6feb95 32461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
32462fi
32463
1e6feb95 32464if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32465 cat >>confdefs.h <<\_ACEOF
1e6feb95 32466#define wxUSE_METAFILE 1
e6cc62c6 32467_ACEOF
10f2d63a 32468
10f2d63a
VZ
32469fi
32470
1e6feb95 32471if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 32472 cat >>confdefs.h <<\_ACEOF
1e6feb95 32473#define wxUSE_MIMETYPE 1
e6cc62c6 32474_ACEOF
10f2d63a 32475
10f2d63a
VZ
32476fi
32477
3e44f09d 32478if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 32479 cat >>confdefs.h <<\_ACEOF
3e44f09d 32480#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 32481_ACEOF
3e44f09d 32482
321d2b14
VZ
32483if test "$TOOLKIT" = "MSW"; then
32484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
32485fi
32486
3e44f09d
VZ
32487fi
32488
4cdb0ab0 32489if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 32490 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32491 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
32492echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
3954f9ca
VS
32493 wxUSE_PROTOCOL=no
32494 fi
32495
32496 if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 32497 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32498#define wxUSE_PROTOCOL 1
e6cc62c6 32499_ACEOF
4cdb0ab0 32500
8284b0c5 32501
3954f9ca 32502 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
e6cc62c6 32503 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32504#define wxUSE_PROTOCOL_HTTP 1
e6cc62c6 32505_ACEOF
4cdb0ab0 32506
3954f9ca
VS
32507 fi
32508 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
e6cc62c6 32509 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32510#define wxUSE_PROTOCOL_FTP 1
e6cc62c6 32511_ACEOF
4cdb0ab0 32512
3954f9ca
VS
32513 fi
32514 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
e6cc62c6 32515 cat >>confdefs.h <<\_ACEOF
3954f9ca 32516#define wxUSE_PROTOCOL_FILE 1
e6cc62c6 32517_ACEOF
3954f9ca
VS
32518
32519 fi
4cdb0ab0 32520 fi
3954f9ca
VS
32521fi
32522
32523if test "$wxUSE_URL" = "yes"; then
32524 if test "$wxUSE_PROTOCOL" != "yes"; then
e6cc62c6
VS
32525 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
32526echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
3954f9ca
VS
32527 wxUSE_URL=no
32528 fi
32529 if test "$wxUSE_URL" = "yes"; then
e6cc62c6 32530 cat >>confdefs.h <<\_ACEOF
3954f9ca 32531#define wxUSE_URL 1
e6cc62c6 32532_ACEOF
4cdb0ab0
VS
32533
32534 fi
32535fi
32536
10f2d63a 32537if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 32538 cat >>confdefs.h <<\_ACEOF
10f2d63a 32539#define wxUSE_MINIFRAME 1
e6cc62c6 32540_ACEOF
10f2d63a
VZ
32541
32542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
32543fi
32544
4d264332 32545USE_HTML=0
10f2d63a 32546if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32547 cat >>confdefs.h <<\_ACEOF
10f2d63a 32548#define wxUSE_HTML 1
e6cc62c6 32549_ACEOF
10f2d63a 32550
4d264332 32551 USE_HTML=1
c74dc163 32552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
10f2d63a
VZ
32553fi
32554
32555if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 32556 cat >>confdefs.h <<\_ACEOF
1e487827 32557#define wxUSE_VALIDATORS 1
e6cc62c6 32558_ACEOF
703e0a69 32559
698dcdb6
VZ
32560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
32561fi
32562
edae8572 32563if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 32564 cat >>confdefs.h <<\_ACEOF
edae8572 32565#define wxUSE_PALETTE 1
e6cc62c6 32566_ACEOF
edae8572
VZ
32567
32568fi
32569
698dcdb6 32570if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 32571 cat >>confdefs.h <<\_ACEOF
698dcdb6 32572#define wxUSE_IMAGE 1
e6cc62c6 32573_ACEOF
698dcdb6
VZ
32574
32575fi
32576
32577if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 32578 cat >>confdefs.h <<\_ACEOF
698dcdb6 32579#define wxUSE_GIF 1
e6cc62c6 32580_ACEOF
698dcdb6
VZ
32581
32582fi
32583
32584if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 32585 cat >>confdefs.h <<\_ACEOF
698dcdb6 32586#define wxUSE_PCX 1
e6cc62c6 32587_ACEOF
698dcdb6
VZ
32588
32589fi
32590
4b6b4dfc 32591if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 32592 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 32593#define wxUSE_IFF 1
e6cc62c6 32594_ACEOF
4b6b4dfc
RR
32595
32596fi
32597
698dcdb6 32598if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 32599 cat >>confdefs.h <<\_ACEOF
698dcdb6 32600#define wxUSE_PNM 1
e6cc62c6 32601_ACEOF
698dcdb6
VZ
32602
32603fi
32604
32605if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 32606 cat >>confdefs.h <<\_ACEOF
698dcdb6 32607#define wxUSE_XPM 1
e6cc62c6 32608_ACEOF
698dcdb6
VZ
32609
32610fi
32611
658974ae 32612if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 32613 cat >>confdefs.h <<\_ACEOF
658974ae 32614#define wxUSE_ICO_CUR 1
e6cc62c6 32615_ACEOF
658974ae
VS
32616
32617fi
32618
a72a4bfa
VS
32619if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
32620 LIBS=" -lunicows $LIBS"
32621fi
32622
8284b0c5 32623
1e6feb95 32624if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 32625 cat >>confdefs.h <<\_ACEOF
1e6feb95 32626#define wxUSE_CHOICEDLG 1
e6cc62c6 32627_ACEOF
1e6feb95
VZ
32628
32629fi
32630
32631if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 32632 cat >>confdefs.h <<\_ACEOF
1e6feb95 32633#define wxUSE_COLOURDLG 1
e6cc62c6 32634_ACEOF
1e6feb95
VZ
32635
32636fi
32637
32638if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 32639 cat >>confdefs.h <<\_ACEOF
1e6feb95 32640#define wxUSE_FILEDLG 1
e6cc62c6 32641_ACEOF
1e6feb95
VZ
32642
32643fi
32644
8db37e06 32645if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 32646 cat >>confdefs.h <<\_ACEOF
8db37e06 32647#define wxUSE_FINDREPLDLG 1
e6cc62c6 32648_ACEOF
8db37e06
VZ
32649
32650fi
32651
1e6feb95 32652if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 32653 cat >>confdefs.h <<\_ACEOF
1e6feb95 32654#define wxUSE_FONTDLG 1
e6cc62c6 32655_ACEOF
1e6feb95
VZ
32656
32657fi
32658
32659if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 32660 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
32661 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
32662echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 32663 else
e6cc62c6 32664 cat >>confdefs.h <<\_ACEOF
1e6feb95 32665#define wxUSE_DIRDLG 1
e6cc62c6 32666_ACEOF
1e6feb95 32667
1e6feb95
VZ
32668 fi
32669fi
32670
32671if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 32672 cat >>confdefs.h <<\_ACEOF
1e6feb95 32673#define wxUSE_MSGDLG 1
e6cc62c6 32674_ACEOF
1e6feb95
VZ
32675
32676fi
32677
32678if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 32679 cat >>confdefs.h <<\_ACEOF
1e6feb95 32680#define wxUSE_NUMBERDLG 1
e6cc62c6 32681_ACEOF
1e6feb95
VZ
32682
32683fi
32684
32685if test "$wxUSE_PROGRESSDLG" = "yes"; then
32686 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32687 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
32688echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 32689 else
e6cc62c6 32690 cat >>confdefs.h <<\_ACEOF
1e6feb95 32691#define wxUSE_PROGRESSDLG 1
e6cc62c6 32692_ACEOF
1e6feb95
VZ
32693
32694 fi
32695fi
32696
cbca9943 32697if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 32698 cat >>confdefs.h <<\_ACEOF
cbca9943 32699#define wxUSE_SPLASH 1
e6cc62c6 32700_ACEOF
cbca9943
VZ
32701
32702fi
32703
1e6feb95
VZ
32704if test "$wxUSE_STARTUP_TIPS" = "yes"; then
32705 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32706 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
32707echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 32708 else
e6cc62c6 32709 cat >>confdefs.h <<\_ACEOF
1e6feb95 32710#define wxUSE_STARTUP_TIPS 1
e6cc62c6 32711_ACEOF
1e6feb95 32712
7b4a847f
RR
32713 fi
32714fi
579d8138 32715
8284b0c5 32716if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 32717 cat >>confdefs.h <<\_ACEOF
8284b0c5 32718#define wxUSE_TEXTDLG 1
e6cc62c6 32719_ACEOF
8284b0c5
MB
32720
32721fi
32722
32723if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 32724 cat >>confdefs.h <<\_ACEOF
8284b0c5 32725#define wxUSE_WIZARDDLG 1
e6cc62c6 32726_ACEOF
8284b0c5
MB
32727
32728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
32729fi
32730
32731
32732if test "$cross_compiling" = "yes"; then
32733 OSINFO="\"$host\""
32734else
32735 OSINFO=`uname -s -r -m`
32736 OSINFO="\"$OSINFO\""
32737fi
32738
e6cc62c6 32739cat >>confdefs.h <<_ACEOF
8284b0c5 32740#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 32741_ACEOF
8284b0c5
MB
32742
32743
32744
32745if test "x$prefix" != "xNONE"; then
32746 wxPREFIX=$prefix
32747else
32748 wxPREFIX=$ac_default_prefix
32749fi
32750
e6cc62c6 32751cat >>confdefs.h <<_ACEOF
8284b0c5 32752#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 32753_ACEOF
8284b0c5
MB
32754
32755
e6cc62c6 32756top_builddir_wxconfig=`pwd`
52c71b80 32757
8284b0c5
MB
32758
32759
32760
32761if test "$wxUSE_MAC" = 1 ; then
32762 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
32763fi
ac0c4cc3
DE
32764if test "$wxUSE_COCOA" = 1 ; then
32765 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
32766fi
8284b0c5
MB
32767
32768
2b5f62a0
VZ
32769LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
32770
32771have_cos=0
32772have_floor=0
e6cc62c6 32773
2b5f62a0
VZ
32774for ac_func in cos
32775do
e6cc62c6
VS
32776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32777echo "$as_me:$LINENO: checking for $ac_func" >&5
32778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32779if eval "test \"\${$as_ac_var+set}\" = set"; then
32780 echo $ECHO_N "(cached) $ECHO_C" >&6
32781else
32782 cat >conftest.$ac_ext <<_ACEOF
32783#line $LINENO "configure"
32784/* confdefs.h. */
32785_ACEOF
32786cat confdefs.h >>conftest.$ac_ext
32787cat >>conftest.$ac_ext <<_ACEOF
32788/* end confdefs.h. */
2b5f62a0 32789/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32790 which can conflict with char $ac_func (); below.
32791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32792 <limits.h> exists even on freestanding compilers. */
32793#ifdef __STDC__
32794# include <limits.h>
32795#else
32796# include <assert.h>
32797#endif
2b5f62a0 32798/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32799#ifdef __cplusplus
32800extern "C"
32801{
32802#endif
2b5f62a0 32803/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32804 builtin and then its argument prototype would still apply. */
32805char $ac_func ();
2b5f62a0
VZ
32806/* The GNU C library defines this for functions which it implements
32807 to always fail with ENOSYS. Some functions are actually named
32808 something starting with __ and the normal name is an alias. */
32809#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32810choke me
32811#else
e6cc62c6
VS
32812char (*f) () = $ac_func;
32813#endif
32814#ifdef __cplusplus
32815}
2b5f62a0
VZ
32816#endif
32817
e6cc62c6
VS
32818int
32819main ()
32820{
32821return f != $ac_func;
32822 ;
32823 return 0;
32824}
32825_ACEOF
32826rm -f conftest.$ac_objext conftest$ac_exeext
32827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32828 (eval $ac_link) 2>&5
32829 ac_status=$?
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); } &&
32832 { ac_try='test -s conftest$ac_exeext'
32833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32834 (eval $ac_try) 2>&5
32835 ac_status=$?
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; }; then
32838 eval "$as_ac_var=yes"
32839else
32840 echo "$as_me: failed program was:" >&5
32841sed 's/^/| /' conftest.$ac_ext >&5
32842
32843eval "$as_ac_var=no"
32844fi
32845rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32846fi
32847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32848echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32849if test `eval echo '${'$as_ac_var'}'` = yes; then
32850 cat >>confdefs.h <<_ACEOF
32851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32852_ACEOF
2b5f62a0 32853 have_cos=1
2b5f62a0
VZ
32854fi
32855done
32856
e6cc62c6 32857
2b5f62a0
VZ
32858for ac_func in floor
32859do
e6cc62c6
VS
32860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32861echo "$as_me:$LINENO: checking for $ac_func" >&5
32862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32863if eval "test \"\${$as_ac_var+set}\" = set"; then
32864 echo $ECHO_N "(cached) $ECHO_C" >&6
32865else
32866 cat >conftest.$ac_ext <<_ACEOF
32867#line $LINENO "configure"
32868/* confdefs.h. */
32869_ACEOF
32870cat confdefs.h >>conftest.$ac_ext
32871cat >>conftest.$ac_ext <<_ACEOF
32872/* end confdefs.h. */
2b5f62a0 32873/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32874 which can conflict with char $ac_func (); below.
32875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32876 <limits.h> exists even on freestanding compilers. */
32877#ifdef __STDC__
32878# include <limits.h>
32879#else
32880# include <assert.h>
32881#endif
2b5f62a0 32882/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32883#ifdef __cplusplus
32884extern "C"
32885{
32886#endif
2b5f62a0 32887/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32888 builtin and then its argument prototype would still apply. */
32889char $ac_func ();
2b5f62a0
VZ
32890/* The GNU C library defines this for functions which it implements
32891 to always fail with ENOSYS. Some functions are actually named
32892 something starting with __ and the normal name is an alias. */
32893#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32894choke me
32895#else
e6cc62c6
VS
32896char (*f) () = $ac_func;
32897#endif
32898#ifdef __cplusplus
32899}
2b5f62a0
VZ
32900#endif
32901
e6cc62c6
VS
32902int
32903main ()
32904{
32905return f != $ac_func;
32906 ;
32907 return 0;
32908}
32909_ACEOF
32910rm -f conftest.$ac_objext conftest$ac_exeext
32911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32912 (eval $ac_link) 2>&5
32913 ac_status=$?
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); } &&
32916 { ac_try='test -s conftest$ac_exeext'
32917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32918 (eval $ac_try) 2>&5
32919 ac_status=$?
32920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 (exit $ac_status); }; }; then
32922 eval "$as_ac_var=yes"
32923else
32924 echo "$as_me: failed program was:" >&5
32925sed 's/^/| /' conftest.$ac_ext >&5
32926
32927eval "$as_ac_var=no"
32928fi
32929rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32930fi
32931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32933if test `eval echo '${'$as_ac_var'}'` = yes; then
32934 cat >>confdefs.h <<_ACEOF
32935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32936_ACEOF
2b5f62a0 32937 have_floor=1
2b5f62a0
VZ
32938fi
32939done
32940
e6cc62c6
VS
32941echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
32942echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 32943if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
32944 echo "$as_me:$LINENO: result: yes" >&5
32945echo "${ECHO_T}yes" >&6
2b5f62a0 32946else
e6cc62c6
VS
32947 echo "$as_me:$LINENO: result: no" >&5
32948echo "${ECHO_T}no" >&6
2b5f62a0
VZ
32949 LIBS="$LIBS -lm"
32950 # use different functions to avoid configure caching
32951 have_sin=0
32952 have_ceil=0
e6cc62c6
VS
32953
32954for ac_func in sin
2b5f62a0 32955do
e6cc62c6
VS
32956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32957echo "$as_me:$LINENO: checking for $ac_func" >&5
32958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32959if eval "test \"\${$as_ac_var+set}\" = set"; then
32960 echo $ECHO_N "(cached) $ECHO_C" >&6
32961else
32962 cat >conftest.$ac_ext <<_ACEOF
32963#line $LINENO "configure"
32964/* confdefs.h. */
32965_ACEOF
32966cat confdefs.h >>conftest.$ac_ext
32967cat >>conftest.$ac_ext <<_ACEOF
32968/* end confdefs.h. */
2b5f62a0 32969/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32970 which can conflict with char $ac_func (); below.
32971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32972 <limits.h> exists even on freestanding compilers. */
32973#ifdef __STDC__
32974# include <limits.h>
32975#else
32976# include <assert.h>
32977#endif
2b5f62a0 32978/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32979#ifdef __cplusplus
32980extern "C"
32981{
32982#endif
2b5f62a0 32983/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32984 builtin and then its argument prototype would still apply. */
32985char $ac_func ();
2b5f62a0
VZ
32986/* The GNU C library defines this for functions which it implements
32987 to always fail with ENOSYS. Some functions are actually named
32988 something starting with __ and the normal name is an alias. */
32989#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32990choke me
32991#else
e6cc62c6
VS
32992char (*f) () = $ac_func;
32993#endif
32994#ifdef __cplusplus
32995}
2b5f62a0
VZ
32996#endif
32997
e6cc62c6
VS
32998int
32999main ()
33000{
33001return f != $ac_func;
33002 ;
33003 return 0;
33004}
33005_ACEOF
33006rm -f conftest.$ac_objext conftest$ac_exeext
33007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33008 (eval $ac_link) 2>&5
33009 ac_status=$?
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } &&
33012 { ac_try='test -s conftest$ac_exeext'
33013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33014 (eval $ac_try) 2>&5
33015 ac_status=$?
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); }; }; then
33018 eval "$as_ac_var=yes"
33019else
33020 echo "$as_me: failed program was:" >&5
33021sed 's/^/| /' conftest.$ac_ext >&5
33022
33023eval "$as_ac_var=no"
33024fi
33025rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33026fi
33027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33028echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33029if test `eval echo '${'$as_ac_var'}'` = yes; then
33030 cat >>confdefs.h <<_ACEOF
33031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33032_ACEOF
2b5f62a0 33033 have_sin=1
2b5f62a0
VZ
33034fi
33035done
33036
e6cc62c6
VS
33037
33038for ac_func in ceil
2b5f62a0 33039do
e6cc62c6
VS
33040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33041echo "$as_me:$LINENO: checking for $ac_func" >&5
33042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33043if eval "test \"\${$as_ac_var+set}\" = set"; then
33044 echo $ECHO_N "(cached) $ECHO_C" >&6
33045else
33046 cat >conftest.$ac_ext <<_ACEOF
33047#line $LINENO "configure"
33048/* confdefs.h. */
33049_ACEOF
33050cat confdefs.h >>conftest.$ac_ext
33051cat >>conftest.$ac_ext <<_ACEOF
33052/* end confdefs.h. */
2b5f62a0 33053/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33054 which can conflict with char $ac_func (); below.
33055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33056 <limits.h> exists even on freestanding compilers. */
33057#ifdef __STDC__
33058# include <limits.h>
33059#else
33060# include <assert.h>
33061#endif
2b5f62a0 33062/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33063#ifdef __cplusplus
33064extern "C"
33065{
33066#endif
2b5f62a0 33067/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33068 builtin and then its argument prototype would still apply. */
33069char $ac_func ();
2b5f62a0
VZ
33070/* The GNU C library defines this for functions which it implements
33071 to always fail with ENOSYS. Some functions are actually named
33072 something starting with __ and the normal name is an alias. */
33073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33074choke me
33075#else
e6cc62c6
VS
33076char (*f) () = $ac_func;
33077#endif
33078#ifdef __cplusplus
33079}
2b5f62a0
VZ
33080#endif
33081
e6cc62c6
VS
33082int
33083main ()
33084{
33085return f != $ac_func;
33086 ;
33087 return 0;
33088}
33089_ACEOF
33090rm -f conftest.$ac_objext conftest$ac_exeext
33091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33092 (eval $ac_link) 2>&5
33093 ac_status=$?
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); } &&
33096 { ac_try='test -s conftest$ac_exeext'
33097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33098 (eval $ac_try) 2>&5
33099 ac_status=$?
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); }; }; then
33102 eval "$as_ac_var=yes"
33103else
33104 echo "$as_me: failed program was:" >&5
33105sed 's/^/| /' conftest.$ac_ext >&5
33106
33107eval "$as_ac_var=no"
33108fi
33109rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33110fi
33111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33112echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33113if test `eval echo '${'$as_ac_var'}'` = yes; then
33114 cat >>confdefs.h <<_ACEOF
33115#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33116_ACEOF
2b5f62a0 33117 have_ceil=1
2b5f62a0
VZ
33118fi
33119done
33120
e6cc62c6
VS
33121 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33122echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33123 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33124 echo "$as_me:$LINENO: result: yes" >&5
33125echo "${ECHO_T}yes" >&6
2b5f62a0 33126 else
e6cc62c6
VS
33127 echo "$as_me:$LINENO: result: no" >&5
33128echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33129 # not sure we should warn the user, crash, etc.
33130 fi
33131fi
8284b0c5
MB
33132
33133if test "$wxUSE_GUI" = "yes"; then
33134
e6cc62c6 33135
8284b0c5
MB
33136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33137 drawing dynamic erase event exec font image \
1542ea39 33138 minimal propsize rotate shaped widgets"
b625909c
VS
33139
33140 if test "$wxUSE_MONOLITHIC" != "yes"; then
33141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33142 fi
8284b0c5
MB
33143else
33144 SAMPLES_SUBDIRS="console"
33145fi
33146
33147
e6cc62c6 33148INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33149-I\${top_srcdir}/include \
33150$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33151$TOOLKIT_INCLUDE"
33152
fddeb06b
VS
33153if test "$GXX" = yes ; then
33154 CXXWARNINGS="-Wall"
33155 fi
33156
33157EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33158
95318f7d 33159CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33160CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33161CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33162
33163
fddeb06b 33164LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163
VS
33165EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
33166if test "$wxUSE_GUI" = "yes"; then
33167 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33168fi
fddeb06b
VS
33169
33170LDFLAGS="$LDFLAGS $PROFILE"
33171
8284b0c5
MB
33172if test "$wxUSE_GTK" = 1; then
33173 WXCONFIG_INCLUDE=
33174else
33175 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33176fi
33177
fe0895cf
VS
33178if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33179 WXUNIV=1
33180else
33181 WXUNIV=0
8284b0c5
MB
33182fi
33183
8284b0c5
MB
33184
33185
33186
33187
33188
33189
33190
9747f85d
VS
33191if test $wxUSE_MONOLITHIC = "yes" ; then
33192 MONOLITHIC=1
33193else
33194 MONOLITHIC=0
33195fi
8284b0c5 33196
8ee2dd05
VS
33197VENDOR="custom"
33198OFFICIAL_BUILD=0
33199
33200
33201
8284b0c5
MB
33202
33203
33204
33205
33206
33207
c74dc163 33208
fe0895cf 33209TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33210
33211
33212
33213
33214
fe0895cf 33215 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33216
33217 if test -n "$ac_tool_prefix"; then
33218 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33219set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33220echo "$as_me:$LINENO: checking for $ac_word" >&5
33221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33222if test "${ac_cv_prog_RANLIB+set}" = set; then
33223 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33224else
fe0895cf
VS
33225 if test -n "$RANLIB"; then
33226 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33227else
e6cc62c6
VS
33228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33229for as_dir in $PATH
33230do
33231 IFS=$as_save_IFS
33232 test -z "$as_dir" && as_dir=.
33233 for ac_exec_ext in '' $ac_executable_extensions; do
33234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33235 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33237 break 2
33238 fi
33239done
33240done
33241
10f2d63a 33242fi
10f2d63a 33243fi
e6cc62c6 33244RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33245if test -n "$RANLIB"; then
e6cc62c6
VS
33246 echo "$as_me:$LINENO: result: $RANLIB" >&5
33247echo "${ECHO_T}$RANLIB" >&6
33248else
33249 echo "$as_me:$LINENO: result: no" >&5
33250echo "${ECHO_T}no" >&6
33251fi
33252
33253fi
33254if test -z "$ac_cv_prog_RANLIB"; then
33255 ac_ct_RANLIB=$RANLIB
33256 # Extract the first word of "ranlib", so it can be a program name with args.
33257set dummy ranlib; ac_word=$2
33258echo "$as_me:$LINENO: checking for $ac_word" >&5
33259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33260if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33261 echo $ECHO_N "(cached) $ECHO_C" >&6
33262else
33263 if test -n "$ac_ct_RANLIB"; then
33264 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33265else
33266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33267for as_dir in $PATH
33268do
33269 IFS=$as_save_IFS
33270 test -z "$as_dir" && as_dir=.
33271 for ac_exec_ext in '' $ac_executable_extensions; do
33272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33273 ac_cv_prog_ac_ct_RANLIB="ranlib"
33274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33275 break 2
33276 fi
33277done
33278done
33279
33280 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33281fi
33282fi
33283ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33284if test -n "$ac_ct_RANLIB"; then
33285 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33286echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33287else
e6cc62c6
VS
33288 echo "$as_me:$LINENO: result: no" >&5
33289echo "${ECHO_T}no" >&6
33290fi
33291
33292 RANLIB=$ac_ct_RANLIB
33293else
33294 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33295fi
665bbe97 33296
fe0895cf
VS
33297 # Find a good install program. We prefer a C program (faster),
33298# so one script is as good as another. But avoid the broken or
33299# incompatible versions:
33300# SysV /etc/install, /usr/sbin/install
33301# SunOS /usr/etc/install
33302# IRIX /sbin/install
33303# AIX /bin/install
e6cc62c6 33304# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
33305# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33306# AFS /usr/afsws/bin/install, which mishandles nonexistent args
33307# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33308# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
33309echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33310echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 33311if test -z "$INSTALL"; then
e6cc62c6
VS
33312if test "${ac_cv_path_install+set}" = set; then
33313 echo $ECHO_N "(cached) $ECHO_C" >&6
33314else
33315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33316for as_dir in $PATH
33317do
33318 IFS=$as_save_IFS
33319 test -z "$as_dir" && as_dir=.
33320 # Account for people who put trailing slashes in PATH elements.
33321case $as_dir/ in
33322 ./ | .// | /cC/* | \
33323 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33324 /usr/ucb/* ) ;;
33325 *)
33326 # OSF1 and SCO ODT 3.0 have their own names for install.
33327 # Don't use installbsd from OSF since it installs stuff as root
33328 # by default.
33329 for ac_prog in ginstall scoinst install; do
33330 for ac_exec_ext in '' $ac_executable_extensions; do
33331 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33332 if test $ac_prog = install &&
33333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33334 # AIX install. It has an incompatible calling convention.
33335 :
33336 elif test $ac_prog = install &&
33337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33338 # program-specific install script used by HP pwplus--don't use.
33339 :
33340 else
33341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33342 break 3
33343 fi
33344 fi
fe0895cf 33345 done
e6cc62c6
VS
33346 done
33347 ;;
33348esac
33349done
33350
fe0895cf
VS
33351
33352fi
33353 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 33354 INSTALL=$ac_cv_path_install
fe0895cf
VS
33355 else
33356 # As a last resort, use the slow shell script. We don't cache a
33357 # path for INSTALL within a source directory, because that will
33358 # break other packages using the cache if that directory is
33359 # removed, or if the path is relative.
e6cc62c6 33360 INSTALL=$ac_install_sh
fe0895cf
VS
33361 fi
33362fi
e6cc62c6
VS
33363echo "$as_me:$LINENO: result: $INSTALL" >&5
33364echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
33365
33366# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33367# It thinks the first close brace ends the variable substitution.
33368test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33369
e6cc62c6 33370test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
33371
33372test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33373
e6cc62c6
VS
33374 echo "$as_me:$LINENO: checking whether ln -s works" >&5
33375echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33376LN_S=$as_ln_s
33377if test "$LN_S" = "ln -s"; then
33378 echo "$as_me:$LINENO: result: yes" >&5
33379echo "${ECHO_T}yes" >&6
fe0895cf 33380else
e6cc62c6
VS
33381 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33382echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
33383fi
33384
33385
e6cc62c6
VS
33386 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33387echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33388set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33389if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33390 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33391else
e6cc62c6 33392 cat >conftest.make <<\_ACEOF
fe0895cf 33393all:
e6cc62c6
VS
33394 @echo 'ac_maketemp="$(MAKE)"'
33395_ACEOF
fe0895cf 33396# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 33397eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
33398if test -n "$ac_maketemp"; then
33399 eval ac_cv_prog_make_${ac_make}_set=yes
33400else
33401 eval ac_cv_prog_make_${ac_make}_set=no
33402fi
e6cc62c6 33403rm -f conftest.make
fe0895cf
VS
33404fi
33405if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
33406 echo "$as_me:$LINENO: result: yes" >&5
33407echo "${ECHO_T}yes" >&6
fe0895cf
VS
33408 SET_MAKE=
33409else
e6cc62c6
VS
33410 echo "$as_me:$LINENO: result: no" >&5
33411echo "${ECHO_T}no" >&6
fe0895cf
VS
33412 SET_MAKE="MAKE=${MAKE-make}"
33413fi
33414
e6cc62c6
VS
33415
33416
fe0895cf
VS
33417 if test "$build" != "$host" ; then
33418 AR=$host_alias-ar
33419 STRIP=$host_alias-strip
33420 else
33421 # Extract the first word of "ar", so it can be a program name with args.
33422set dummy ar; ac_word=$2
e6cc62c6
VS
33423echo "$as_me:$LINENO: checking for $ac_word" >&5
33424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33425if test "${ac_cv_prog_AR+set}" = set; then
33426 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33427else
33428 if test -n "$AR"; then
33429 ac_cv_prog_AR="$AR" # Let the user override the test.
33430else
e6cc62c6
VS
33431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33432for as_dir in $PATH
33433do
33434 IFS=$as_save_IFS
33435 test -z "$as_dir" && as_dir=.
33436 for ac_exec_ext in '' $ac_executable_extensions; do
33437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33438 ac_cv_prog_AR="ar"
33439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33440 break 2
33441 fi
33442done
33443done
33444
fe0895cf
VS
33445 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
33446fi
33447fi
e6cc62c6 33448AR=$ac_cv_prog_AR
fe0895cf 33449if test -n "$AR"; then
e6cc62c6
VS
33450 echo "$as_me:$LINENO: result: $AR" >&5
33451echo "${ECHO_T}$AR" >&6
fe0895cf 33452else
e6cc62c6
VS
33453 echo "$as_me:$LINENO: result: no" >&5
33454echo "${ECHO_T}no" >&6
fe0895cf
VS
33455fi
33456
33457 # Extract the first word of "strip", so it can be a program name with args.
33458set dummy strip; ac_word=$2
e6cc62c6
VS
33459echo "$as_me:$LINENO: checking for $ac_word" >&5
33460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33461if test "${ac_cv_prog_STRIP+set}" = set; then
33462 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33463else
33464 if test -n "$STRIP"; then
33465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33466else
e6cc62c6
VS
33467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33468for as_dir in $PATH
33469do
33470 IFS=$as_save_IFS
33471 test -z "$as_dir" && as_dir=.
33472 for ac_exec_ext in '' $ac_executable_extensions; do
33473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33474 ac_cv_prog_STRIP="strip"
33475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33476 break 2
33477 fi
33478done
33479done
33480
fe0895cf
VS
33481 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
33482fi
33483fi
e6cc62c6 33484STRIP=$ac_cv_prog_STRIP
fe0895cf 33485if test -n "$STRIP"; then
e6cc62c6
VS
33486 echo "$as_me:$LINENO: result: $STRIP" >&5
33487echo "${ECHO_T}$STRIP" >&6
fe0895cf 33488else
e6cc62c6
VS
33489 echo "$as_me:$LINENO: result: no" >&5
33490echo "${ECHO_T}no" >&6
fe0895cf
VS
33491fi
33492
33493 fi
33494
33495 case ${host} in
33496 *-hp-hpux* )
33497 INSTALL_DIR="mkdir"
33498 ;;
33499 *) INSTALL_DIR="$INSTALL -d"
33500 ;;
33501 esac
e6cc62c6 33502
fe0895cf 33503
6b9d41a5
VS
33504 LDFLAGS_GUI=
33505 case ${host} in
33506 *-*-cygwin* | *-*-mingw32* )
33507 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
33508 esac
33509
33510
fe0895cf 33511 fi
e6cc62c6
VS
33512
33513 echo "$as_me:$LINENO: checking if make is GNU make" >&5
33514echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 33515if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 33516 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33517else
e6cc62c6 33518
fe0895cf
VS
33519 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
33520 egrep -s GNU > /dev/null); then
33521 bakefile_cv_prog_makeisgnu="yes"
33522 else
33523 bakefile_cv_prog_makeisgnu="no"
33524 fi
fe0895cf 33525
e6cc62c6 33526fi
49b0a3aa
VS
33527echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
33528echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
33529
33530 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
33531 IF_GNU_MAKE=""
33532 else
33533 IF_GNU_MAKE="#"
33534 fi
fe0895cf 33535
e6cc62c6
VS
33536
33537
fe0895cf
VS
33538 PLATFORM_UNIX=0
33539 PLATFORM_WIN32=0
33540 PLATFORM_MSDOS=0
33541 PLATFORM_MAC=0
33542 PLATFORM_MACOSX=0
e6cc62c6 33543
fe0895cf
VS
33544 case "${host}" in
33545 *-*-cygwin* | *-*-mingw32* )
33546 PLATFORM_WIN32=1
33547 ;;
33548 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33549 PLATFORM_MSDOS=1
33550 ;;
33551 powerpc-*-darwin* )
33552 PLATFORM_MAC=1
33553 PLATFORM_MACOSX=1
33554 ;;
33555 * )
33556 PLATFORM_UNIX=1
33557 ;;
33558 esac
33559
fe0895cf 33560
e6cc62c6
VS
33561
33562
33563
33564
33565
33566
fe0895cf
VS
33567 SO_SUFFIX="so"
33568 EXEEXT=""
33569 DLLPREFIX=lib
e6cc62c6 33570
fe0895cf
VS
33571 case "${host}" in
33572 *-hp-hpux* )
33573 SO_SUFFIX="sl"
33574 ;;
33575 *-*-aix* )
33576 SO_SUFFIX="a"
33577 ;;
33578 *-*-cygwin* | *-*-mingw32* )
33579 SO_SUFFIX="dll"
33580 EXEEXT=".exe"
33581 DLLPREFIX=""
33582 ;;
33583 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33584 EXEEXT=".exe"
33585 DLLPREFIX=""
33586 ;;
33587 powerpc-*-darwin* )
33588 SO_SUFFIX="dylib"
33589 ;;
33590 esac
33591
fe0895cf 33592
e6cc62c6
VS
33593
33594
33595
33596
fe0895cf
VS
33597 SHARED_LD_CC="\$(CC) -shared -o"
33598 SHARED_LD_CXX="\$(CXX) -shared -o"
33599
33600 if test "x$GCC" = "xyes"; then
33601 PIC_FLAG="-fPIC"
33602 fi
33603
33604 case "${host}" in
33605 *-hp-hpux* )
33606 if test "x$GCC" = "xyes"; then
33607 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
33608 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
33609 else
33610 LDFLAGS="$LDFLAGS -L/usr/lib"
33611
33612 SHARED_LD_CC="${CC} -b -o"
33613 SHARED_LD_CXX="${CXX} -b -o"
33614 PIC_FLAG="+Z"
33615 fi
33616 ;;
33617
33618 *-*-linux* )
33619 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
33620 echo "$as_me:$LINENO: checking for Intel compiler" >&5
33621echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
33622if test "${bakefile_cv_prog_icc+set}" = set; then
33623 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33624else
fe0895cf 33625
e6cc62c6
VS
33626 cat >conftest.$ac_ext <<_ACEOF
33627#line $LINENO "configure"
33628/* confdefs.h. */
33629_ACEOF
33630cat confdefs.h >>conftest.$ac_ext
33631cat >>conftest.$ac_ext <<_ACEOF
33632/* end confdefs.h. */
33633
33634int
33635main ()
33636{
fe0895cf
VS
33637
33638 #ifndef __INTEL_COMPILER
33639 #error Not icc
33640 #endif
e6cc62c6
VS
33641
33642 ;
33643 return 0;
33644}
33645_ACEOF
33646rm -f conftest.$ac_objext
33647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33648 (eval $ac_compile) 2>&5
33649 ac_status=$?
33650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651 (exit $ac_status); } &&
33652 { ac_try='test -s conftest.$ac_objext'
33653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33654 (eval $ac_try) 2>&5
33655 ac_status=$?
33656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657 (exit $ac_status); }; }; then
fe0895cf
VS
33658 bakefile_cv_prog_icc=yes
33659else
e6cc62c6
VS
33660 echo "$as_me: failed program was:" >&5
33661sed 's/^/| /' conftest.$ac_ext >&5
33662
33663bakefile_cv_prog_icc=no
33664
fe0895cf 33665fi
e6cc62c6 33666rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 33667
e6cc62c6
VS
33668fi
33669echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
33670echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
33671 if test "$bakefile_cv_prog_icc" = "yes"; then
33672 PIC_FLAG="-KPIC"
33673 fi
33674 fi
33675 ;;
33676
33677 *-*-solaris2* )
33678 if test "x$GCC" != xyes ; then
33679 SHARED_LD_CC="${CC} -G -o"
33680 SHARED_LD_CXX="${CXX} -G -o"
33681 PIC_FLAG="-KPIC"
33682 fi
33683 ;;
33684
33685 *-*-darwin* )
33686 CFLAGS="$CFLAGS -fno-common"
33687 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
33688
33689
fe0895cf
VS
33690 cat <<EOF >shared-ld-sh
33691#!/bin/sh
33692#-----------------------------------------------------------------------------
33693#-- Name: distrib/mac/shared-ld-sh
33694#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
33695#-- Author: Gilles Depeyrot
33696#-- Copyright: (c) 2002 Gilles Depeyrot
33697#-- Licence: any use permitted
33698#-----------------------------------------------------------------------------
33699
33700verbose=0
33701args=""
33702objects=""
33703
33704while test \${#} -gt 0; do
33705 case \${1} in
33706
33707 -v)
33708 verbose=1
33709 ;;
33710
33711 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
33712 # collect these options and values
33713 args="\${args} \${1} \${2}"
33714 shift
33715 ;;
33716
33717 -l*|-L*|-flat_namespace)
33718 # collect these options
33719 args="\${args} \${1}"
33720 ;;
33721
33722 -dynamiclib)
33723 # skip these options
33724 ;;
33725
33726 -*)
33727 echo "shared-ld: unhandled option '\${1}'"
33728 exit 1
33729 ;;
33730
4d264332 33731 *.o | *.a | *.dylib)
fe0895cf
VS
33732 # collect object files
33733 objects="\${objects} \${1}"
33734 ;;
33735
33736 *)
33737 echo "shared-ld: unhandled argument '\${1}'"
33738 exit 1
33739 ;;
33740
33741 esac
33742 shift
33743done
33744
33745#
33746# Link one module containing all the others
33747#
33748if test \${verbose} = 1; then
33749 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
33750fi
33751c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
33752status=\$?
33753if test \${status} != 0; then
33754 exit \${status}
33755fi
33756
33757#
33758# Link the shared library from the single module created
33759#
33760if test \${verbose} = 1; then
33761 echo "cc -dynamiclib master.\$\$.o \${args}"
33762fi
33763c++ -dynamiclib master.\$\$.o \${args}
33764status=\$?
33765if test \${status} != 0; then
33766 exit \${status}
33767fi
33768
33769#
33770# Remove intermediate module
33771#
33772rm -f master.\$\$.o
33773
33774exit 0
33775EOF
33776 chmod +x shared-ld-sh
33777
33778 SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
33779 SHARED_LD_CXX="$SHARED_LD_CC"
33780 PIC_FLAG="-dynamic -fPIC"
33781 ;;
33782
33783 *-*-aix* )
33784 if test "x$GCC" != "xyes"; then
33785 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
33786set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
33787echo "$as_me:$LINENO: checking for $ac_word" >&5
33788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33789if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
33790 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33791else
33792 if test -n "$AIX_CXX_LD"; then
33793 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
33794else
e6cc62c6
VS
33795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33796for as_dir in $PATH
33797do
33798 IFS=$as_save_IFS
33799 test -z "$as_dir" && as_dir=.
33800 for ac_exec_ext in '' $ac_executable_extensions; do
33801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33802 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
33803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33804 break 2
33805 fi
33806done
33807done
33808
fe0895cf
VS
33809 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
33810fi
33811fi
e6cc62c6 33812AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 33813if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
33814 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
33815echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 33816else
e6cc62c6
VS
33817 echo "$as_me:$LINENO: result: no" >&5
33818echo "${ECHO_T}no" >&6
fe0895cf
VS
33819fi
33820
33821 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
33822 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
33823 fi
33824 ;;
33825
33826 *-*-beos* )
33827 SHARED_LD_CC="${LD} -shared -o"
33828 SHARED_LD_CXX="${LD} -shared -o"
33829 ;;
33830
33831 *-*-irix* )
33832 if test "x$GCC" != "xyes"; then
33833 PIC_FLAG="-KPIC"
33834 fi
33835 ;;
e6cc62c6 33836
fe0895cf
VS
33837 *-*-cygwin* | *-*-mingw32* )
33838 PIC_FLAG=""
33839 ;;
e6cc62c6 33840
fe0895cf
VS
33841 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
33842 *-*-sunos4* | \
33843 *-*-osf* | \
33844 *-*-dgux5* | \
33845 *-*-sysv5* )
33846 ;;
33847
33848 *)
e6cc62c6
VS
33849 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
33850echo "$as_me: error: unknown system type $host." >&2;}
33851 { (exit 1); exit 1; }; }
fe0895cf
VS
33852 esac
33853
fe0895cf 33854
e6cc62c6
VS
33855
33856
33857
33858
fe0895cf
VS
33859 USE_SOVERSION=0
33860 USE_SOVERLINUX=0
33861 USE_SOVERSOLARIS=0
33862 USE_SOSYMLINKS=0
33863 USE_MACVERSION=0
33864 SONAME_FLAG=
33865
33866 case "${host}" in
33867 *-*-linux* )
33868 SONAME_FLAG="-Wl,-soname,"
33869 USE_SOVERSION=1
33870 USE_SOVERLINUX=1
33871 USE_SOSYMLINKS=1
33872 ;;
33873
33874 *-*-solaris2* )
33875 SONAME_FLAG="-h "
33876 USE_SOVERSION=1
33877 USE_SOVERSOLARIS=1
33878 USE_SOSYMLINKS=1
33879 ;;
33880
33881 *-*-darwin* )
33882 USE_MACVERSION=1
33883 USE_SOVERSION=1
33884 USE_SOSYMLINKS=1
e6cc62c6 33885 ;;
fe0895cf
VS
33886 esac
33887
fe0895cf 33888
e6cc62c6
VS
33889
33890
33891
33892
33893
33894
33895
49b0a3aa
VS
33896 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
33897echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
33898 DEPS_TRACKING=0
33899
fe0895cf 33900 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
33901 DEPSMODE=gcc
33902 DEPS_TRACKING=1
3e5c3c83
VS
33903 case "${host}" in
33904 powerpc-*-darwin* )
33905 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
33906 ;;
33907 * )
33908 DEPSFLAG_GCC="-MMD"
33909 ;;
33910 esac
49b0a3aa
VS
33911 echo "$as_me:$LINENO: result: gcc" >&5
33912echo "${ECHO_T}gcc" >&6
33913 else
33914 echo "$as_me:$LINENO: result: none" >&5
33915echo "${ECHO_T}none" >&6
33916 fi
33917
33918 if test $DEPS_TRACKING = 1 ; then
33919 cat <<EOF >bk-deps
33920#!/bin/sh
33921
33922# This script is part of Bakefile (http://bakefile.sf.net) autoconf script.
33923# It is used to track C/C++ files dependencies in portable way.
33924#
33925# Permission is given to use this file in any way.
33926
33927DEPSMODE=$DEPSMODE
33928DEPSDIR=.deps
3e5c3c83 33929DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
33930
33931mkdir -p \$DEPSDIR
33932
33933if test \$DEPSMODE = gcc ; then
3e5c3c83 33934 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
33935 status=\${?}
33936 if test \${status} != 0 ; then
33937 exit \${status}
33938 fi
33939 # move created file to the location we want it in:
33940 while test \${#} -gt 0; do
33941 case "\${1}" in
33942 -o )
33943 shift
33944 objfile=\${1}
33945 ;;
33946 -* )
33947 ;;
33948 * )
33949 srcfile=\${1}
33950 ;;
33951 esac
33952 shift
33953 done
33954 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
33955 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
33956 if test -f \$depfile ; then
33957 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
33958 rm -f \$depfile
33959 else
33960 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
33961 if test -f \$depfile ; then
4c8b7f4b 33962 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
33963 rm -f \$depfile
33964 fi
33965 fi
49b0a3aa
VS
33966 exit 0
33967else
33968 \${*}
33969 exit \${?}
33970fi
33971EOF
33972 chmod +x bk-deps
fe0895cf 33973 fi
fe0895cf 33974
e6cc62c6
VS
33975
33976
33977
fe0895cf
VS
33978 RESCOMP=
33979 SETFILE=
33980
e6cc62c6 33981 case ${host} in
fe0895cf
VS
33982 *-*-cygwin* | *-*-mingw32* )
33983 if test "$build" != "$host" ; then
33984 RESCOMP=$host_alias-windres
33985 else
33986 # Extract the first word of "windres", so it can be a program name with args.
33987set dummy windres; ac_word=$2
e6cc62c6
VS
33988echo "$as_me:$LINENO: checking for $ac_word" >&5
33989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33990if test "${ac_cv_prog_RESCOMP+set}" = set; then
33991 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33992else
33993 if test -n "$RESCOMP"; then
33994 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
33995else
e6cc62c6
VS
33996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33997for as_dir in $PATH
33998do
33999 IFS=$as_save_IFS
34000 test -z "$as_dir" && as_dir=.
34001 for ac_exec_ext in '' $ac_executable_extensions; do
34002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34003 ac_cv_prog_RESCOMP="windres"
34004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34005 break 2
34006 fi
34007done
34008done
34009
fe0895cf
VS
34010 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34011fi
34012fi
e6cc62c6 34013RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34014if test -n "$RESCOMP"; then
e6cc62c6
VS
34015 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34016echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34017else
e6cc62c6
VS
34018 echo "$as_me:$LINENO: result: no" >&5
34019echo "${ECHO_T}no" >&6
fe0895cf
VS
34020fi
34021
34022 fi
34023 ;;
e6cc62c6 34024
fe0895cf
VS
34025 *-*-darwin* )
34026 # Extract the first word of "Rez", so it can be a program name with args.
34027set dummy Rez; ac_word=$2
e6cc62c6
VS
34028echo "$as_me:$LINENO: checking for $ac_word" >&5
34029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34030if test "${ac_cv_prog_RESCOMP+set}" = set; then
34031 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34032else
34033 if test -n "$RESCOMP"; then
34034 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34035else
e6cc62c6
VS
34036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34037for as_dir in $PATH
34038do
34039 IFS=$as_save_IFS
34040 test -z "$as_dir" && as_dir=.
34041 for ac_exec_ext in '' $ac_executable_extensions; do
34042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34043 ac_cv_prog_RESCOMP="Rez"
34044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34045 break 2
34046 fi
34047done
34048done
34049
fe0895cf
VS
34050 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34051fi
34052fi
e6cc62c6 34053RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34054if test -n "$RESCOMP"; then
e6cc62c6
VS
34055 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34056echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34057else
e6cc62c6
VS
34058 echo "$as_me:$LINENO: result: no" >&5
34059echo "${ECHO_T}no" >&6
fe0895cf
VS
34060fi
34061
34062 # Extract the first word of "SetFile", so it can be a program name with args.
34063set dummy SetFile; ac_word=$2
e6cc62c6
VS
34064echo "$as_me:$LINENO: checking for $ac_word" >&5
34065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34066if test "${ac_cv_prog_SETFILE+set}" = set; then
34067 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34068else
34069 if test -n "$SETFILE"; then
34070 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34071else
e6cc62c6
VS
34072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34073for as_dir in $PATH
34074do
34075 IFS=$as_save_IFS
34076 test -z "$as_dir" && as_dir=.
34077 for ac_exec_ext in '' $ac_executable_extensions; do
34078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34079 ac_cv_prog_SETFILE="SetFile"
34080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34081 break 2
34082 fi
34083done
34084done
34085
fe0895cf
VS
34086 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34087fi
34088fi
e6cc62c6 34089SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34090if test -n "$SETFILE"; then
e6cc62c6
VS
34091 echo "$as_me:$LINENO: result: $SETFILE" >&5
34092echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34093else
e6cc62c6
VS
34094 echo "$as_me:$LINENO: result: no" >&5
34095echo "${ECHO_T}no" >&6
fe0895cf
VS
34096fi
34097
34098 ;;
34099 esac
34100
fe0895cf
VS
34101
34102
e6cc62c6
VS
34103
34104
34105
34106
d78c94f2 34107 COND_BUILD_DEBUG="#"
6f628073 34108 if test "x$BUILD" = "xdebug" ; then
d78c94f2 34109 COND_BUILD_DEBUG=""
6f628073
VS
34110 fi
34111
d78c94f2 34112 COND_BUILD_RELEASE="#"
6f628073 34113 if test "x$BUILD" = "xrelease" ; then
d78c94f2 34114 COND_BUILD_RELEASE=""
6b9d41a5
VS
34115 fi
34116
f95cd8fa
VS
34117 COND_DEPS_TRACKING_0="#"
34118 if test "x$DEPS_TRACKING" = "x0" ; then
34119 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
34120 fi
34121
8ee2dd05
VS
34122 COND_DEPS_TRACKING_1="#"
34123 if test "x$DEPS_TRACKING" = "x1" ; then
34124 COND_DEPS_TRACKING_1=""
34125 fi
34126
6f628073
VS
34127 COND_MONOLITHIC_0="#"
34128 if test "x$MONOLITHIC" = "x0" ; then
34129 COND_MONOLITHIC_0=""
6b9d41a5
VS
34130 fi
34131
6f628073
VS
34132 COND_MONOLITHIC_0_SHARED_0="#"
34133 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
34134 COND_MONOLITHIC_0_SHARED_0=""
34135 fi
34136
34137 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
34138 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
34139 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 34140 fi
e6cc62c6 34141
8ee2dd05
VS
34142 COND_MONOLITHIC_0_SHARED_1="#"
34143 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
34144 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 34145 fi
e6cc62c6 34146
6f628073
VS
34147 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
34148 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
34149 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
34150 fi
34151
3af038c0
VS
34152 COND_MONOLITHIC_1="#"
34153 if test "x$MONOLITHIC" = "x1" ; then
34154 COND_MONOLITHIC_1=""
34155 fi
34156
6f628073
VS
34157 COND_MONOLITHIC_1_SHARED_0="#"
34158 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
34159 COND_MONOLITHIC_1_SHARED_0=""
34160 fi
34161
34162 COND_MONOLITHIC_1_SHARED_1="#"
34163 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
34164 COND_MONOLITHIC_1_SHARED_1=""
34165 fi
34166
3af038c0
VS
34167 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
34168 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
34169 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
34170 fi
34171
34172 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
34173 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
34174 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
34175 fi
34176
6f628073
VS
34177 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
34178 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
34179 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
34180 fi
34181
3af038c0
VS
34182 COND_PLATFORM_MACOSX_1="#"
34183 if test "x$PLATFORM_MACOSX" = "x1" ; then
34184 COND_PLATFORM_MACOSX_1=""
34185 fi
34186
8ee2dd05
VS
34187 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
34188 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
34189 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
34190 fi
34191
3af038c0
VS
34192 COND_PLATFORM_UNIX_1="#"
34193 if test "x$PLATFORM_UNIX" = "x1" ; then
34194 COND_PLATFORM_UNIX_1=""
34195 fi
34196
34197 COND_PLATFORM_WIN32_0="#"
34198 if test "x$PLATFORM_WIN32" = "x0" ; then
34199 COND_PLATFORM_WIN32_0=""
34200 fi
34201
34202 COND_PLATFORM_WIN32_1="#"
34203 if test "x$PLATFORM_WIN32" = "x1" ; then
34204 COND_PLATFORM_WIN32_1=""
34205 fi
34206
6f628073
VS
34207 COND_TOOLKIT_COCOA="#"
34208 if test "x$TOOLKIT" = "xCOCOA" ; then
34209 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
34210 fi
34211
6f628073
VS
34212 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
34213 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34214 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34215 fi
34216
6f628073
VS
34217 COND_TOOLKIT_GTK="#"
34218 if test "x$TOOLKIT" = "xGTK" ; then
34219 COND_TOOLKIT_GTK=""
f95cd8fa
VS
34220 fi
34221
6f628073
VS
34222 COND_TOOLKIT_GTK_USE_GUI_1="#"
34223 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
34224 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
34225 fi
34226
6f628073
VS
34227 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
34228 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34229 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34230 fi
34231
6f628073
VS
34232 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="#"
34233 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34234 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1=""
8ee2dd05
VS
34235 fi
34236
3af038c0
VS
34237 COND_TOOLKIT_MAC="#"
34238 if test "x$TOOLKIT" = "xMAC" ; then
34239 COND_TOOLKIT_MAC=""
34240 fi
34241
6f628073
VS
34242 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
34243 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34244 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34245 fi
34246
6f628073
VS
34247 COND_TOOLKIT_MGL="#"
34248 if test "x$TOOLKIT" = "xMGL" ; then
34249 COND_TOOLKIT_MGL=""
8ee2dd05
VS
34250 fi
34251
6f628073
VS
34252 COND_TOOLKIT_MGL_USE_GUI_1="#"
34253 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
34254 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
34255 fi
34256
6f628073
VS
34257 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="#"
34258 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34259 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1=""
8ee2dd05
VS
34260 fi
34261
6f628073
VS
34262 COND_TOOLKIT_MOTIF="#"
34263 if test "x$TOOLKIT" = "xMOTIF" ; then
34264 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
34265 fi
34266
6f628073
VS
34267 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
34268 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
34269 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 34270 fi
e6cc62c6 34271
6f628073
VS
34272 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
34273 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34274 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34275 fi
34276
6f628073
VS
34277 COND_TOOLKIT_MSW="#"
34278 if test "x$TOOLKIT" = "xMSW" ; then
34279 COND_TOOLKIT_MSW=""
8ee2dd05
VS
34280 fi
34281
6f628073
VS
34282 COND_TOOLKIT_MSW_USE_GUI_1="#"
34283 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
34284 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 34285 fi
e6cc62c6 34286
6f628073
VS
34287 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
34288 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34289 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 34290 fi
e6cc62c6 34291
6f628073
VS
34292 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="#"
34293 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34294 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1=""
f95cd8fa
VS
34295 fi
34296
6f628073
VS
34297 COND_TOOLKIT_OS2="#"
34298 if test "x$TOOLKIT" = "xOS2" ; then
34299 COND_TOOLKIT_OS2=""
9747f85d
VS
34300 fi
34301
6f628073
VS
34302 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
34303 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34304 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
f95cd8fa
VS
34305 fi
34306
6f628073
VS
34307 COND_TOOLKIT_X11="#"
34308 if test "x$TOOLKIT" = "xX11" ; then
34309 COND_TOOLKIT_X11=""
9747f85d
VS
34310 fi
34311
6f628073
VS
34312 COND_TOOLKIT_X11_USE_GUI_1="#"
34313 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
34314 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
34315 fi
34316
8ee2dd05
VS
34317 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="#"
34318 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34319 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1=""
f95cd8fa
VS
34320 fi
34321
3af038c0
VS
34322 COND_UNICODE_1="#"
34323 if test "x$UNICODE" = "x1" ; then
34324 COND_UNICODE_1=""
34325 fi
34326
34327 COND_USE_GUI_0="#"
34328 if test "x$USE_GUI" = "x0" ; then
34329 COND_USE_GUI_0=""
34330 fi
34331
34332 COND_USE_GUI_1="#"
34333 if test "x$USE_GUI" = "x1" ; then
34334 COND_USE_GUI_1=""
34335 fi
34336
e6cc62c6 34337 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
34338 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34339 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 34340 fi
e6cc62c6
VS
34341
34342 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
34343 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34344 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
34345 fi
34346
6f628073
VS
34347 COND_USE_SOSYMLINKS_1="#"
34348 if test "x$USE_SOSYMLINKS" = "x1" ; then
34349 COND_USE_SOSYMLINKS_1=""
b625909c
VS
34350 fi
34351
6f628073
VS
34352 COND_USE_SOVERLINUX_1="#"
34353 if test "x$USE_SOVERLINUX" = "x1" ; then
34354 COND_USE_SOVERLINUX_1=""
b625909c
VS
34355 fi
34356
6f628073
VS
34357 COND_USE_SOVERSION_0="#"
34358 if test "x$USE_SOVERSION" = "x0" ; then
34359 COND_USE_SOVERSION_0=""
fddeb06b 34360 fi
fe0895cf 34361
6f628073
VS
34362 COND_USE_SOVERSOLARIS_1="#"
34363 if test "x$USE_SOVERSOLARIS" = "x1" ; then
34364 COND_USE_SOVERSOLARIS_1=""
fddeb06b 34365 fi
fe0895cf 34366
3af038c0
VS
34367 COND_WXUNIV_1="#"
34368 if test "x$WXUNIV" = "x1" ; then
34369 COND_WXUNIV_1=""
34370 fi
34371
02980527
VS
34372 COND_WXUSE_LIBJPEG_BUILTIN="#"
34373 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
34374 COND_WXUSE_LIBJPEG_BUILTIN=""
34375 fi
34376
34377 COND_WXUSE_LIBPNG_BUILTIN="#"
34378 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
34379 COND_WXUSE_LIBPNG_BUILTIN=""
34380 fi
34381
34382 COND_WXUSE_LIBTIFF_BUILTIN="#"
34383 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34384 COND_WXUSE_LIBTIFF_BUILTIN=""
34385 fi
34386
34387 COND_WXUSE_ODBC_BUILTIN="#"
34388 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
34389 COND_WXUSE_ODBC_BUILTIN=""
34390 fi
34391
34392 COND_WXUSE_REGEX_BUILTIN="#"
34393 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
34394 COND_WXUSE_REGEX_BUILTIN=""
34395 fi
34396
34397 COND_WXUSE_ZLIB_BUILTIN="#"
34398 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
34399 COND_WXUSE_ZLIB_BUILTIN=""
34400 fi
34401
dc838d98
VS
34402 COND_PLATFORM_MAC_1="#"
34403 if test "x$PLATFORM_MAC" = "x1" ; then
34404 COND_PLATFORM_MAC_1=""
34405 fi
34406
34407 COND_SHARED_1="#"
34408 if test "x$SHARED" = "x1" ; then
34409 COND_SHARED_1=""
34410 fi
34411
34412 COND_SHARED_0="#"
34413 if test "x$SHARED" = "x0" ; then
34414 COND_SHARED_0=""
34415 fi
34416
6e22c524
VS
34417 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
34418 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
34419 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
34420 fi
34421
34422 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
34423 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
34424 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
34425 fi
34426
34427 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
34428 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
34429 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
34430 fi
34431
4d264332
VS
34432 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
34433 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
34434 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
34435 fi
34436
34437 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
34438 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
34439 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
34440 fi
34441
34442 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
34443 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34444 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
34445 fi
34446
34447 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
34448 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34449 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
34450 fi
34451
fe0895cf 34452
fe0895cf 34453
fe0895cf 34454
fe0895cf
VS
34455
34456
fddeb06b 34457SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
34458
34459
34460
34461
34462
34463
34464
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550
34551
fe0895cf 34552
f0290fca
VS
34553
34554
e6cc62c6
VS
34555
34556
34557
34558echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34559echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34560set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34561if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34562 echo $ECHO_N "(cached) $ECHO_C" >&6
34563else
34564 cat >conftest.make <<\_ACEOF
34565all:
34566 @echo 'ac_maketemp="$(MAKE)"'
34567_ACEOF
34568# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34569eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34570if test -n "$ac_maketemp"; then
34571 eval ac_cv_prog_make_${ac_make}_set=yes
34572else
34573 eval ac_cv_prog_make_${ac_make}_set=no
34574fi
34575rm -f conftest.make
34576fi
34577if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34578 echo "$as_me:$LINENO: result: yes" >&5
34579echo "${ECHO_T}yes" >&6
34580 SET_MAKE=
34581else
34582 echo "$as_me:$LINENO: result: no" >&5
34583echo "${ECHO_T}no" >&6
34584 SET_MAKE="MAKE=${MAKE-make}"
34585fi
34586
34587
34588if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
34589 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
34590fi
34591
34592 ac_config_headers="$ac_config_headers setup.h"
34593
34594
81345eef 34595 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
34596
34597
34598 ac_config_commands="$ac_config_commands default"
34599
34600
9de9b8f0 34601
6c3e36af
VZ
34602if test "$wxUSE_GUI" = "yes"; then
34603 SUBDIRS="samples demos utils contrib"
34604else SUBDIRS="samples utils"
34605fi
e6cc62c6 34606
166263e6 34607for subdir in `echo $SUBDIRS`; do
9747f85d 34608 if test -d ${srcdir}/${subdir} ; then
6c3e36af 34609 if test "$wxUSE_GUI" = "yes"; then
166263e6
VZ
34610 if test ${subdir} = "samples"; then
34611 for sample in `echo $SAMPLES_SUBDIRS`; do
34612 if test -d $srcdir/samples/$sample; then
34613 makefiles="samples/$sample/Makefile.in $makefiles"
34614 fi
34615 done
34616 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
34617 fi
6c3e36af
VZ
34618 else if test ${subdir} = "samples"; then
34619 makefiles="samples/console/Makefile.in"
34620 else makefiles="utils/HelpGen/Makefile.in \
34621 utils/HelpGen/src/Makefile.in \
34622 utils/makegen/Makefile.in"
34623 fi
34624 fi
34625
9747f85d
VS
34626 for mkin in $makefiles ; do
34627 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
34628 ac_config_files="$ac_config_files $mk"
e6cc62c6 34629
9747f85d
VS
34630 done
34631 fi
34632done
e6cc62c6 34633
9de9b8f0 34634
e6cc62c6
VS
34635cat >confcache <<\_ACEOF
34636# This file is a shell script that caches the results of configure
34637# tests run on this system so they can be shared between configure
34638# scripts and configure runs, see configure's option --config-cache.
34639# It is not useful on other systems. If it contains results you don't
34640# want to keep, you may remove or edit it.
34641#
34642# config.status only pays attention to the cache file if you give it
34643# the --recheck option to rerun configure.
34644#
34645# `ac_cv_env_foo' variables (set or unset) will be overridden when
34646# loading this file, other *unset* `ac_cv_foo' will be assigned the
34647# following values.
34648
34649_ACEOF
34650
34651# The following way of writing the cache mishandles newlines in values,
34652# but we know of no workaround that is simple, portable, and efficient.
34653# So, don't put newlines in cache variables' values.
34654# Ultrix sh set writes to stderr and can't be redirected directly,
34655# and sets the high bit in the cache file unless we assign to the vars.
34656{
34657 (set) 2>&1 |
34658 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34659 *ac_space=\ *)
34660 # `set' does not quote correctly, so add quotes (double-quote
34661 # substitution turns \\\\ into \\, and sed turns \\ into \).
34662 sed -n \
34663 "s/'/'\\\\''/g;
34664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34665 ;;
34666 *)
34667 # `set' quotes correctly as required by POSIX, so do not add quotes.
34668 sed -n \
34669 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34670 ;;
34671 esac;
34672} |
34673 sed '
34674 t clear
34675 : clear
34676 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34677 t end
34678 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34679 : end' >>confcache
34680if diff $cache_file confcache >/dev/null 2>&1; then :; else
34681 if test -w $cache_file; then
34682 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34683 cat confcache >$cache_file
34684 else
34685 echo "not updating unwritable cache $cache_file"
34686 fi
34687fi
34688rm -f confcache
34689
34690test "x$prefix" = xNONE && prefix=$ac_default_prefix
34691# Let make expand exec_prefix.
34692test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34693
34694# VPATH may cause trouble with some makes, so we remove $(srcdir),
34695# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34696# trailing colons and then remove the whole line if VPATH becomes empty
34697# (actually we leave an empty line to preserve line numbers).
34698if test "x$srcdir" = x.; then
34699 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34700s/:*\$(srcdir):*/:/;
34701s/:*\${srcdir}:*/:/;
34702s/:*@srcdir@:*/:/;
34703s/^\([^=]*=[ ]*\):*/\1/;
34704s/:*$//;
34705s/^[^=]*=[ ]*$//;
34706}'
34707fi
34708
34709DEFS=-DHAVE_CONFIG_H
34710
34711ac_libobjs=
34712ac_ltlibobjs=
34713for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34714 # 1. Remove the extension, and $U if already installed.
34715 ac_i=`echo "$ac_i" |
34716 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
34717 # 2. Add them.
34718 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
34719 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
34720done
34721LIBOBJS=$ac_libobjs
34722
34723LTLIBOBJS=$ac_ltlibobjs
34724
34725
34726
34727: ${CONFIG_STATUS=./config.status}
34728ac_clean_files_save=$ac_clean_files
34729ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34730{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34731echo "$as_me: creating $CONFIG_STATUS" >&6;}
34732cat >$CONFIG_STATUS <<_ACEOF
34733#! $SHELL
34734# Generated by $as_me.
34735# Run this file to recreate the current configuration.
34736# Compiler output produced by configure, useful for debugging
34737# configure, is in config.log if it exists.
34738
34739debug=false
34740ac_cs_recheck=false
34741ac_cs_silent=false
34742SHELL=\${CONFIG_SHELL-$SHELL}
34743_ACEOF
34744
34745cat >>$CONFIG_STATUS <<\_ACEOF
34746## --------------------- ##
34747## M4sh Initialization. ##
34748## --------------------- ##
34749
34750# Be Bourne compatible
34751if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34752 emulate sh
34753 NULLCMD=:
34754 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34755 # is contrary to our usage. Disable this feature.
34756 alias -g '${1+"$@"}'='"$@"'
34757elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34758 set -o posix
34759fi
34760
34761# Support unset when possible.
34762if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34763 as_unset=unset
34764else
34765 as_unset=false
34766fi
34767
34768
34769# Work around bugs in pre-3.0 UWIN ksh.
34770$as_unset ENV MAIL MAILPATH
34771PS1='$ '
34772PS2='> '
34773PS4='+ '
34774
34775# NLS nuisances.
34776for as_var in \
34777 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34778 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34779 LC_TELEPHONE LC_TIME
34780do
34781 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
34782 eval $as_var=C; export $as_var
34783 else
34784 $as_unset $as_var
34785 fi
34786done
34787
34788# Required to use basename.
34789if expr a : '\(a\)' >/dev/null 2>&1; then
34790 as_expr=expr
34791else
34792 as_expr=false
34793fi
34794
34795if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
34796 as_basename=basename
34797else
34798 as_basename=false
34799fi
34800
34801
34802# Name of the executable.
34803as_me=`$as_basename "$0" ||
34804$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34805 X"$0" : 'X\(//\)$' \| \
34806 X"$0" : 'X\(/\)$' \| \
34807 . : '\(.\)' 2>/dev/null ||
34808echo X/"$0" |
34809 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
34810 /^X\/\(\/\/\)$/{ s//\1/; q; }
34811 /^X\/\(\/\).*/{ s//\1/; q; }
34812 s/.*/./; q'`
34813
34814
34815# PATH needs CR, and LINENO needs CR and PATH.
34816# Avoid depending upon Character Ranges.
34817as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34818as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34819as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34820as_cr_digits='0123456789'
34821as_cr_alnum=$as_cr_Letters$as_cr_digits
34822
34823# The user is always right.
34824if test "${PATH_SEPARATOR+set}" != set; then
34825 echo "#! /bin/sh" >conf$$.sh
34826 echo "exit 0" >>conf$$.sh
34827 chmod +x conf$$.sh
34828 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34829 PATH_SEPARATOR=';'
34830 else
34831 PATH_SEPARATOR=:
34832 fi
34833 rm -f conf$$.sh
34834fi
34835
34836
34837 as_lineno_1=$LINENO
34838 as_lineno_2=$LINENO
34839 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34840 test "x$as_lineno_1" != "x$as_lineno_2" &&
34841 test "x$as_lineno_3" = "x$as_lineno_2" || {
34842 # Find who we are. Look in the path if we contain no path at all
34843 # relative or not.
34844 case $0 in
34845 *[\\/]* ) as_myself=$0 ;;
34846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34847for as_dir in $PATH
34848do
34849 IFS=$as_save_IFS
34850 test -z "$as_dir" && as_dir=.
34851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34852done
34853
34854 ;;
34855 esac
34856 # We did not find ourselves, most probably we were run as `sh COMMAND'
34857 # in which case we are not to be found in the path.
34858 if test "x$as_myself" = x; then
34859 as_myself=$0
34860 fi
34861 if test ! -f "$as_myself"; then
34862 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
34863echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
34864 { (exit 1); exit 1; }; }
34865 fi
34866 case $CONFIG_SHELL in
34867 '')
34868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34869for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
34870do
34871 IFS=$as_save_IFS
34872 test -z "$as_dir" && as_dir=.
34873 for as_base in sh bash ksh sh5; do
34874 case $as_dir in
34875 /*)
34876 if ("$as_dir/$as_base" -c '
34877 as_lineno_1=$LINENO
34878 as_lineno_2=$LINENO
34879 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34880 test "x$as_lineno_1" != "x$as_lineno_2" &&
34881 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
34882 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
34883 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
34884 CONFIG_SHELL=$as_dir/$as_base
34885 export CONFIG_SHELL
34886 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
34887 fi;;
34888 esac
34889 done
34890done
34891;;
34892 esac
34893
34894 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34895 # uniformly replaced by the line number. The first 'sed' inserts a
34896 # line-number line before each line; the second 'sed' does the real
34897 # work. The second script uses 'N' to pair each line-number line
34898 # with the numbered line, and appends trailing '-' during
34899 # substitution so that $LINENO is not a special case at line end.
34900 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34901 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
34902 sed '=' <$as_myself |
34903 sed '
34904 N
34905 s,$,-,
34906 : loop
34907 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
34908 t loop
34909 s,-$,,
34910 s,^['$as_cr_digits']*\n,,
34911 ' >$as_me.lineno &&
34912 chmod +x $as_me.lineno ||
34913 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
34914echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
34915 { (exit 1); exit 1; }; }
34916
34917 # Don't try to exec as it changes $[0], causing all sort of problems
34918 # (the dirname of $[0] is not the place where we might find the
34919 # original and so on. Autoconf is especially sensible to this).
34920 . ./$as_me.lineno
34921 # Exit status is that of the last command.
34922 exit
34923}
34924
34925
34926case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
34927 *c*,-n*) ECHO_N= ECHO_C='
34928' ECHO_T=' ' ;;
34929 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
34930 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
34931esac
34932
34933if expr a : '\(a\)' >/dev/null 2>&1; then
34934 as_expr=expr
34935else
34936 as_expr=false
34937fi
34938
34939rm -f conf$$ conf$$.exe conf$$.file
34940echo >conf$$.file
34941if ln -s conf$$.file conf$$ 2>/dev/null; then
34942 # We could just check for DJGPP; but this test a) works b) is more generic
34943 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
34944 if test -f conf$$.exe; then
34945 # Don't use ln at all; we don't have any links
34946 as_ln_s='cp -p'
34947 else
34948 as_ln_s='ln -s'
34949 fi
34950elif ln conf$$.file conf$$ 2>/dev/null; then
34951 as_ln_s=ln
34952else
34953 as_ln_s='cp -p'
34954fi
34955rm -f conf$$ conf$$.exe conf$$.file
34956
34957if mkdir -p . 2>/dev/null; then
34958 as_mkdir_p=:
34959else
34960 as_mkdir_p=false
34961fi
34962
34963as_executable_p="test -f"
34964
34965# Sed expression to map a string onto a valid CPP name.
34966as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
34967
34968# Sed expression to map a string onto a valid variable name.
34969as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
34970
34971
34972# IFS
34973# We need space, tab and new line, in precisely that order.
34974as_nl='
34975'
34976IFS=" $as_nl"
34977
34978# CDPATH.
34979$as_unset CDPATH
34980
34981exec 6>&1
34982
34983# Open the log real soon, to keep \$[0] and so on meaningful, and to
34984# report actual input values of CONFIG_FILES etc. instead of their
34985# values after options handling. Logging --version etc. is OK.
34986exec 5>>config.log
34987{
34988 echo
34989 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34990## Running $as_me. ##
34991_ASBOX
34992} >&5
34993cat >&5 <<_CSEOF
34994
34995This file was extended by wxWindows $as_me 2.5.0, which was
34996generated by GNU Autoconf 2.57. Invocation command line was
34997
34998 CONFIG_FILES = $CONFIG_FILES
34999 CONFIG_HEADERS = $CONFIG_HEADERS
35000 CONFIG_LINKS = $CONFIG_LINKS
35001 CONFIG_COMMANDS = $CONFIG_COMMANDS
35002 $ $0 $@
35003
35004_CSEOF
35005echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35006echo >&5
35007_ACEOF
35008
35009# Files that config.status was made for.
35010if test -n "$ac_config_files"; then
35011 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35012fi
35013
35014if test -n "$ac_config_headers"; then
35015 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35016fi
35017
35018if test -n "$ac_config_links"; then
35019 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35020fi
35021
35022if test -n "$ac_config_commands"; then
35023 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35024fi
35025
35026cat >>$CONFIG_STATUS <<\_ACEOF
35027
35028ac_cs_usage="\
35029\`$as_me' instantiates files from templates according to the
35030current configuration.
35031
35032Usage: $0 [OPTIONS] [FILE]...
35033
35034 -h, --help print this help, then exit
35035 -V, --version print version number, then exit
35036 -q, --quiet do not print progress messages
35037 -d, --debug don't remove temporary files
35038 --recheck update $as_me by reconfiguring in the same conditions
35039 --file=FILE[:TEMPLATE]
35040 instantiate the configuration file FILE
35041 --header=FILE[:TEMPLATE]
35042 instantiate the configuration header FILE
35043
35044Configuration files:
35045$config_files
35046
35047Configuration headers:
35048$config_headers
35049
35050Configuration commands:
35051$config_commands
35052
35053Report bugs to <bug-autoconf@gnu.org>."
35054_ACEOF
35055
35056cat >>$CONFIG_STATUS <<_ACEOF
35057ac_cs_version="\\
35058wxWindows config.status 2.5.0
35059configured by $0, generated by GNU Autoconf 2.57,
35060 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35061
35062Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35063Free Software Foundation, Inc.
35064This config.status script is free software; the Free Software Foundation
35065gives unlimited permission to copy, distribute and modify it."
35066srcdir=$srcdir
35067INSTALL="$INSTALL"
35068_ACEOF
35069
35070cat >>$CONFIG_STATUS <<\_ACEOF
35071# If no file are specified by the user, then we need to provide default
35072# value. By we need to know if files were specified by the user.
35073ac_need_defaults=:
35074while test $# != 0
35075do
35076 case $1 in
35077 --*=*)
35078 ac_option=`expr "x$1" : 'x\([^=]*\)='`
35079 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35080 ac_shift=:
35081 ;;
35082 -*)
35083 ac_option=$1
35084 ac_optarg=$2
35085 ac_shift=shift
35086 ;;
35087 *) # This is not an option, so the user has probably given explicit
35088 # arguments.
35089 ac_option=$1
35090 ac_need_defaults=false;;
35091 esac
35092
35093 case $ac_option in
35094 # Handling of the options.
35095_ACEOF
35096cat >>$CONFIG_STATUS <<\_ACEOF
35097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35098 ac_cs_recheck=: ;;
35099 --version | --vers* | -V )
35100 echo "$ac_cs_version"; exit 0 ;;
35101 --he | --h)
35102 # Conflict between --help and --header
35103 { { echo "$as_me:$LINENO: error: ambiguous option: $1
35104Try \`$0 --help' for more information." >&5
35105echo "$as_me: error: ambiguous option: $1
35106Try \`$0 --help' for more information." >&2;}
35107 { (exit 1); exit 1; }; };;
35108 --help | --hel | -h )
35109 echo "$ac_cs_usage"; exit 0 ;;
35110 --debug | --d* | -d )
35111 debug=: ;;
35112 --file | --fil | --fi | --f )
35113 $ac_shift
35114 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35115 ac_need_defaults=false;;
35116 --header | --heade | --head | --hea )
35117 $ac_shift
35118 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35119 ac_need_defaults=false;;
35120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35121 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35122 ac_cs_silent=: ;;
35123
35124 # This is an error.
35125 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35126Try \`$0 --help' for more information." >&5
35127echo "$as_me: error: unrecognized option: $1
35128Try \`$0 --help' for more information." >&2;}
35129 { (exit 1); exit 1; }; } ;;
35130
35131 *) ac_config_targets="$ac_config_targets $1" ;;
35132
35133 esac
35134 shift
35135done
35136
35137ac_configure_extra_args=
35138
35139if $ac_cs_silent; then
35140 exec 6>/dev/null
35141 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
35142fi
35143
e6cc62c6
VS
35144_ACEOF
35145cat >>$CONFIG_STATUS <<_ACEOF
35146if \$ac_cs_recheck; then
35147 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35148 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
35149fi
35150
e6cc62c6 35151_ACEOF
fe0895cf 35152
e6cc62c6 35153cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 35154#
e6cc62c6 35155# INIT-COMMANDS section.
10f2d63a 35156#
10f2d63a 35157
a0b9e27f 35158
e6cc62c6
VS
35159 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35160 LN_S="${LN_S}"
10f2d63a 35161
10f2d63a 35162
10f2d63a 35163
e6cc62c6 35164_ACEOF
8284b0c5 35165
52127426 35166
247f5006 35167
e6cc62c6
VS
35168cat >>$CONFIG_STATUS <<\_ACEOF
35169for ac_config_target in $ac_config_targets
247f5006 35170do
e6cc62c6
VS
35171 case "$ac_config_target" in
35172 # Handling of arguments.
81345eef
VZ
35173 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35174 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35175 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 35176 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
35177 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35178 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35179 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35180echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35181 { (exit 1); exit 1; }; };;
247f5006
VZ
35182 esac
35183done
35184
e6cc62c6
VS
35185# If the user did not use the arguments to specify the items to instantiate,
35186# then the envvar interface is used. Set only those that are not.
35187# We use the long form for the default assignment because of an extremely
35188# bizarre bug on SunOS 4.1.3.
35189if $ac_need_defaults; then
35190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35193fi
35194
35195# Have a temporary directory for convenience. Make it in the build tree
35196# simply because there is no reason to put it here, and in addition,
35197# creating and moving files from /tmp can sometimes cause problems.
35198# Create a temporary directory, and hook for its removal unless debugging.
35199$debug ||
35200{
35201 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35202 trap '{ (exit 1); exit 1; }' 1 2 13 15
35203}
247f5006 35204
e6cc62c6 35205# Create a (secure) tmp directory for tmp files.
247f5006 35206
e6cc62c6
VS
35207{
35208 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35209 test -n "$tmp" && test -d "$tmp"
35210} ||
35211{
35212 tmp=./confstat$$-$RANDOM
35213 (umask 077 && mkdir $tmp)
35214} ||
35215{
35216 echo "$me: cannot create a temporary directory in ." >&2
35217 { (exit 1); exit 1; }
35218}
35219
35220_ACEOF
35221
35222cat >>$CONFIG_STATUS <<_ACEOF
35223
35224#
35225# CONFIG_FILES section.
35226#
247f5006 35227
e6cc62c6
VS
35228# No need to generate the scripts if there are no CONFIG_FILES.
35229# This happens for instance when ./config.status config.h
35230if test -n "\$CONFIG_FILES"; then
35231 # Protect against being on the right side of a sed subst in config.status.
35232 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35233 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35234s,@SHELL@,$SHELL,;t t
35235s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35236s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35237s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35238s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35239s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35240s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35241s,@exec_prefix@,$exec_prefix,;t t
35242s,@prefix@,$prefix,;t t
35243s,@program_transform_name@,$program_transform_name,;t t
35244s,@bindir@,$bindir,;t t
35245s,@sbindir@,$sbindir,;t t
35246s,@libexecdir@,$libexecdir,;t t
35247s,@datadir@,$datadir,;t t
35248s,@sysconfdir@,$sysconfdir,;t t
35249s,@sharedstatedir@,$sharedstatedir,;t t
35250s,@localstatedir@,$localstatedir,;t t
35251s,@libdir@,$libdir,;t t
35252s,@includedir@,$includedir,;t t
35253s,@oldincludedir@,$oldincludedir,;t t
35254s,@infodir@,$infodir,;t t
35255s,@mandir@,$mandir,;t t
35256s,@build_alias@,$build_alias,;t t
35257s,@host_alias@,$host_alias,;t t
35258s,@target_alias@,$target_alias,;t t
35259s,@DEFS@,$DEFS,;t t
35260s,@ECHO_C@,$ECHO_C,;t t
35261s,@ECHO_N@,$ECHO_N,;t t
35262s,@ECHO_T@,$ECHO_T,;t t
35263s,@LIBS@,$LIBS,;t t
35264s,@build@,$build,;t t
35265s,@build_cpu@,$build_cpu,;t t
35266s,@build_vendor@,$build_vendor,;t t
35267s,@build_os@,$build_os,;t t
35268s,@host@,$host,;t t
35269s,@host_cpu@,$host_cpu,;t t
35270s,@host_vendor@,$host_vendor,;t t
35271s,@host_os@,$host_os,;t t
35272s,@target@,$target,;t t
35273s,@target_cpu@,$target_cpu,;t t
35274s,@target_vendor@,$target_vendor,;t t
35275s,@target_os@,$target_os,;t t
35276s,@CC@,$CC,;t t
35277s,@CFLAGS@,$CFLAGS,;t t
35278s,@LDFLAGS@,$LDFLAGS,;t t
35279s,@CPPFLAGS@,$CPPFLAGS,;t t
35280s,@ac_ct_CC@,$ac_ct_CC,;t t
35281s,@EXEEXT@,$EXEEXT,;t t
35282s,@OBJEXT@,$OBJEXT,;t t
35283s,@CPP@,$CPP,;t t
35284s,@EGREP@,$EGREP,;t t
35285s,@CXX@,$CXX,;t t
35286s,@CXXFLAGS@,$CXXFLAGS,;t t
35287s,@ac_ct_CXX@,$ac_ct_CXX,;t t
35288s,@RANLIB@,$RANLIB,;t t
35289s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35290s,@AR@,$AR,;t t
35291s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35292s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35293s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35294s,@STRIP@,$STRIP,;t t
35295s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
35296s,@YACC@,$YACC,;t t
35297s,@LEX@,$LEX,;t t
35298s,@LEXLIB@,$LEXLIB,;t t
35299s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35300s,@LN_S@,$LN_S,;t t
35301s,@CXXCPP@,$CXXCPP,;t t
35302s,@PKG_CONFIG@,$PKG_CONFIG,;t t
35303s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
35304s,@GTK_LIBS@,$GTK_LIBS,;t t
35305s,@GTK_CONFIG@,$GTK_CONFIG,;t t
35306s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
35307s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
35308s,@X_CFLAGS@,$X_CFLAGS,;t t
35309s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35310s,@X_LIBS@,$X_LIBS,;t t
35311s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35312s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
35313s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
35314s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
35315s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
35316s,@RESCOMP@,$RESCOMP,;t t
35317s,@DEREZ@,$DEREZ,;t t
35318s,@SETFILE@,$SETFILE,;t t
35319s,@LIBICONV@,$LIBICONV,;t t
35320s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
35321s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
35322s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
35323s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
35324s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
35325s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
35326s,@VENDOR@,$VENDOR,;t t
35327s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
35328s,@WXUNIV@,$WXUNIV,;t t
35329s,@MONOLITHIC@,$MONOLITHIC,;t t
35330s,@EXTRALIBS@,$EXTRALIBS,;t t
c74dc163 35331s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
e6cc62c6
VS
35332s,@UNICODE@,$UNICODE,;t t
35333s,@BUILD@,$BUILD,;t t
35334s,@SHARED@,$SHARED,;t t
35335s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
35336s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
35337s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
35338s,@SET_MAKE@,$SET_MAKE,;t t
35339s,@MAKE_SET@,$MAKE_SET,;t t
35340s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 35341s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
35342s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
35343s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
35344s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
35345s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
35346s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
35347s,@SO_SUFFIX@,$SO_SUFFIX,;t t
35348s,@DLLPREFIX@,$DLLPREFIX,;t t
dc838d98 35349s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
35350s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
35351s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
35352s,@PIC_FLAG@,$PIC_FLAG,;t t
35353s,@USE_SOVERSION@,$USE_SOVERSION,;t t
35354s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
35355s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
35356s,@USE_MACVERSION@,$USE_MACVERSION,;t t
35357s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
35358s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 35359s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
d78c94f2
VS
35360s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
35361s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
f95cd8fa 35362s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 35363s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
6f628073 35364s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
35365s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
35366s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8ee2dd05 35367s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 35368s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
3af038c0 35369s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
35370s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
35371s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
35372s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
35373s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 35374s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 35375s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
8ee2dd05 35376s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
3af038c0
VS
35377s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
35378s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
35379s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
6f628073
VS
35380s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
35381s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
35382s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
35383s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05
VS
35384s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
35385s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1,;t t
3af038c0 35386s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
6f628073
VS
35387s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
35388s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
35389s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
35390s,@COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1,;t t
35391s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
35392s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
35393s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 35394s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
35395s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
35396s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 35397s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1,;t t
6f628073
VS
35398s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
35399s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
35400s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
35401s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
8ee2dd05 35402s,@COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1,;t t
3af038c0
VS
35403s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
35404s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
35405s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
35406s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
35407s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
6f628073
VS
35408s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
35409s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
35410s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
35411s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0
VS
35412s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
35413s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
35414s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
35415s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
35416s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
35417s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
35418s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
dc838d98
VS
35419s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
35420s,@COND_SHARED_1@,$COND_SHARED_1,;t t
35421s,@COND_SHARED_0@,$COND_SHARED_0,;t t
6e22c524
VS
35422s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
35423s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
35424s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
4d264332
VS
35425s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
35426s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
35427s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
35428s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
e6cc62c6
VS
35429s,@LEX_STEM@,$LEX_STEM,;t t
35430s,@PATH_IFS@,$PATH_IFS,;t t
35431s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
35432s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
35433s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
35434s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
35435s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
35436s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t
35437s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
35438s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
35439s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
35440s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
35441s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
35442s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
35443s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
35444s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
35445s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
35446s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
35447s,@WX_ALL@,$WX_ALL,;t t
35448s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
35449s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
35450s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
35451s,@STATIC_FLAG@,$STATIC_FLAG,;t t
35452s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
35453s,@USE_GUI@,$USE_GUI,;t t
35454s,@AFMINSTALL@,$AFMINSTALL,;t t
35455s,@WIN32INSTALL@,$WIN32INSTALL,;t t
35456s,@TOOLKIT@,$TOOLKIT,;t t
35457s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
35458s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
35459s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
35460s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
35461s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
35462s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
35463s,@cross_compiling@,$cross_compiling,;t t
35464s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
35465s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
35466s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
35467s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
35468s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
35469s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
35470s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
35471s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
35472s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
35473s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
35474s,@ALL_HEADERS@,$ALL_HEADERS,;t t
35475s,@ALL_SOURCES@,$ALL_SOURCES,;t t
35476s,@GUIDIST@,$GUIDIST,;t t
35477s,@PORT_FILES@,$PORT_FILES,;t t
35478s,@DISTDIR@,$DISTDIR,;t t
35479s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
35480s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
35481s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
35482s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
35483s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
35484s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
35485s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
35486s,@RESFLAGS@,$RESFLAGS,;t t
35487s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
35488s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
35489s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
35490s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
35491s,@LIBWXMACRES@,$LIBWXMACRES,;t t
35492s,@MACRESCOMP@,$MACRESCOMP,;t t
35493s,@MACSETFILE@,$MACSETFILE,;t t
35494s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
35495s,@GCC@,$GCC,;t t
35496s,@DLLTOOL@,$DLLTOOL,;t t
35497s,@AS@,$AS,;t t
35498s,@NM@,$NM,;t t
35499s,@LD@,$LD,;t t
35500s,@MAKEINFO@,$MAKEINFO,;t t
35501s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
35502s,@ESD_LINK@,$ESD_LINK,;t t
35503s,@LIBOBJS@,$LIBOBJS,;t t
35504s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
35505CEOF
35506
e6cc62c6
VS
35507_ACEOF
35508
35509 cat >>$CONFIG_STATUS <<\_ACEOF
35510 # Split the substitutions into bite-sized pieces for seds with
35511 # small command number limits, like on Digital OSF/1 and HP-UX.
35512 ac_max_sed_lines=48
35513 ac_sed_frag=1 # Number of current file.
35514 ac_beg=1 # First line for current file.
35515 ac_end=$ac_max_sed_lines # Line after last line for current file.
35516 ac_more_lines=:
35517 ac_sed_cmds=
35518 while $ac_more_lines; do
35519 if test $ac_beg -gt 1; then
35520 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 35521 else
e6cc62c6
VS
35522 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35523 fi
35524 if test ! -s $tmp/subs.frag; then
35525 ac_more_lines=false
35526 else
35527 # The purpose of the label and of the branching condition is to
35528 # speed up the sed processing (if there are no `@' at all, there
35529 # is no need to browse any of the substitutions).
35530 # These are the two extra sed commands mentioned above.
35531 (echo ':t
35532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35533 if test -z "$ac_sed_cmds"; then
35534 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35535 else
35536 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35537 fi
35538 ac_sed_frag=`expr $ac_sed_frag + 1`
35539 ac_beg=$ac_end
35540 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 35541 fi
e6cc62c6
VS
35542 done
35543 if test -z "$ac_sed_cmds"; then
35544 ac_sed_cmds=cat
10f2d63a 35545 fi
e6cc62c6 35546fi # test -n "$CONFIG_FILES"
10f2d63a 35547
e6cc62c6
VS
35548_ACEOF
35549cat >>$CONFIG_STATUS <<\_ACEOF
35550for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 35551 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
35552 case $ac_file in
35553 - | *:- | *:-:* ) # input from stdin
35554 cat >$tmp/stdin
35555 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35556 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35557 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35558 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35559 * ) ac_file_in=$ac_file.in ;;
10f2d63a 35560 esac
247f5006 35561
e6cc62c6
VS
35562 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35563 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35564$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35565 X"$ac_file" : 'X\(//\)[^/]' \| \
35566 X"$ac_file" : 'X\(//\)$' \| \
35567 X"$ac_file" : 'X\(/\)' \| \
35568 . : '\(.\)' 2>/dev/null ||
35569echo X"$ac_file" |
35570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35572 /^X\(\/\/\)$/{ s//\1/; q; }
35573 /^X\(\/\).*/{ s//\1/; q; }
35574 s/.*/./; q'`
35575 { if $as_mkdir_p; then
35576 mkdir -p "$ac_dir"
a0b9e27f 35577 else
e6cc62c6
VS
35578 as_dir="$ac_dir"
35579 as_dirs=
35580 while test ! -d "$as_dir"; do
35581 as_dirs="$as_dir $as_dirs"
35582 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35583$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35584 X"$as_dir" : 'X\(//\)[^/]' \| \
35585 X"$as_dir" : 'X\(//\)$' \| \
35586 X"$as_dir" : 'X\(/\)' \| \
35587 . : '\(.\)' 2>/dev/null ||
35588echo X"$as_dir" |
35589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35591 /^X\(\/\/\)$/{ s//\1/; q; }
35592 /^X\(\/\).*/{ s//\1/; q; }
35593 s/.*/./; q'`
35594 done
35595 test ! -n "$as_dirs" || mkdir $as_dirs
35596 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35597echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35598 { (exit 1); exit 1; }; }; }
35599
35600 ac_builddir=.
35601
35602if test "$ac_dir" != .; then
35603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35604 # A "../" for each directory in $ac_dir_suffix.
35605 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35606else
35607 ac_dir_suffix= ac_top_builddir=
35608fi
247f5006 35609
e6cc62c6
VS
35610case $srcdir in
35611 .) # No --srcdir option. We are building in place.
35612 ac_srcdir=.
35613 if test -z "$ac_top_builddir"; then
35614 ac_top_srcdir=.
35615 else
35616 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35617 fi ;;
35618 [\\/]* | ?:[\\/]* ) # Absolute path.
35619 ac_srcdir=$srcdir$ac_dir_suffix;
35620 ac_top_srcdir=$srcdir ;;
247f5006 35621 *) # Relative path.
e6cc62c6
VS
35622 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35623 ac_top_srcdir=$ac_top_builddir$srcdir ;;
35624esac
35625# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35626# absolute.
35627ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35628ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
35629ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35630ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 35631
247f5006 35632
e6cc62c6
VS
35633 case $INSTALL in
35634 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35635 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 35636 esac
247f5006 35637
e6cc62c6
VS
35638 if test x"$ac_file" != x-; then
35639 { echo "$as_me:$LINENO: creating $ac_file" >&5
35640echo "$as_me: creating $ac_file" >&6;}
35641 rm -f "$ac_file"
35642 fi
35643 # Let's still pretend it is `configure' which instantiates (i.e., don't
35644 # use $as_me), people would be surprised to read:
35645 # /* config.h. Generated by config.status. */
35646 if test x"$ac_file" = x-; then
35647 configure_input=
35648 else
35649 configure_input="$ac_file. "
35650 fi
35651 configure_input=$configure_input"Generated from `echo $ac_file_in |
35652 sed 's,.*/,,'` by configure."
35653
35654 # First look for the input files in the build tree, otherwise in the
35655 # src tree.
35656 ac_file_inputs=`IFS=:
35657 for f in $ac_file_in; do
35658 case $f in
35659 -) echo $tmp/stdin ;;
35660 [\\/$]*)
35661 # Absolute (can't be DOS-style, as IFS=:)
35662 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35663echo "$as_me: error: cannot find input file: $f" >&2;}
35664 { (exit 1); exit 1; }; }
35665 echo $f;;
35666 *) # Relative
35667 if test -f "$f"; then
35668 # Build tree
35669 echo $f
35670 elif test -f "$srcdir/$f"; then
35671 # Source tree
35672 echo $srcdir/$f
35673 else
35674 # /dev/null tree
35675 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35676echo "$as_me: error: cannot find input file: $f" >&2;}
35677 { (exit 1); exit 1; }; }
35678 fi;;
35679 esac
35680 done` || { (exit 1); exit 1; }
35681_ACEOF
35682cat >>$CONFIG_STATUS <<_ACEOF
35683 sed "$ac_vpsub
35684$extrasub
35685_ACEOF
35686cat >>$CONFIG_STATUS <<\_ACEOF
35687:t
35688/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35689s,@configure_input@,$configure_input,;t t
35690s,@srcdir@,$ac_srcdir,;t t
35691s,@abs_srcdir@,$ac_abs_srcdir,;t t
35692s,@top_srcdir@,$ac_top_srcdir,;t t
35693s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35694s,@builddir@,$ac_builddir,;t t
35695s,@abs_builddir@,$ac_abs_builddir,;t t
35696s,@top_builddir@,$ac_top_builddir,;t t
35697s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35698s,@INSTALL@,$ac_INSTALL,;t t
35699" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35700 rm -f $tmp/stdin
35701 if test x"$ac_file" != x-; then
35702 mv $tmp/out $ac_file
35703 else
35704 cat $tmp/out
35705 rm -f $tmp/out
35706 fi
35707
35708done
35709_ACEOF
35710cat >>$CONFIG_STATUS <<\_ACEOF
35711
35712#
35713# CONFIG_HEADER section.
35714#
10f2d63a
VZ
35715
35716# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35717# NAME is the cpp macro being defined and VALUE is the value it is being given.
35718#
35719# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
35720ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
35721ac_dB='[ ].*$,\1#\2'
35722ac_dC=' '
35723ac_dD=',;t'
35724# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35725ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
35726ac_uB='$,\1#\2define\3'
10f2d63a 35727ac_uC=' '
e6cc62c6
VS
35728ac_uD=',;t'
35729
35730for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 35731 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
35732 case $ac_file in
35733 - | *:- | *:-:* ) # input from stdin
35734 cat >$tmp/stdin
35735 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35736 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35737 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35738 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35739 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
35740 esac
35741
e6cc62c6
VS
35742 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35743echo "$as_me: creating $ac_file" >&6;}
35744
35745 # First look for the input files in the build tree, otherwise in the
35746 # src tree.
35747 ac_file_inputs=`IFS=:
35748 for f in $ac_file_in; do
35749 case $f in
35750 -) echo $tmp/stdin ;;
35751 [\\/$]*)
35752 # Absolute (can't be DOS-style, as IFS=:)
35753 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35754echo "$as_me: error: cannot find input file: $f" >&2;}
35755 { (exit 1); exit 1; }; }
35756 echo $f;;
35757 *) # Relative
35758 if test -f "$f"; then
35759 # Build tree
35760 echo $f
35761 elif test -f "$srcdir/$f"; then
35762 # Source tree
35763 echo $srcdir/$f
35764 else
35765 # /dev/null tree
35766 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35767echo "$as_me: error: cannot find input file: $f" >&2;}
35768 { (exit 1); exit 1; }; }
35769 fi;;
35770 esac
35771 done` || { (exit 1); exit 1; }
35772 # Remove the trailing spaces.
35773 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
35774
35775_ACEOF
35776
35777# Transform confdefs.h into two sed scripts, `conftest.defines' and
35778# `conftest.undefs', that substitutes the proper values into
35779# config.h.in to produce config.h. The first handles `#define'
35780# templates, and the second `#undef' templates.
35781# And first: Protect against being on the right side of a sed subst in
35782# config.status. Protect against being in an unquoted here document
35783# in config.status.
35784rm -f conftest.defines conftest.undefs
35785# Using a here document instead of a string reduces the quoting nightmare.
35786# Putting comments in sed scripts is not portable.
35787#
35788# `end' is used to avoid that the second main sed command (meant for
35789# 0-ary CPP macros) applies to n-ary macro definitions.
35790# See the Autoconf documentation for `clear'.
35791cat >confdef2sed.sed <<\_ACEOF
35792s/[\\&,]/\\&/g
35793s,[\\$`],\\&,g
35794t clear
35795: clear
35796s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35797t end
35798s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35799: end
35800_ACEOF
35801# If some macros were called several times there might be several times
35802# the same #defines, which is useless. Nevertheless, we may not want to
35803# sort them, since we want the *last* AC-DEFINE to be honored.
35804uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35805sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35806rm -f confdef2sed.sed
10f2d63a
VZ
35807
35808# This sed command replaces #undef with comments. This is necessary, for
35809# example, in the case of _POSIX_SOURCE, which is predefined and required
35810# on some systems where configure will not decide to define it.
e6cc62c6
VS
35811cat >>conftest.undefs <<\_ACEOF
35812s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
35813_ACEOF
35814
35815# Break up conftest.defines because some shells have a limit on the size
35816# of here documents, and old seds have small limits too (100 cmds).
35817echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35818echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35819echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35820echo ' :' >>$CONFIG_STATUS
35821rm -f conftest.tail
35822while grep . conftest.defines >/dev/null
35823do
35824 # Write a limited-size here document to $tmp/defines.sed.
35825 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35826 # Speed up: don't consider the non `#define' lines.
35827 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
35828 # Work around the forget-to-reset-the-flag bug.
35829 echo 't clr' >>$CONFIG_STATUS
35830 echo ': clr' >>$CONFIG_STATUS
35831 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
35832 echo 'CEOF
35833 sed -f $tmp/defines.sed $tmp/in >$tmp/out
35834 rm -f $tmp/in
35835 mv $tmp/out $tmp/in
35836' >>$CONFIG_STATUS
35837 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
35838 rm -f conftest.defines
35839 mv conftest.tail conftest.defines
35840done
35841rm -f conftest.defines
35842echo ' fi # grep' >>$CONFIG_STATUS
35843echo >>$CONFIG_STATUS
10f2d63a 35844
e6cc62c6
VS
35845# Break up conftest.undefs because some shells have a limit on the size
35846# of here documents, and old seds have small limits too (100 cmds).
35847echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 35848rm -f conftest.tail
e6cc62c6 35849while grep . conftest.undefs >/dev/null
10f2d63a 35850do
e6cc62c6
VS
35851 # Write a limited-size here document to $tmp/undefs.sed.
35852 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35853 # Speed up: don't consider the non `#undef'
35854 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
35855 # Work around the forget-to-reset-the-flag bug.
35856 echo 't clr' >>$CONFIG_STATUS
35857 echo ': clr' >>$CONFIG_STATUS
35858 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 35859 echo 'CEOF
e6cc62c6
VS
35860 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35861 rm -f $tmp/in
35862 mv $tmp/out $tmp/in
35863' >>$CONFIG_STATUS
35864 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35865 rm -f conftest.undefs
35866 mv conftest.tail conftest.undefs
10f2d63a 35867done
e6cc62c6
VS
35868rm -f conftest.undefs
35869
35870cat >>$CONFIG_STATUS <<\_ACEOF
35871 # Let's still pretend it is `configure' which instantiates (i.e., don't
35872 # use $as_me), people would be surprised to read:
35873 # /* config.h. Generated by config.status. */
35874 if test x"$ac_file" = x-; then
35875 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 35876 else
e6cc62c6 35877 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 35878 fi
e6cc62c6
VS
35879 cat $tmp/in >>$tmp/config.h
35880 rm -f $tmp/in
35881 if test x"$ac_file" != x-; then
35882 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
35883 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35884echo "$as_me: $ac_file is unchanged" >&6;}
35885 else
35886 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35887$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35888 X"$ac_file" : 'X\(//\)[^/]' \| \
35889 X"$ac_file" : 'X\(//\)$' \| \
35890 X"$ac_file" : 'X\(/\)' \| \
35891 . : '\(.\)' 2>/dev/null ||
35892echo X"$ac_file" |
35893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35895 /^X\(\/\/\)$/{ s//\1/; q; }
35896 /^X\(\/\).*/{ s//\1/; q; }
35897 s/.*/./; q'`
35898 { if $as_mkdir_p; then
35899 mkdir -p "$ac_dir"
35900 else
35901 as_dir="$ac_dir"
35902 as_dirs=
35903 while test ! -d "$as_dir"; do
35904 as_dirs="$as_dir $as_dirs"
35905 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35906$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35907 X"$as_dir" : 'X\(//\)[^/]' \| \
35908 X"$as_dir" : 'X\(//\)$' \| \
35909 X"$as_dir" : 'X\(/\)' \| \
35910 . : '\(.\)' 2>/dev/null ||
35911echo X"$as_dir" |
35912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35914 /^X\(\/\/\)$/{ s//\1/; q; }
35915 /^X\(\/\).*/{ s//\1/; q; }
35916 s/.*/./; q'`
35917 done
35918 test ! -n "$as_dirs" || mkdir $as_dirs
35919 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35920echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35921 { (exit 1); exit 1; }; }; }
a0b9e27f 35922
e6cc62c6
VS
35923 rm -f $ac_file
35924 mv $tmp/config.h $ac_file
35925 fi
35926 else
35927 cat $tmp/config.h
35928 rm -f $tmp/config.h
35929 fi
35930done
35931_ACEOF
35932cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 35933
e6cc62c6
VS
35934#
35935# CONFIG_COMMANDS section.
35936#
35937for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
35938 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
35939 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
35940 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
35941$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35942 X"$ac_dest" : 'X\(//\)[^/]' \| \
35943 X"$ac_dest" : 'X\(//\)$' \| \
35944 X"$ac_dest" : 'X\(/\)' \| \
35945 . : '\(.\)' 2>/dev/null ||
35946echo X"$ac_dest" |
35947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35949 /^X\(\/\/\)$/{ s//\1/; q; }
35950 /^X\(\/\).*/{ s//\1/; q; }
35951 s/.*/./; q'`
35952 ac_builddir=.
35953
35954if test "$ac_dir" != .; then
35955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35956 # A "../" for each directory in $ac_dir_suffix.
35957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35958else
35959 ac_dir_suffix= ac_top_builddir=
35960fi
35961
35962case $srcdir in
35963 .) # No --srcdir option. We are building in place.
35964 ac_srcdir=.
35965 if test -z "$ac_top_builddir"; then
35966 ac_top_srcdir=.
35967 else
35968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35969 fi ;;
35970 [\\/]* | ?:[\\/]* ) # Absolute path.
35971 ac_srcdir=$srcdir$ac_dir_suffix;
35972 ac_top_srcdir=$srcdir ;;
35973 *) # Relative path.
35974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
35976esac
35977# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35978# absolute.
35979ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35980ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
35981ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35982ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
35983
35984
35985 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
35986echo "$as_me: executing $ac_dest commands" >&6;}
35987 case $ac_dest in
35988 default )
652d930d 35989 if test ! -h wx-config; then
991a5759 35990 chmod +x wx-config
3a922bb4
RL
35991 mv wx-config wx${TOOLCHAIN_NAME}-config
35992 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 35993 fi
665bbe97 35994
00cf1208
RR
35995 if test ! -d lib; then
35996 mkdir lib
35997 fi
35998 if test ! -d lib/wx; then
35999 mkdir lib/wx
36000 fi
36001 if test ! -d lib/wx/include; then
36002 mkdir lib/wx/include
36003 fi
3a922bb4
RL
36004 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36005 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 36006 fi
3a922bb4
RL
36007 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36008 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
36009 fi
36010 if test -f setup.h; then
3a922bb4 36011 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 36012 fi
e6cc62c6
VS
36013 ;;
36014 esac
36015done
36016_ACEOF
2224580a 36017
e6cc62c6 36018cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 36019
e6cc62c6
VS
36020{ (exit 0); exit 0; }
36021_ACEOF
36022chmod +x $CONFIG_STATUS
36023ac_clean_files=$ac_clean_files_save
36024
36025
36026# configure is writing to config.log, and then calls config.status.
36027# config.status does its own redirection, appending to config.log.
36028# Unfortunately, on DOS this fails, as config.log is still kept open
36029# by configure, so config.status won't be able to write to it; its
36030# output is simply discarded. So we exec the FD to /dev/null,
36031# effectively closing config.log, so it can be properly (re)opened and
36032# appended to by config.status. When coming back to configure, we
36033# need to make the FD available again.
36034if test "$no_create" != yes; then
36035 ac_cs_success=:
36036 ac_config_status_args=
36037 test "$silent" = yes &&
36038 ac_config_status_args="$ac_config_status_args --quiet"
36039 exec 5>/dev/null
36040 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36041 exec 5>>config.log
36042 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36043 # would make configure fail if this is the last instruction.
36044 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
36045fi
36046
8284b0c5 36047
2b5f62a0
VZ
36048echo
36049echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36050echo ""
36051echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 36052echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
36053
36054echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
36055echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
36056echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
36057
0c98a14e
GD
36058echo " What level of wxWindows compatibility should be enabled?"
36059echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
36060echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
36061echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 36062
2b5f62a0
VZ
36063echo " Which libraries should wxWindows use?"
36064echo " jpeg ${wxUSE_LIBJPEG-none}"
36065echo " png ${wxUSE_LIBPNG-none}"
36066echo " regex ${wxUSE_REGEX}"
36067echo " tiff ${wxUSE_LIBTIFF-none}"
36068echo " zlib ${wxUSE_ZLIB}"
fd3d7534 36069echo " odbc ${wxUSE_ODBC}"
2b5f62a0
VZ
36070
36071echo ""
36072