]> git.saurik.com Git - wxWidgets.git/blame - configure
wxUSE_XML
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
e6cc62c6
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.0.
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
fe0895cf 9# Free Software Foundation, Inc.
e6cc62c6
VS
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
fe0895cf 15
e6cc62c6
VS
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
fe0895cf 26
e6cc62c6
VS
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 as_mkdir_p=false
225fi
fe0895cf 226
e6cc62c6 227as_executable_p="test -f"
fe0895cf 228
e6cc62c6
VS
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6
VS
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
fe0895cf
VS
234
235
e6cc62c6
VS
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
fe0895cf 241
e6cc62c6
VS
242# CDPATH.
243$as_unset CDPATH
fe0895cf
VS
244
245
e6cc62c6
VS
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 250
e6cc62c6 251exec 6>&1
fe0895cf 252
a0b9e27f 253#
e6cc62c6
VS
254# Initializations.
255#
a0b9e27f 256ac_default_prefix=/usr/local
e6cc62c6
VS
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
272PACKAGE_VERSION='2.5.0'
273PACKAGE_STRING='wxWindows 2.5.0'
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
672abd7a
VS
314ac_subdirs_all="$ac_subdirs_all src/expat"
315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG HOST_SUFFIX SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX 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_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_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_WXUSE_EXPAT_BUILTIN LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME 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 316ac_subst_files=''
10f2d63a
VZ
317
318# Initialize some variables set by options.
e6cc62c6
VS
319ac_init_help=
320ac_init_version=false
10f2d63a
VZ
321# The variables have the same names as the options, with
322# dashes changed to underlines.
e6cc62c6 323cache_file=/dev/null
10f2d63a 324exec_prefix=NONE
10f2d63a 325no_create=
10f2d63a
VZ
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
10f2d63a
VZ
334verbose=
335x_includes=NONE
336x_libraries=NONE
e6cc62c6
VS
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
10f2d63a
VZ
356ac_prev=
357for ac_option
358do
10f2d63a
VZ
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
e6cc62c6 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
e6cc62c6 370 case $ac_option in
10f2d63a
VZ
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 375 bindir=$ac_optarg ;;
10f2d63a
VZ
376
377 -build | --build | --buil | --bui | --bu)
e6cc62c6 378 ac_prev=build_alias ;;
10f2d63a 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 380 build_alias=$ac_optarg ;;
10f2d63a
VZ
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
10f2d63a
VZ
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
e6cc62c6 396 datadir=$ac_optarg ;;
10f2d63a
VZ
397
398 -disable-* | --disable-*)
e6cc62c6 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 400 # Reject names that are not valid shell variable names.
e6cc62c6
VS
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
406
407 -enable-* | --enable-*)
e6cc62c6 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 409 # Reject names that are not valid shell variable names.
e6cc62c6
VS
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
416 *) ac_optarg=yes ;;
417 esac
e6cc62c6 418 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
e6cc62c6 427 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
e6cc62c6
VS
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
10f2d63a
VZ
439
440 -host | --host | --hos | --ho)
e6cc62c6 441 ac_prev=host_alias ;;
10f2d63a 442 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 443 host_alias=$ac_optarg ;;
10f2d63a
VZ
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 450 includedir=$ac_optarg ;;
10f2d63a
VZ
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 455 infodir=$ac_optarg ;;
10f2d63a
VZ
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 460 libdir=$ac_optarg ;;
10f2d63a
VZ
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 467 libexecdir=$ac_optarg ;;
10f2d63a
VZ
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 476 localstatedir=$ac_optarg ;;
10f2d63a
VZ
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 481 mandir=$ac_optarg ;;
10f2d63a
VZ
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 488 | --no-cr | --no-c | -n)
10f2d63a
VZ
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 502 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 507 prefix=$ac_optarg ;;
10f2d63a
VZ
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 514 program_prefix=$ac_optarg ;;
10f2d63a
VZ
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 521 program_suffix=$ac_optarg ;;
10f2d63a
VZ
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 538 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
e6cc62c6 548 sbindir=$ac_optarg ;;
10f2d63a
VZ
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
e6cc62c6 559 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
e6cc62c6 564 site=$ac_optarg ;;
10f2d63a
VZ
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 569 srcdir=$ac_optarg ;;
10f2d63a
VZ
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 576 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 579 ac_prev=target_alias ;;
10f2d63a 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 581 target_alias=$ac_optarg ;;
10f2d63a
VZ
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
e6cc62c6
VS
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
10f2d63a
VZ
588
589 -with-* | --with-*)
e6cc62c6 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 591 # Reject names that are not valid shell variable names.
e6cc62c6
VS
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
10f2d63a 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
598 *) ac_optarg=yes ;;
599 esac
e6cc62c6 600 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
601
602 -without-* | --without-*)
e6cc62c6 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 604 # Reject names that are not valid shell variable names.
e6cc62c6
VS
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
10f2d63a
VZ
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 620 x_includes=$ac_optarg ;;
10f2d63a
VZ
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 627 x_libraries=$ac_optarg ;;
10f2d63a 628
e6cc62c6
VS
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
10f2d63a
VZ
632 ;;
633
e6cc62c6
VS
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
10f2d63a 644 *)
e6cc62c6
VS
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
e6cc62c6
VS
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
a0b9e27f 659fi
a0b9e27f 660
e6cc62c6
VS
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
8284b0c5 671
e6cc62c6
VS
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 675do
e6cc62c6
VS
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
10f2d63a
VZ
681 esac
682done
683
e6cc62c6
VS
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
247f5006 701
e6cc62c6
VS
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
10f2d63a 706
10f2d63a
VZ
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
e6cc62c6
VS
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
10f2d63a
VZ
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
10f2d63a 735 else
e6cc62c6
VS
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
10f2d63a
VZ
738 fi
739fi
e6cc62c6
VS
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 788
e6cc62c6
VS
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
796\`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
10f2d63a 797
e6cc62c6 798Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 799
e6cc62c6
VS
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 802
e6cc62c6
VS
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
821 [$ac_default_prefix]
822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 [PREFIX]
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
862 short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
9747f85d 870 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
871 --enable-universal use wxWindows GUI controls instead of native ones
872 --enable-nanox use NanoX
873 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
874 --enable-shared create shared library code
e6cc62c6
VS
875 --enable-optimise create optimised code
876 --enable-debug same as debug_flag and debug_info
df5168c4 877 --enable-stl use STL for containers
e6cc62c6
VS
878 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
879 --enable-debug_info create code with debugging information
880 --enable-debug_gdb create code with extra GDB debugging information
881 --enable-debug_cntxt use wxDebugContext
882 --enable-mem_tracing create code with memory tracing
883 --enable-profile create code with profiling information
884 --enable-no_rtti create code without RTTI information
885 --enable-no_exceptions create code without C++ exceptions handling
886 --enable-permissive compile code disregarding strict ANSI
887 --enable-no_deps create code without dependency information
888 --enable-compat20 enable wxWindows 2.0 compatibility
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
899 --enable-ole use OLE classes
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
902 --enable-cmdline use wxCmdLineParser class
903 --enable-datetime use wxDateTime class
904 --enable-stopwatch use wxStopWatch class
905 --enable-dialupman use dialup network classes
906 --enable-apple_ieee use the Apple IEEE codec
907 --enable-timer use wxTimer class
908 --enable-wave use wxWave class
909 --enable-fraction use wxFraction class
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-longlong use wxLongLong class
913 --enable-geometry use geometry class
914 --enable-log use logging system
915 --enable-streams use wxStream etc classes
916 --enable-file use wxFile classes
917 --enable-ffile use wxFFile classes
918 --enable-textbuf use wxTextBuffer class
919 --enable-textfile use wxTextFile class
920 --enable-fontmap use font encodings conversion classes
921 --enable-unicode compile wxString with Unicode support
922 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
923 --enable-wxprintfv use wxWindows implementation of vprintf()
924 --enable-std_iostreams use standard C++ stream classes
925 --enable-filesystem use virtual file systems classes
926 --enable-fs_inet use virtual HTTP/FTP filesystems
927 --enable-fs_zip use virtual ZIP filesystems
928 --enable-zipstream use wxZipInputStream
929 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
930 --enable-snglinst use wxSingleInstanceChecker class
931 --enable-mimetype use wxMimeTypesManager
932 --enable-sysoptions use wxSystemOptions
933 --enable-url use wxURL class
934 --enable-protocol use wxProtocol class
935 --enable-protocol-http HTTP support in wxProtocol
936 --enable-protocol-ftp FTP support in wxProtocol
937 --enable-protocol-file FILE support in wxProtocol
938 --enable-threads use threads
939 --enable-docview use document view architecture
940 --enable-help use help subsystem
941 --enable-mshtmlhelp use MS HTML Help (win32)
942 --enable-html use wxHTML sub-library
943 --enable-htmlhelp use wxHTML-based help
944 --enable-constraints use layout-constraints system
945 --enable-printarch use printing architecture
946 --enable-mdi use multiple document interface architecture
947 --enable-loggui use standard GUI logger
948 --enable-logwin use wxLogWindow
949 --enable-logdialog use wxLogDialog
950 --enable-postscript use wxPostscriptDC device context (default for gtk+)
951 --enable-prologio not available; see contrib
952 --enable-resources not available; see contrib
953 --enable-clipboard use wxClipboard class
954 --enable-dnd use Drag'n'Drop classes
955 --enable-metafile use win32 metafiles
956 --enable-controls use all usual controls
957 --enable-accel use accelerators
958 --enable-button use wxButton class
959 --enable-bmpbutton use wxBitmapButton class
960 --enable-calendar use wxCalendarCtrl class
961 --enable-caret use wxCaret class
962 --enable-checkbox use wxCheckBox class
963 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
964 --enable-choice use wxChoice class
965 --enable-combobox use wxComboBox class
966 --enable-display use wxDisplay class
967 --enable-gauge use wxGauge class
968 --enable-grid use wxGrid class
969 --enable-imaglist use wxImageList class
970 --enable-listbox use wxListBox class
971 --enable-listctrl use wxListCtrl class
972 --enable-notebook use wxNotebook class
973 --enable-radiobox use wxRadioBox class
974 --enable-radiobtn use wxRadioButton class
975 --enable-sash use wxSashWindow class
976 --enable-scrollbar use wxScrollBar class and scrollable windows
977 --enable-slider use wxSlider class
978 --enable-spinbtn use wxSpinButton class
979 --enable-spinctrl use wxSpinCtrl class
980 --enable-splitter use wxSplitterWindow class
981 --enable-statbmp use wxStaticBitmap class
982 --enable-statbox use wxStaticBox class
983 --enable-statline use wxStaticLine class
984 --enable-stattext use wxStaticText class
985 --enable-statusbar use wxStatusBar class
986 --enable-tabdialog use wxTabControl class
987 --enable-textctrl use wxTextCtrl class
988 --enable-togglebtn use wxToggleButton class
989 --enable-toolbar use wxToolBar class
990 --enable-tbarnative use native wxToolBar class
991 --enable-tbarsmpl use wxToolBarSimple class
992 --enable-treectrl use wxTreeCtrl class
993 --enable-tipwindow use wxTipWindow class
994 --enable-popupwin use wxPopUpWindow class
995 --enable-commondlg use all common dialogs
996 --enable-choicedlg use wxChoiceDialog
997 --enable-coldlg use wxColourDialog
998 --enable-filedlg use wxFileDialog
999 --enable-finddlg use wxFindReplaceDialog
1000 --enable-fontdlg use wxFontDialog
1001 --enable-dirdlg use wxDirDialog
1002 --enable-msgdlg use wxMessageDialog
1003 --enable-numberdlg use wxNumberEntryDialog
1004 --enable-splash use wxSplashScreen
1005 --enable-textdlg use wxTextDialog
1006 --enable-tipdlg use startup tips
1007 --enable-progressdlg use wxProgressDialog
1008 --enable-wizarddlg use wxWizard
1009 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1010 --enable-miniframe use wxMiniFrame class
1011 --enable-tooltips use wxToolTip class
1012 --enable-splines use spline drawing code
1013 --enable-validators use wxValidator and derived classes
1014 --enable-busyinfo use wxBusyInfo
1015 --enable-joystick use wxJoystick (Linux only)
1016 --enable-metafiles use wxMetaFile (Windows only)
1017 --enable-dragimage use wxDragImage
1018 --enable-accessibility enable accessibility support
1019 --enable-palette use wxPalette class
1020 --enable-image use wxImage class
1021 --enable-gif use gif images (GIF file format)
1022 --enable-pcx use pcx images (PCX file format)
1023 --enable-iff use iff images (IFF file format)
1024 --enable-pnm use pnm images (PNM file format)
1025 --enable-xpm use xpm images (XPM file format)
1026 --enable-icocur use Windows ICO and CUR formats
1027 --disable-largefile omit support for large files
1028 --disable-gtktest do not try to compile and run a test GTK+ program
1029 --disable-gtktest Do not try to compile and run a test GTK program
1030
1031Optional Packages:
1032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1034 --with-gtk use GTK+
1035 --with-motif use Motif/Lesstif
1036 --with-mac use Mac OS X
1037 --with-cocoa use Cocoa
1038 --with-wine use Wine
1039 --with-msw use MS-Windows
1040 --with-pm use OS/2 Presentation Manager
1041 --with-mgl use SciTech MGL
1042 --with-microwin use MicroWindows
1043 --with-x11 use X11
1044 --with-libpng use libpng (PNG image format)
1045 --with-libjpeg use libjpeg (JPEG file format)
1046 --with-libtiff use libtiff (TIFF file format)
1047 --with-opengl use OpenGL (or Mesa)
1048 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1049 --with-regex enable support for wxRegEx class
1050 --with-zlib use zlib for LZW compression
1051 --with-odbc use the IODBC and wxODBC classes
672abd7a 1052 --with-expat enable XML support using expat parser
e6cc62c6
VS
1053 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1054 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1055 --with-x use the X Window System
1056 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1057
1058Some influential environment variables:
1059 CC C compiler command
1060 CFLAGS C compiler flags
1061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1062 nonstandard directory <lib dir>
1063 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064 headers in a nonstandard directory <include dir>
1065 CPP C preprocessor
1066 CXX C++ compiler command
1067 CXXFLAGS C++ compiler flags
1068 CXXCPP C++ preprocessor
1069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <wx-dev@lists.wxwindows.org>.
1074_ACEOF
1075fi
1076
1077if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1079 ac_popdir=`pwd`
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1082 ac_builddir=.
1083
1084if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088else
1089 ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $srcdir in
1093 .) # No --srcdir option. We are building in place.
1094 ac_srcdir=.
1095 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=.
1097 else
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 fi ;;
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1103 *) # Relative path.
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106esac
1107# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108# absolute.
1109ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
1129 cd $ac_popdir
1130 done
1131fi
8284b0c5 1132
e6cc62c6
VS
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
1136wxWindows configure 2.5.0
1137generated by GNU Autoconf 2.57
10f2d63a 1138
e6cc62c6
VS
1139Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144 exit 0
7c66a493 1145fi
e6cc62c6
VS
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
1150
1151It was created by wxWindows $as_me 2.5.0, which was
1152generated by GNU Autoconf 2.57. Invocation command line was
1153
1154 $ $0 $@
1155
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
1189
1190} >&5
1191
1192cat >&5 <<_ACEOF
1193
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
1204# Strip out --silent because we don't want to record it for future runs.
1205# Also quote any args containing shell meta-characters.
1206# Make two passes to allow for proper duplicate-argument suppression.
1207ac_configure_args=
1208ac_configure_args0=
1209ac_configure_args1=
1210ac_sep=
1211ac_must_keep_next=false
1212for ac_pass in 1 2
1213do
1214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1246 ;;
1247 esac
1248 done
1249done
1250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log. We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
1262
1263 cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1270{
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
1278 *)
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 ;;
1282 esac;
1283}
1284 echo
1285
1286 cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1312 fi
1313
1314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
1321 sed "/^$/d" confdefs.h | sort
1322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core core.* *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1331 ' 0
1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
1371if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
1377fi
1378for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430echo "$as_me: current value: $ac_new_val" >&2;}
1431 ac_cache_corrupted=:
1432 fi;;
1433 esac
1434 # Pass precious variables to config.status.
1435 if test "$ac_new_set" = set; then
1436 case $ac_new_val in
1437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439 *) ac_arg=$ac_var=$ac_new_val ;;
1440 esac
1441 case " $ac_configure_args " in
1442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1443 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444 esac
1445 fi
1446done
1447if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1453fi
1454
1455ac_ext=c
1456ac_cpp='$CPP $CPPFLAGS'
1457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
698dcdb6 1477
8284b0c5 1478
7c66a493 1479
a0b9e27f
MB
1480
1481
a0b9e27f 1482
a0b9e27f 1483
a0b9e27f 1484
a0b9e27f 1485
a0b9e27f 1486
a0b9e27f 1487
e6cc62c6
VS
1488
1489
1490ac_aux_dir=
1491for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1492 if test -f $ac_dir/install-sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install-sh -c"
1495 break
1496 elif test -f $ac_dir/install.sh; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/install.sh -c"
1499 break
1500 elif test -f $ac_dir/shtool; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/shtool install -c"
1503 break
1504 fi
1505done
1506if test -z "$ac_aux_dir"; then
1507 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1508echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1509 { (exit 1); exit 1; }; }
1510fi
1511ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1512ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1513ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1514
1515# Make sure we can run config.sub.
1516$ac_config_sub sun4 >/dev/null 2>&1 ||
1517 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519 { (exit 1); exit 1; }; }
1520
1521echo "$as_me:$LINENO: checking build system type" >&5
1522echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523if test "${ac_cv_build+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526 ac_cv_build_alias=$build_alias
1527test -z "$ac_cv_build_alias" &&
1528 ac_cv_build_alias=`$ac_config_guess`
1529test -z "$ac_cv_build_alias" &&
1530 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532 { (exit 1); exit 1; }; }
1533ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1537
1538fi
1539echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540echo "${ECHO_T}$ac_cv_build" >&6
1541build=$ac_cv_build
1542build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
1546
1547echo "$as_me:$LINENO: checking host system type" >&5
1548echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549if test "${ac_cv_host+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551else
1552 ac_cv_host_alias=$host_alias
1553test -z "$ac_cv_host_alias" &&
1554 ac_cv_host_alias=$ac_cv_build_alias
1555ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1556 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1559
1560fi
1561echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562echo "${ECHO_T}$ac_cv_host" >&6
1563host=$ac_cv_host
1564host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
1568
1569echo "$as_me:$LINENO: checking target system type" >&5
1570echo $ECHO_N "checking target system type... $ECHO_C" >&6
1571if test "${ac_cv_target+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573else
1574 ac_cv_target_alias=$target_alias
1575test "x$ac_cv_target_alias" = "x" &&
1576 ac_cv_target_alias=$ac_cv_host_alias
1577ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1578 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1579echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582fi
1583echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1584echo "${ECHO_T}$ac_cv_target" >&6
1585target=$ac_cv_target
1586target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1587target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1588target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589
1590
1591# The aliases save the names the user supplied, while $host etc.
1592# will get canonicalized.
1593test -n "$target_alias" &&
7c66a493
VZ
1594 test "$program_prefix$program_suffix$program_transform_name" = \
1595 NONENONEs,x,x, &&
1596 program_prefix=${target_alias}-
8284b0c5
MB
1597
1598
a0b9e27f 1599
10f2d63a 1600WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1601WX_MINOR_VERSION_NUMBER=5
1602WX_RELEASE_NUMBER=0
10f2d63a 1603
10f2d63a 1604WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1605WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1606
978f1259
RL
1607WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1608
34bed6d9 1609WX_CURRENT=0
6426998c
RL
1610WX_REVISION=0
1611WX_AGE=0
1612
8284b0c5
MB
1613
1614
10f2d63a
VZ
1615USE_UNIX=1
1616USE_WIN32=0
f9bc1684 1617USE_DOS=0
b12915c1 1618USE_BEOS=0
1216f52d 1619USE_MAC=0
b12915c1 1620
10f2d63a 1621USE_AIX=
fe0895cf
VS
1622USE_BSD= USE_DARWIN= USE_FREEBSD=
1623USE_GNU= USE_HPUX=
89e3b3e4 1624USE_LINUX=
f6bcfd97 1625USE_NETBSD=
89e3b3e4 1626USE_OPENBSD=
fe0895cf
VS
1627USE_OSF= USE_SGI=
1628USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1629USE_ULTRIX=
89e3b3e4
VZ
1630USE_UNIXWARE=
1631
1632USE_ALPHA=
10f2d63a 1633
ab9b9eab
VZ
1634NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1635
ac0c4cc3 1636ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1637
ac0c4cc3 1638DEFAULT_wxUSE_COCOA=0
10f2d63a 1639DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1640DEFAULT_wxUSE_MAC=0
1641DEFAULT_wxUSE_MGL=0
1725144d 1642DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1643DEFAULT_wxUSE_MOTIF=0
1644DEFAULT_wxUSE_MSW=0
e07802fc 1645DEFAULT_wxUSE_PM=0
f79bd02d 1646DEFAULT_wxUSE_X11=0
10f2d63a 1647
ac0c4cc3 1648DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1649DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1650DEFAULT_DEFAULT_wxUSE_MAC=0
1651DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1652DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1653DEFAULT_DEFAULT_wxUSE_MOTIF=0
1654DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1655DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1656DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1657
d6a55c4b 1658PROGRAM_EXT=
3a922bb4 1659SO_SUFFIX=so
fe0895cf 1660SAMPLES_RPATH_FLAG=
d6a55c4b 1661
10f2d63a
VZ
1662case "${host}" in
1663 *-hp-hpux* )
1664 USE_HPUX=1
1665 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1666 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1667 SO_SUFFIX=sl
e6cc62c6 1668 cat >>confdefs.h <<\_ACEOF
10f2d63a 1669#define __HPUX__ 1
e6cc62c6 1670_ACEOF
10f2d63a
VZ
1671
1672 ;;
1673 *-*-linux* )
1674 USE_LINUX=1
e6cc62c6 1675 cat >>confdefs.h <<\_ACEOF
10f2d63a 1676#define __LINUX__ 1
e6cc62c6 1677_ACEOF
10f2d63a
VZ
1678
1679 TMP=`uname -m`
1680 if test "x$TMP" = "xalpha"; then
1681 USE_ALPHA=1
e6cc62c6 1682 cat >>confdefs.h <<\_ACEOF
10f2d63a 1683#define __ALPHA__ 1
e6cc62c6 1684_ACEOF
fe0895cf
VS
1685
1686 fi
1687 DEFAULT_DEFAULT_wxUSE_GTK=1
1688 ;;
1689 *-*-gnu* )
1690 USE_GNU=1
e6cc62c6 1691 cat >>confdefs.h <<\_ACEOF
fe0895cf 1692#define __GNU__ 1
e6cc62c6 1693_ACEOF
fe0895cf
VS
1694
1695 TMP=`uname -m`
1696 if test "x$TMP" = "xalpha"; then
1697 USE_ALPHA=1
e6cc62c6 1698 cat >>confdefs.h <<\_ACEOF
fe0895cf 1699#define __ALPHA__ 1
e6cc62c6 1700_ACEOF
10f2d63a
VZ
1701
1702 fi
1703 DEFAULT_DEFAULT_wxUSE_GTK=1
1704 ;;
1705 *-*-irix5* | *-*-irix6* )
1706 USE_SGI=1
1707 USE_SVR4=1
e6cc62c6 1708 cat >>confdefs.h <<\_ACEOF
10f2d63a 1709#define __SGI__ 1
e6cc62c6 1710_ACEOF
10f2d63a 1711
e6cc62c6 1712 cat >>confdefs.h <<\_ACEOF
10f2d63a 1713#define __SVR4__ 1
e6cc62c6 1714_ACEOF
10f2d63a
VZ
1715
1716 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1717 ;;
1718 *-*-solaris2* )
1719 USE_SUN=1
1720 USE_SOLARIS=1
1721 USE_SVR4=1
e6cc62c6 1722 cat >>confdefs.h <<\_ACEOF
10f2d63a 1723#define __SUN__ 1
e6cc62c6 1724_ACEOF
10f2d63a 1725
e6cc62c6 1726 cat >>confdefs.h <<\_ACEOF
10f2d63a 1727#define __SOLARIS__ 1
e6cc62c6 1728_ACEOF
10f2d63a 1729
e6cc62c6 1730 cat >>confdefs.h <<\_ACEOF
10f2d63a 1731#define __SVR4__ 1
e6cc62c6 1732_ACEOF
10f2d63a
VZ
1733
1734 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1735 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1736 ;;
1737 *-*-sunos4* )
1738 USE_SUN=1
1739 USE_SUNOS=1
1740 USE_BSD=1
e6cc62c6 1741 cat >>confdefs.h <<\_ACEOF
10f2d63a 1742#define __SUN__ 1
e6cc62c6 1743_ACEOF
10f2d63a 1744
e6cc62c6 1745 cat >>confdefs.h <<\_ACEOF
10f2d63a 1746#define __SUNOS__ 1
e6cc62c6 1747_ACEOF
10f2d63a 1748
e6cc62c6 1749 cat >>confdefs.h <<\_ACEOF
10f2d63a 1750#define __BSD__ 1
e6cc62c6 1751_ACEOF
10f2d63a
VZ
1752
1753 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1754 ;;
f6bcfd97 1755 *-*-freebsd*)
10f2d63a
VZ
1756 USE_BSD=1
1757 USE_FREEBSD=1
e6cc62c6 1758 cat >>confdefs.h <<\_ACEOF
10f2d63a 1759#define __FREEBSD__ 1
e6cc62c6 1760_ACEOF
10f2d63a 1761
e6cc62c6 1762 cat >>confdefs.h <<\_ACEOF
10f2d63a 1763#define __BSD__ 1
e6cc62c6 1764_ACEOF
95c8801c
VS
1765
1766 DEFAULT_DEFAULT_wxUSE_GTK=1
1767 ;;
1768 *-*-openbsd*)
1769 USE_BSD=1
1770 USE_OPENBSD=1
e6cc62c6 1771 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1772#define __OPENBSD__ 1
e6cc62c6 1773_ACEOF
95c8801c 1774
e6cc62c6 1775 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1776#define __BSD__ 1
e6cc62c6 1777_ACEOF
f6bcfd97
BP
1778
1779 DEFAULT_DEFAULT_wxUSE_GTK=1
1780 ;;
1781 *-*-netbsd*)
1782 USE_BSD=1
1783 USE_NETBSD=1
e6cc62c6 1784 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1785#define __NETBSD__ 1
e6cc62c6 1786_ACEOF
f6bcfd97 1787
e6cc62c6 1788 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1789#define __BSD__ 1
e6cc62c6 1790_ACEOF
10f2d63a
VZ
1791
1792 DEFAULT_DEFAULT_wxUSE_GTK=1
1793 ;;
1794 *-*-osf* )
1795 USE_ALPHA=1
1796 USE_OSF=1
e6cc62c6 1797 cat >>confdefs.h <<\_ACEOF
10f2d63a 1798#define __ALPHA__ 1
e6cc62c6 1799_ACEOF
10f2d63a 1800
e6cc62c6 1801 cat >>confdefs.h <<\_ACEOF
10f2d63a 1802#define __OSF__ 1
e6cc62c6 1803_ACEOF
10f2d63a
VZ
1804
1805 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1806 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1807 ;;
1808 *-*-dgux5* )
1809 USE_ALPHA=1
1810 USE_SVR4=1
e6cc62c6 1811 cat >>confdefs.h <<\_ACEOF
10f2d63a 1812#define __ALPHA__ 1
e6cc62c6 1813_ACEOF
10f2d63a 1814
e6cc62c6 1815 cat >>confdefs.h <<\_ACEOF
10f2d63a 1816#define __SVR4__ 1
e6cc62c6 1817_ACEOF
10f2d63a
VZ
1818
1819 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1820 ;;
1821 *-*-sysv5* )
1822 USE_SYSV=1
1823 USE_SVR4=1
e6cc62c6 1824 cat >>confdefs.h <<\_ACEOF
10f2d63a 1825#define __SYSV__ 1
e6cc62c6 1826_ACEOF
10f2d63a 1827
e6cc62c6 1828 cat >>confdefs.h <<\_ACEOF
10f2d63a 1829#define __SVR4__ 1
e6cc62c6 1830_ACEOF
10f2d63a
VZ
1831
1832 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1833 ;;
1834 *-*-aix* )
1835 USE_AIX=1
1836 USE_SYSV=1
1837 USE_SVR4=1
2b5f62a0 1838 SO_SUFFIX=a
e6cc62c6 1839 cat >>confdefs.h <<\_ACEOF
10f2d63a 1840#define __AIX__ 1
e6cc62c6 1841_ACEOF
10f2d63a 1842
e6cc62c6 1843 cat >>confdefs.h <<\_ACEOF
10f2d63a 1844#define __SYSV__ 1
e6cc62c6 1845_ACEOF
10f2d63a 1846
e6cc62c6 1847 cat >>confdefs.h <<\_ACEOF
10f2d63a 1848#define __SVR4__ 1
e6cc62c6 1849_ACEOF
10f2d63a
VZ
1850
1851 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1852 ;;
1853
89e3b3e4
VZ
1854 *-*-*UnixWare*)
1855 USE_SYSV=1
1856 USE_SVR4=1
1857 USE_UNIXWARE=1
e6cc62c6 1858 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1859#define __UNIXWARE__ 1
e6cc62c6 1860_ACEOF
89e3b3e4
VZ
1861
1862 ;;
1863
1c8183e2 1864 *-*-cygwin* | *-*-mingw32* )
17234b26 1865 SO_SUFFIX=dll
cf27ef00 1866 PROGRAM_EXT=".exe"
7b7a7637 1867 RESCOMP=windres
10f2d63a
VZ
1868 DEFAULT_DEFAULT_wxUSE_MSW=1
1869 ;;
1870
f9bc1684
VS
1871 *-pc-msdosdjgpp )
1872 USE_UNIX=0
1873 USE_DOS=1
e6cc62c6 1874 cat >>confdefs.h <<\_ACEOF
f9bc1684 1875#define __DOS__ 1
e6cc62c6 1876_ACEOF
f9bc1684
VS
1877
1878 PROGRAM_EXT=".exe"
1879 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1880 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1881 ;;
1882
6fa882bd 1883 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1884 cat >>confdefs.h <<\_ACEOF
10f2d63a 1885#define __EMX__ 1
e6cc62c6 1886_ACEOF
10f2d63a 1887
cf27ef00 1888 PROGRAM_EXT=".exe"
e07802fc 1889 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1890 ;;
1891
d08b457b
GD
1892 powerpc-*-darwin* )
1893 USE_BSD=1
f11bdd03 1894 USE_DARWIN=1
3a922bb4 1895 SO_SUFFIX=dylib
e6cc62c6 1896 cat >>confdefs.h <<\_ACEOF
f11bdd03 1897#define __BSD__ 1
e6cc62c6 1898_ACEOF
b4085ce6 1899
e6cc62c6 1900 cat >>confdefs.h <<\_ACEOF
f11bdd03 1901#define __DARWIN__ 1
e6cc62c6 1902_ACEOF
d08b457b 1903
e6cc62c6 1904 cat >>confdefs.h <<\_ACEOF
d08b457b 1905#define __POWERPC__ 1
e6cc62c6 1906_ACEOF
82d43113 1907
e6cc62c6 1908 cat >>confdefs.h <<\_ACEOF
82d43113 1909#define TARGET_CARBON 1
e6cc62c6 1910_ACEOF
b4085ce6
GD
1911
1912 DEFAULT_DEFAULT_wxUSE_MAC=1
1913 ;;
1914
b12915c1
VZ
1915 *-*-beos* )
1916 USE_BEOS=1
e6cc62c6 1917 cat >>confdefs.h <<\_ACEOF
b12915c1 1918#define __BEOS__ 1
e6cc62c6 1919_ACEOF
b12915c1
VZ
1920
1921 ;;
1922
10f2d63a 1923 *)
e6cc62c6
VS
1924 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1925echo "$as_me: error: unknown system type ${host}." >&2;}
1926 { (exit 1); exit 1; }; }
10f2d63a
VZ
1927esac
1928
8284b0c5
MB
1929
1930
1931
1932 wx_arg_cache_file="configarg.cache"
1933 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1934 rm -f ${wx_arg_cache_file}.tmp
1935 touch ${wx_arg_cache_file}.tmp
1936 touch ${wx_arg_cache_file}
e6cc62c6 1937
10f2d63a
VZ
1938
1939DEBUG_CONFIGURE=0
1940if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1941 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1942 DEFAULT_wxUSE_STL=no
1e6feb95 1943
d8356fa3
VZ
1944 DEFAULT_wxUSE_NANOX=no
1945
10f2d63a
VZ
1946 DEFAULT_wxUSE_THREADS=yes
1947
1948 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1949 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1950 DEFAULT_wxUSE_PROFILE=no
1951 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1952 DEFAULT_wxUSE_NO_RTTI=no
1953 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1954 DEFAULT_wxUSE_PERMISSIVE=no
1955 DEFAULT_wxUSE_DEBUG_FLAG=yes
1956 DEFAULT_wxUSE_DEBUG_INFO=yes
1957 DEFAULT_wxUSE_DEBUG_GDB=yes
1958 DEFAULT_wxUSE_MEM_TRACING=no
1959 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1960 DEFAULT_wxUSE_DMALLOC=no
1961 DEFAULT_wxUSE_APPLE_IEEE=no
1962
1963 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1964 DEFAULT_wxUSE_LOGWINDOW=no
1965 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1966 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1967
1968 DEFAULT_wxUSE_GUI=yes
1e6feb95 1969 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1970
3e44f09d 1971 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
1972 DEFAULT_wxUSE_XML=no
1973 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
1974 DEFAULT_wxUSE_ZLIB=no
1975 DEFAULT_wxUSE_LIBPNG=no
1976 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1977 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1978 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1979 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1980
eb4efbdc 1981 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1982 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1983 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1984 DEFAULT_wxUSE_CMDLINE_PARSER=no
1985 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1986 DEFAULT_wxUSE_TIMER=no
1987 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1988 DEFAULT_wxUSE_FILE=no
1e6feb95 1989 DEFAULT_wxUSE_FFILE=no
a3a584a7 1990 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1991 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1992 DEFAULT_wxUSE_WAVE=no
1993 DEFAULT_wxUSE_INTL=no
1994 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1995 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1996 DEFAULT_wxUSE_STREAMS=no
1997 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1998 DEFAULT_wxUSE_OLE=no
1999 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2000 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2001 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2002 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2003 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2004 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2005 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2006
2007 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2008 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2009 DEFAULT_wxUSE_POSTSCRIPT=no
2010
10f2d63a
VZ
2011 DEFAULT_wxUSE_CLIPBOARD=no
2012 DEFAULT_wxUSE_TOOLTIPS=no
2013 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2014 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2015 DEFAULT_wxUSE_SPLINES=no
2016
2017 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2018 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2019 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2020
10f2d63a
VZ
2021 DEFAULT_wxUSE_RESOURCES=no
2022 DEFAULT_wxUSE_CONSTRAINTS=no
2023 DEFAULT_wxUSE_IPC=no
2024 DEFAULT_wxUSE_HELP=no
29fd3c0c 2025 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2026 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2027 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2028 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2029 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2030 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2031 DEFAULT_wxUSE_PROTOCOL=no
2032 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2033 DEFAULT_wxUSE_PROTOCOL_FTP=no
2034 DEFAULT_wxUSE_PROTOCOL_FILE=no
2035 DEFAULT_wxUSE_URL=no
3bd8fb5f 2036
10f2d63a 2037 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2038 DEFAULT_wxUSE_CHOICEDLG=no
2039 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2040 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2041 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2042 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2043 DEFAULT_wxUSE_FONTDLG=no
2044 DEFAULT_wxUSE_MSGDLG=no
2045 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2046 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2047 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2048 DEFAULT_wxUSE_STARTUP_TIPS=no
2049 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2050 DEFAULT_wxUSE_WIZARDDLG=no
2051
1e6feb95 2052 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2053 DEFAULT_wxUSE_MINIFRAME=no
2054 DEFAULT_wxUSE_HTML=no
24528b0c 2055 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2056 DEFAULT_wxUSE_FS_INET=no
2057 DEFAULT_wxUSE_FS_ZIP=no
2058 DEFAULT_wxUSE_BUSYINFO=no
2059 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2060 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2061
2062 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2063 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2064 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2065 DEFAULT_wxUSE_CALCTRL=no
2066 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2067 DEFAULT_wxUSE_CHECKBOX=no
2068 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2069 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2070 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2071 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2072 DEFAULT_wxUSE_GAUGE=no
2073 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2074 DEFAULT_wxUSE_IMAGLIST=no
2075 DEFAULT_wxUSE_LISTBOX=no
2076 DEFAULT_wxUSE_LISTCTRL=no
2077 DEFAULT_wxUSE_NOTEBOOK=no
2078 DEFAULT_wxUSE_RADIOBOX=no
2079 DEFAULT_wxUSE_RADIOBTN=no
2080 DEFAULT_wxUSE_SASH=no
2081 DEFAULT_wxUSE_SCROLLBAR=no
2082 DEFAULT_wxUSE_SLIDER=no
2083 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2084 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2085 DEFAULT_wxUSE_SPLITTER=no
2086 DEFAULT_wxUSE_STATBMP=no
2087 DEFAULT_wxUSE_STATBOX=no
2088 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2089 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2090 DEFAULT_wxUSE_STATUSBAR=yes
2091 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2092 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2093 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2094 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2095 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2096 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2097 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2098 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2099 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2100
2101 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2102 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2103 DEFAULT_wxUSE_WCSRTOMBS=no
2104
edae8572 2105 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2106 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2107 DEFAULT_wxUSE_GIF=no
2108 DEFAULT_wxUSE_PCX=no
2109 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2110 DEFAULT_wxUSE_IFF=no
0046ff7c 2111 DEFAULT_wxUSE_XPM=no
658974ae 2112 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2113 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2114
2115 DEFAULT_wxUSE_MONOLITHIC=yes
10f2d63a 2116else
1e6feb95 2117 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2118 DEFAULT_wxUSE_STL=no
1e6feb95 2119
d8356fa3
VZ
2120 DEFAULT_wxUSE_NANOX=no
2121
10f2d63a
VZ
2122 DEFAULT_wxUSE_THREADS=yes
2123
2124 DEFAULT_wxUSE_SHARED=yes
2125 DEFAULT_wxUSE_OPTIMISE=yes
2126 DEFAULT_wxUSE_PROFILE=no
2127 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2128 DEFAULT_wxUSE_NO_RTTI=no
2129 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2130 DEFAULT_wxUSE_PERMISSIVE=no
2131 DEFAULT_wxUSE_DEBUG_FLAG=no
2132 DEFAULT_wxUSE_DEBUG_INFO=no
2133 DEFAULT_wxUSE_DEBUG_GDB=no
2134 DEFAULT_wxUSE_MEM_TRACING=no
2135 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2136 DEFAULT_wxUSE_DMALLOC=no
2137 DEFAULT_wxUSE_APPLE_IEEE=yes
2138
2139 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2140 DEFAULT_wxUSE_LOGWINDOW=yes
2141 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2142 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2143
2144 DEFAULT_wxUSE_GUI=yes
2145
831b3152 2146 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2147 DEFAULT_wxUSE_XML=yes
2148 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2149 DEFAULT_wxUSE_ZLIB=yes
2150 DEFAULT_wxUSE_LIBPNG=yes
2151 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2152 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2153 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2154 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2155
eb4efbdc 2156 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2157 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2158 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2159 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2160 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2161 DEFAULT_wxUSE_TIMER=yes
2162 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2163 DEFAULT_wxUSE_FILE=yes
1e6feb95 2164 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2165 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2166 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2167 DEFAULT_wxUSE_WAVE=no
2168 DEFAULT_wxUSE_INTL=yes
2169 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2170 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2171 DEFAULT_wxUSE_STREAMS=yes
2172 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2173 DEFAULT_wxUSE_OLE=yes
2174 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2175 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2176 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2177 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2178 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2179 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2180 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2181
2182 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2183 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2184 DEFAULT_wxUSE_POSTSCRIPT=yes
2185
10f2d63a
VZ
2186 DEFAULT_wxUSE_CLIPBOARD=yes
2187 DEFAULT_wxUSE_TOOLTIPS=yes
2188 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2189 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2190 DEFAULT_wxUSE_SPLINES=yes
2191
2192 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2193 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2194 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2195
2b5f62a0 2196 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2197 DEFAULT_wxUSE_CONSTRAINTS=yes
2198 DEFAULT_wxUSE_IPC=yes
2199 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2200 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2201 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2202 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2203 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2204 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2205 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2206 DEFAULT_wxUSE_PROTOCOL=yes
2207 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2208 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2209 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2210 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2211
2212 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2213 DEFAULT_wxUSE_CHOICEDLG=yes
2214 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2215 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2216 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2217 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2218 DEFAULT_wxUSE_FONTDLG=yes
2219 DEFAULT_wxUSE_MSGDLG=yes
2220 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2221 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2222 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2223 DEFAULT_wxUSE_STARTUP_TIPS=yes
2224 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2225 DEFAULT_wxUSE_WIZARDDLG=yes
2226
1e6feb95 2227 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2228 DEFAULT_wxUSE_MINIFRAME=yes
2229 DEFAULT_wxUSE_HTML=yes
24528b0c 2230 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2231 DEFAULT_wxUSE_FS_INET=yes
2232 DEFAULT_wxUSE_FS_ZIP=yes
2233 DEFAULT_wxUSE_BUSYINFO=yes
2234 DEFAULT_wxUSE_ZIPSTREAM=yes
2235 DEFAULT_wxUSE_VALIDATORS=yes
2236
2237 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2238 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2239 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2240 DEFAULT_wxUSE_CALCTRL=yes
2241 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2242 DEFAULT_wxUSE_CHECKBOX=yes
2243 DEFAULT_wxUSE_CHECKLST=yes
2244 DEFAULT_wxUSE_CHOICE=yes
2245 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2246 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2247 DEFAULT_wxUSE_GAUGE=yes
2248 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2249 DEFAULT_wxUSE_IMAGLIST=yes
2250 DEFAULT_wxUSE_LISTBOX=yes
2251 DEFAULT_wxUSE_LISTCTRL=yes
2252 DEFAULT_wxUSE_NOTEBOOK=yes
2253 DEFAULT_wxUSE_RADIOBOX=yes
2254 DEFAULT_wxUSE_RADIOBTN=yes
2255 DEFAULT_wxUSE_SASH=yes
2256 DEFAULT_wxUSE_SCROLLBAR=yes
2257 DEFAULT_wxUSE_SLIDER=yes
2258 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2259 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2260 DEFAULT_wxUSE_SPLITTER=yes
2261 DEFAULT_wxUSE_STATBMP=yes
2262 DEFAULT_wxUSE_STATBOX=yes
2263 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2264 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2265 DEFAULT_wxUSE_STATUSBAR=yes
2266 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2267 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2268 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2269 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2270 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2271 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2272 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2273 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2274 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2275
2276 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2277 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2278 DEFAULT_wxUSE_WCSRTOMBS=no
2279
edae8572 2280 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2281 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2282 DEFAULT_wxUSE_GIF=yes
2283 DEFAULT_wxUSE_PCX=yes
cc0e8480 2284 DEFAULT_wxUSE_IFF=no
10f2d63a 2285 DEFAULT_wxUSE_PNM=yes
0046ff7c 2286 DEFAULT_wxUSE_XPM=yes
658974ae 2287 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2288 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d
VS
2289
2290 DEFAULT_wxUSE_MONOLITHIC=yes
10f2d63a
VZ
2291fi
2292
8284b0c5
MB
2293
2294
10f2d63a 2295for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2296 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2297 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2298 has_toolkit_in_cache=1
2299 eval "DEFAULT_$LINE"
2300 eval "CACHE_$toolkit=1"
2301 fi
2302done
2303
8284b0c5
MB
2304
2305
5005acfe 2306 enablestring=
e6cc62c6
VS
2307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2308echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2309 no_cache=0
2310 # Check whether --enable-gui or --disable-gui was given.
2311if test "${enable_gui+set}" = set; then
2312 enableval="$enable_gui"
e6cc62c6 2313
10f2d63a
VZ
2314 if test "$enableval" = yes; then
2315 ac_cv_use_gui='wxUSE_GUI=yes'
2316 else
2317 ac_cv_use_gui='wxUSE_GUI=no'
2318 fi
e6cc62c6 2319
10f2d63a 2320else
e6cc62c6 2321
10f2d63a
VZ
2322 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2323 if test "x$LINE" != x ; then
2324 eval "DEFAULT_$LINE"
2325 else
2326 no_cache=1
2327 fi
2328
2329 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2330
e6cc62c6 2331fi;
10f2d63a
VZ
2332
2333 eval "$ac_cv_use_gui"
2334 if test "$no_cache" != 1; then
2335 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2336 fi
2337
2338 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2339 echo "$as_me:$LINENO: result: yes" >&5
2340echo "${ECHO_T}yes" >&6
10f2d63a 2341 else
e6cc62c6
VS
2342 echo "$as_me:$LINENO: result: no" >&5
2343echo "${ECHO_T}no" >&6
10f2d63a 2344 fi
e6cc62c6 2345
10f2d63a 2346
9747f85d
VS
2347 enablestring=
2348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2349echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2350 no_cache=0
2351 # Check whether --enable-monolithic or --disable-monolithic was given.
2352if test "${enable_monolithic+set}" = set; then
2353 enableval="$enable_monolithic"
2354
2355 if test "$enableval" = yes; then
2356 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2357 else
2358 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2359 fi
2360
2361else
2362
2363 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2364 if test "x$LINE" != x ; then
2365 eval "DEFAULT_$LINE"
2366 else
2367 no_cache=1
2368 fi
2369
2370 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2371
2372fi;
2373
2374 eval "$ac_cv_use_monolithic"
2375 if test "$no_cache" != 1; then
2376 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2377 fi
2378
2379 if test "$wxUSE_MONOLITHIC" = yes; then
2380 echo "$as_me:$LINENO: result: yes" >&5
2381echo "${ECHO_T}yes" >&6
2382 else
2383 echo "$as_me:$LINENO: result: no" >&5
2384echo "${ECHO_T}no" >&6
2385 fi
2386
2387
b12915c1 2388if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2389
8284b0c5 2390
5005acfe 2391 enablestring=
e6cc62c6
VS
2392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2393echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2394 no_cache=0
2395 # Check whether --enable-universal or --disable-universal was given.
2396if test "${enable_universal+set}" = set; then
2397 enableval="$enable_universal"
e6cc62c6 2398
1e6feb95
VZ
2399 if test "$enableval" = yes; then
2400 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2401 else
2402 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2403 fi
e6cc62c6 2404
1e6feb95 2405else
e6cc62c6 2406
1e6feb95
VZ
2407 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2408 if test "x$LINE" != x ; then
2409 eval "DEFAULT_$LINE"
2410 else
2411 no_cache=1
2412 fi
2413
2414 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2415
e6cc62c6 2416fi;
1e6feb95
VZ
2417
2418 eval "$ac_cv_use_universal"
2419 if test "$no_cache" != 1; then
2420 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2421 fi
2422
2423 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2424 echo "$as_me:$LINENO: result: yes" >&5
2425echo "${ECHO_T}yes" >&6
1e6feb95 2426 else
e6cc62c6
VS
2427 echo "$as_me:$LINENO: result: no" >&5
2428echo "${ECHO_T}no" >&6
1e6feb95 2429 fi
e6cc62c6
VS
2430
2431
10f2d63a
VZ
2432# Check whether --with-gtk or --without-gtk was given.
2433if test "${with_gtk+set}" = set; then
2434 withval="$with_gtk"
2435 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2436fi;
10f2d63a
VZ
2437
2438# Check whether --with-motif or --without-motif was given.
2439if test "${with_motif+set}" = set; then
2440 withval="$with_motif"
2441 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2442fi;
10f2d63a 2443
b4085ce6
GD
2444# Check whether --with-mac or --without-mac was given.
2445if test "${with_mac+set}" = set; then
2446 withval="$with_mac"
2447 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2448fi;
b4085ce6 2449
ac0c4cc3
DE
2450# Check whether --with-cocoa or --without-cocoa was given.
2451if test "${with_cocoa+set}" = set; then
2452 withval="$with_cocoa"
2453 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2454fi;
ac0c4cc3 2455
10f2d63a
VZ
2456# Check whether --with-wine or --without-wine was given.
2457if test "${with_wine+set}" = set; then
2458 withval="$with_wine"
89e6bf6d 2459 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2460fi;
10f2d63a 2461
77e13408
RL
2462# Check whether --with-msw or --without-msw was given.
2463if test "${with_msw+set}" = set; then
2464 withval="$with_msw"
b4efce5e 2465 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2466fi;
10f2d63a 2467
e07802fc
VZ
2468# Check whether --with-pm or --without-pm was given.
2469if test "${with_pm+set}" = set; then
2470 withval="$with_pm"
2471 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2472fi;
698dcdb6 2473
1e6feb95
VZ
2474# Check whether --with-mgl or --without-mgl was given.
2475if test "${with_mgl+set}" = set; then
2476 withval="$with_mgl"
6c657b52 2477 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2478fi;
1e6feb95 2479
1725144d
RR
2480# Check whether --with-microwin or --without-microwin was given.
2481if test "${with_microwin+set}" = set; then
2482 withval="$with_microwin"
2483 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2484fi;
1725144d 2485
f79bd02d
JS
2486# Check whether --with-x11 or --without-x11 was given.
2487if test "${with_x11+set}" = set; then
2488 withval="$with_x11"
3c011993 2489 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2490fi;
a0b9e27f 2491
5005acfe 2492 enablestring=
e6cc62c6
VS
2493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2494echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2495 no_cache=0
ba875e66
VZ
2496 # Check whether --enable-nanox or --disable-nanox was given.
2497if test "${enable_nanox+set}" = set; then
2498 enableval="$enable_nanox"
e6cc62c6 2499
d8356fa3 2500 if test "$enableval" = yes; then
ba875e66 2501 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2502 else
ba875e66 2503 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2504 fi
e6cc62c6 2505
d8356fa3 2506else
e6cc62c6 2507
d8356fa3
VZ
2508 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
ba875e66 2515 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2516
e6cc62c6 2517fi;
d8356fa3 2518
ba875e66 2519 eval "$ac_cv_use_nanox"
d8356fa3 2520 if test "$no_cache" != 1; then
ba875e66 2521 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2522 fi
2523
2524 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2525 echo "$as_me:$LINENO: result: yes" >&5
2526echo "${ECHO_T}yes" >&6
d8356fa3 2527 else
e6cc62c6
VS
2528 echo "$as_me:$LINENO: result: no" >&5
2529echo "${ECHO_T}no" >&6
d8356fa3 2530 fi
e6cc62c6 2531
8284b0c5 2532
d74f4b5a 2533
5005acfe 2534 enablestring=
e6cc62c6
VS
2535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2536echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2537 no_cache=0
2538 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2539if test "${enable_gtk2+set}" = set; then
2540 enableval="$enable_gtk2"
e6cc62c6 2541
d74f4b5a
VZ
2542 if test "$enableval" = yes; then
2543 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2544 else
2545 ac_cv_use_gtk2='wxUSE_GTK2=no'
2546 fi
e6cc62c6 2547
10f2d63a 2548else
e6cc62c6 2549
d74f4b5a
VZ
2550 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2551 if test "x$LINE" != x ; then
2552 eval "DEFAULT_$LINE"
2553 else
2554 no_cache=1
2555 fi
2556
2557 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2558
e6cc62c6 2559fi;
328a083c 2560
d74f4b5a
VZ
2561 eval "$ac_cv_use_gtk2"
2562 if test "$no_cache" != 1; then
2563 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2564 fi
2565
2566 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2567 echo "$as_me:$LINENO: result: yes" >&5
2568echo "${ECHO_T}yes" >&6
d74f4b5a 2569 else
e6cc62c6
VS
2570 echo "$as_me:$LINENO: result: no" >&5
2571echo "${ECHO_T}no" >&6
d74f4b5a 2572 fi
d74f4b5a 2573
5c6fa7d2 2574
e6cc62c6
VS
2575
2576 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2577echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2578 no_cache=0
e6cc62c6
VS
2579
2580# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2581if test "${with_libpng+set}" = set; then
2582 withval="$with_libpng"
e6cc62c6 2583
10f2d63a 2584 if test "$withval" = yes; then
b12915c1 2585 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2586 elif test "$withval" = no; then
b12915c1 2587 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2588 elif test "$withval" = sys; then
2589 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2590 elif test "$withval" = builtin; then
2591 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2592 else
e6cc62c6
VS
2593 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2594echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2595 { (exit 1); exit 1; }; }
10f2d63a 2596 fi
e6cc62c6 2597
10f2d63a 2598else
e6cc62c6 2599
b12915c1 2600 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2601 if test "x$LINE" != x ; then
2602 eval "DEFAULT_$LINE"
2603 else
2604 no_cache=1
2605 fi
2606
b12915c1 2607 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2608
e6cc62c6 2609fi;
10f2d63a 2610
b12915c1 2611 eval "$ac_cv_use_libpng"
10f2d63a 2612 if test "$no_cache" != 1; then
b12915c1 2613 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2614 fi
2615
b12915c1 2616 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2617 echo "$as_me:$LINENO: result: yes" >&5
2618echo "${ECHO_T}yes" >&6
422107f9 2619 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2620 echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6
422107f9 2622 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2623 echo "$as_me:$LINENO: result: system version" >&5
2624echo "${ECHO_T}system version" >&6
4f14bcd8 2625 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2626 echo "$as_me:$LINENO: result: builtin version" >&5
2627echo "${ECHO_T}builtin version" >&6
422107f9 2628 else
e6cc62c6
VS
2629 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2630echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2631 { (exit 1); exit 1; }; }
10f2d63a 2632 fi
10f2d63a 2633
e6cc62c6
VS
2634
2635 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2636echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2637 no_cache=0
e6cc62c6
VS
2638
2639# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2640if test "${with_libjpeg+set}" = set; then
2641 withval="$with_libjpeg"
e6cc62c6 2642
10f2d63a 2643 if test "$withval" = yes; then
b12915c1 2644 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2645 elif test "$withval" = no; then
b12915c1 2646 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2647 elif test "$withval" = sys; then
2648 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2649 elif test "$withval" = builtin; then
2650 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2651 else
e6cc62c6
VS
2652 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2653echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2654 { (exit 1); exit 1; }; }
10f2d63a 2655 fi
e6cc62c6 2656
10f2d63a 2657else
e6cc62c6 2658
b12915c1 2659 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2660 if test "x$LINE" != x ; then
2661 eval "DEFAULT_$LINE"
2662 else
2663 no_cache=1
2664 fi
2665
b12915c1 2666 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2667
e6cc62c6 2668fi;
10f2d63a 2669
b12915c1 2670 eval "$ac_cv_use_libjpeg"
10f2d63a 2671 if test "$no_cache" != 1; then
b12915c1 2672 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2673 fi
2674
b12915c1 2675 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2676 echo "$as_me:$LINENO: result: yes" >&5
2677echo "${ECHO_T}yes" >&6
422107f9 2678 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2679 echo "$as_me:$LINENO: result: no" >&5
2680echo "${ECHO_T}no" >&6
422107f9 2681 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2682 echo "$as_me:$LINENO: result: system version" >&5
2683echo "${ECHO_T}system version" >&6
4f14bcd8 2684 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2685 echo "$as_me:$LINENO: result: builtin version" >&5
2686echo "${ECHO_T}builtin version" >&6
422107f9 2687 else
e6cc62c6
VS
2688 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2689echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2690 { (exit 1); exit 1; }; }
10f2d63a 2691 fi
10f2d63a 2692
e6cc62c6
VS
2693
2694 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2695echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2696 no_cache=0
e6cc62c6
VS
2697
2698# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2699if test "${with_libtiff+set}" = set; then
2700 withval="$with_libtiff"
e6cc62c6 2701
10f2d63a 2702 if test "$withval" = yes; then
b12915c1 2703 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2704 elif test "$withval" = no; then
b12915c1 2705 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2706 elif test "$withval" = sys; then
2707 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2708 elif test "$withval" = builtin; then
2709 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2710 else
e6cc62c6
VS
2711 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2712echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2713 { (exit 1); exit 1; }; }
10f2d63a 2714 fi
e6cc62c6 2715
10f2d63a 2716else
e6cc62c6 2717
b12915c1 2718 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2719 if test "x$LINE" != x ; then
2720 eval "DEFAULT_$LINE"
2721 else
2722 no_cache=1
2723 fi
2724
b12915c1 2725 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2726
e6cc62c6 2727fi;
10f2d63a 2728
b12915c1 2729 eval "$ac_cv_use_libtiff"
10f2d63a 2730 if test "$no_cache" != 1; then
b12915c1 2731 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2732 fi
2733
b12915c1 2734 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2735 echo "$as_me:$LINENO: result: yes" >&5
2736echo "${ECHO_T}yes" >&6
0dcf9893 2737 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2738 echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
0dcf9893 2740 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2741 echo "$as_me:$LINENO: result: system version" >&5
2742echo "${ECHO_T}system version" >&6
4f14bcd8 2743 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2744 echo "$as_me:$LINENO: result: builtin version" >&5
2745echo "${ECHO_T}builtin version" >&6
0dcf9893 2746 else
e6cc62c6
VS
2747 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2748echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2749 { (exit 1); exit 1; }; }
10f2d63a 2750 fi
10f2d63a 2751
e6cc62c6
VS
2752
2753 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2754echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2755 no_cache=0
e6cc62c6
VS
2756
2757# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2758if test "${with_opengl+set}" = set; then
2759 withval="$with_opengl"
e6cc62c6 2760
10f2d63a 2761 if test "$withval" = yes; then
b12915c1 2762 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2763 else
b12915c1 2764 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2765 fi
e6cc62c6 2766
10f2d63a 2767else
e6cc62c6 2768
b12915c1 2769 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2770 if test "x$LINE" != x ; then
2771 eval "DEFAULT_$LINE"
2772 else
2773 no_cache=1
2774 fi
2775
b12915c1 2776 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2777
e6cc62c6 2778fi;
10f2d63a 2779
b12915c1 2780 eval "$ac_cv_use_opengl"
10f2d63a 2781 if test "$no_cache" != 1; then
b12915c1 2782 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2783 fi
2784
b12915c1 2785 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2786 echo "$as_me:$LINENO: result: yes" >&5
2787echo "${ECHO_T}yes" >&6
10f2d63a 2788 else
e6cc62c6
VS
2789 echo "$as_me:$LINENO: result: no" >&5
2790echo "${ECHO_T}no" >&6
10f2d63a 2791 fi
e6cc62c6 2792
10f2d63a 2793
b12915c1
VZ
2794fi
2795
5c6fa7d2 2796
e6cc62c6
VS
2797 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2798echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2799 no_cache=0
e6cc62c6
VS
2800
2801# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2802if test "${with_dmalloc+set}" = set; then
2803 withval="$with_dmalloc"
e6cc62c6 2804
c7a2bf27 2805 if test "$withval" = yes; then
b12915c1 2806 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2807 else
b12915c1 2808 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2809 fi
e6cc62c6 2810
c7a2bf27 2811else
e6cc62c6 2812
b12915c1 2813 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
b12915c1 2820 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2821
e6cc62c6 2822fi;
c7a2bf27 2823
b12915c1 2824 eval "$ac_cv_use_dmalloc"
c7a2bf27 2825 if test "$no_cache" != 1; then
b12915c1 2826 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2827 fi
2828
b12915c1 2829 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2830 echo "$as_me:$LINENO: result: yes" >&5
2831echo "${ECHO_T}yes" >&6
c7a2bf27 2832 else
e6cc62c6
VS
2833 echo "$as_me:$LINENO: result: no" >&5
2834echo "${ECHO_T}no" >&6
c7a2bf27 2835 fi
c7a2bf27 2836
e6cc62c6
VS
2837
2838 echo "$as_me:$LINENO: checking for --with-regex" >&5
2839echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2840 no_cache=0
e6cc62c6
VS
2841
2842# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2843if test "${with_regex+set}" = set; then
2844 withval="$with_regex"
e6cc62c6 2845
3e44f09d
VZ
2846 if test "$withval" = yes; then
2847 ac_cv_use_regex='wxUSE_REGEX=yes'
2848 elif test "$withval" = no; then
2849 ac_cv_use_regex='wxUSE_REGEX=no'
2850 elif test "$withval" = sys; then
2851 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2852 elif test "$withval" = builtin; then
2853 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2854 else
e6cc62c6
VS
2855 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2856echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2857 { (exit 1); exit 1; }; }
3e44f09d 2858 fi
e6cc62c6 2859
3e44f09d 2860else
e6cc62c6 2861
3e44f09d
VZ
2862 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2863 if test "x$LINE" != x ; then
2864 eval "DEFAULT_$LINE"
2865 else
2866 no_cache=1
2867 fi
2868
2869 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2870
e6cc62c6 2871fi;
3e44f09d
VZ
2872
2873 eval "$ac_cv_use_regex"
2874 if test "$no_cache" != 1; then
2875 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2876 fi
2877
2878 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2879 echo "$as_me:$LINENO: result: yes" >&5
2880echo "${ECHO_T}yes" >&6
3e44f09d 2881 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2882 echo "$as_me:$LINENO: result: no" >&5
2883echo "${ECHO_T}no" >&6
3e44f09d 2884 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2885 echo "$as_me:$LINENO: result: system version" >&5
2886echo "${ECHO_T}system version" >&6
4f14bcd8 2887 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2888 echo "$as_me:$LINENO: result: builtin version" >&5
2889echo "${ECHO_T}builtin version" >&6
3e44f09d 2890 else
e6cc62c6
VS
2891 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2892echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2893 { (exit 1); exit 1; }; }
3e44f09d 2894 fi
3e44f09d 2895
e6cc62c6
VS
2896
2897 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2898echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2899 no_cache=0
e6cc62c6
VS
2900
2901# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2902if test "${with_zlib+set}" = set; then
2903 withval="$with_zlib"
e6cc62c6 2904
10f2d63a 2905 if test "$withval" = yes; then
b12915c1 2906 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2907 elif test "$withval" = no; then
b12915c1 2908 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2909 elif test "$withval" = sys; then
2910 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2911 elif test "$withval" = builtin; then
2912 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2913 else
e6cc62c6
VS
2914 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2915echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2916 { (exit 1); exit 1; }; }
10f2d63a 2917 fi
e6cc62c6 2918
10f2d63a 2919else
e6cc62c6 2920
b12915c1 2921 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2922 if test "x$LINE" != x ; then
2923 eval "DEFAULT_$LINE"
2924 else
2925 no_cache=1
2926 fi
2927
b12915c1 2928 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2929
e6cc62c6 2930fi;
10f2d63a 2931
b12915c1 2932 eval "$ac_cv_use_zlib"
10f2d63a 2933 if test "$no_cache" != 1; then
b12915c1 2934 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2935 fi
2936
b12915c1 2937 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2938 echo "$as_me:$LINENO: result: yes" >&5
2939echo "${ECHO_T}yes" >&6
422107f9 2940 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2941 echo "$as_me:$LINENO: result: no" >&5
2942echo "${ECHO_T}no" >&6
422107f9 2943 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2944 echo "$as_me:$LINENO: result: system version" >&5
2945echo "${ECHO_T}system version" >&6
4f14bcd8 2946 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2947 echo "$as_me:$LINENO: result: builtin version" >&5
2948echo "${ECHO_T}builtin version" >&6
422107f9 2949 else
e6cc62c6
VS
2950 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2951echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2952 { (exit 1); exit 1; }; }
10f2d63a 2953 fi
10f2d63a 2954
e6cc62c6
VS
2955
2956 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2957echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2958 no_cache=0
e6cc62c6
VS
2959
2960# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2961if test "${with_odbc+set}" = set; then
2962 withval="$with_odbc"
e6cc62c6 2963
10f2d63a
VZ
2964 if test "$withval" = yes; then
2965 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2966 elif test "$withval" = no; then
10f2d63a 2967 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2968 elif test "$withval" = sys; then
2969 ac_cv_use_odbc='wxUSE_ODBC=sys'
2970 elif test "$withval" = builtin; then
2971 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2972 else
e6cc62c6
VS
2973 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2974echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2975 { (exit 1); exit 1; }; }
10f2d63a 2976 fi
e6cc62c6 2977
10f2d63a 2978else
e6cc62c6 2979
10f2d63a
VZ
2980 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2981 if test "x$LINE" != x ; then
2982 eval "DEFAULT_$LINE"
2983 else
2984 no_cache=1
2985 fi
2986
2987 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2988
e6cc62c6 2989fi;
10f2d63a
VZ
2990
2991 eval "$ac_cv_use_odbc"
2992 if test "$no_cache" != 1; then
2993 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2994 fi
2995
2996 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
2997 echo "$as_me:$LINENO: result: yes" >&5
2998echo "${ECHO_T}yes" >&6
8647bec6 2999 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3000 echo "$as_me:$LINENO: result: no" >&5
3001echo "${ECHO_T}no" >&6
8647bec6 3002 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3003 echo "$as_me:$LINENO: result: system version" >&5
3004echo "${ECHO_T}system version" >&6
8647bec6 3005 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3006 echo "$as_me:$LINENO: result: builtin version" >&5
3007echo "${ECHO_T}builtin version" >&6
8647bec6 3008 else
e6cc62c6
VS
3009 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3010echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3011 { (exit 1); exit 1; }; }
10f2d63a 3012 fi
e6cc62c6 3013
52127426 3014
672abd7a
VS
3015 echo "$as_me:$LINENO: checking for --with-expat" >&5
3016echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3017 no_cache=0
3018
3019# Check whether --with-expat or --without-expat was given.
3020if test "${with_expat+set}" = set; then
3021 withval="$with_expat"
3022
3023 if test "$withval" = yes; then
3024 ac_cv_use_expat='wxUSE_EXPAT=yes'
3025 elif test "$withval" = no; then
3026 ac_cv_use_expat='wxUSE_EXPAT=no'
3027 elif test "$withval" = sys; then
3028 ac_cv_use_expat='wxUSE_EXPAT=sys'
3029 elif test "$withval" = builtin; then
3030 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3031 else
3032 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3033echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3034 { (exit 1); exit 1; }; }
3035 fi
3036
3037else
3038
3039 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3040 if test "x$LINE" != x ; then
3041 eval "DEFAULT_$LINE"
3042 else
3043 no_cache=1
3044 fi
3045
3046 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3047
3048fi;
3049
3050 eval "$ac_cv_use_expat"
3051 if test "$no_cache" != 1; then
3052 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3053 fi
3054
3055 if test "$wxUSE_EXPAT" = yes; then
3056 echo "$as_me:$LINENO: result: yes" >&5
3057echo "${ECHO_T}yes" >&6
3058 elif test "$wxUSE_EXPAT" = no; then
3059 echo "$as_me:$LINENO: result: no" >&5
3060echo "${ECHO_T}no" >&6
3061 elif test "$wxUSE_EXPAT" = sys; then
3062 echo "$as_me:$LINENO: result: system version" >&5
3063echo "${ECHO_T}system version" >&6
3064 elif test "$wxUSE_EXPAT" = builtin; then
3065 echo "$as_me:$LINENO: result: builtin version" >&5
3066echo "${ECHO_T}builtin version" >&6
3067 else
3068 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3069echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3070 { (exit 1); exit 1; }; }
3071 fi
3072
3073
8284b0c5
MB
3074
3075
5005acfe 3076 enablestring=
e6cc62c6
VS
3077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3078echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3079 no_cache=0
3080 # Check whether --enable-shared or --disable-shared was given.
3081if test "${enable_shared+set}" = set; then
3082 enableval="$enable_shared"
e6cc62c6 3083
10f2d63a
VZ
3084 if test "$enableval" = yes; then
3085 ac_cv_use_shared='wxUSE_SHARED=yes'
3086 else
3087 ac_cv_use_shared='wxUSE_SHARED=no'
3088 fi
e6cc62c6 3089
10f2d63a 3090else
e6cc62c6 3091
10f2d63a
VZ
3092 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3093 if test "x$LINE" != x ; then
3094 eval "DEFAULT_$LINE"
3095 else
3096 no_cache=1
3097 fi
3098
3099 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3100
e6cc62c6 3101fi;
10f2d63a
VZ
3102
3103 eval "$ac_cv_use_shared"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3109 echo "$as_me:$LINENO: result: yes" >&5
3110echo "${ECHO_T}yes" >&6
10f2d63a 3111 else
e6cc62c6
VS
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
10f2d63a 3114 fi
e6cc62c6 3115
10f2d63a 3116
5005acfe 3117 enablestring=
e6cc62c6
VS
3118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3119echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3120 no_cache=0
3121 # Check whether --enable-optimise or --disable-optimise was given.
3122if test "${enable_optimise+set}" = set; then
3123 enableval="$enable_optimise"
e6cc62c6 3124
10f2d63a
VZ
3125 if test "$enableval" = yes; then
3126 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3127 else
3128 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3129 fi
e6cc62c6 3130
10f2d63a 3131else
e6cc62c6 3132
10f2d63a
VZ
3133 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3134 if test "x$LINE" != x ; then
3135 eval "DEFAULT_$LINE"
3136 else
3137 no_cache=1
3138 fi
3139
3140 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3141
e6cc62c6 3142fi;
10f2d63a
VZ
3143
3144 eval "$ac_cv_use_optimise"
3145 if test "$no_cache" != 1; then
3146 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3147 fi
3148
3149 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3150 echo "$as_me:$LINENO: result: yes" >&5
3151echo "${ECHO_T}yes" >&6
10f2d63a 3152 else
e6cc62c6
VS
3153 echo "$as_me:$LINENO: result: no" >&5
3154echo "${ECHO_T}no" >&6
10f2d63a 3155 fi
e6cc62c6 3156
10f2d63a 3157
5005acfe 3158 enablestring=
e6cc62c6
VS
3159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3160echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3161 no_cache=0
3162 # Check whether --enable-debug or --disable-debug was given.
3163if test "${enable_debug+set}" = set; then
3164 enableval="$enable_debug"
e6cc62c6 3165
10f2d63a
VZ
3166 if test "$enableval" = yes; then
3167 ac_cv_use_debug='wxUSE_DEBUG=yes'
3168 else
3169 ac_cv_use_debug='wxUSE_DEBUG=no'
3170 fi
e6cc62c6 3171
10f2d63a 3172else
e6cc62c6 3173
10f2d63a
VZ
3174 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3175 if test "x$LINE" != x ; then
3176 eval "DEFAULT_$LINE"
3177 else
3178 no_cache=1
3179 fi
3180
3181 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3182
e6cc62c6 3183fi;
10f2d63a
VZ
3184
3185 eval "$ac_cv_use_debug"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3191 echo "$as_me:$LINENO: result: yes" >&5
3192echo "${ECHO_T}yes" >&6
10f2d63a 3193 else
e6cc62c6
VS
3194 echo "$as_me:$LINENO: result: no" >&5
3195echo "${ECHO_T}no" >&6
10f2d63a 3196 fi
e6cc62c6 3197
52127426 3198
df5168c4
MB
3199 enablestring=
3200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3201echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3202 no_cache=0
3203 # Check whether --enable-stl or --disable-stl was given.
3204if test "${enable_stl+set}" = set; then
3205 enableval="$enable_stl"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_stl='wxUSE_STL=yes'
3209 else
3210 ac_cv_use_stl='wxUSE_STL=no'
3211 fi
3212
3213else
3214
3215 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3223
3224fi;
3225
3226 eval "$ac_cv_use_stl"
3227 if test "$no_cache" != 1; then
3228 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3229 fi
3230
3231 if test "$wxUSE_STL" = yes; then
3232 echo "$as_me:$LINENO: result: yes" >&5
3233echo "${ECHO_T}yes" >&6
3234 else
3235 echo "$as_me:$LINENO: result: no" >&5
3236echo "${ECHO_T}no" >&6
3237 fi
3238
3239
10f2d63a
VZ
3240if test "$wxUSE_DEBUG" = "yes"; then
3241 DEFAULT_wxUSE_DEBUG_FLAG=yes
3242 DEFAULT_wxUSE_DEBUG_INFO=yes
3243elif test "$wxUSE_DEBUG" = "no"; then
3244 DEFAULT_wxUSE_DEBUG_FLAG=no
3245 DEFAULT_wxUSE_DEBUG_INFO=no
3246fi
3247
8284b0c5 3248
5005acfe 3249 enablestring=
e6cc62c6
VS
3250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3251echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3252 no_cache=0
3253 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3254if test "${enable_debug_flag+set}" = set; then
3255 enableval="$enable_debug_flag"
e6cc62c6 3256
10f2d63a
VZ
3257 if test "$enableval" = yes; then
3258 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3259 else
3260 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3261 fi
e6cc62c6 3262
10f2d63a 3263else
e6cc62c6 3264
10f2d63a
VZ
3265 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3266 if test "x$LINE" != x ; then
3267 eval "DEFAULT_$LINE"
3268 else
3269 no_cache=1
3270 fi
3271
3272 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3273
e6cc62c6 3274fi;
10f2d63a
VZ
3275
3276 eval "$ac_cv_use_debug_flag"
3277 if test "$no_cache" != 1; then
3278 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3279 fi
3280
3281 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3282 echo "$as_me:$LINENO: result: yes" >&5
3283echo "${ECHO_T}yes" >&6
10f2d63a 3284 else
e6cc62c6
VS
3285 echo "$as_me:$LINENO: result: no" >&5
3286echo "${ECHO_T}no" >&6
10f2d63a 3287 fi
e6cc62c6 3288
10f2d63a 3289
5005acfe 3290 enablestring=
e6cc62c6
VS
3291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3292echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3293 no_cache=0
3294 # Check whether --enable-debug_info or --disable-debug_info was given.
3295if test "${enable_debug_info+set}" = set; then
3296 enableval="$enable_debug_info"
e6cc62c6 3297
10f2d63a
VZ
3298 if test "$enableval" = yes; then
3299 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3300 else
3301 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3302 fi
e6cc62c6 3303
10f2d63a 3304else
e6cc62c6 3305
10f2d63a
VZ
3306 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3307 if test "x$LINE" != x ; then
3308 eval "DEFAULT_$LINE"
3309 else
3310 no_cache=1
3311 fi
3312
3313 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3314
e6cc62c6 3315fi;
10f2d63a
VZ
3316
3317 eval "$ac_cv_use_debug_info"
3318 if test "$no_cache" != 1; then
3319 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3320 fi
3321
3322 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3323 echo "$as_me:$LINENO: result: yes" >&5
3324echo "${ECHO_T}yes" >&6
10f2d63a 3325 else
e6cc62c6
VS
3326 echo "$as_me:$LINENO: result: no" >&5
3327echo "${ECHO_T}no" >&6
10f2d63a 3328 fi
e6cc62c6 3329
10f2d63a 3330
5005acfe 3331 enablestring=
e6cc62c6
VS
3332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3333echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3334 no_cache=0
3335 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3336if test "${enable_debug_gdb+set}" = set; then
3337 enableval="$enable_debug_gdb"
e6cc62c6 3338
10f2d63a
VZ
3339 if test "$enableval" = yes; then
3340 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3341 else
3342 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3343 fi
e6cc62c6 3344
10f2d63a 3345else
e6cc62c6 3346
10f2d63a
VZ
3347 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3355
e6cc62c6 3356fi;
10f2d63a
VZ
3357
3358 eval "$ac_cv_use_debug_gdb"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3364 echo "$as_me:$LINENO: result: yes" >&5
3365echo "${ECHO_T}yes" >&6
10f2d63a 3366 else
e6cc62c6
VS
3367 echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
10f2d63a 3369 fi
e6cc62c6 3370
10f2d63a 3371
5005acfe 3372 enablestring=
e6cc62c6
VS
3373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3374echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3375 no_cache=0
3376 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3377if test "${enable_debug_cntxt+set}" = set; then
3378 enableval="$enable_debug_cntxt"
e6cc62c6 3379
10f2d63a
VZ
3380 if test "$enableval" = yes; then
3381 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3382 else
3383 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3384 fi
e6cc62c6 3385
10f2d63a 3386else
e6cc62c6 3387
10f2d63a
VZ
3388 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3389 if test "x$LINE" != x ; then
3390 eval "DEFAULT_$LINE"
3391 else
3392 no_cache=1
3393 fi
3394
3395 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3396
e6cc62c6 3397fi;
10f2d63a
VZ
3398
3399 eval "$ac_cv_use_debug_cntxt"
3400 if test "$no_cache" != 1; then
3401 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3402 fi
3403
3404 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3405 echo "$as_me:$LINENO: result: yes" >&5
3406echo "${ECHO_T}yes" >&6
10f2d63a 3407 else
e6cc62c6
VS
3408 echo "$as_me:$LINENO: result: no" >&5
3409echo "${ECHO_T}no" >&6
10f2d63a 3410 fi
e6cc62c6 3411
10f2d63a 3412
5005acfe 3413 enablestring=
e6cc62c6
VS
3414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3415echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3416 no_cache=0
3417 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3418if test "${enable_mem_tracing+set}" = set; then
3419 enableval="$enable_mem_tracing"
e6cc62c6 3420
10f2d63a
VZ
3421 if test "$enableval" = yes; then
3422 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3423 else
3424 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3425 fi
e6cc62c6 3426
10f2d63a 3427else
e6cc62c6 3428
10f2d63a
VZ
3429 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3430 if test "x$LINE" != x ; then
3431 eval "DEFAULT_$LINE"
3432 else
3433 no_cache=1
3434 fi
3435
3436 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3437
e6cc62c6 3438fi;
10f2d63a
VZ
3439
3440 eval "$ac_cv_use_mem_tracing"
3441 if test "$no_cache" != 1; then
3442 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3443 fi
3444
3445 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3446 echo "$as_me:$LINENO: result: yes" >&5
3447echo "${ECHO_T}yes" >&6
10f2d63a 3448 else
e6cc62c6
VS
3449 echo "$as_me:$LINENO: result: no" >&5
3450echo "${ECHO_T}no" >&6
10f2d63a 3451 fi
e6cc62c6 3452
10f2d63a 3453
5005acfe 3454 enablestring=
e6cc62c6
VS
3455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3456echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3457 no_cache=0
3458 # Check whether --enable-profile or --disable-profile was given.
3459if test "${enable_profile+set}" = set; then
3460 enableval="$enable_profile"
e6cc62c6 3461
10f2d63a
VZ
3462 if test "$enableval" = yes; then
3463 ac_cv_use_profile='wxUSE_PROFILE=yes'
3464 else
3465 ac_cv_use_profile='wxUSE_PROFILE=no'
3466 fi
e6cc62c6 3467
10f2d63a 3468else
e6cc62c6 3469
10f2d63a
VZ
3470 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3471 if test "x$LINE" != x ; then
3472 eval "DEFAULT_$LINE"
3473 else
3474 no_cache=1
3475 fi
3476
3477 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3478
e6cc62c6 3479fi;
10f2d63a
VZ
3480
3481 eval "$ac_cv_use_profile"
3482 if test "$no_cache" != 1; then
3483 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3484 fi
3485
3486 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3487 echo "$as_me:$LINENO: result: yes" >&5
3488echo "${ECHO_T}yes" >&6
10f2d63a 3489 else
e6cc62c6
VS
3490 echo "$as_me:$LINENO: result: no" >&5
3491echo "${ECHO_T}no" >&6
10f2d63a 3492 fi
e6cc62c6 3493
10f2d63a 3494
5005acfe 3495 enablestring=
e6cc62c6
VS
3496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3497echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3498 no_cache=0
3499 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3500if test "${enable_no_rtti+set}" = set; then
3501 enableval="$enable_no_rtti"
e6cc62c6 3502
10f2d63a
VZ
3503 if test "$enableval" = yes; then
3504 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3505 else
3506 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3507 fi
e6cc62c6 3508
10f2d63a 3509else
e6cc62c6 3510
10f2d63a
VZ
3511 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3512 if test "x$LINE" != x ; then
3513 eval "DEFAULT_$LINE"
3514 else
3515 no_cache=1
3516 fi
3517
3518 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3519
e6cc62c6 3520fi;
10f2d63a
VZ
3521
3522 eval "$ac_cv_use_no_rtti"
3523 if test "$no_cache" != 1; then
3524 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3525 fi
3526
3527 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3528 echo "$as_me:$LINENO: result: yes" >&5
3529echo "${ECHO_T}yes" >&6
10f2d63a 3530 else
e6cc62c6
VS
3531 echo "$as_me:$LINENO: result: no" >&5
3532echo "${ECHO_T}no" >&6
10f2d63a 3533 fi
e6cc62c6 3534
10f2d63a 3535
5005acfe 3536 enablestring=
e6cc62c6
VS
3537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3538echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3539 no_cache=0
3540 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3541if test "${enable_no_exceptions+set}" = set; then
3542 enableval="$enable_no_exceptions"
e6cc62c6 3543
10f2d63a
VZ
3544 if test "$enableval" = yes; then
3545 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3546 else
3547 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3548 fi
e6cc62c6 3549
10f2d63a 3550else
e6cc62c6 3551
10f2d63a
VZ
3552 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3553 if test "x$LINE" != x ; then
3554 eval "DEFAULT_$LINE"
3555 else
3556 no_cache=1
3557 fi
3558
3559 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3560
e6cc62c6 3561fi;
10f2d63a
VZ
3562
3563 eval "$ac_cv_use_no_exceptions"
3564 if test "$no_cache" != 1; then
3565 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3566 fi
3567
3568 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3569 echo "$as_me:$LINENO: result: yes" >&5
3570echo "${ECHO_T}yes" >&6
10f2d63a 3571 else
e6cc62c6
VS
3572 echo "$as_me:$LINENO: result: no" >&5
3573echo "${ECHO_T}no" >&6
10f2d63a 3574 fi
e6cc62c6 3575
10f2d63a 3576
5005acfe 3577 enablestring=
e6cc62c6
VS
3578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3579echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3580 no_cache=0
3581 # Check whether --enable-permissive or --disable-permissive was given.
3582if test "${enable_permissive+set}" = set; then
3583 enableval="$enable_permissive"
e6cc62c6 3584
10f2d63a
VZ
3585 if test "$enableval" = yes; then
3586 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3587 else
3588 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3589 fi
e6cc62c6 3590
10f2d63a 3591else
e6cc62c6 3592
10f2d63a
VZ
3593 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3594 if test "x$LINE" != x ; then
3595 eval "DEFAULT_$LINE"
3596 else
3597 no_cache=1
3598 fi
3599
3600 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3601
e6cc62c6 3602fi;
10f2d63a
VZ
3603
3604 eval "$ac_cv_use_permissive"
3605 if test "$no_cache" != 1; then
3606 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3607 fi
3608
3609 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3610 echo "$as_me:$LINENO: result: yes" >&5
3611echo "${ECHO_T}yes" >&6
10f2d63a 3612 else
e6cc62c6
VS
3613 echo "$as_me:$LINENO: result: no" >&5
3614echo "${ECHO_T}no" >&6
10f2d63a 3615 fi
e6cc62c6 3616
10f2d63a 3617
5005acfe 3618 enablestring=
e6cc62c6
VS
3619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3620echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3621 no_cache=0
3622 # Check whether --enable-no_deps or --disable-no_deps was given.
3623if test "${enable_no_deps+set}" = set; then
3624 enableval="$enable_no_deps"
e6cc62c6 3625
10f2d63a
VZ
3626 if test "$enableval" = yes; then
3627 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3628 else
3629 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3630 fi
e6cc62c6 3631
10f2d63a 3632else
e6cc62c6 3633
10f2d63a
VZ
3634 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3635 if test "x$LINE" != x ; then
3636 eval "DEFAULT_$LINE"
3637 else
3638 no_cache=1
3639 fi
3640
3641 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3642
e6cc62c6 3643fi;
10f2d63a
VZ
3644
3645 eval "$ac_cv_use_no_deps"
3646 if test "$no_cache" != 1; then
3647 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3648 fi
3649
3650 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3651 echo "$as_me:$LINENO: result: yes" >&5
3652echo "${ECHO_T}yes" >&6
10f2d63a 3653 else
e6cc62c6
VS
3654 echo "$as_me:$LINENO: result: no" >&5
3655echo "${ECHO_T}no" >&6
10f2d63a 3656 fi
e6cc62c6 3657
52127426 3658
8284b0c5 3659
5005acfe 3660 enablestring=
e6cc62c6
VS
3661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3662echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
54276ccf
VZ
3663 no_cache=0
3664 # Check whether --enable-compat20 or --disable-compat20 was given.
3665if test "${enable_compat20+set}" = set; then
3666 enableval="$enable_compat20"
e6cc62c6 3667
54276ccf
VZ
3668 if test "$enableval" = yes; then
3669 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3670 else
3671 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3672 fi
e6cc62c6 3673
54276ccf 3674else
e6cc62c6 3675
54276ccf
VZ
3676 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3677 if test "x$LINE" != x ; then
3678 eval "DEFAULT_$LINE"
3679 else
3680 no_cache=1
3681 fi
3682
3683 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3684
e6cc62c6 3685fi;
54276ccf
VZ
3686
3687 eval "$ac_cv_use_compat20"
3688 if test "$no_cache" != 1; then
3689 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3690 fi
3691
3692 if test "$WXWIN_COMPATIBILITY_2" = yes; then
e6cc62c6
VS
3693 echo "$as_me:$LINENO: result: yes" >&5
3694echo "${ECHO_T}yes" >&6
54276ccf 3695 else
e6cc62c6
VS
3696 echo "$as_me:$LINENO: result: no" >&5
3697echo "${ECHO_T}no" >&6
54276ccf 3698 fi
e6cc62c6 3699
54276ccf 3700
65d8ef1e 3701 enablestring=
e6cc62c6
VS
3702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3703echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3704 no_cache=0
3705 # Check whether --enable-compat22 or --disable-compat22 was given.
3706if test "${enable_compat22+set}" = set; then
3707 enableval="$enable_compat22"
e6cc62c6 3708
54276ccf
VZ
3709 if test "$enableval" = yes; then
3710 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3711 else
3712 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3713 fi
e6cc62c6 3714
54276ccf 3715else
e6cc62c6 3716
54276ccf
VZ
3717 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
3724 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3725
e6cc62c6 3726fi;
54276ccf
VZ
3727
3728 eval "$ac_cv_use_compat22"
3729 if test "$no_cache" != 1; then
3730 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3731 fi
3732
3733 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3734 echo "$as_me:$LINENO: result: yes" >&5
3735echo "${ECHO_T}yes" >&6
54276ccf 3736 else
e6cc62c6
VS
3737 echo "$as_me:$LINENO: result: no" >&5
3738echo "${ECHO_T}no" >&6
54276ccf 3739 fi
e6cc62c6 3740
54276ccf 3741
65d8ef1e 3742 enablestring=disable
e6cc62c6
VS
3743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3744echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3745 no_cache=0
3746 # Check whether --enable-compat24 or --disable-compat24 was given.
3747if test "${enable_compat24+set}" = set; then
3748 enableval="$enable_compat24"
e6cc62c6 3749
65d8ef1e
VS
3750 if test "$enableval" = yes; then
3751 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3752 else
3753 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3754 fi
e6cc62c6 3755
65d8ef1e 3756else
e6cc62c6 3757
65d8ef1e
VS
3758 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3766
e6cc62c6 3767fi;
65d8ef1e
VS
3768
3769 eval "$ac_cv_use_compat24"
3770 if test "$no_cache" != 1; then
3771 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3772 fi
3773
3774 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3775 echo "$as_me:$LINENO: result: yes" >&5
3776echo "${ECHO_T}yes" >&6
65d8ef1e 3777 else
e6cc62c6
VS
3778 echo "$as_me:$LINENO: result: no" >&5
3779echo "${ECHO_T}no" >&6
65d8ef1e 3780 fi
e6cc62c6 3781
65d8ef1e 3782
3bd8fb5f
RD
3783# Check whether --enable-rpath or --disable-rpath was given.
3784if test "${enable_rpath+set}" = set; then
3785 enableval="$enable_rpath"
3786 wxRPATH_DIR="$enableval"
e6cc62c6 3787fi;
3bd8fb5f
RD
3788
3789if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3790 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3791fi
3792
8284b0c5
MB
3793
3794
3795
5005acfe 3796 enablestring=
e6cc62c6
VS
3797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3798echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3799 no_cache=0
3800 # Check whether --enable-intl or --disable-intl was given.
3801if test "${enable_intl+set}" = set; then
3802 enableval="$enable_intl"
e6cc62c6 3803
10f2d63a
VZ
3804 if test "$enableval" = yes; then
3805 ac_cv_use_intl='wxUSE_INTL=yes'
3806 else
3807 ac_cv_use_intl='wxUSE_INTL=no'
3808 fi
e6cc62c6 3809
10f2d63a 3810else
e6cc62c6 3811
10f2d63a
VZ
3812 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3813 if test "x$LINE" != x ; then
3814 eval "DEFAULT_$LINE"
3815 else
3816 no_cache=1
3817 fi
3818
3819 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3820
e6cc62c6 3821fi;
10f2d63a
VZ
3822
3823 eval "$ac_cv_use_intl"
3824 if test "$no_cache" != 1; then
3825 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3826 fi
3827
3828 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3829 echo "$as_me:$LINENO: result: yes" >&5
3830echo "${ECHO_T}yes" >&6
10f2d63a 3831 else
e6cc62c6
VS
3832 echo "$as_me:$LINENO: result: no" >&5
3833echo "${ECHO_T}no" >&6
10f2d63a 3834 fi
e6cc62c6 3835
10f2d63a 3836
5005acfe 3837 enablestring=
e6cc62c6
VS
3838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3839echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3840 no_cache=0
3841 # Check whether --enable-config or --disable-config was given.
3842if test "${enable_config+set}" = set; then
3843 enableval="$enable_config"
e6cc62c6 3844
10f2d63a
VZ
3845 if test "$enableval" = yes; then
3846 ac_cv_use_config='wxUSE_CONFIG=yes'
3847 else
3848 ac_cv_use_config='wxUSE_CONFIG=no'
3849 fi
e6cc62c6 3850
10f2d63a 3851else
e6cc62c6 3852
10f2d63a
VZ
3853 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3854 if test "x$LINE" != x ; then
3855 eval "DEFAULT_$LINE"
3856 else
3857 no_cache=1
3858 fi
3859
3860 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3861
e6cc62c6 3862fi;
10f2d63a
VZ
3863
3864 eval "$ac_cv_use_config"
3865 if test "$no_cache" != 1; then
3866 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3867 fi
3868
3869 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3870 echo "$as_me:$LINENO: result: yes" >&5
3871echo "${ECHO_T}yes" >&6
10f2d63a 3872 else
e6cc62c6
VS
3873 echo "$as_me:$LINENO: result: no" >&5
3874echo "${ECHO_T}no" >&6
10f2d63a 3875 fi
e6cc62c6 3876
52127426 3877
8284b0c5 3878
5005acfe 3879 enablestring=
e6cc62c6
VS
3880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3881echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3882 no_cache=0
3883 # Check whether --enable-protocols or --disable-protocols was given.
3884if test "${enable_protocols+set}" = set; then
3885 enableval="$enable_protocols"
e6cc62c6 3886
a1622950
VZ
3887 if test "$enableval" = yes; then
3888 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3889 else
3890 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3891 fi
e6cc62c6 3892
a1622950 3893else
e6cc62c6 3894
a1622950
VZ
3895 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3896 if test "x$LINE" != x ; then
3897 eval "DEFAULT_$LINE"
3898 else
3899 no_cache=1
3900 fi
3901
3902 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3903
e6cc62c6 3904fi;
a1622950
VZ
3905
3906 eval "$ac_cv_use_protocols"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3912 echo "$as_me:$LINENO: result: yes" >&5
3913echo "${ECHO_T}yes" >&6
a1622950 3914 else
e6cc62c6
VS
3915 echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6
a1622950 3917 fi
e6cc62c6 3918
a1622950 3919
5005acfe 3920 enablestring=
e6cc62c6
VS
3921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3922echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3923 no_cache=0
3924 # Check whether --enable-ftp or --disable-ftp was given.
3925if test "${enable_ftp+set}" = set; then
3926 enableval="$enable_ftp"
e6cc62c6 3927
a1622950
VZ
3928 if test "$enableval" = yes; then
3929 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3930 else
3931 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3932 fi
e6cc62c6 3933
a1622950 3934else
e6cc62c6 3935
a1622950
VZ
3936 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
3943 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3944
e6cc62c6 3945fi;
a1622950
VZ
3946
3947 eval "$ac_cv_use_ftp"
3948 if test "$no_cache" != 1; then
3949 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3950 fi
3951
3952 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3953 echo "$as_me:$LINENO: result: yes" >&5
3954echo "${ECHO_T}yes" >&6
a1622950 3955 else
e6cc62c6
VS
3956 echo "$as_me:$LINENO: result: no" >&5
3957echo "${ECHO_T}no" >&6
a1622950 3958 fi
e6cc62c6 3959
a1622950 3960
5005acfe 3961 enablestring=
e6cc62c6
VS
3962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3963echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3964 no_cache=0
3965 # Check whether --enable-http or --disable-http was given.
3966if test "${enable_http+set}" = set; then
3967 enableval="$enable_http"
e6cc62c6 3968
a1622950
VZ
3969 if test "$enableval" = yes; then
3970 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3971 else
3972 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3973 fi
e6cc62c6 3974
a1622950 3975else
e6cc62c6 3976
a1622950
VZ
3977 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3985
e6cc62c6 3986fi;
a1622950
VZ
3987
3988 eval "$ac_cv_use_http"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3994 echo "$as_me:$LINENO: result: yes" >&5
3995echo "${ECHO_T}yes" >&6
a1622950 3996 else
e6cc62c6
VS
3997 echo "$as_me:$LINENO: result: no" >&5
3998echo "${ECHO_T}no" >&6
a1622950 3999 fi
e6cc62c6 4000
a1622950 4001
5005acfe 4002 enablestring=
e6cc62c6
VS
4003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4004echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4005 no_cache=0
4006 # Check whether --enable-fileproto or --disable-fileproto was given.
4007if test "${enable_fileproto+set}" = set; then
4008 enableval="$enable_fileproto"
e6cc62c6 4009
a1622950
VZ
4010 if test "$enableval" = yes; then
4011 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4012 else
4013 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4014 fi
e6cc62c6 4015
a1622950 4016else
e6cc62c6 4017
a1622950
VZ
4018 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4019 if test "x$LINE" != x ; then
4020 eval "DEFAULT_$LINE"
4021 else
4022 no_cache=1
4023 fi
4024
4025 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4026
e6cc62c6 4027fi;
a1622950
VZ
4028
4029 eval "$ac_cv_use_fileproto"
4030 if test "$no_cache" != 1; then
4031 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4032 fi
4033
4034 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4035 echo "$as_me:$LINENO: result: yes" >&5
4036echo "${ECHO_T}yes" >&6
a1622950 4037 else
e6cc62c6
VS
4038 echo "$as_me:$LINENO: result: no" >&5
4039echo "${ECHO_T}no" >&6
a1622950 4040 fi
e6cc62c6 4041
a1622950 4042
5005acfe 4043 enablestring=
e6cc62c6
VS
4044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4045echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4046 no_cache=0
4047 # Check whether --enable-sockets or --disable-sockets was given.
4048if test "${enable_sockets+set}" = set; then
4049 enableval="$enable_sockets"
e6cc62c6 4050
10f2d63a
VZ
4051 if test "$enableval" = yes; then
4052 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4053 else
4054 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4055 fi
e6cc62c6 4056
10f2d63a 4057else
e6cc62c6 4058
10f2d63a
VZ
4059 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4060 if test "x$LINE" != x ; then
4061 eval "DEFAULT_$LINE"
4062 else
4063 no_cache=1
4064 fi
4065
4066 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4067
e6cc62c6 4068fi;
10f2d63a
VZ
4069
4070 eval "$ac_cv_use_sockets"
4071 if test "$no_cache" != 1; then
4072 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4073 fi
4074
4075 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4076 echo "$as_me:$LINENO: result: yes" >&5
4077echo "${ECHO_T}yes" >&6
10f2d63a 4078 else
e6cc62c6
VS
4079 echo "$as_me:$LINENO: result: no" >&5
4080echo "${ECHO_T}no" >&6
10f2d63a 4081 fi
e6cc62c6 4082
8284b0c5 4083
5005acfe 4084 enablestring=
e6cc62c6
VS
4085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4086echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4087 no_cache=0
4088 # Check whether --enable-ole or --disable-ole was given.
4089if test "${enable_ole+set}" = set; then
4090 enableval="$enable_ole"
e6cc62c6 4091
3bce6687
JS
4092 if test "$enableval" = yes; then
4093 ac_cv_use_ole='wxUSE_OLE=yes'
4094 else
4095 ac_cv_use_ole='wxUSE_OLE=no'
4096 fi
e6cc62c6 4097
3bce6687 4098else
e6cc62c6 4099
3bce6687
JS
4100 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4101 if test "x$LINE" != x ; then
4102 eval "DEFAULT_$LINE"
4103 else
4104 no_cache=1
4105 fi
4106
4107 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4108
e6cc62c6 4109fi;
3bce6687
JS
4110
4111 eval "$ac_cv_use_ole"
4112 if test "$no_cache" != 1; then
4113 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4114 fi
4115
4116 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4117 echo "$as_me:$LINENO: result: yes" >&5
4118echo "${ECHO_T}yes" >&6
3bce6687 4119 else
e6cc62c6
VS
4120 echo "$as_me:$LINENO: result: no" >&5
4121echo "${ECHO_T}no" >&6
3bce6687 4122 fi
e6cc62c6 4123
3bce6687 4124
5005acfe 4125 enablestring=
e6cc62c6
VS
4126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4127echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4128 no_cache=0
4129 # Check whether --enable-dataobj or --disable-dataobj was given.
4130if test "${enable_dataobj+set}" = set; then
4131 enableval="$enable_dataobj"
e6cc62c6 4132
3bce6687
JS
4133 if test "$enableval" = yes; then
4134 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4135 else
4136 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4137 fi
e6cc62c6 4138
3bce6687 4139else
e6cc62c6 4140
3bce6687
JS
4141 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4142 if test "x$LINE" != x ; then
4143 eval "DEFAULT_$LINE"
4144 else
4145 no_cache=1
4146 fi
4147
4148 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4149
e6cc62c6 4150fi;
3bce6687
JS
4151
4152 eval "$ac_cv_use_dataobj"
4153 if test "$no_cache" != 1; then
4154 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4155 fi
4156
4157 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4158 echo "$as_me:$LINENO: result: yes" >&5
4159echo "${ECHO_T}yes" >&6
3bce6687 4160 else
e6cc62c6
VS
4161 echo "$as_me:$LINENO: result: no" >&5
4162echo "${ECHO_T}no" >&6
3bce6687 4163 fi
e6cc62c6 4164
3bce6687 4165
52127426 4166
5005acfe 4167 enablestring=
e6cc62c6
VS
4168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4169echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4170 no_cache=0
eb4efbdc
VZ
4171 # Check whether --enable-ipc or --disable-ipc was given.
4172if test "${enable_ipc+set}" = set; then
4173 enableval="$enable_ipc"
e6cc62c6 4174
10f2d63a 4175 if test "$enableval" = yes; then
eb4efbdc 4176 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4177 else
eb4efbdc 4178 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4179 fi
e6cc62c6 4180
10f2d63a 4181else
e6cc62c6 4182
eb4efbdc 4183 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4184 if test "x$LINE" != x ; then
4185 eval "DEFAULT_$LINE"
4186 else
4187 no_cache=1
4188 fi
4189
eb4efbdc 4190 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4191
e6cc62c6 4192fi;
10f2d63a 4193
eb4efbdc 4194 eval "$ac_cv_use_ipc"
10f2d63a 4195 if test "$no_cache" != 1; then
eb4efbdc 4196 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4197 fi
4198
eb4efbdc 4199 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4200 echo "$as_me:$LINENO: result: yes" >&5
4201echo "${ECHO_T}yes" >&6
10f2d63a 4202 else
e6cc62c6
VS
4203 echo "$as_me:$LINENO: result: no" >&5
4204echo "${ECHO_T}no" >&6
10f2d63a 4205 fi
e6cc62c6 4206
52127426 4207
8284b0c5 4208
5005acfe 4209 enablestring=
e6cc62c6
VS
4210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4211echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4212 no_cache=0
4213 # Check whether --enable-cmdline or --disable-cmdline was given.
4214if test "${enable_cmdline+set}" = set; then
4215 enableval="$enable_cmdline"
e6cc62c6 4216
1e6feb95
VZ
4217 if test "$enableval" = yes; then
4218 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4219 else
4220 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4221 fi
e6cc62c6 4222
1e6feb95 4223else
e6cc62c6 4224
1e6feb95
VZ
4225 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4226 if test "x$LINE" != x ; then
4227 eval "DEFAULT_$LINE"
4228 else
4229 no_cache=1
4230 fi
4231
4232 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4233
e6cc62c6 4234fi;
1e6feb95
VZ
4235
4236 eval "$ac_cv_use_cmdline"
4237 if test "$no_cache" != 1; then
4238 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4239 fi
4240
4241 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4242 echo "$as_me:$LINENO: result: yes" >&5
4243echo "${ECHO_T}yes" >&6
1e6feb95 4244 else
e6cc62c6
VS
4245 echo "$as_me:$LINENO: result: no" >&5
4246echo "${ECHO_T}no" >&6
1e6feb95 4247 fi
e6cc62c6 4248
1e6feb95 4249
5005acfe 4250 enablestring=
e6cc62c6
VS
4251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4252echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4253 no_cache=0
4254 # Check whether --enable-datetime or --disable-datetime was given.
4255if test "${enable_datetime+set}" = set; then
4256 enableval="$enable_datetime"
e6cc62c6 4257
1e6feb95
VZ
4258 if test "$enableval" = yes; then
4259 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4260 else
4261 ac_cv_use_datetime='wxUSE_DATETIME=no'
4262 fi
e6cc62c6 4263
1e6feb95 4264else
e6cc62c6 4265
1e6feb95
VZ
4266 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4274
e6cc62c6 4275fi;
1e6feb95
VZ
4276
4277 eval "$ac_cv_use_datetime"
4278 if test "$no_cache" != 1; then
4279 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4280 fi
4281
4282 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4283 echo "$as_me:$LINENO: result: yes" >&5
4284echo "${ECHO_T}yes" >&6
1e6feb95 4285 else
e6cc62c6
VS
4286 echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6
1e6feb95 4288 fi
e6cc62c6 4289
1e6feb95 4290
5005acfe 4291 enablestring=
e6cc62c6
VS
4292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4293echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4294 no_cache=0
4295 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4296if test "${enable_stopwatch+set}" = set; then
4297 enableval="$enable_stopwatch"
e6cc62c6 4298
1e6feb95
VZ
4299 if test "$enableval" = yes; then
4300 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4301 else
4302 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4303 fi
e6cc62c6 4304
1e6feb95 4305else
e6cc62c6 4306
1e6feb95
VZ
4307 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4308 if test "x$LINE" != x ; then
4309 eval "DEFAULT_$LINE"
4310 else
4311 no_cache=1
4312 fi
4313
4314 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4315
e6cc62c6 4316fi;
1e6feb95
VZ
4317
4318 eval "$ac_cv_use_stopwatch"
4319 if test "$no_cache" != 1; then
4320 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4321 fi
4322
4323 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4324 echo "$as_me:$LINENO: result: yes" >&5
4325echo "${ECHO_T}yes" >&6
1e6feb95 4326 else
e6cc62c6
VS
4327 echo "$as_me:$LINENO: result: no" >&5
4328echo "${ECHO_T}no" >&6
1e6feb95 4329 fi
e6cc62c6 4330
1e6feb95 4331
5005acfe 4332 enablestring=
e6cc62c6
VS
4333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4334echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4335 no_cache=0
eb4efbdc
VZ
4336 # Check whether --enable-dialupman or --disable-dialupman was given.
4337if test "${enable_dialupman+set}" = set; then
4338 enableval="$enable_dialupman"
e6cc62c6 4339
10f2d63a 4340 if test "$enableval" = yes; then
eb4efbdc 4341 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4342 else
eb4efbdc 4343 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4344 fi
e6cc62c6 4345
10f2d63a 4346else
e6cc62c6 4347
eb4efbdc 4348 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4349 if test "x$LINE" != x ; then
4350 eval "DEFAULT_$LINE"
4351 else
4352 no_cache=1
4353 fi
4354
eb4efbdc 4355 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4356
e6cc62c6 4357fi;
10f2d63a 4358
eb4efbdc 4359 eval "$ac_cv_use_dialupman"
10f2d63a 4360 if test "$no_cache" != 1; then
eb4efbdc 4361 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4362 fi
4363
eb4efbdc 4364 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4365 echo "$as_me:$LINENO: result: yes" >&5
4366echo "${ECHO_T}yes" >&6
10f2d63a 4367 else
e6cc62c6
VS
4368 echo "$as_me:$LINENO: result: no" >&5
4369echo "${ECHO_T}no" >&6
10f2d63a 4370 fi
e6cc62c6 4371
10f2d63a 4372
5005acfe 4373 enablestring=
e6cc62c6
VS
4374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4375echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4376 no_cache=0
4377 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4378if test "${enable_apple_ieee+set}" = set; then
4379 enableval="$enable_apple_ieee"
e6cc62c6 4380
10f2d63a
VZ
4381 if test "$enableval" = yes; then
4382 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4383 else
4384 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4385 fi
e6cc62c6 4386
10f2d63a 4387else
e6cc62c6 4388
10f2d63a
VZ
4389 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4390 if test "x$LINE" != x ; then
4391 eval "DEFAULT_$LINE"
4392 else
4393 no_cache=1
4394 fi
4395
4396 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4397
e6cc62c6 4398fi;
10f2d63a
VZ
4399
4400 eval "$ac_cv_use_apple_ieee"
4401 if test "$no_cache" != 1; then
4402 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4403 fi
4404
4405 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4406 echo "$as_me:$LINENO: result: yes" >&5
4407echo "${ECHO_T}yes" >&6
10f2d63a 4408 else
e6cc62c6
VS
4409 echo "$as_me:$LINENO: result: no" >&5
4410echo "${ECHO_T}no" >&6
10f2d63a 4411 fi
e6cc62c6 4412
10f2d63a 4413
5005acfe 4414 enablestring=
e6cc62c6
VS
4415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4416echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4417 no_cache=0
1e6feb95
VZ
4418 # Check whether --enable-timer or --disable-timer was given.
4419if test "${enable_timer+set}" = set; then
4420 enableval="$enable_timer"
e6cc62c6 4421
10f2d63a 4422 if test "$enableval" = yes; then
1e6feb95 4423 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4424 else
1e6feb95 4425 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4426 fi
e6cc62c6 4427
10f2d63a 4428else
e6cc62c6 4429
1e6feb95 4430 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
4433 else
4434 no_cache=1
4435 fi
4436
1e6feb95 4437 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4438
e6cc62c6 4439fi;
10f2d63a 4440
1e6feb95 4441 eval "$ac_cv_use_timer"
10f2d63a 4442 if test "$no_cache" != 1; then
1e6feb95 4443 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4444 fi
4445
1e6feb95 4446 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4447 echo "$as_me:$LINENO: result: yes" >&5
4448echo "${ECHO_T}yes" >&6
10f2d63a 4449 else
e6cc62c6
VS
4450 echo "$as_me:$LINENO: result: no" >&5
4451echo "${ECHO_T}no" >&6
10f2d63a 4452 fi
e6cc62c6 4453
10f2d63a 4454
5005acfe 4455 enablestring=
e6cc62c6
VS
4456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4457echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4458 no_cache=0
4459 # Check whether --enable-wave or --disable-wave was given.
4460if test "${enable_wave+set}" = set; then
4461 enableval="$enable_wave"
e6cc62c6 4462
10f2d63a
VZ
4463 if test "$enableval" = yes; then
4464 ac_cv_use_wave='wxUSE_WAVE=yes'
4465 else
4466 ac_cv_use_wave='wxUSE_WAVE=no'
4467 fi
e6cc62c6 4468
10f2d63a 4469else
e6cc62c6 4470
10f2d63a
VZ
4471 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4479
e6cc62c6 4480fi;
10f2d63a
VZ
4481
4482 eval "$ac_cv_use_wave"
4483 if test "$no_cache" != 1; then
4484 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4485 fi
4486
4487 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4488 echo "$as_me:$LINENO: result: yes" >&5
4489echo "${ECHO_T}yes" >&6
10f2d63a 4490 else
e6cc62c6
VS
4491 echo "$as_me:$LINENO: result: no" >&5
4492echo "${ECHO_T}no" >&6
10f2d63a 4493 fi
e6cc62c6 4494
10f2d63a 4495
5005acfe 4496 enablestring=
e6cc62c6
VS
4497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4498echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4499 no_cache=0
4500 # Check whether --enable-fraction or --disable-fraction was given.
4501if test "${enable_fraction+set}" = set; then
4502 enableval="$enable_fraction"
e6cc62c6 4503
10f2d63a
VZ
4504 if test "$enableval" = yes; then
4505 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4506 else
4507 ac_cv_use_fraction='wxUSE_FRACTION=no'
4508 fi
e6cc62c6 4509
10f2d63a 4510else
e6cc62c6 4511
10f2d63a
VZ
4512 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4513 if test "x$LINE" != x ; then
4514 eval "DEFAULT_$LINE"
4515 else
4516 no_cache=1
4517 fi
4518
4519 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4520
e6cc62c6 4521fi;
10f2d63a
VZ
4522
4523 eval "$ac_cv_use_fraction"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4529 echo "$as_me:$LINENO: result: yes" >&5
4530echo "${ECHO_T}yes" >&6
10f2d63a 4531 else
e6cc62c6
VS
4532 echo "$as_me:$LINENO: result: no" >&5
4533echo "${ECHO_T}no" >&6
10f2d63a 4534 fi
e6cc62c6 4535
10f2d63a 4536
5005acfe 4537 enablestring=
e6cc62c6
VS
4538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4539echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4540 no_cache=0
4541 # Check whether --enable-dynlib or --disable-dynlib was given.
4542if test "${enable_dynlib+set}" = set; then
4543 enableval="$enable_dynlib"
e6cc62c6 4544
10f2d63a
VZ
4545 if test "$enableval" = yes; then
4546 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4547 else
4548 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4549 fi
e6cc62c6 4550
10f2d63a 4551else
e6cc62c6 4552
10f2d63a
VZ
4553 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4554 if test "x$LINE" != x ; then
4555 eval "DEFAULT_$LINE"
4556 else
4557 no_cache=1
4558 fi
4559
4560 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4561
e6cc62c6 4562fi;
10f2d63a
VZ
4563
4564 eval "$ac_cv_use_dynlib"
4565 if test "$no_cache" != 1; then
4566 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4567 fi
4568
4569 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4570 echo "$as_me:$LINENO: result: yes" >&5
4571echo "${ECHO_T}yes" >&6
10f2d63a 4572 else
e6cc62c6
VS
4573 echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
10f2d63a 4575 fi
e6cc62c6 4576
10f2d63a 4577
5005acfe 4578 enablestring=
e6cc62c6
VS
4579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4580echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4581 no_cache=0
4582 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4583if test "${enable_dynamicloader+set}" = set; then
4584 enableval="$enable_dynamicloader"
e6cc62c6 4585
0b9ab0bd
RL
4586 if test "$enableval" = yes; then
4587 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4588 else
4589 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4590 fi
e6cc62c6 4591
0b9ab0bd 4592else
e6cc62c6 4593
0b9ab0bd
RL
4594 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4595 if test "x$LINE" != x ; then
4596 eval "DEFAULT_$LINE"
4597 else
4598 no_cache=1
4599 fi
4600
4601 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4602
e6cc62c6 4603fi;
0b9ab0bd
RL
4604
4605 eval "$ac_cv_use_dynamicloader"
4606 if test "$no_cache" != 1; then
4607 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4608 fi
4609
4610 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4611 echo "$as_me:$LINENO: result: yes" >&5
4612echo "${ECHO_T}yes" >&6
0b9ab0bd 4613 else
e6cc62c6
VS
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
0b9ab0bd 4616 fi
e6cc62c6 4617
0b9ab0bd 4618
5005acfe 4619 enablestring=
e6cc62c6
VS
4620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4621echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4622 no_cache=0
4623 # Check whether --enable-longlong or --disable-longlong was given.
4624if test "${enable_longlong+set}" = set; then
4625 enableval="$enable_longlong"
e6cc62c6 4626
10f2d63a
VZ
4627 if test "$enableval" = yes; then
4628 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4629 else
4630 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4631 fi
e6cc62c6 4632
10f2d63a 4633else
e6cc62c6 4634
10f2d63a
VZ
4635 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4636 if test "x$LINE" != x ; then
4637 eval "DEFAULT_$LINE"
4638 else
4639 no_cache=1
4640 fi
4641
4642 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4643
e6cc62c6 4644fi;
10f2d63a
VZ
4645
4646 eval "$ac_cv_use_longlong"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4652 echo "$as_me:$LINENO: result: yes" >&5
4653echo "${ECHO_T}yes" >&6
10f2d63a 4654 else
e6cc62c6
VS
4655 echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6
10f2d63a 4657 fi
e6cc62c6 4658
10f2d63a 4659
5005acfe 4660 enablestring=
e6cc62c6
VS
4661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4662echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4663 no_cache=0
4664 # Check whether --enable-geometry or --disable-geometry was given.
4665if test "${enable_geometry+set}" = set; then
4666 enableval="$enable_geometry"
e6cc62c6 4667
e8f65ba6
RR
4668 if test "$enableval" = yes; then
4669 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4670 else
4671 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4672 fi
e6cc62c6 4673
e8f65ba6 4674else
e6cc62c6 4675
e8f65ba6
RR
4676 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4677 if test "x$LINE" != x ; then
4678 eval "DEFAULT_$LINE"
4679 else
4680 no_cache=1
4681 fi
4682
4683 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4684
e6cc62c6 4685fi;
e8f65ba6
RR
4686
4687 eval "$ac_cv_use_geometry"
4688 if test "$no_cache" != 1; then
4689 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4690 fi
4691
4692 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4693 echo "$as_me:$LINENO: result: yes" >&5
4694echo "${ECHO_T}yes" >&6
e8f65ba6 4695 else
e6cc62c6
VS
4696 echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6
e8f65ba6 4698 fi
e6cc62c6 4699
e8f65ba6 4700
5005acfe 4701 enablestring=
e6cc62c6
VS
4702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4703echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4704 no_cache=0
4705 # Check whether --enable-log or --disable-log was given.
4706if test "${enable_log+set}" = set; then
4707 enableval="$enable_log"
e6cc62c6 4708
10f2d63a
VZ
4709 if test "$enableval" = yes; then
4710 ac_cv_use_log='wxUSE_LOG=yes'
4711 else
4712 ac_cv_use_log='wxUSE_LOG=no'
4713 fi
e6cc62c6 4714
10f2d63a 4715else
e6cc62c6 4716
10f2d63a
VZ
4717 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4718 if test "x$LINE" != x ; then
4719 eval "DEFAULT_$LINE"
4720 else
4721 no_cache=1
4722 fi
4723
4724 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4725
e6cc62c6 4726fi;
10f2d63a
VZ
4727
4728 eval "$ac_cv_use_log"
4729 if test "$no_cache" != 1; then
4730 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4731 fi
4732
4733 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4734 echo "$as_me:$LINENO: result: yes" >&5
4735echo "${ECHO_T}yes" >&6
10f2d63a 4736 else
e6cc62c6
VS
4737 echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6
10f2d63a 4739 fi
e6cc62c6 4740
10f2d63a 4741
5005acfe 4742 enablestring=
e6cc62c6
VS
4743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4744echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4745 no_cache=0
4746 # Check whether --enable-streams or --disable-streams was given.
4747if test "${enable_streams+set}" = set; then
4748 enableval="$enable_streams"
e6cc62c6 4749
10f2d63a
VZ
4750 if test "$enableval" = yes; then
4751 ac_cv_use_streams='wxUSE_STREAMS=yes'
4752 else
4753 ac_cv_use_streams='wxUSE_STREAMS=no'
4754 fi
e6cc62c6 4755
10f2d63a 4756else
e6cc62c6 4757
10f2d63a
VZ
4758 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4759 if test "x$LINE" != x ; then
4760 eval "DEFAULT_$LINE"
4761 else
4762 no_cache=1
4763 fi
4764
4765 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4766
e6cc62c6 4767fi;
10f2d63a
VZ
4768
4769 eval "$ac_cv_use_streams"
4770 if test "$no_cache" != 1; then
4771 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4772 fi
4773
4774 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4775 echo "$as_me:$LINENO: result: yes" >&5
4776echo "${ECHO_T}yes" >&6
10f2d63a 4777 else
e6cc62c6
VS
4778 echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6
10f2d63a 4780 fi
e6cc62c6 4781
10f2d63a 4782
5005acfe 4783 enablestring=
e6cc62c6
VS
4784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4785echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4786 no_cache=0
4787 # Check whether --enable-file or --disable-file was given.
4788if test "${enable_file+set}" = set; then
4789 enableval="$enable_file"
e6cc62c6 4790
10f2d63a
VZ
4791 if test "$enableval" = yes; then
4792 ac_cv_use_file='wxUSE_FILE=yes'
4793 else
4794 ac_cv_use_file='wxUSE_FILE=no'
4795 fi
e6cc62c6 4796
10f2d63a 4797else
e6cc62c6 4798
10f2d63a
VZ
4799 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4800 if test "x$LINE" != x ; then
4801 eval "DEFAULT_$LINE"
4802 else
4803 no_cache=1
4804 fi
4805
4806 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4807
e6cc62c6 4808fi;
10f2d63a
VZ
4809
4810 eval "$ac_cv_use_file"
4811 if test "$no_cache" != 1; then
4812 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4813 fi
4814
4815 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4816 echo "$as_me:$LINENO: result: yes" >&5
4817echo "${ECHO_T}yes" >&6
10f2d63a 4818 else
e6cc62c6
VS
4819 echo "$as_me:$LINENO: result: no" >&5
4820echo "${ECHO_T}no" >&6
10f2d63a 4821 fi
e6cc62c6 4822
10f2d63a 4823
5005acfe 4824 enablestring=
e6cc62c6
VS
4825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4826echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4827 no_cache=0
1e6feb95
VZ
4828 # Check whether --enable-ffile or --disable-ffile was given.
4829if test "${enable_ffile+set}" = set; then
4830 enableval="$enable_ffile"
e6cc62c6 4831
10f2d63a 4832 if test "$enableval" = yes; then
1e6feb95 4833 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4834 else
1e6feb95 4835 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4836 fi
e6cc62c6 4837
10f2d63a 4838else
e6cc62c6 4839
1e6feb95 4840 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4841 if test "x$LINE" != x ; then
4842 eval "DEFAULT_$LINE"
4843 else
4844 no_cache=1
4845 fi
4846
1e6feb95 4847 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4848
e6cc62c6 4849fi;
10f2d63a 4850
1e6feb95 4851 eval "$ac_cv_use_ffile"
10f2d63a 4852 if test "$no_cache" != 1; then
1e6feb95 4853 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4854 fi
4855
1e6feb95 4856 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4857 echo "$as_me:$LINENO: result: yes" >&5
4858echo "${ECHO_T}yes" >&6
10f2d63a 4859 else
e6cc62c6
VS
4860 echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6
10f2d63a 4862 fi
e6cc62c6 4863
10f2d63a 4864
5005acfe 4865 enablestring=
e6cc62c6
VS
4866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4867echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4868 no_cache=0
4869 # Check whether --enable-textbuf or --disable-textbuf was given.
4870if test "${enable_textbuf+set}" = set; then
4871 enableval="$enable_textbuf"
e6cc62c6 4872
a3a584a7
VZ
4873 if test "$enableval" = yes; then
4874 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4875 else
4876 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4877 fi
e6cc62c6 4878
a3a584a7 4879else
e6cc62c6 4880
a3a584a7
VZ
4881 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4882 if test "x$LINE" != x ; then
4883 eval "DEFAULT_$LINE"
4884 else
4885 no_cache=1
4886 fi
4887
4888 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4889
e6cc62c6 4890fi;
a3a584a7
VZ
4891
4892 eval "$ac_cv_use_textbuf"
4893 if test "$no_cache" != 1; then
4894 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4895 fi
4896
4897 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4898 echo "$as_me:$LINENO: result: yes" >&5
4899echo "${ECHO_T}yes" >&6
a3a584a7 4900 else
e6cc62c6
VS
4901 echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6
a3a584a7 4903 fi
e6cc62c6 4904
a3a584a7 4905
5005acfe 4906 enablestring=
e6cc62c6
VS
4907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4908echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4909 no_cache=0
1e6feb95
VZ
4910 # Check whether --enable-textfile or --disable-textfile was given.
4911if test "${enable_textfile+set}" = set; then
4912 enableval="$enable_textfile"
e6cc62c6 4913
10f2d63a 4914 if test "$enableval" = yes; then
1e6feb95 4915 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4916 else
1e6feb95 4917 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4918 fi
e6cc62c6 4919
10f2d63a 4920else
e6cc62c6 4921
1e6feb95 4922 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4923 if test "x$LINE" != x ; then
4924 eval "DEFAULT_$LINE"
4925 else
4926 no_cache=1
4927 fi
4928
1e6feb95 4929 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4930
e6cc62c6 4931fi;
10f2d63a 4932
1e6feb95 4933 eval "$ac_cv_use_textfile"
10f2d63a 4934 if test "$no_cache" != 1; then
1e6feb95 4935 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4936 fi
4937
1e6feb95 4938 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4939 echo "$as_me:$LINENO: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
10f2d63a 4941 else
e6cc62c6
VS
4942 echo "$as_me:$LINENO: result: no" >&5
4943echo "${ECHO_T}no" >&6
10f2d63a 4944 fi
e6cc62c6 4945
10f2d63a 4946
5005acfe 4947 enablestring=
e6cc62c6
VS
4948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4949echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4950 no_cache=0
1e6feb95
VZ
4951 # Check whether --enable-fontmap or --disable-fontmap was given.
4952if test "${enable_fontmap+set}" = set; then
4953 enableval="$enable_fontmap"
e6cc62c6 4954
10f2d63a 4955 if test "$enableval" = yes; then
1e6feb95 4956 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4957 else
1e6feb95 4958 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4959 fi
e6cc62c6 4960
10f2d63a 4961else
e6cc62c6 4962
1e6feb95 4963 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4964 if test "x$LINE" != x ; then
4965 eval "DEFAULT_$LINE"
4966 else
4967 no_cache=1
4968 fi
4969
1e6feb95 4970 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4971
e6cc62c6 4972fi;
10f2d63a 4973
1e6feb95 4974 eval "$ac_cv_use_fontmap"
10f2d63a 4975 if test "$no_cache" != 1; then
1e6feb95 4976 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4977 fi
4978
1e6feb95 4979 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4980 echo "$as_me:$LINENO: result: yes" >&5
4981echo "${ECHO_T}yes" >&6
10f2d63a 4982 else
e6cc62c6
VS
4983 echo "$as_me:$LINENO: result: no" >&5
4984echo "${ECHO_T}no" >&6
10f2d63a 4985 fi
e6cc62c6 4986
10f2d63a 4987
5005acfe 4988 enablestring=
e6cc62c6
VS
4989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4990echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4991 no_cache=0
1e6feb95
VZ
4992 # Check whether --enable-unicode or --disable-unicode was given.
4993if test "${enable_unicode+set}" = set; then
4994 enableval="$enable_unicode"
e6cc62c6 4995
1e6feb95
VZ
4996 if test "$enableval" = yes; then
4997 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4998 else
4999 ac_cv_use_unicode='wxUSE_UNICODE=no'
5000 fi
e6cc62c6 5001
1e6feb95 5002else
e6cc62c6 5003
1e6feb95
VZ
5004 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5005 if test "x$LINE" != x ; then
5006 eval "DEFAULT_$LINE"
5007 else
5008 no_cache=1
5009 fi
5010
5011 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 5012
e6cc62c6 5013fi;
1e6feb95
VZ
5014
5015 eval "$ac_cv_use_unicode"
5016 if test "$no_cache" != 1; then
5017 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5018 fi
5019
5020 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5021 echo "$as_me:$LINENO: result: yes" >&5
5022echo "${ECHO_T}yes" >&6
1e6feb95 5023 else
e6cc62c6
VS
5024 echo "$as_me:$LINENO: result: no" >&5
5025echo "${ECHO_T}no" >&6
1e6feb95 5026 fi
e6cc62c6 5027
1e6feb95 5028
5005acfe 5029 enablestring=
e6cc62c6
VS
5030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5031echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5032 no_cache=0
5033 # Check whether --enable-mslu or --disable-mslu was given.
5034if test "${enable_mslu+set}" = set; then
5035 enableval="$enable_mslu"
e6cc62c6 5036
a72a4bfa
VS
5037 if test "$enableval" = yes; then
5038 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5039 else
5040 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5041 fi
e6cc62c6 5042
a72a4bfa 5043else
e6cc62c6 5044
a72a4bfa
VS
5045 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5046 if test "x$LINE" != x ; then
5047 eval "DEFAULT_$LINE"
5048 else
5049 no_cache=1
5050 fi
5051
5052 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5053
e6cc62c6 5054fi;
a72a4bfa
VS
5055
5056 eval "$ac_cv_use_mslu"
5057 if test "$no_cache" != 1; then
5058 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5059 fi
5060
5061 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5062 echo "$as_me:$LINENO: result: yes" >&5
5063echo "${ECHO_T}yes" >&6
a72a4bfa 5064 else
e6cc62c6
VS
5065 echo "$as_me:$LINENO: result: no" >&5
5066echo "${ECHO_T}no" >&6
a72a4bfa 5067 fi
e6cc62c6 5068
a72a4bfa 5069
5005acfe 5070 enablestring=
e6cc62c6
VS
5071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5072echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5073 no_cache=0
5074 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5075if test "${enable_wxprintfv+set}" = set; then
5076 enableval="$enable_wxprintfv"
e6cc62c6 5077
1e6feb95 5078 if test "$enableval" = yes; then
10f2d63a
VZ
5079 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5080 else
5081 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5082 fi
e6cc62c6 5083
10f2d63a 5084else
e6cc62c6 5085
10f2d63a
VZ
5086 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5087 if test "x$LINE" != x ; then
5088 eval "DEFAULT_$LINE"
5089 else
5090 no_cache=1
5091 fi
5092
5093 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5094
e6cc62c6 5095fi;
10f2d63a
VZ
5096
5097 eval "$ac_cv_use_wxprintfv"
5098 if test "$no_cache" != 1; then
5099 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5100 fi
5101
5102 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5103 echo "$as_me:$LINENO: result: yes" >&5
5104echo "${ECHO_T}yes" >&6
10f2d63a 5105 else
e6cc62c6
VS
5106 echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
10f2d63a 5108 fi
e6cc62c6 5109
10f2d63a 5110
5005acfe 5111 enablestring=
e6cc62c6
VS
5112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5113echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5114 no_cache=0
5115 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5116if test "${enable_std_iostreams+set}" = set; then
5117 enableval="$enable_std_iostreams"
e6cc62c6 5118
10f2d63a
VZ
5119 if test "$enableval" = yes; then
5120 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5121 else
5122 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5123 fi
e6cc62c6 5124
10f2d63a 5125else
e6cc62c6 5126
10f2d63a
VZ
5127 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5128 if test "x$LINE" != x ; then
5129 eval "DEFAULT_$LINE"
5130 else
5131 no_cache=1
5132 fi
5133
5134 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5135
e6cc62c6 5136fi;
10f2d63a
VZ
5137
5138 eval "$ac_cv_use_std_iostreams"
5139 if test "$no_cache" != 1; then
5140 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5141 fi
5142
5143 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5144 echo "$as_me:$LINENO: result: yes" >&5
5145echo "${ECHO_T}yes" >&6
10f2d63a 5146 else
e6cc62c6
VS
5147 echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
10f2d63a 5149 fi
e6cc62c6 5150
10f2d63a 5151
5005acfe 5152 enablestring=
e6cc62c6
VS
5153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5154echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5155 no_cache=0
5156 # Check whether --enable-filesystem or --disable-filesystem was given.
5157if test "${enable_filesystem+set}" = set; then
5158 enableval="$enable_filesystem"
e6cc62c6 5159
24528b0c
VS
5160 if test "$enableval" = yes; then
5161 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5162 else
5163 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5164 fi
e6cc62c6 5165
24528b0c 5166else
e6cc62c6 5167
24528b0c
VS
5168 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5169 if test "x$LINE" != x ; then
5170 eval "DEFAULT_$LINE"
5171 else
5172 no_cache=1
5173 fi
5174
5175 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5176
e6cc62c6 5177fi;
24528b0c
VS
5178
5179 eval "$ac_cv_use_filesystem"
5180 if test "$no_cache" != 1; then
5181 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5182 fi
5183
5184 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5185 echo "$as_me:$LINENO: result: yes" >&5
5186echo "${ECHO_T}yes" >&6
24528b0c 5187 else
e6cc62c6
VS
5188 echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
24528b0c 5190 fi
e6cc62c6 5191
24528b0c 5192
5005acfe 5193 enablestring=
e6cc62c6
VS
5194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5195echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5196 no_cache=0
5197 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5198if test "${enable_fs_inet+set}" = set; then
5199 enableval="$enable_fs_inet"
e6cc62c6 5200
10f2d63a
VZ
5201 if test "$enableval" = yes; then
5202 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5203 else
5204 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5205 fi
e6cc62c6 5206
10f2d63a 5207else
e6cc62c6 5208
10f2d63a
VZ
5209 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5217
e6cc62c6 5218fi;
10f2d63a
VZ
5219
5220 eval "$ac_cv_use_fs_inet"
5221 if test "$no_cache" != 1; then
5222 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5223 fi
5224
5225 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5226 echo "$as_me:$LINENO: result: yes" >&5
5227echo "${ECHO_T}yes" >&6
10f2d63a 5228 else
e6cc62c6
VS
5229 echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
10f2d63a 5231 fi
e6cc62c6 5232
10f2d63a 5233
5005acfe 5234 enablestring=
e6cc62c6
VS
5235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5236echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5237 no_cache=0
5238 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5239if test "${enable_fs_zip+set}" = set; then
5240 enableval="$enable_fs_zip"
e6cc62c6 5241
10f2d63a
VZ
5242 if test "$enableval" = yes; then
5243 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5244 else
5245 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5246 fi
e6cc62c6 5247
10f2d63a 5248else
e6cc62c6 5249
10f2d63a
VZ
5250 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5251 if test "x$LINE" != x ; then
5252 eval "DEFAULT_$LINE"
5253 else
5254 no_cache=1
5255 fi
5256
5257 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5258
e6cc62c6 5259fi;
10f2d63a
VZ
5260
5261 eval "$ac_cv_use_fs_zip"
5262 if test "$no_cache" != 1; then
5263 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5264 fi
5265
5266 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5267 echo "$as_me:$LINENO: result: yes" >&5
5268echo "${ECHO_T}yes" >&6
10f2d63a 5269 else
e6cc62c6
VS
5270 echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
10f2d63a 5272 fi
e6cc62c6 5273
10f2d63a 5274
5005acfe 5275 enablestring=
e6cc62c6
VS
5276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5277echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5278 no_cache=0
5279 # Check whether --enable-zipstream or --disable-zipstream was given.
5280if test "${enable_zipstream+set}" = set; then
5281 enableval="$enable_zipstream"
e6cc62c6 5282
10f2d63a
VZ
5283 if test "$enableval" = yes; then
5284 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5285 else
5286 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5287 fi
e6cc62c6 5288
10f2d63a 5289else
e6cc62c6 5290
10f2d63a
VZ
5291 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5299
e6cc62c6 5300fi;
10f2d63a
VZ
5301
5302 eval "$ac_cv_use_zipstream"
5303 if test "$no_cache" != 1; then
5304 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5305 fi
5306
5307 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5308 echo "$as_me:$LINENO: result: yes" >&5
5309echo "${ECHO_T}yes" >&6
10f2d63a 5310 else
e6cc62c6
VS
5311 echo "$as_me:$LINENO: result: no" >&5
5312echo "${ECHO_T}no" >&6
10f2d63a 5313 fi
e6cc62c6 5314
8284b0c5 5315
52127426 5316
5005acfe 5317 enablestring=
e6cc62c6
VS
5318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5319echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5320 no_cache=0
5321 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5322if test "${enable_catch_segvs+set}" = set; then
5323 enableval="$enable_catch_segvs"
e6cc62c6 5324
eb4efbdc
VZ
5325 if test "$enableval" = yes; then
5326 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5327 else
5328 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5329 fi
e6cc62c6 5330
eb4efbdc 5331else
e6cc62c6 5332
eb4efbdc
VZ
5333 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5341
e6cc62c6 5342fi;
eb4efbdc
VZ
5343
5344 eval "$ac_cv_use_catch_segvs"
5345 if test "$no_cache" != 1; then
5346 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5347 fi
5348
5349 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5350 echo "$as_me:$LINENO: result: yes" >&5
5351echo "${ECHO_T}yes" >&6
eb4efbdc 5352 else
e6cc62c6
VS
5353 echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
eb4efbdc 5355 fi
e6cc62c6 5356
eb4efbdc 5357
5005acfe 5358 enablestring=
e6cc62c6
VS
5359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5360echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5361 no_cache=0
5362 # Check whether --enable-snglinst or --disable-snglinst was given.
5363if test "${enable_snglinst+set}" = set; then
5364 enableval="$enable_snglinst"
e6cc62c6 5365
4f3c5f06
VZ
5366 if test "$enableval" = yes; then
5367 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5368 else
5369 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5370 fi
e6cc62c6 5371
4f3c5f06 5372else
e6cc62c6 5373
4f3c5f06
VZ
5374 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 else
5378 no_cache=1
5379 fi
5380
5381 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5382
e6cc62c6 5383fi;
4f3c5f06
VZ
5384
5385 eval "$ac_cv_use_snglinst"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5391 echo "$as_me:$LINENO: result: yes" >&5
5392echo "${ECHO_T}yes" >&6
4f3c5f06 5393 else
e6cc62c6
VS
5394 echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6
4f3c5f06 5396 fi
e6cc62c6 5397
52127426 5398
8284b0c5 5399
5005acfe 5400 enablestring=
e6cc62c6
VS
5401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5402echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5403 no_cache=0
5404 # Check whether --enable-mimetype or --disable-mimetype was given.
5405if test "${enable_mimetype+set}" = set; then
5406 enableval="$enable_mimetype"
e6cc62c6 5407
1e6feb95
VZ
5408 if test "$enableval" = yes; then
5409 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5410 else
5411 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5412 fi
e6cc62c6 5413
1e6feb95 5414else
e6cc62c6 5415
1e6feb95
VZ
5416 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5417 if test "x$LINE" != x ; then
5418 eval "DEFAULT_$LINE"
5419 else
5420 no_cache=1
5421 fi
5422
5423 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5424
e6cc62c6 5425fi;
1e6feb95
VZ
5426
5427 eval "$ac_cv_use_mimetype"
5428 if test "$no_cache" != 1; then
5429 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5430 fi
5431
5432 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5433 echo "$as_me:$LINENO: result: yes" >&5
5434echo "${ECHO_T}yes" >&6
1e6feb95 5435 else
e6cc62c6
VS
5436 echo "$as_me:$LINENO: result: no" >&5
5437echo "${ECHO_T}no" >&6
1e6feb95 5438 fi
e6cc62c6 5439
1e6feb95 5440
5005acfe 5441 enablestring=
e6cc62c6
VS
5442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5443echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5444 no_cache=0
5445 # Check whether --enable-system_options or --disable-system_options was given.
5446if test "${enable_system_options+set}" = set; then
5447 enableval="$enable_system_options"
e6cc62c6 5448
3e44f09d
VZ
5449 if test "$enableval" = yes; then
5450 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5451 else
5452 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5453 fi
e6cc62c6 5454
3e44f09d 5455else
e6cc62c6 5456
3e44f09d
VZ
5457 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5458 if test "x$LINE" != x ; then
5459 eval "DEFAULT_$LINE"
5460 else
5461 no_cache=1
5462 fi
5463
5464 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5465
e6cc62c6 5466fi;
3e44f09d
VZ
5467
5468 eval "$ac_cv_use_system_options"
5469 if test "$no_cache" != 1; then
5470 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5471 fi
5472
5473 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5474 echo "$as_me:$LINENO: result: yes" >&5
5475echo "${ECHO_T}yes" >&6
3e44f09d 5476 else
e6cc62c6
VS
5477 echo "$as_me:$LINENO: result: no" >&5
5478echo "${ECHO_T}no" >&6
3e44f09d 5479 fi
e6cc62c6 5480
8284b0c5 5481
52127426 5482
5005acfe 5483 enablestring=
e6cc62c6
VS
5484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5485echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5486 no_cache=0
5487 # Check whether --enable-url or --disable-url was given.
5488if test "${enable_url+set}" = set; then
5489 enableval="$enable_url"
e6cc62c6 5490
4cdb0ab0
VS
5491 if test "$enableval" = yes; then
5492 ac_cv_use_url='wxUSE_URL=yes'
5493 else
5494 ac_cv_use_url='wxUSE_URL=no'
5495 fi
e6cc62c6 5496
4cdb0ab0 5497else
e6cc62c6 5498
4cdb0ab0
VS
5499 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5500 if test "x$LINE" != x ; then
5501 eval "DEFAULT_$LINE"
5502 else
5503 no_cache=1
5504 fi
5505
5506 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5507
e6cc62c6 5508fi;
4cdb0ab0
VS
5509
5510 eval "$ac_cv_use_url"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5516 echo "$as_me:$LINENO: result: yes" >&5
5517echo "${ECHO_T}yes" >&6
4cdb0ab0 5518 else
e6cc62c6
VS
5519 echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6
4cdb0ab0 5521 fi
e6cc62c6 5522
4cdb0ab0 5523
5005acfe 5524 enablestring=
e6cc62c6
VS
5525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5526echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5527 no_cache=0
5528 # Check whether --enable-protocol or --disable-protocol was given.
5529if test "${enable_protocol+set}" = set; then
5530 enableval="$enable_protocol"
e6cc62c6 5531
4cdb0ab0
VS
5532 if test "$enableval" = yes; then
5533 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5534 else
5535 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5536 fi
e6cc62c6 5537
4cdb0ab0 5538else
e6cc62c6 5539
4cdb0ab0
VS
5540 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5541 if test "x$LINE" != x ; then
5542 eval "DEFAULT_$LINE"
5543 else
5544 no_cache=1
5545 fi
5546
5547 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5548
e6cc62c6 5549fi;
4cdb0ab0
VS
5550
5551 eval "$ac_cv_use_protocol"
5552 if test "$no_cache" != 1; then
5553 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5554 fi
5555
5556 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5557 echo "$as_me:$LINENO: result: yes" >&5
5558echo "${ECHO_T}yes" >&6
4cdb0ab0 5559 else
e6cc62c6
VS
5560 echo "$as_me:$LINENO: result: no" >&5
5561echo "${ECHO_T}no" >&6
4cdb0ab0 5562 fi
e6cc62c6 5563
4cdb0ab0 5564
5005acfe 5565 enablestring=
e6cc62c6
VS
5566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5567echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5568 no_cache=0
5569 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5570if test "${enable_protocol_http+set}" = set; then
5571 enableval="$enable_protocol_http"
e6cc62c6 5572
4cdb0ab0
VS
5573 if test "$enableval" = yes; then
5574 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5575 else
5576 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5577 fi
e6cc62c6 5578
4cdb0ab0 5579else
e6cc62c6 5580
4cdb0ab0
VS
5581 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5589
e6cc62c6 5590fi;
4cdb0ab0
VS
5591
5592 eval "$ac_cv_use_protocol_http"
5593 if test "$no_cache" != 1; then
5594 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5595 fi
5596
5597 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5598 echo "$as_me:$LINENO: result: yes" >&5
5599echo "${ECHO_T}yes" >&6
4cdb0ab0 5600 else
e6cc62c6
VS
5601 echo "$as_me:$LINENO: result: no" >&5
5602echo "${ECHO_T}no" >&6
4cdb0ab0 5603 fi
e6cc62c6 5604
4cdb0ab0 5605
5005acfe 5606 enablestring=
e6cc62c6
VS
5607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5608echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5609 no_cache=0
5610 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5611if test "${enable_protocol_ftp+set}" = set; then
5612 enableval="$enable_protocol_ftp"
e6cc62c6 5613
4cdb0ab0
VS
5614 if test "$enableval" = yes; then
5615 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5616 else
5617 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5618 fi
e6cc62c6 5619
4cdb0ab0 5620else
e6cc62c6 5621
4cdb0ab0
VS
5622 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5623 if test "x$LINE" != x ; then
5624 eval "DEFAULT_$LINE"
5625 else
5626 no_cache=1
5627 fi
5628
5629 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5630
e6cc62c6 5631fi;
4cdb0ab0
VS
5632
5633 eval "$ac_cv_use_protocol_ftp"
5634 if test "$no_cache" != 1; then
5635 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5636 fi
5637
5638 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5639 echo "$as_me:$LINENO: result: yes" >&5
5640echo "${ECHO_T}yes" >&6
4cdb0ab0 5641 else
e6cc62c6
VS
5642 echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
4cdb0ab0 5644 fi
e6cc62c6 5645
4cdb0ab0 5646
5005acfe 5647 enablestring=
e6cc62c6
VS
5648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5649echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5650 no_cache=0
5651 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5652if test "${enable_protocol_file+set}" = set; then
5653 enableval="$enable_protocol_file"
e6cc62c6 5654
4cdb0ab0
VS
5655 if test "$enableval" = yes; then
5656 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5657 else
5658 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5659 fi
e6cc62c6 5660
4cdb0ab0 5661else
e6cc62c6 5662
4cdb0ab0
VS
5663 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5671
e6cc62c6 5672fi;
4cdb0ab0
VS
5673
5674 eval "$ac_cv_use_protocol_file"
5675 if test "$no_cache" != 1; then
5676 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5677 fi
5678
5679 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5680 echo "$as_me:$LINENO: result: yes" >&5
5681echo "${ECHO_T}yes" >&6
4cdb0ab0 5682 else
e6cc62c6
VS
5683 echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
4cdb0ab0 5685 fi
e6cc62c6 5686
52127426 5687
8284b0c5
MB
5688
5689
5690
5005acfe 5691 enablestring=
e6cc62c6
VS
5692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5693echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5694 no_cache=0
5695 # Check whether --enable-threads or --disable-threads was given.
5696if test "${enable_threads+set}" = set; then
5697 enableval="$enable_threads"
e6cc62c6 5698
10f2d63a
VZ
5699 if test "$enableval" = yes; then
5700 ac_cv_use_threads='wxUSE_THREADS=yes'
5701 else
5702 ac_cv_use_threads='wxUSE_THREADS=no'
5703 fi
e6cc62c6 5704
10f2d63a 5705else
e6cc62c6 5706
10f2d63a
VZ
5707 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5708 if test "x$LINE" != x ; then
5709 eval "DEFAULT_$LINE"
5710 else
5711 no_cache=1
5712 fi
5713
5714 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5715
e6cc62c6 5716fi;
10f2d63a
VZ
5717
5718 eval "$ac_cv_use_threads"
5719 if test "$no_cache" != 1; then
5720 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5721 fi
5722
5723 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5724 echo "$as_me:$LINENO: result: yes" >&5
5725echo "${ECHO_T}yes" >&6
10f2d63a 5726 else
e6cc62c6
VS
5727 echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
10f2d63a 5729 fi
e6cc62c6 5730
10f2d63a 5731
b12915c1
VZ
5732if test "$wxUSE_GUI" = "yes"; then
5733
8284b0c5
MB
5734
5735
5005acfe 5736 enablestring=
e6cc62c6
VS
5737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5738echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5739 no_cache=0
5740 # Check whether --enable-docview or --disable-docview was given.
5741if test "${enable_docview+set}" = set; then
5742 enableval="$enable_docview"
e6cc62c6 5743
10f2d63a
VZ
5744 if test "$enableval" = yes; then
5745 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5746 else
5747 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5748 fi
e6cc62c6 5749
10f2d63a 5750else
e6cc62c6 5751
10f2d63a
VZ
5752 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5753 if test "x$LINE" != x ; then
5754 eval "DEFAULT_$LINE"
5755 else
5756 no_cache=1
5757 fi
5758
5759 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5760
e6cc62c6 5761fi;
10f2d63a
VZ
5762
5763 eval "$ac_cv_use_docview"
5764 if test "$no_cache" != 1; then
5765 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5766 fi
5767
5768 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5769 echo "$as_me:$LINENO: result: yes" >&5
5770echo "${ECHO_T}yes" >&6
10f2d63a 5771 else
e6cc62c6
VS
5772 echo "$as_me:$LINENO: result: no" >&5
5773echo "${ECHO_T}no" >&6
10f2d63a 5774 fi
e6cc62c6 5775
10f2d63a 5776
5005acfe 5777 enablestring=
e6cc62c6
VS
5778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5779echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5780 no_cache=0
5781 # Check whether --enable-help or --disable-help was given.
5782if test "${enable_help+set}" = set; then
5783 enableval="$enable_help"
e6cc62c6 5784
10f2d63a
VZ
5785 if test "$enableval" = yes; then
5786 ac_cv_use_help='wxUSE_HELP=yes'
5787 else
5788 ac_cv_use_help='wxUSE_HELP=no'
5789 fi
e6cc62c6 5790
10f2d63a 5791else
e6cc62c6 5792
10f2d63a
VZ
5793 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5794 if test "x$LINE" != x ; then
5795 eval "DEFAULT_$LINE"
5796 else
5797 no_cache=1
5798 fi
5799
5800 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5801
e6cc62c6 5802fi;
10f2d63a
VZ
5803
5804 eval "$ac_cv_use_help"
5805 if test "$no_cache" != 1; then
5806 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5807 fi
5808
5809 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5810 echo "$as_me:$LINENO: result: yes" >&5
5811echo "${ECHO_T}yes" >&6
10f2d63a 5812 else
e6cc62c6
VS
5813 echo "$as_me:$LINENO: result: no" >&5
5814echo "${ECHO_T}no" >&6
10f2d63a 5815 fi
e6cc62c6 5816
10f2d63a 5817
5005acfe 5818 enablestring=
e6cc62c6
VS
5819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5820echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5821 no_cache=0
5822 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5823if test "${enable_mshtmlhelp+set}" = set; then
5824 enableval="$enable_mshtmlhelp"
e6cc62c6 5825
29fd3c0c
VS
5826 if test "$enableval" = yes; then
5827 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5828 else
5829 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5830 fi
e6cc62c6 5831
29fd3c0c 5832else
e6cc62c6 5833
29fd3c0c
VS
5834 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5835 if test "x$LINE" != x ; then
5836 eval "DEFAULT_$LINE"
5837 else
5838 no_cache=1
5839 fi
5840
5841 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5842
e6cc62c6 5843fi;
29fd3c0c
VS
5844
5845 eval "$ac_cv_use_mshtmlhelp"
5846 if test "$no_cache" != 1; then
5847 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5848 fi
5849
5850 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5851 echo "$as_me:$LINENO: result: yes" >&5
5852echo "${ECHO_T}yes" >&6
29fd3c0c 5853 else
e6cc62c6
VS
5854 echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6
29fd3c0c 5856 fi
e6cc62c6 5857
29fd3c0c 5858
5005acfe 5859 enablestring=
e6cc62c6
VS
5860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5861echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5862 no_cache=0
5863 # Check whether --enable-html or --disable-html was given.
5864if test "${enable_html+set}" = set; then
5865 enableval="$enable_html"
e6cc62c6 5866
3379ed37
VZ
5867 if test "$enableval" = yes; then
5868 ac_cv_use_html='wxUSE_HTML=yes'
5869 else
5870 ac_cv_use_html='wxUSE_HTML=no'
5871 fi
e6cc62c6 5872
3379ed37 5873else
e6cc62c6 5874
3379ed37
VZ
5875 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5876 if test "x$LINE" != x ; then
5877 eval "DEFAULT_$LINE"
5878 else
5879 no_cache=1
5880 fi
5881
5882 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5883
e6cc62c6 5884fi;
3379ed37
VZ
5885
5886 eval "$ac_cv_use_html"
5887 if test "$no_cache" != 1; then
5888 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5889 fi
5890
5891 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5892 echo "$as_me:$LINENO: result: yes" >&5
5893echo "${ECHO_T}yes" >&6
3379ed37 5894 else
e6cc62c6
VS
5895 echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6
3379ed37 5897 fi
e6cc62c6 5898
3379ed37 5899
5005acfe 5900 enablestring=
e6cc62c6
VS
5901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5902echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5903 no_cache=0
5904 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5905if test "${enable_htmlhelp+set}" = set; then
5906 enableval="$enable_htmlhelp"
e6cc62c6 5907
3379ed37
VZ
5908 if test "$enableval" = yes; then
5909 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5910 else
5911 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5912 fi
e6cc62c6 5913
3379ed37 5914else
e6cc62c6 5915
3379ed37
VZ
5916 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5917 if test "x$LINE" != x ; then
5918 eval "DEFAULT_$LINE"
5919 else
5920 no_cache=1
5921 fi
5922
5923 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5924
e6cc62c6 5925fi;
3379ed37
VZ
5926
5927 eval "$ac_cv_use_htmlhelp"
5928 if test "$no_cache" != 1; then
5929 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5930 fi
5931
5932 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5933 echo "$as_me:$LINENO: result: yes" >&5
5934echo "${ECHO_T}yes" >&6
3379ed37 5935 else
e6cc62c6
VS
5936 echo "$as_me:$LINENO: result: no" >&5
5937echo "${ECHO_T}no" >&6
3379ed37 5938 fi
e6cc62c6 5939
3379ed37 5940
5005acfe 5941 enablestring=
e6cc62c6
VS
5942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5943echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5944 no_cache=0
5945 # Check whether --enable-constraints or --disable-constraints was given.
5946if test "${enable_constraints+set}" = set; then
5947 enableval="$enable_constraints"
e6cc62c6 5948
10f2d63a
VZ
5949 if test "$enableval" = yes; then
5950 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5951 else
5952 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5953 fi
e6cc62c6 5954
10f2d63a 5955else
e6cc62c6 5956
10f2d63a
VZ
5957 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5958 if test "x$LINE" != x ; then
5959 eval "DEFAULT_$LINE"
5960 else
5961 no_cache=1
5962 fi
5963
5964 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5965
e6cc62c6 5966fi;
10f2d63a
VZ
5967
5968 eval "$ac_cv_use_constraints"
5969 if test "$no_cache" != 1; then
5970 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5971 fi
5972
5973 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5974 echo "$as_me:$LINENO: result: yes" >&5
5975echo "${ECHO_T}yes" >&6
10f2d63a 5976 else
e6cc62c6
VS
5977 echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6
10f2d63a 5979 fi
e6cc62c6 5980
10f2d63a 5981
5005acfe 5982 enablestring=
e6cc62c6
VS
5983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5984echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5985 no_cache=0
5986 # Check whether --enable-printarch or --disable-printarch was given.
5987if test "${enable_printarch+set}" = set; then
5988 enableval="$enable_printarch"
e6cc62c6 5989
10f2d63a
VZ
5990 if test "$enableval" = yes; then
5991 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5992 else
5993 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5994 fi
e6cc62c6 5995
10f2d63a 5996else
e6cc62c6 5997
10f2d63a
VZ
5998 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6006
e6cc62c6 6007fi;
10f2d63a
VZ
6008
6009 eval "$ac_cv_use_printarch"
6010 if test "$no_cache" != 1; then
6011 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6012 fi
6013
6014 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6015 echo "$as_me:$LINENO: result: yes" >&5
6016echo "${ECHO_T}yes" >&6
10f2d63a 6017 else
e6cc62c6
VS
6018 echo "$as_me:$LINENO: result: no" >&5
6019echo "${ECHO_T}no" >&6
10f2d63a 6020 fi
e6cc62c6 6021
10f2d63a 6022
5005acfe 6023 enablestring=
e6cc62c6
VS
6024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6025echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6026 no_cache=0
6027 # Check whether --enable-mdi or --disable-mdi was given.
6028if test "${enable_mdi+set}" = set; then
6029 enableval="$enable_mdi"
e6cc62c6 6030
10f2d63a
VZ
6031 if test "$enableval" = yes; then
6032 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6033 else
6034 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6035 fi
e6cc62c6 6036
10f2d63a 6037else
e6cc62c6 6038
10f2d63a
VZ
6039 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6040 if test "x$LINE" != x ; then
6041 eval "DEFAULT_$LINE"
6042 else
6043 no_cache=1
6044 fi
6045
6046 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6047
e6cc62c6 6048fi;
10f2d63a
VZ
6049
6050 eval "$ac_cv_use_mdi"
6051 if test "$no_cache" != 1; then
6052 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6053 fi
6054
6055 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6056 echo "$as_me:$LINENO: result: yes" >&5
6057echo "${ECHO_T}yes" >&6
10f2d63a 6058 else
e6cc62c6
VS
6059 echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6
10f2d63a 6061 fi
e6cc62c6 6062
698dcdb6 6063
5005acfe 6064 enablestring=
e6cc62c6
VS
6065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6066echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6067 no_cache=0
6068 # Check whether --enable-loggui or --disable-loggui was given.
6069if test "${enable_loggui+set}" = set; then
6070 enableval="$enable_loggui"
e6cc62c6 6071
1e6feb95
VZ
6072 if test "$enableval" = yes; then
6073 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6074 else
6075 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6076 fi
e6cc62c6 6077
1e6feb95 6078else
e6cc62c6 6079
1e6feb95
VZ
6080 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6088
e6cc62c6 6089fi;
1e6feb95
VZ
6090
6091 eval "$ac_cv_use_loggui"
6092 if test "$no_cache" != 1; then
6093 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6094 fi
6095
6096 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6097 echo "$as_me:$LINENO: result: yes" >&5
6098echo "${ECHO_T}yes" >&6
1e6feb95 6099 else
e6cc62c6
VS
6100 echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6
1e6feb95 6102 fi
e6cc62c6 6103
1e6feb95 6104
5005acfe 6105 enablestring=
e6cc62c6
VS
6106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6107echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6108 no_cache=0
6109 # Check whether --enable-logwin or --disable-logwin was given.
6110if test "${enable_logwin+set}" = set; then
6111 enableval="$enable_logwin"
e6cc62c6 6112
1e6feb95
VZ
6113 if test "$enableval" = yes; then
6114 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6115 else
6116 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6117 fi
e6cc62c6 6118
1e6feb95 6119else
e6cc62c6 6120
1e6feb95
VZ
6121 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6122 if test "x$LINE" != x ; then
6123 eval "DEFAULT_$LINE"
6124 else
6125 no_cache=1
6126 fi
6127
6128 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6129
e6cc62c6 6130fi;
1e6feb95
VZ
6131
6132 eval "$ac_cv_use_logwin"
6133 if test "$no_cache" != 1; then
6134 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6135 fi
6136
6137 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6138 echo "$as_me:$LINENO: result: yes" >&5
6139echo "${ECHO_T}yes" >&6
1e6feb95 6140 else
e6cc62c6
VS
6141 echo "$as_me:$LINENO: result: no" >&5
6142echo "${ECHO_T}no" >&6
1e6feb95 6143 fi
e6cc62c6 6144
1e6feb95 6145
5005acfe 6146 enablestring=
e6cc62c6
VS
6147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6148echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6149 no_cache=0
6150 # Check whether --enable-logdialog or --disable-logdialog was given.
6151if test "${enable_logdialog+set}" = set; then
6152 enableval="$enable_logdialog"
e6cc62c6 6153
69d27ff7
MB
6154 if test "$enableval" = yes; then
6155 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6156 else
6157 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6158 fi
e6cc62c6 6159
69d27ff7 6160else
e6cc62c6 6161
69d27ff7
MB
6162 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6170
e6cc62c6 6171fi;
69d27ff7
MB
6172
6173 eval "$ac_cv_use_logdialog"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6179 echo "$as_me:$LINENO: result: yes" >&5
6180echo "${ECHO_T}yes" >&6
69d27ff7 6181 else
e6cc62c6
VS
6182 echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6
69d27ff7 6184 fi
e6cc62c6 6185
8284b0c5 6186
52127426 6187
5005acfe 6188 enablestring=
e6cc62c6
VS
6189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6190echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6191 no_cache=0
6192 # Check whether --enable-postscript or --disable-postscript was given.
6193if test "${enable_postscript+set}" = set; then
6194 enableval="$enable_postscript"
e6cc62c6 6195
10f2d63a
VZ
6196 if test "$enableval" = yes; then
6197 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6198 else
6199 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6200 fi
e6cc62c6 6201
10f2d63a 6202else
e6cc62c6 6203
10f2d63a
VZ
6204 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6205 if test "x$LINE" != x ; then
6206 eval "DEFAULT_$LINE"
6207 else
6208 no_cache=1
6209 fi
6210
6211 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6212
e6cc62c6 6213fi;
10f2d63a
VZ
6214
6215 eval "$ac_cv_use_postscript"
6216 if test "$no_cache" != 1; then
6217 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6218 fi
6219
6220 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6221 echo "$as_me:$LINENO: result: yes" >&5
6222echo "${ECHO_T}yes" >&6
10f2d63a 6223 else
e6cc62c6
VS
6224 echo "$as_me:$LINENO: result: no" >&5
6225echo "${ECHO_T}no" >&6
10f2d63a 6226 fi
e6cc62c6 6227
8284b0c5
MB
6228
6229
52127426 6230
8284b0c5 6231
5005acfe 6232 enablestring=
e6cc62c6
VS
6233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6234echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6235 no_cache=0
3c907f20
VZ
6236 # Check whether --enable-prologio or --disable-prologio was given.
6237if test "${enable_prologio+set}" = set; then
6238 enableval="$enable_prologio"
e6cc62c6 6239
10f2d63a 6240 if test "$enableval" = yes; then
3c907f20 6241 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6242 else
3c907f20 6243 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6244 fi
e6cc62c6 6245
10f2d63a 6246else
e6cc62c6 6247
3c907f20 6248 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6249 if test "x$LINE" != x ; then
6250 eval "DEFAULT_$LINE"
6251 else
6252 no_cache=1
6253 fi
6254
3c907f20 6255 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6256
e6cc62c6 6257fi;
10f2d63a 6258
3c907f20 6259 eval "$ac_cv_use_prologio"
10f2d63a 6260 if test "$no_cache" != 1; then
3c907f20 6261 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6262 fi
6263
3c907f20 6264 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6265 echo "$as_me:$LINENO: result: yes" >&5
6266echo "${ECHO_T}yes" >&6
10f2d63a 6267 else
e6cc62c6
VS
6268 echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6
10f2d63a 6270 fi
e6cc62c6 6271
8284b0c5 6272
5005acfe 6273 enablestring=
e6cc62c6
VS
6274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6275echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6276 no_cache=0
3c907f20
VZ
6277 # Check whether --enable-resources or --disable-resources was given.
6278if test "${enable_resources+set}" = set; then
6279 enableval="$enable_resources"
e6cc62c6 6280
10f2d63a 6281 if test "$enableval" = yes; then
3c907f20 6282 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6283 else
3c907f20 6284 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6285 fi
e6cc62c6 6286
10f2d63a 6287else
e6cc62c6 6288
3c907f20 6289 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6290 if test "x$LINE" != x ; then
6291 eval "DEFAULT_$LINE"
6292 else
6293 no_cache=1
6294 fi
6295
3c907f20 6296 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6297
e6cc62c6 6298fi;
10f2d63a 6299
3c907f20 6300 eval "$ac_cv_use_resources"
10f2d63a 6301 if test "$no_cache" != 1; then
3c907f20 6302 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6303 fi
6304
3c907f20 6305 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6306 echo "$as_me:$LINENO: result: yes" >&5
6307echo "${ECHO_T}yes" >&6
10f2d63a 6308 else
e6cc62c6
VS
6309 echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
10f2d63a 6311 fi
e6cc62c6 6312
8284b0c5
MB
6313
6314
52127426 6315
5005acfe 6316 enablestring=
e6cc62c6
VS
6317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6318echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6319 no_cache=0
6320 # Check whether --enable-clipboard or --disable-clipboard was given.
6321if test "${enable_clipboard+set}" = set; then
6322 enableval="$enable_clipboard"
e6cc62c6 6323
10f2d63a
VZ
6324 if test "$enableval" = yes; then
6325 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6326 else
6327 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6328 fi
e6cc62c6 6329
10f2d63a 6330else
e6cc62c6 6331
10f2d63a
VZ
6332 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6333 if test "x$LINE" != x ; then
6334 eval "DEFAULT_$LINE"
6335 else
6336 no_cache=1
6337 fi
6338
6339 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6340
e6cc62c6 6341fi;
10f2d63a
VZ
6342
6343 eval "$ac_cv_use_clipboard"
6344 if test "$no_cache" != 1; then
6345 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6346 fi
6347
6348 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6349 echo "$as_me:$LINENO: result: yes" >&5
6350echo "${ECHO_T}yes" >&6
10f2d63a 6351 else
e6cc62c6
VS
6352 echo "$as_me:$LINENO: result: no" >&5
6353echo "${ECHO_T}no" >&6
10f2d63a 6354 fi
e6cc62c6 6355
10f2d63a 6356
5005acfe 6357 enablestring=
e6cc62c6
VS
6358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6359echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6360 no_cache=0
6361 # Check whether --enable-dnd or --disable-dnd was given.
6362if test "${enable_dnd+set}" = set; then
6363 enableval="$enable_dnd"
e6cc62c6 6364
10f2d63a
VZ
6365 if test "$enableval" = yes; then
6366 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6367 else
6368 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6369 fi
e6cc62c6 6370
10f2d63a 6371else
e6cc62c6 6372
10f2d63a
VZ
6373 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6374 if test "x$LINE" != x ; then
6375 eval "DEFAULT_$LINE"
6376 else
6377 no_cache=1
6378 fi
6379
6380 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6381
e6cc62c6 6382fi;
10f2d63a
VZ
6383
6384 eval "$ac_cv_use_dnd"
6385 if test "$no_cache" != 1; then
6386 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6387 fi
6388
6389 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6390 echo "$as_me:$LINENO: result: yes" >&5
6391echo "${ECHO_T}yes" >&6
10f2d63a 6392 else
e6cc62c6
VS
6393 echo "$as_me:$LINENO: result: no" >&5
6394echo "${ECHO_T}no" >&6
10f2d63a 6395 fi
e6cc62c6 6396
10f2d63a 6397
5005acfe 6398 enablestring=
e6cc62c6
VS
6399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6400echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6401 no_cache=0
6402 # Check whether --enable-metafile or --disable-metafile was given.
6403if test "${enable_metafile+set}" = set; then
6404 enableval="$enable_metafile"
e6cc62c6 6405
b64f0a5f
RL
6406 if test "$enableval" = yes; then
6407 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6408 else
6409 ac_cv_use_metafile='wxUSE_METAFILE=no'
6410 fi
e6cc62c6 6411
b64f0a5f 6412else
e6cc62c6 6413
b64f0a5f
RL
6414 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6415 if test "x$LINE" != x ; then
6416 eval "DEFAULT_$LINE"
6417 else
6418 no_cache=1
6419 fi
6420
6421 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6422
e6cc62c6 6423fi;
b64f0a5f
RL
6424
6425 eval "$ac_cv_use_metafile"
6426 if test "$no_cache" != 1; then
6427 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6428 fi
6429
6430 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6431 echo "$as_me:$LINENO: result: yes" >&5
6432echo "${ECHO_T}yes" >&6
b64f0a5f 6433 else
e6cc62c6
VS
6434 echo "$as_me:$LINENO: result: no" >&5
6435echo "${ECHO_T}no" >&6
b64f0a5f 6436 fi
e6cc62c6 6437
52127426 6438
8284b0c5 6439
52127426 6440
8284b0c5 6441
5005acfe 6442 enablestring=
e6cc62c6
VS
6443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6444echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6445 no_cache=0
6446 # Check whether --enable-controls or --disable-controls was given.
6447if test "${enable_controls+set}" = set; then
6448 enableval="$enable_controls"
e6cc62c6 6449
10f2d63a
VZ
6450 if test "$enableval" = yes; then
6451 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6452 else
6453 ac_cv_use_controls='wxUSE_CONTROLS=no'
6454 fi
e6cc62c6 6455
10f2d63a 6456else
e6cc62c6 6457
10f2d63a
VZ
6458 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6459 if test "x$LINE" != x ; then
6460 eval "DEFAULT_$LINE"
6461 else
6462 no_cache=1
6463 fi
6464
6465 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6466
e6cc62c6 6467fi;
10f2d63a
VZ
6468
6469 eval "$ac_cv_use_controls"
6470 if test "$no_cache" != 1; then
6471 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6472 fi
6473
6474 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6475 echo "$as_me:$LINENO: result: yes" >&5
6476echo "${ECHO_T}yes" >&6
10f2d63a 6477 else
e6cc62c6
VS
6478 echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6
10f2d63a 6480 fi
e6cc62c6 6481
10f2d63a
VZ
6482
6483if test "$wxUSE_CONTROLS" = "yes"; then
6484 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6485 DEFAULT_wxUSE_BMPBUTTON=yes
6486 DEFAULT_wxUSE_BUTTON=yes
6487 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6488 DEFAULT_wxUSE_CARET=yes
6489 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6490 DEFAULT_wxUSE_CHECKBOX=yes
6491 DEFAULT_wxUSE_CHECKLISTBOX=yes
6492 DEFAULT_wxUSE_CHOICE=yes
6493 DEFAULT_wxUSE_GAUGE=yes
6494 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6495 DEFAULT_wxUSE_IMAGLIST=yes
6496 DEFAULT_wxUSE_LISTBOX=yes
6497 DEFAULT_wxUSE_LISTCTRL=yes
6498 DEFAULT_wxUSE_NOTEBOOK=yes
6499 DEFAULT_wxUSE_RADIOBOX=yes
6500 DEFAULT_wxUSE_RADIOBTN=yes
6501 DEFAULT_wxUSE_SASH=yes
6502 DEFAULT_wxUSE_SCROLLBAR=yes
6503 DEFAULT_wxUSE_SLIDER=yes
6504 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6505 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6506 DEFAULT_wxUSE_SPLITTER=yes
6507 DEFAULT_wxUSE_STATBMP=yes
6508 DEFAULT_wxUSE_STATBOX=yes
6509 DEFAULT_wxUSE_STATLINE=yes
6510 DEFAULT_wxUSE_STATUSBAR=yes
6511 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6512 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6513 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6514 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6515 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6516 DEFAULT_wxUSE_TOOLTIPS=yes
6517 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6518 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6519 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6520elif test "$wxUSE_CONTROLS" = "no"; then
6521 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6522 DEFAULT_wxUSE_BMPBUTTON=no
6523 DEFAULT_wxUSE_BUTTON=no
6524 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6525 DEFAULT_wxUSE_CARET=no
6526 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6527 DEFAULT_wxUSE_CHECKBOX=no
6528 DEFAULT_wxUSE_CHECKLISTBOX=no
6529 DEFAULT_wxUSE_CHOICE=no
6530 DEFAULT_wxUSE_GAUGE=no
6531 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6532 DEFAULT_wxUSE_IMAGLIST=no
6533 DEFAULT_wxUSE_LISTBOX=no
6534 DEFAULT_wxUSE_LISTCTRL=no
6535 DEFAULT_wxUSE_NOTEBOOK=no
6536 DEFAULT_wxUSE_RADIOBOX=no
6537 DEFAULT_wxUSE_RADIOBTN=no
6538 DEFAULT_wxUSE_SASH=no
6539 DEFAULT_wxUSE_SCROLLBAR=no
6540 DEFAULT_wxUSE_SLIDER=no
6541 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6542 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6543 DEFAULT_wxUSE_SPLITTER=no
6544 DEFAULT_wxUSE_STATBMP=no
6545 DEFAULT_wxUSE_STATBOX=no
6546 DEFAULT_wxUSE_STATLINE=no
6547 DEFAULT_wxUSE_STATUSBAR=no
6548 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6549 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6550 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6551 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6552 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6553 DEFAULT_wxUSE_TOOLTIPS=no
6554 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6555 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6556 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6557fi
6558
ac0c4cc3
DE
6559## FIXME: This is a blatant hack
6560if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6561 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3
DE
6562 wxUSE_CLIPBOARD=no
6563 wxUSE_DRAG_AND_DROP=no
6564 wxUSE_DATAOBJ=no
8b389fab
DE
6565 # Generic notebook requires tab dialog
6566 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6567 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6568 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6569 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6570 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6571fi
6572
8284b0c5 6573
5005acfe 6574 enablestring=
e6cc62c6
VS
6575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6576echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6577 no_cache=0
6578 # Check whether --enable-accel or --disable-accel was given.
6579if test "${enable_accel+set}" = set; then
6580 enableval="$enable_accel"
e6cc62c6 6581
10f2d63a
VZ
6582 if test "$enableval" = yes; then
6583 ac_cv_use_accel='wxUSE_ACCEL=yes'
6584 else
6585 ac_cv_use_accel='wxUSE_ACCEL=no'
6586 fi
e6cc62c6 6587
10f2d63a 6588else
e6cc62c6 6589
10f2d63a
VZ
6590 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6591 if test "x$LINE" != x ; then
6592 eval "DEFAULT_$LINE"
6593 else
6594 no_cache=1
6595 fi
6596
6597 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6598
e6cc62c6 6599fi;
10f2d63a
VZ
6600
6601 eval "$ac_cv_use_accel"
6602 if test "$no_cache" != 1; then
6603 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6604 fi
6605
6606 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6607 echo "$as_me:$LINENO: result: yes" >&5
6608echo "${ECHO_T}yes" >&6
10f2d63a 6609 else
e6cc62c6
VS
6610 echo "$as_me:$LINENO: result: no" >&5
6611echo "${ECHO_T}no" >&6
10f2d63a 6612 fi
e6cc62c6 6613
10f2d63a 6614
5005acfe 6615 enablestring=
e6cc62c6
VS
6616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6617echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6618 no_cache=0
1e6feb95
VZ
6619 # Check whether --enable-button or --disable-button was given.
6620if test "${enable_button+set}" = set; then
6621 enableval="$enable_button"
e6cc62c6 6622
10f2d63a 6623 if test "$enableval" = yes; then
1e6feb95 6624 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6625 else
1e6feb95 6626 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6627 fi
e6cc62c6 6628
10f2d63a 6629else
e6cc62c6 6630
1e6feb95 6631 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6632 if test "x$LINE" != x ; then
6633 eval "DEFAULT_$LINE"
6634 else
6635 no_cache=1
6636 fi
6637
1e6feb95 6638 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6639
e6cc62c6 6640fi;
10f2d63a 6641
1e6feb95 6642 eval "$ac_cv_use_button"
10f2d63a 6643 if test "$no_cache" != 1; then
1e6feb95 6644 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6645 fi
6646
1e6feb95 6647 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6648 echo "$as_me:$LINENO: result: yes" >&5
6649echo "${ECHO_T}yes" >&6
10f2d63a 6650 else
e6cc62c6
VS
6651 echo "$as_me:$LINENO: result: no" >&5
6652echo "${ECHO_T}no" >&6
10f2d63a 6653 fi
e6cc62c6 6654
10f2d63a 6655
5005acfe 6656 enablestring=
e6cc62c6
VS
6657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6658echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6659 no_cache=0
6660 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6661if test "${enable_bmpbutton+set}" = set; then
6662 enableval="$enable_bmpbutton"
e6cc62c6 6663
10f2d63a
VZ
6664 if test "$enableval" = yes; then
6665 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6666 else
6667 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6668 fi
e6cc62c6 6669
10f2d63a 6670else
e6cc62c6 6671
10f2d63a
VZ
6672 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6673 if test "x$LINE" != x ; then
6674 eval "DEFAULT_$LINE"
6675 else
6676 no_cache=1
6677 fi
6678
6679 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6680
e6cc62c6 6681fi;
10f2d63a
VZ
6682
6683 eval "$ac_cv_use_bmpbutton"
6684 if test "$no_cache" != 1; then
6685 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6686 fi
6687
6688 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6689 echo "$as_me:$LINENO: result: yes" >&5
6690echo "${ECHO_T}yes" >&6
10f2d63a 6691 else
e6cc62c6
VS
6692 echo "$as_me:$LINENO: result: no" >&5
6693echo "${ECHO_T}no" >&6
10f2d63a 6694 fi
e6cc62c6 6695
10f2d63a 6696
5005acfe 6697 enablestring=
e6cc62c6
VS
6698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6699echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6700 no_cache=0
6701 # Check whether --enable-calendar or --disable-calendar was given.
6702if test "${enable_calendar+set}" = set; then
6703 enableval="$enable_calendar"
e6cc62c6 6704
1e6feb95
VZ
6705 if test "$enableval" = yes; then
6706 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6707 else
6708 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6709 fi
e6cc62c6 6710
1e6feb95 6711else
e6cc62c6 6712
1e6feb95
VZ
6713 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6714 if test "x$LINE" != x ; then
6715 eval "DEFAULT_$LINE"
6716 else
6717 no_cache=1
6718 fi
6719
6720 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6721
e6cc62c6 6722fi;
1e6feb95
VZ
6723
6724 eval "$ac_cv_use_calendar"
6725 if test "$no_cache" != 1; then
6726 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6727 fi
6728
6729 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6730 echo "$as_me:$LINENO: result: yes" >&5
6731echo "${ECHO_T}yes" >&6
1e6feb95 6732 else
e6cc62c6
VS
6733 echo "$as_me:$LINENO: result: no" >&5
6734echo "${ECHO_T}no" >&6
1e6feb95 6735 fi
e6cc62c6 6736
1e6feb95 6737
5005acfe 6738 enablestring=
e6cc62c6
VS
6739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6740echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6741 no_cache=0
6742 # Check whether --enable-caret or --disable-caret was given.
6743if test "${enable_caret+set}" = set; then
6744 enableval="$enable_caret"
e6cc62c6 6745
1e6feb95
VZ
6746 if test "$enableval" = yes; then
6747 ac_cv_use_caret='wxUSE_CARET=yes'
6748 else
6749 ac_cv_use_caret='wxUSE_CARET=no'
6750 fi
e6cc62c6 6751
1e6feb95 6752else
e6cc62c6 6753
1e6feb95
VZ
6754 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6755 if test "x$LINE" != x ; then
6756 eval "DEFAULT_$LINE"
6757 else
6758 no_cache=1
6759 fi
6760
6761 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6762
e6cc62c6 6763fi;
1e6feb95
VZ
6764
6765 eval "$ac_cv_use_caret"
6766 if test "$no_cache" != 1; then
6767 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6768 fi
6769
6770 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6771 echo "$as_me:$LINENO: result: yes" >&5
6772echo "${ECHO_T}yes" >&6
1e6feb95 6773 else
e6cc62c6
VS
6774 echo "$as_me:$LINENO: result: no" >&5
6775echo "${ECHO_T}no" >&6
1e6feb95 6776 fi
e6cc62c6 6777
1e6feb95 6778
5005acfe 6779 enablestring=
e6cc62c6
VS
6780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6781echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6782 no_cache=0
6783 # Check whether --enable-checkbox or --disable-checkbox was given.
6784if test "${enable_checkbox+set}" = set; then
6785 enableval="$enable_checkbox"
e6cc62c6 6786
10f2d63a
VZ
6787 if test "$enableval" = yes; then
6788 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6789 else
6790 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6791 fi
e6cc62c6 6792
10f2d63a 6793else
e6cc62c6 6794
10f2d63a
VZ
6795 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6796 if test "x$LINE" != x ; then
6797 eval "DEFAULT_$LINE"
6798 else
6799 no_cache=1
6800 fi
6801
6802 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6803
e6cc62c6 6804fi;
10f2d63a
VZ
6805
6806 eval "$ac_cv_use_checkbox"
6807 if test "$no_cache" != 1; then
6808 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6809 fi
6810
6811 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6812 echo "$as_me:$LINENO: result: yes" >&5
6813echo "${ECHO_T}yes" >&6
10f2d63a 6814 else
e6cc62c6
VS
6815 echo "$as_me:$LINENO: result: no" >&5
6816echo "${ECHO_T}no" >&6
10f2d63a 6817 fi
e6cc62c6 6818
10f2d63a 6819
5005acfe 6820 enablestring=
e6cc62c6
VS
6821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6822echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6823 no_cache=0
6824 # Check whether --enable-checklst or --disable-checklst was given.
6825if test "${enable_checklst+set}" = set; then
6826 enableval="$enable_checklst"
e6cc62c6 6827
10f2d63a
VZ
6828 if test "$enableval" = yes; then
6829 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6830 else
6831 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6832 fi
e6cc62c6 6833
10f2d63a 6834else
e6cc62c6 6835
10f2d63a
VZ
6836 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6837 if test "x$LINE" != x ; then
6838 eval "DEFAULT_$LINE"
6839 else
6840 no_cache=1
6841 fi
6842
6843 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6844
e6cc62c6 6845fi;
10f2d63a
VZ
6846
6847 eval "$ac_cv_use_checklst"
6848 if test "$no_cache" != 1; then
6849 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6850 fi
6851
6852 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6853 echo "$as_me:$LINENO: result: yes" >&5
6854echo "${ECHO_T}yes" >&6
10f2d63a 6855 else
e6cc62c6
VS
6856 echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6
10f2d63a 6858 fi
e6cc62c6 6859
10f2d63a 6860
5005acfe 6861 enablestring=
e6cc62c6
VS
6862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6863echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6864 no_cache=0
6865 # Check whether --enable-choice or --disable-choice was given.
6866if test "${enable_choice+set}" = set; then
6867 enableval="$enable_choice"
e6cc62c6 6868
10f2d63a
VZ
6869 if test "$enableval" = yes; then
6870 ac_cv_use_choice='wxUSE_CHOICE=yes'
6871 else
6872 ac_cv_use_choice='wxUSE_CHOICE=no'
6873 fi
e6cc62c6 6874
10f2d63a 6875else
e6cc62c6 6876
10f2d63a
VZ
6877 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6878 if test "x$LINE" != x ; then
6879 eval "DEFAULT_$LINE"
6880 else
6881 no_cache=1
6882 fi
6883
6884 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6885
e6cc62c6 6886fi;
10f2d63a
VZ
6887
6888 eval "$ac_cv_use_choice"
6889 if test "$no_cache" != 1; then
6890 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6891 fi
6892
6893 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6894 echo "$as_me:$LINENO: result: yes" >&5
6895echo "${ECHO_T}yes" >&6
10f2d63a 6896 else
e6cc62c6
VS
6897 echo "$as_me:$LINENO: result: no" >&5
6898echo "${ECHO_T}no" >&6
10f2d63a 6899 fi
e6cc62c6 6900
10f2d63a 6901
5005acfe 6902 enablestring=
e6cc62c6
VS
6903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6904echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6905 no_cache=0
6906 # Check whether --enable-combobox or --disable-combobox was given.
6907if test "${enable_combobox+set}" = set; then
6908 enableval="$enable_combobox"
e6cc62c6 6909
10f2d63a
VZ
6910 if test "$enableval" = yes; then
6911 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6912 else
6913 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6914 fi
e6cc62c6 6915
10f2d63a 6916else
e6cc62c6 6917
10f2d63a
VZ
6918 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6919 if test "x$LINE" != x ; then
6920 eval "DEFAULT_$LINE"
6921 else
6922 no_cache=1
6923 fi
6924
6925 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6926
e6cc62c6 6927fi;
10f2d63a
VZ
6928
6929 eval "$ac_cv_use_combobox"
6930 if test "$no_cache" != 1; then
6931 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6932 fi
6933
6934 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6935 echo "$as_me:$LINENO: result: yes" >&5
6936echo "${ECHO_T}yes" >&6
10f2d63a 6937 else
e6cc62c6
VS
6938 echo "$as_me:$LINENO: result: no" >&5
6939echo "${ECHO_T}no" >&6
10f2d63a 6940 fi
e6cc62c6 6941
10f2d63a 6942
da494b40 6943 enablestring=
e6cc62c6
VS
6944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6945echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6946 no_cache=0
6947 # Check whether --enable-display or --disable-display was given.
6948if test "${enable_display+set}" = set; then
6949 enableval="$enable_display"
e6cc62c6 6950
da494b40
MB
6951 if test "$enableval" = yes; then
6952 ac_cv_use_display='wxUSE_DISPLAY=yes'
6953 else
6954 ac_cv_use_display='wxUSE_DISPLAY=no'
6955 fi
e6cc62c6 6956
da494b40 6957else
e6cc62c6 6958
da494b40
MB
6959 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6960 if test "x$LINE" != x ; then
6961 eval "DEFAULT_$LINE"
6962 else
6963 no_cache=1
6964 fi
6965
6966 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6967
e6cc62c6 6968fi;
da494b40
MB
6969
6970 eval "$ac_cv_use_display"
6971 if test "$no_cache" != 1; then
6972 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6973 fi
6974
6975 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6976 echo "$as_me:$LINENO: result: yes" >&5
6977echo "${ECHO_T}yes" >&6
da494b40 6978 else
e6cc62c6
VS
6979 echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6
da494b40 6981 fi
e6cc62c6 6982
da494b40 6983
5005acfe 6984 enablestring=
e6cc62c6
VS
6985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6986echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6987 no_cache=0
6988 # Check whether --enable-gauge or --disable-gauge was given.
6989if test "${enable_gauge+set}" = set; then
6990 enableval="$enable_gauge"
e6cc62c6 6991
10f2d63a
VZ
6992 if test "$enableval" = yes; then
6993 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6994 else
6995 ac_cv_use_gauge='wxUSE_GAUGE=no'
6996 fi
e6cc62c6 6997
10f2d63a 6998else
e6cc62c6 6999
10f2d63a
VZ
7000 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7001 if test "x$LINE" != x ; then
7002 eval "DEFAULT_$LINE"
7003 else
7004 no_cache=1
7005 fi
7006
7007 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7008
e6cc62c6 7009fi;
10f2d63a
VZ
7010
7011 eval "$ac_cv_use_gauge"
7012 if test "$no_cache" != 1; then
7013 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7014 fi
7015
7016 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7017 echo "$as_me:$LINENO: result: yes" >&5
7018echo "${ECHO_T}yes" >&6
10f2d63a 7019 else
e6cc62c6
VS
7020 echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6
10f2d63a 7022 fi
e6cc62c6 7023
10f2d63a 7024
5005acfe 7025 enablestring=
e6cc62c6
VS
7026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7027echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7028 no_cache=0
7029 # Check whether --enable-grid or --disable-grid was given.
7030if test "${enable_grid+set}" = set; then
7031 enableval="$enable_grid"
e6cc62c6 7032
10f2d63a
VZ
7033 if test "$enableval" = yes; then
7034 ac_cv_use_grid='wxUSE_GRID=yes'
7035 else
7036 ac_cv_use_grid='wxUSE_GRID=no'
7037 fi
e6cc62c6 7038
10f2d63a 7039else
e6cc62c6 7040
10f2d63a
VZ
7041 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7042 if test "x$LINE" != x ; then
7043 eval "DEFAULT_$LINE"
7044 else
7045 no_cache=1
7046 fi
7047
7048 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7049
e6cc62c6 7050fi;
10f2d63a
VZ
7051
7052 eval "$ac_cv_use_grid"
7053 if test "$no_cache" != 1; then
7054 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7055 fi
7056
7057 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7058 echo "$as_me:$LINENO: result: yes" >&5
7059echo "${ECHO_T}yes" >&6
10f2d63a 7060 else
e6cc62c6
VS
7061 echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6
10f2d63a 7063 fi
e6cc62c6 7064
10f2d63a 7065
5005acfe 7066 enablestring=
e6cc62c6
VS
7067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7068echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7069 no_cache=0
7070 # Check whether --enable-imaglist or --disable-imaglist was given.
7071if test "${enable_imaglist+set}" = set; then
7072 enableval="$enable_imaglist"
e6cc62c6 7073
10f2d63a
VZ
7074 if test "$enableval" = yes; then
7075 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7076 else
7077 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7078 fi
e6cc62c6 7079
10f2d63a 7080else
e6cc62c6 7081
10f2d63a
VZ
7082 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7083 if test "x$LINE" != x ; then
7084 eval "DEFAULT_$LINE"
7085 else
7086 no_cache=1
7087 fi
7088
7089 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7090
e6cc62c6 7091fi;
10f2d63a
VZ
7092
7093 eval "$ac_cv_use_imaglist"
7094 if test "$no_cache" != 1; then
7095 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7096 fi
7097
7098 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7099 echo "$as_me:$LINENO: result: yes" >&5
7100echo "${ECHO_T}yes" >&6
10f2d63a 7101 else
e6cc62c6
VS
7102 echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6
10f2d63a 7104 fi
e6cc62c6 7105
10f2d63a 7106
5005acfe 7107 enablestring=
e6cc62c6
VS
7108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7109echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7110 no_cache=0
7111 # Check whether --enable-listbox or --disable-listbox was given.
7112if test "${enable_listbox+set}" = set; then
7113 enableval="$enable_listbox"
e6cc62c6 7114
10f2d63a
VZ
7115 if test "$enableval" = yes; then
7116 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7117 else
7118 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7119 fi
e6cc62c6 7120
10f2d63a 7121else
e6cc62c6 7122
10f2d63a
VZ
7123 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7124 if test "x$LINE" != x ; then
7125 eval "DEFAULT_$LINE"
7126 else
7127 no_cache=1
7128 fi
7129
7130 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7131
e6cc62c6 7132fi;
10f2d63a
VZ
7133
7134 eval "$ac_cv_use_listbox"
7135 if test "$no_cache" != 1; then
7136 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7137 fi
7138
7139 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7140 echo "$as_me:$LINENO: result: yes" >&5
7141echo "${ECHO_T}yes" >&6
10f2d63a 7142 else
e6cc62c6
VS
7143 echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
10f2d63a 7145 fi
e6cc62c6 7146
10f2d63a 7147
5005acfe 7148 enablestring=
e6cc62c6
VS
7149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7150echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7151 no_cache=0
7152 # Check whether --enable-listctrl or --disable-listctrl was given.
7153if test "${enable_listctrl+set}" = set; then
7154 enableval="$enable_listctrl"
e6cc62c6 7155
10f2d63a
VZ
7156 if test "$enableval" = yes; then
7157 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7158 else
7159 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7160 fi
e6cc62c6 7161
10f2d63a 7162else
e6cc62c6 7163
10f2d63a
VZ
7164 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7165 if test "x$LINE" != x ; then
7166 eval "DEFAULT_$LINE"
7167 else
7168 no_cache=1
7169 fi
7170
7171 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7172
e6cc62c6 7173fi;
10f2d63a
VZ
7174
7175 eval "$ac_cv_use_listctrl"
7176 if test "$no_cache" != 1; then
7177 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7178 fi
7179
7180 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7181 echo "$as_me:$LINENO: result: yes" >&5
7182echo "${ECHO_T}yes" >&6
10f2d63a 7183 else
e6cc62c6
VS
7184 echo "$as_me:$LINENO: result: no" >&5
7185echo "${ECHO_T}no" >&6
10f2d63a 7186 fi
e6cc62c6 7187
10f2d63a 7188
5005acfe 7189 enablestring=
e6cc62c6
VS
7190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7191echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7192 no_cache=0
7193 # Check whether --enable-notebook or --disable-notebook was given.
7194if test "${enable_notebook+set}" = set; then
7195 enableval="$enable_notebook"
e6cc62c6 7196
10f2d63a
VZ
7197 if test "$enableval" = yes; then
7198 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7199 else
7200 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7201 fi
e6cc62c6 7202
10f2d63a 7203else
e6cc62c6 7204
10f2d63a
VZ
7205 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7206 if test "x$LINE" != x ; then
7207 eval "DEFAULT_$LINE"
7208 else
7209 no_cache=1
7210 fi
7211
7212 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7213
e6cc62c6 7214fi;
10f2d63a
VZ
7215
7216 eval "$ac_cv_use_notebook"
7217 if test "$no_cache" != 1; then
7218 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7219 fi
7220
7221 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7222 echo "$as_me:$LINENO: result: yes" >&5
7223echo "${ECHO_T}yes" >&6
10f2d63a 7224 else
e6cc62c6
VS
7225 echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6
10f2d63a 7227 fi
e6cc62c6 7228
10f2d63a 7229
5005acfe 7230 enablestring=
e6cc62c6
VS
7231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7232echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7233 no_cache=0
7234 # Check whether --enable-radiobox or --disable-radiobox was given.
7235if test "${enable_radiobox+set}" = set; then
7236 enableval="$enable_radiobox"
e6cc62c6 7237
10f2d63a
VZ
7238 if test "$enableval" = yes; then
7239 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7240 else
7241 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7242 fi
e6cc62c6 7243
10f2d63a 7244else
e6cc62c6 7245
10f2d63a
VZ
7246 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7247 if test "x$LINE" != x ; then
7248 eval "DEFAULT_$LINE"
7249 else
7250 no_cache=1
7251 fi
7252
7253 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7254
e6cc62c6 7255fi;
10f2d63a
VZ
7256
7257 eval "$ac_cv_use_radiobox"
7258 if test "$no_cache" != 1; then
7259 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7260 fi
7261
7262 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7263 echo "$as_me:$LINENO: result: yes" >&5
7264echo "${ECHO_T}yes" >&6
10f2d63a 7265 else
e6cc62c6
VS
7266 echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6
10f2d63a 7268 fi
e6cc62c6 7269
10f2d63a 7270
5005acfe 7271 enablestring=
e6cc62c6
VS
7272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7273echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7274 no_cache=0
7275 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7276if test "${enable_radiobtn+set}" = set; then
7277 enableval="$enable_radiobtn"
e6cc62c6 7278
10f2d63a
VZ
7279 if test "$enableval" = yes; then
7280 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7281 else
7282 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7283 fi
e6cc62c6 7284
10f2d63a 7285else
e6cc62c6 7286
10f2d63a
VZ
7287 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7288 if test "x$LINE" != x ; then
7289 eval "DEFAULT_$LINE"
7290 else
7291 no_cache=1
7292 fi
7293
7294 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7295
e6cc62c6 7296fi;
10f2d63a
VZ
7297
7298 eval "$ac_cv_use_radiobtn"
7299 if test "$no_cache" != 1; then
7300 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7301 fi
7302
7303 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7304 echo "$as_me:$LINENO: result: yes" >&5
7305echo "${ECHO_T}yes" >&6
10f2d63a 7306 else
e6cc62c6
VS
7307 echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6
10f2d63a 7309 fi
e6cc62c6 7310
10f2d63a 7311
5005acfe 7312 enablestring=
e6cc62c6
VS
7313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7314echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7315 no_cache=0
7316 # Check whether --enable-sash or --disable-sash was given.
7317if test "${enable_sash+set}" = set; then
7318 enableval="$enable_sash"
e6cc62c6 7319
10f2d63a
VZ
7320 if test "$enableval" = yes; then
7321 ac_cv_use_sash='wxUSE_SASH=yes'
7322 else
7323 ac_cv_use_sash='wxUSE_SASH=no'
7324 fi
e6cc62c6 7325
10f2d63a 7326else
e6cc62c6 7327
10f2d63a
VZ
7328 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7329 if test "x$LINE" != x ; then
7330 eval "DEFAULT_$LINE"
7331 else
7332 no_cache=1
7333 fi
7334
7335 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7336
e6cc62c6 7337fi;
10f2d63a
VZ
7338
7339 eval "$ac_cv_use_sash"
7340 if test "$no_cache" != 1; then
7341 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7342 fi
7343
7344 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7345 echo "$as_me:$LINENO: result: yes" >&5
7346echo "${ECHO_T}yes" >&6
10f2d63a 7347 else
e6cc62c6
VS
7348 echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6
10f2d63a 7350 fi
e6cc62c6 7351
10f2d63a 7352
5005acfe 7353 enablestring=
e6cc62c6
VS
7354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7355echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7356 no_cache=0
7357 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7358if test "${enable_scrollbar+set}" = set; then
7359 enableval="$enable_scrollbar"
e6cc62c6 7360
10f2d63a
VZ
7361 if test "$enableval" = yes; then
7362 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7363 else
7364 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7365 fi
e6cc62c6 7366
10f2d63a 7367else
e6cc62c6 7368
10f2d63a
VZ
7369 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7370 if test "x$LINE" != x ; then
7371 eval "DEFAULT_$LINE"
7372 else
7373 no_cache=1
7374 fi
7375
7376 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7377
e6cc62c6 7378fi;
10f2d63a
VZ
7379
7380 eval "$ac_cv_use_scrollbar"
7381 if test "$no_cache" != 1; then
7382 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7383 fi
7384
7385 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7386 echo "$as_me:$LINENO: result: yes" >&5
7387echo "${ECHO_T}yes" >&6
10f2d63a 7388 else
e6cc62c6
VS
7389 echo "$as_me:$LINENO: result: no" >&5
7390echo "${ECHO_T}no" >&6
10f2d63a 7391 fi
e6cc62c6 7392
10f2d63a 7393
5005acfe 7394 enablestring=
e6cc62c6
VS
7395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7396echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7397 no_cache=0
7398 # Check whether --enable-slider or --disable-slider was given.
7399if test "${enable_slider+set}" = set; then
7400 enableval="$enable_slider"
e6cc62c6 7401
10f2d63a
VZ
7402 if test "$enableval" = yes; then
7403 ac_cv_use_slider='wxUSE_SLIDER=yes'
7404 else
7405 ac_cv_use_slider='wxUSE_SLIDER=no'
7406 fi
e6cc62c6 7407
10f2d63a 7408else
e6cc62c6 7409
10f2d63a
VZ
7410 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7411 if test "x$LINE" != x ; then
7412 eval "DEFAULT_$LINE"
7413 else
7414 no_cache=1
7415 fi
7416
7417 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7418
e6cc62c6 7419fi;
10f2d63a
VZ
7420
7421 eval "$ac_cv_use_slider"
7422 if test "$no_cache" != 1; then
7423 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7424 fi
7425
7426 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7427 echo "$as_me:$LINENO: result: yes" >&5
7428echo "${ECHO_T}yes" >&6
10f2d63a 7429 else
e6cc62c6
VS
7430 echo "$as_me:$LINENO: result: no" >&5
7431echo "${ECHO_T}no" >&6
10f2d63a 7432 fi
e6cc62c6 7433
10f2d63a 7434
5005acfe 7435 enablestring=
e6cc62c6
VS
7436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7437echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7438 no_cache=0
7439 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7440if test "${enable_spinbtn+set}" = set; then
7441 enableval="$enable_spinbtn"
e6cc62c6 7442
10f2d63a
VZ
7443 if test "$enableval" = yes; then
7444 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7445 else
7446 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7447 fi
e6cc62c6 7448
10f2d63a 7449else
e6cc62c6 7450
10f2d63a
VZ
7451 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7452 if test "x$LINE" != x ; then
7453 eval "DEFAULT_$LINE"
7454 else
7455 no_cache=1
7456 fi
7457
7458 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7459
e6cc62c6 7460fi;
10f2d63a
VZ
7461
7462 eval "$ac_cv_use_spinbtn"
7463 if test "$no_cache" != 1; then
7464 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7465 fi
7466
7467 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7468 echo "$as_me:$LINENO: result: yes" >&5
7469echo "${ECHO_T}yes" >&6
10f2d63a 7470 else
e6cc62c6
VS
7471 echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6
10f2d63a 7473 fi
e6cc62c6 7474
10f2d63a 7475
5005acfe 7476 enablestring=
e6cc62c6
VS
7477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7478echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7479 no_cache=0
7480 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7481if test "${enable_spinctrl+set}" = set; then
7482 enableval="$enable_spinctrl"
e6cc62c6 7483
56cfaa52
RR
7484 if test "$enableval" = yes; then
7485 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7486 else
7487 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7488 fi
e6cc62c6 7489
56cfaa52 7490else
e6cc62c6 7491
56cfaa52
RR
7492 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7493 if test "x$LINE" != x ; then
7494 eval "DEFAULT_$LINE"
7495 else
7496 no_cache=1
7497 fi
7498
7499 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7500
e6cc62c6 7501fi;
56cfaa52
RR
7502
7503 eval "$ac_cv_use_spinctrl"
7504 if test "$no_cache" != 1; then
7505 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7506 fi
7507
7508 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7509 echo "$as_me:$LINENO: result: yes" >&5
7510echo "${ECHO_T}yes" >&6
56cfaa52 7511 else
e6cc62c6
VS
7512 echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6
56cfaa52 7514 fi
e6cc62c6 7515
56cfaa52 7516
5005acfe 7517 enablestring=
e6cc62c6
VS
7518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7519echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7520 no_cache=0
7521 # Check whether --enable-splitter or --disable-splitter was given.
7522if test "${enable_splitter+set}" = set; then
7523 enableval="$enable_splitter"
e6cc62c6 7524
10f2d63a
VZ
7525 if test "$enableval" = yes; then
7526 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7527 else
7528 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7529 fi
e6cc62c6 7530
10f2d63a 7531else
e6cc62c6 7532
10f2d63a
VZ
7533 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7534 if test "x$LINE" != x ; then
7535 eval "DEFAULT_$LINE"
7536 else
7537 no_cache=1
7538 fi
7539
7540 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7541
e6cc62c6 7542fi;
10f2d63a
VZ
7543
7544 eval "$ac_cv_use_splitter"
7545 if test "$no_cache" != 1; then
7546 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7547 fi
7548
7549 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7550 echo "$as_me:$LINENO: result: yes" >&5
7551echo "${ECHO_T}yes" >&6
10f2d63a 7552 else
e6cc62c6
VS
7553 echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6
10f2d63a 7555 fi
e6cc62c6 7556
10f2d63a 7557
5005acfe 7558 enablestring=
e6cc62c6
VS
7559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7560echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7561 no_cache=0
7562 # Check whether --enable-statbmp or --disable-statbmp was given.
7563if test "${enable_statbmp+set}" = set; then
7564 enableval="$enable_statbmp"
e6cc62c6 7565
10f2d63a
VZ
7566 if test "$enableval" = yes; then
7567 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7568 else
7569 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7570 fi
e6cc62c6 7571
10f2d63a 7572else
e6cc62c6 7573
10f2d63a
VZ
7574 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7575 if test "x$LINE" != x ; then
7576 eval "DEFAULT_$LINE"
7577 else
7578 no_cache=1
7579 fi
7580
7581 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7582
e6cc62c6 7583fi;
10f2d63a
VZ
7584
7585 eval "$ac_cv_use_statbmp"
7586 if test "$no_cache" != 1; then
7587 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7588 fi
7589
7590 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7591 echo "$as_me:$LINENO: result: yes" >&5
7592echo "${ECHO_T}yes" >&6
10f2d63a 7593 else
e6cc62c6
VS
7594 echo "$as_me:$LINENO: result: no" >&5
7595echo "${ECHO_T}no" >&6
10f2d63a 7596 fi
e6cc62c6 7597
10f2d63a 7598
5005acfe 7599 enablestring=
e6cc62c6
VS
7600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7601echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7602 no_cache=0
7603 # Check whether --enable-statbox or --disable-statbox was given.
7604if test "${enable_statbox+set}" = set; then
7605 enableval="$enable_statbox"
e6cc62c6 7606
10f2d63a
VZ
7607 if test "$enableval" = yes; then
7608 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7609 else
7610 ac_cv_use_statbox='wxUSE_STATBOX=no'
7611 fi
e6cc62c6 7612
10f2d63a 7613else
e6cc62c6 7614
10f2d63a
VZ
7615 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7616 if test "x$LINE" != x ; then
7617 eval "DEFAULT_$LINE"
7618 else
7619 no_cache=1
7620 fi
7621
7622 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7623
e6cc62c6 7624fi;
10f2d63a
VZ
7625
7626 eval "$ac_cv_use_statbox"
7627 if test "$no_cache" != 1; then
7628 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7629 fi
7630
7631 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7632 echo "$as_me:$LINENO: result: yes" >&5
7633echo "${ECHO_T}yes" >&6
10f2d63a 7634 else
e6cc62c6
VS
7635 echo "$as_me:$LINENO: result: no" >&5
7636echo "${ECHO_T}no" >&6
10f2d63a 7637 fi
e6cc62c6 7638
10f2d63a 7639
5005acfe 7640 enablestring=
e6cc62c6
VS
7641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7642echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7643 no_cache=0
7644 # Check whether --enable-statline or --disable-statline was given.
7645if test "${enable_statline+set}" = set; then
7646 enableval="$enable_statline"
e6cc62c6 7647
10f2d63a
VZ
7648 if test "$enableval" = yes; then
7649 ac_cv_use_statline='wxUSE_STATLINE=yes'
7650 else
7651 ac_cv_use_statline='wxUSE_STATLINE=no'
7652 fi
e6cc62c6 7653
10f2d63a 7654else
e6cc62c6 7655
10f2d63a
VZ
7656 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7657 if test "x$LINE" != x ; then
7658 eval "DEFAULT_$LINE"
7659 else
7660 no_cache=1
7661 fi
7662
7663 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7664
e6cc62c6 7665fi;
10f2d63a
VZ
7666
7667 eval "$ac_cv_use_statline"
7668 if test "$no_cache" != 1; then
7669 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7670 fi
7671
7672 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7673 echo "$as_me:$LINENO: result: yes" >&5
7674echo "${ECHO_T}yes" >&6
10f2d63a 7675 else
e6cc62c6
VS
7676 echo "$as_me:$LINENO: result: no" >&5
7677echo "${ECHO_T}no" >&6
10f2d63a 7678 fi
e6cc62c6 7679
10f2d63a 7680
5005acfe 7681 enablestring=
e6cc62c6
VS
7682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7683echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7684 no_cache=0
7685 # Check whether --enable-stattext or --disable-stattext was given.
7686if test "${enable_stattext+set}" = set; then
7687 enableval="$enable_stattext"
e6cc62c6 7688
1e6feb95
VZ
7689 if test "$enableval" = yes; then
7690 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7691 else
7692 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7693 fi
e6cc62c6 7694
1e6feb95 7695else
e6cc62c6 7696
1e6feb95
VZ
7697 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7698 if test "x$LINE" != x ; then
7699 eval "DEFAULT_$LINE"
7700 else
7701 no_cache=1
7702 fi
7703
7704 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7705
e6cc62c6 7706fi;
1e6feb95
VZ
7707
7708 eval "$ac_cv_use_stattext"
7709 if test "$no_cache" != 1; then
7710 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7711 fi
7712
7713 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7714 echo "$as_me:$LINENO: result: yes" >&5
7715echo "${ECHO_T}yes" >&6
1e6feb95 7716 else
e6cc62c6
VS
7717 echo "$as_me:$LINENO: result: no" >&5
7718echo "${ECHO_T}no" >&6
1e6feb95 7719 fi
e6cc62c6 7720
1e6feb95 7721
5005acfe 7722 enablestring=
e6cc62c6
VS
7723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7724echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7725 no_cache=0
7726 # Check whether --enable-statusbar or --disable-statusbar was given.
7727if test "${enable_statusbar+set}" = set; then
7728 enableval="$enable_statusbar"
e6cc62c6 7729
10f2d63a
VZ
7730 if test "$enableval" = yes; then
7731 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7732 else
7733 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7734 fi
e6cc62c6 7735
10f2d63a 7736else
e6cc62c6 7737
10f2d63a
VZ
7738 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7739 if test "x$LINE" != x ; then
7740 eval "DEFAULT_$LINE"
7741 else
7742 no_cache=1
7743 fi
7744
7745 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7746
e6cc62c6 7747fi;
10f2d63a
VZ
7748
7749 eval "$ac_cv_use_statusbar"
7750 if test "$no_cache" != 1; then
7751 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7752 fi
7753
7754 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7755 echo "$as_me:$LINENO: result: yes" >&5
7756echo "${ECHO_T}yes" >&6
10f2d63a 7757 else
e6cc62c6
VS
7758 echo "$as_me:$LINENO: result: no" >&5
7759echo "${ECHO_T}no" >&6
10f2d63a 7760 fi
e6cc62c6 7761
10f2d63a 7762
5005acfe 7763 enablestring=
e6cc62c6
VS
7764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7765echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7766 no_cache=0
7767 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7768if test "${enable_tabdialog+set}" = set; then
7769 enableval="$enable_tabdialog"
e6cc62c6 7770
10f2d63a
VZ
7771 if test "$enableval" = yes; then
7772 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7773 else
7774 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7775 fi
e6cc62c6 7776
10f2d63a 7777else
e6cc62c6 7778
10f2d63a
VZ
7779 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7780 if test "x$LINE" != x ; then
7781 eval "DEFAULT_$LINE"
7782 else
7783 no_cache=1
7784 fi
7785
7786 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7787
e6cc62c6 7788fi;
10f2d63a
VZ
7789
7790 eval "$ac_cv_use_tabdialog"
7791 if test "$no_cache" != 1; then
7792 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7793 fi
7794
7795 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7796 echo "$as_me:$LINENO: result: yes" >&5
7797echo "${ECHO_T}yes" >&6
10f2d63a 7798 else
e6cc62c6
VS
7799 echo "$as_me:$LINENO: result: no" >&5
7800echo "${ECHO_T}no" >&6
10f2d63a 7801 fi
e6cc62c6 7802
10f2d63a 7803
5005acfe 7804 enablestring=
e6cc62c6
VS
7805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7806echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7807 no_cache=0
7808 # Check whether --enable-textctrl or --disable-textctrl was given.
7809if test "${enable_textctrl+set}" = set; then
7810 enableval="$enable_textctrl"
e6cc62c6 7811
1e6feb95
VZ
7812 if test "$enableval" = yes; then
7813 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7814 else
7815 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7816 fi
e6cc62c6 7817
1e6feb95 7818else
e6cc62c6 7819
1e6feb95
VZ
7820 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7821 if test "x$LINE" != x ; then
7822 eval "DEFAULT_$LINE"
7823 else
7824 no_cache=1
7825 fi
7826
7827 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7828
e6cc62c6 7829fi;
1e6feb95
VZ
7830
7831 eval "$ac_cv_use_textctrl"
7832 if test "$no_cache" != 1; then
7833 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7834 fi
7835
7836 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7837 echo "$as_me:$LINENO: result: yes" >&5
7838echo "${ECHO_T}yes" >&6
1e6feb95 7839 else
e6cc62c6
VS
7840 echo "$as_me:$LINENO: result: no" >&5
7841echo "${ECHO_T}no" >&6
1e6feb95 7842 fi
e6cc62c6 7843
1e6feb95 7844
5005acfe 7845 enablestring=
e6cc62c6
VS
7846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7847echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7848 no_cache=0
7849 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7850if test "${enable_togglebtn+set}" = set; then
7851 enableval="$enable_togglebtn"
e6cc62c6 7852
1db8dc4a
VZ
7853 if test "$enableval" = yes; then
7854 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7855 else
7856 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7857 fi
e6cc62c6 7858
1db8dc4a 7859else
e6cc62c6 7860
1db8dc4a
VZ
7861 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7862 if test "x$LINE" != x ; then
7863 eval "DEFAULT_$LINE"
7864 else
7865 no_cache=1
7866 fi
7867
7868 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7869
e6cc62c6 7870fi;
1db8dc4a
VZ
7871
7872 eval "$ac_cv_use_togglebtn"
7873 if test "$no_cache" != 1; then
7874 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7875 fi
7876
7877 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7878 echo "$as_me:$LINENO: result: yes" >&5
7879echo "${ECHO_T}yes" >&6
1db8dc4a 7880 else
e6cc62c6
VS
7881 echo "$as_me:$LINENO: result: no" >&5
7882echo "${ECHO_T}no" >&6
1db8dc4a 7883 fi
e6cc62c6 7884
1db8dc4a 7885
5005acfe 7886 enablestring=
e6cc62c6
VS
7887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7888echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7889 no_cache=0
7890 # Check whether --enable-toolbar or --disable-toolbar was given.
7891if test "${enable_toolbar+set}" = set; then
7892 enableval="$enable_toolbar"
e6cc62c6 7893
10f2d63a
VZ
7894 if test "$enableval" = yes; then
7895 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7896 else
7897 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7898 fi
e6cc62c6 7899
10f2d63a 7900else
e6cc62c6 7901
10f2d63a
VZ
7902 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7903 if test "x$LINE" != x ; then
7904 eval "DEFAULT_$LINE"
7905 else
7906 no_cache=1
7907 fi
7908
7909 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7910
e6cc62c6 7911fi;
10f2d63a
VZ
7912
7913 eval "$ac_cv_use_toolbar"
7914 if test "$no_cache" != 1; then
7915 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7916 fi
7917
7918 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7919 echo "$as_me:$LINENO: result: yes" >&5
7920echo "${ECHO_T}yes" >&6
10f2d63a 7921 else
e6cc62c6
VS
7922 echo "$as_me:$LINENO: result: no" >&5
7923echo "${ECHO_T}no" >&6
10f2d63a 7924 fi
e6cc62c6 7925
10f2d63a 7926
5005acfe 7927 enablestring=
e6cc62c6
VS
7928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7929echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7930 no_cache=0
7931 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7932if test "${enable_tbarnative+set}" = set; then
7933 enableval="$enable_tbarnative"
e6cc62c6 7934
360d6699
VZ
7935 if test "$enableval" = yes; then
7936 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7937 else
7938 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7939 fi
e6cc62c6 7940
360d6699 7941else
e6cc62c6 7942
360d6699
VZ
7943 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7944 if test "x$LINE" != x ; then
7945 eval "DEFAULT_$LINE"
7946 else
7947 no_cache=1
7948 fi
7949
7950 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7951
e6cc62c6 7952fi;
360d6699
VZ
7953
7954 eval "$ac_cv_use_tbarnative"
7955 if test "$no_cache" != 1; then
7956 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7957 fi
7958
7959 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7960 echo "$as_me:$LINENO: result: yes" >&5
7961echo "${ECHO_T}yes" >&6
360d6699 7962 else
e6cc62c6
VS
7963 echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6
360d6699 7965 fi
e6cc62c6 7966
360d6699 7967
5005acfe 7968 enablestring=
e6cc62c6
VS
7969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7970echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7971 no_cache=0
7972 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7973if test "${enable_tbarsmpl+set}" = set; then
7974 enableval="$enable_tbarsmpl"
e6cc62c6 7975
360d6699
VZ
7976 if test "$enableval" = yes; then
7977 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7978 else
7979 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7980 fi
e6cc62c6 7981
360d6699 7982else
e6cc62c6 7983
360d6699
VZ
7984 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7985 if test "x$LINE" != x ; then
7986 eval "DEFAULT_$LINE"
7987 else
7988 no_cache=1
7989 fi
7990
7991 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7992
e6cc62c6 7993fi;
360d6699
VZ
7994
7995 eval "$ac_cv_use_tbarsmpl"
7996 if test "$no_cache" != 1; then
7997 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7998 fi
7999
8000 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8001 echo "$as_me:$LINENO: result: yes" >&5
8002echo "${ECHO_T}yes" >&6
360d6699 8003 else
e6cc62c6
VS
8004 echo "$as_me:$LINENO: result: no" >&5
8005echo "${ECHO_T}no" >&6
360d6699 8006 fi
e6cc62c6 8007
360d6699 8008
5005acfe 8009 enablestring=
e6cc62c6
VS
8010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8011echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8012 no_cache=0
8013 # Check whether --enable-treectrl or --disable-treectrl was given.
8014if test "${enable_treectrl+set}" = set; then
8015 enableval="$enable_treectrl"
e6cc62c6 8016
10f2d63a
VZ
8017 if test "$enableval" = yes; then
8018 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8019 else
8020 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8021 fi
e6cc62c6 8022
10f2d63a 8023else
e6cc62c6 8024
10f2d63a
VZ
8025 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8026 if test "x$LINE" != x ; then
8027 eval "DEFAULT_$LINE"
8028 else
8029 no_cache=1
8030 fi
8031
8032 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8033
e6cc62c6 8034fi;
10f2d63a 8035
1e6feb95
VZ
8036 eval "$ac_cv_use_treectrl"
8037 if test "$no_cache" != 1; then
8038 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8039 fi
8040
8041 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8042 echo "$as_me:$LINENO: result: yes" >&5
8043echo "${ECHO_T}yes" >&6
1e6feb95 8044 else
e6cc62c6
VS
8045 echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6
1e6feb95 8047 fi
e6cc62c6 8048
1e6feb95 8049
5005acfe 8050 enablestring=
e6cc62c6
VS
8051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8052echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8053 no_cache=0
8054 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8055if test "${enable_tipwindow+set}" = set; then
8056 enableval="$enable_tipwindow"
e6cc62c6 8057
9926e4a4
VZ
8058 if test "$enableval" = yes; then
8059 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8060 else
8061 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8062 fi
e6cc62c6 8063
9926e4a4 8064else
e6cc62c6 8065
9926e4a4
VZ
8066 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8067 if test "x$LINE" != x ; then
8068 eval "DEFAULT_$LINE"
8069 else
8070 no_cache=1
8071 fi
8072
8073 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8074
e6cc62c6 8075fi;
9926e4a4
VZ
8076
8077 eval "$ac_cv_use_tipwindow"
8078 if test "$no_cache" != 1; then
8079 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8080 fi
8081
8082 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8083 echo "$as_me:$LINENO: result: yes" >&5
8084echo "${ECHO_T}yes" >&6
9926e4a4 8085 else
e6cc62c6
VS
8086 echo "$as_me:$LINENO: result: no" >&5
8087echo "${ECHO_T}no" >&6
9926e4a4 8088 fi
e6cc62c6 8089
9926e4a4 8090
5005acfe 8091 enablestring=
e6cc62c6
VS
8092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8093echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8094 no_cache=0
8095 # Check whether --enable-popupwin or --disable-popupwin was given.
8096if test "${enable_popupwin+set}" = set; then
8097 enableval="$enable_popupwin"
e6cc62c6 8098
9f41d601
RR
8099 if test "$enableval" = yes; then
8100 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8101 else
8102 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8103 fi
e6cc62c6 8104
9f41d601 8105else
e6cc62c6 8106
9f41d601
RR
8107 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8108 if test "x$LINE" != x ; then
8109 eval "DEFAULT_$LINE"
8110 else
8111 no_cache=1
8112 fi
8113
8114 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8115
e6cc62c6 8116fi;
9f41d601
RR
8117
8118 eval "$ac_cv_use_popupwin"
8119 if test "$no_cache" != 1; then
8120 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8121 fi
8122
8123 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8124 echo "$as_me:$LINENO: result: yes" >&5
8125echo "${ECHO_T}yes" >&6
9f41d601 8126 else
e6cc62c6
VS
8127 echo "$as_me:$LINENO: result: no" >&5
8128echo "${ECHO_T}no" >&6
9f41d601 8129 fi
e6cc62c6 8130
52127426 8131
8284b0c5
MB
8132
8133
5005acfe 8134 enablestring=
e6cc62c6
VS
8135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8136echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8137 no_cache=0
8138 # Check whether --enable-commondlg or --disable-commondlg was given.
8139if test "${enable_commondlg+set}" = set; then
8140 enableval="$enable_commondlg"
e6cc62c6 8141
1e6feb95
VZ
8142 if test "$enableval" = yes; then
8143 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8144 else
8145 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8146 fi
e6cc62c6 8147
1e6feb95 8148else
e6cc62c6 8149
1e6feb95
VZ
8150 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8151 if test "x$LINE" != x ; then
8152 eval "DEFAULT_$LINE"
8153 else
8154 no_cache=1
8155 fi
8156
8157 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8158
e6cc62c6 8159fi;
1e6feb95
VZ
8160
8161 eval "$ac_cv_use_commondlg"
8162 if test "$no_cache" != 1; then
8163 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8164 fi
8165
8166 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8167 echo "$as_me:$LINENO: result: yes" >&5
8168echo "${ECHO_T}yes" >&6
1e6feb95 8169 else
e6cc62c6
VS
8170 echo "$as_me:$LINENO: result: no" >&5
8171echo "${ECHO_T}no" >&6
1e6feb95 8172 fi
e6cc62c6 8173
1e6feb95 8174
5005acfe 8175 enablestring=
e6cc62c6
VS
8176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8177echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8178 no_cache=0
8179 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8180if test "${enable_choicedlg+set}" = set; then
8181 enableval="$enable_choicedlg"
e6cc62c6 8182
1e6feb95
VZ
8183 if test "$enableval" = yes; then
8184 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8185 else
8186 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8187 fi
e6cc62c6 8188
1e6feb95 8189else
e6cc62c6 8190
1e6feb95
VZ
8191 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8192 if test "x$LINE" != x ; then
8193 eval "DEFAULT_$LINE"
8194 else
8195 no_cache=1
8196 fi
8197
8198 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8199
e6cc62c6 8200fi;
1e6feb95
VZ
8201
8202 eval "$ac_cv_use_choicedlg"
8203 if test "$no_cache" != 1; then
8204 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8205 fi
8206
8207 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8208 echo "$as_me:$LINENO: result: yes" >&5
8209echo "${ECHO_T}yes" >&6
1e6feb95 8210 else
e6cc62c6
VS
8211 echo "$as_me:$LINENO: result: no" >&5
8212echo "${ECHO_T}no" >&6
1e6feb95 8213 fi
e6cc62c6 8214
1e6feb95 8215
5005acfe 8216 enablestring=
e6cc62c6
VS
8217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8218echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8219 no_cache=0
8220 # Check whether --enable-coldlg or --disable-coldlg was given.
8221if test "${enable_coldlg+set}" = set; then
8222 enableval="$enable_coldlg"
e6cc62c6 8223
1e6feb95
VZ
8224 if test "$enableval" = yes; then
8225 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8226 else
8227 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8228 fi
e6cc62c6 8229
1e6feb95 8230else
e6cc62c6 8231
1e6feb95
VZ
8232 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8233 if test "x$LINE" != x ; then
8234 eval "DEFAULT_$LINE"
8235 else
8236 no_cache=1
8237 fi
8238
8239 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8240
e6cc62c6 8241fi;
1e6feb95
VZ
8242
8243 eval "$ac_cv_use_coldlg"
8244 if test "$no_cache" != 1; then
8245 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8246 fi
8247
8248 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8249 echo "$as_me:$LINENO: result: yes" >&5
8250echo "${ECHO_T}yes" >&6
1e6feb95 8251 else
e6cc62c6
VS
8252 echo "$as_me:$LINENO: result: no" >&5
8253echo "${ECHO_T}no" >&6
1e6feb95 8254 fi
e6cc62c6 8255
1e6feb95 8256
5005acfe 8257 enablestring=
e6cc62c6
VS
8258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8259echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8260 no_cache=0
8261 # Check whether --enable-filedlg or --disable-filedlg was given.
8262if test "${enable_filedlg+set}" = set; then
8263 enableval="$enable_filedlg"
e6cc62c6 8264
1e6feb95
VZ
8265 if test "$enableval" = yes; then
8266 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8267 else
8268 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8269 fi
e6cc62c6 8270
1e6feb95 8271else
e6cc62c6 8272
1e6feb95
VZ
8273 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8274 if test "x$LINE" != x ; then
8275 eval "DEFAULT_$LINE"
8276 else
8277 no_cache=1
8278 fi
8279
8280 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8281
e6cc62c6 8282fi;
1e6feb95
VZ
8283
8284 eval "$ac_cv_use_filedlg"
8285 if test "$no_cache" != 1; then
8286 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8287 fi
8288
8289 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8290 echo "$as_me:$LINENO: result: yes" >&5
8291echo "${ECHO_T}yes" >&6
1e6feb95 8292 else
e6cc62c6
VS
8293 echo "$as_me:$LINENO: result: no" >&5
8294echo "${ECHO_T}no" >&6
1e6feb95 8295 fi
e6cc62c6 8296
1e6feb95 8297
5005acfe 8298 enablestring=
e6cc62c6
VS
8299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8300echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8301 no_cache=0
69d27ff7
MB
8302 # Check whether --enable-finddlg or --disable-finddlg was given.
8303if test "${enable_finddlg+set}" = set; then
8304 enableval="$enable_finddlg"
e6cc62c6 8305
8db37e06 8306 if test "$enableval" = yes; then
69d27ff7 8307 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8308 else
69d27ff7 8309 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8310 fi
e6cc62c6 8311
8db37e06 8312else
e6cc62c6 8313
8db37e06
VZ
8314 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8315 if test "x$LINE" != x ; then
8316 eval "DEFAULT_$LINE"
8317 else
8318 no_cache=1
8319 fi
8320
69d27ff7 8321 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8322
e6cc62c6 8323fi;
8db37e06 8324
69d27ff7 8325 eval "$ac_cv_use_finddlg"
8db37e06 8326 if test "$no_cache" != 1; then
69d27ff7 8327 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8328 fi
8329
8330 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8331 echo "$as_me:$LINENO: result: yes" >&5
8332echo "${ECHO_T}yes" >&6
8db37e06 8333 else
e6cc62c6
VS
8334 echo "$as_me:$LINENO: result: no" >&5
8335echo "${ECHO_T}no" >&6
8db37e06 8336 fi
e6cc62c6 8337
8db37e06 8338
5005acfe 8339 enablestring=
e6cc62c6
VS
8340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8341echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8342 no_cache=0
8343 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8344if test "${enable_fontdlg+set}" = set; then
8345 enableval="$enable_fontdlg"
e6cc62c6 8346
1e6feb95
VZ
8347 if test "$enableval" = yes; then
8348 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8349 else
8350 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8351 fi
e6cc62c6 8352
1e6feb95 8353else
e6cc62c6 8354
1e6feb95
VZ
8355 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8356 if test "x$LINE" != x ; then
8357 eval "DEFAULT_$LINE"
8358 else
8359 no_cache=1
8360 fi
8361
8362 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8363
e6cc62c6 8364fi;
1e6feb95
VZ
8365
8366 eval "$ac_cv_use_fontdlg"
8367 if test "$no_cache" != 1; then
8368 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8369 fi
8370
8371 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8372 echo "$as_me:$LINENO: result: yes" >&5
8373echo "${ECHO_T}yes" >&6
1e6feb95 8374 else
e6cc62c6
VS
8375 echo "$as_me:$LINENO: result: no" >&5
8376echo "${ECHO_T}no" >&6
1e6feb95 8377 fi
e6cc62c6 8378
1e6feb95 8379
5005acfe 8380 enablestring=
e6cc62c6
VS
8381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8382echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8383 no_cache=0
8384 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8385if test "${enable_dirdlg+set}" = set; then
8386 enableval="$enable_dirdlg"
e6cc62c6 8387
1e6feb95
VZ
8388 if test "$enableval" = yes; then
8389 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8390 else
8391 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8392 fi
e6cc62c6 8393
1e6feb95 8394else
e6cc62c6 8395
1e6feb95
VZ
8396 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8397 if test "x$LINE" != x ; then
8398 eval "DEFAULT_$LINE"
8399 else
8400 no_cache=1
8401 fi
8402
8403 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8404
e6cc62c6 8405fi;
1e6feb95
VZ
8406
8407 eval "$ac_cv_use_dirdlg"
10f2d63a 8408 if test "$no_cache" != 1; then
1e6feb95 8409 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8410 fi
8411
1e6feb95 8412 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8413 echo "$as_me:$LINENO: result: yes" >&5
8414echo "${ECHO_T}yes" >&6
10f2d63a 8415 else
e6cc62c6
VS
8416 echo "$as_me:$LINENO: result: no" >&5
8417echo "${ECHO_T}no" >&6
10f2d63a 8418 fi
e6cc62c6 8419
698dcdb6 8420
5005acfe 8421 enablestring=
e6cc62c6
VS
8422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8423echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8424 no_cache=0
1e6feb95
VZ
8425 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8426if test "${enable_msgdlg+set}" = set; then
8427 enableval="$enable_msgdlg"
e6cc62c6 8428
10f2d63a 8429 if test "$enableval" = yes; then
1e6feb95 8430 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8431 else
1e6feb95 8432 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8433 fi
e6cc62c6 8434
10f2d63a 8435else
e6cc62c6 8436
1e6feb95 8437 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8438 if test "x$LINE" != x ; then
8439 eval "DEFAULT_$LINE"
8440 else
8441 no_cache=1
8442 fi
8443
1e6feb95 8444 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8445
e6cc62c6 8446fi;
10f2d63a 8447
1e6feb95 8448 eval "$ac_cv_use_msgdlg"
10f2d63a 8449 if test "$no_cache" != 1; then
1e6feb95 8450 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8451 fi
8452
1e6feb95 8453 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8454 echo "$as_me:$LINENO: result: yes" >&5
8455echo "${ECHO_T}yes" >&6
10f2d63a 8456 else
e6cc62c6
VS
8457 echo "$as_me:$LINENO: result: no" >&5
8458echo "${ECHO_T}no" >&6
10f2d63a 8459 fi
e6cc62c6 8460
10f2d63a 8461
5005acfe 8462 enablestring=
e6cc62c6
VS
8463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8464echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8465 no_cache=0
1e6feb95
VZ
8466 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8467if test "${enable_numberdlg+set}" = set; then
8468 enableval="$enable_numberdlg"
e6cc62c6 8469
10f2d63a 8470 if test "$enableval" = yes; then
1e6feb95 8471 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8472 else
1e6feb95 8473 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8474 fi
e6cc62c6 8475
10f2d63a 8476else
e6cc62c6 8477
1e6feb95 8478 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8479 if test "x$LINE" != x ; then
8480 eval "DEFAULT_$LINE"
8481 else
8482 no_cache=1
8483 fi
8484
1e6feb95 8485 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8486
e6cc62c6 8487fi;
10f2d63a 8488
1e6feb95 8489 eval "$ac_cv_use_numberdlg"
10f2d63a 8490 if test "$no_cache" != 1; then
1e6feb95 8491 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8492 fi
8493
1e6feb95 8494 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8495 echo "$as_me:$LINENO: result: yes" >&5
8496echo "${ECHO_T}yes" >&6
10f2d63a 8497 else
e6cc62c6
VS
8498 echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
10f2d63a 8500 fi
e6cc62c6 8501
10f2d63a 8502
5005acfe 8503 enablestring=
e6cc62c6
VS
8504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8505echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8506 no_cache=0
8507 # Check whether --enable-splash or --disable-splash was given.
8508if test "${enable_splash+set}" = set; then
8509 enableval="$enable_splash"
e6cc62c6 8510
cbca9943
VZ
8511 if test "$enableval" = yes; then
8512 ac_cv_use_splash='wxUSE_SPLASH=yes'
8513 else
8514 ac_cv_use_splash='wxUSE_SPLASH=no'
8515 fi
e6cc62c6 8516
cbca9943 8517else
e6cc62c6 8518
cbca9943
VZ
8519 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8520 if test "x$LINE" != x ; then
8521 eval "DEFAULT_$LINE"
8522 else
8523 no_cache=1
8524 fi
8525
8526 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8527
e6cc62c6 8528fi;
cbca9943
VZ
8529
8530 eval "$ac_cv_use_splash"
8531 if test "$no_cache" != 1; then
8532 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8533 fi
8534
8535 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8536 echo "$as_me:$LINENO: result: yes" >&5
8537echo "${ECHO_T}yes" >&6
cbca9943 8538 else
e6cc62c6
VS
8539 echo "$as_me:$LINENO: result: no" >&5
8540echo "${ECHO_T}no" >&6
cbca9943 8541 fi
e6cc62c6 8542
cbca9943 8543
5005acfe 8544 enablestring=
e6cc62c6
VS
8545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8546echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8547 no_cache=0
8548 # Check whether --enable-textdlg or --disable-textdlg was given.
8549if test "${enable_textdlg+set}" = set; then
8550 enableval="$enable_textdlg"
e6cc62c6 8551
10f2d63a
VZ
8552 if test "$enableval" = yes; then
8553 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8554 else
8555 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8556 fi
e6cc62c6 8557
10f2d63a 8558else
e6cc62c6 8559
10f2d63a
VZ
8560 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8561 if test "x$LINE" != x ; then
8562 eval "DEFAULT_$LINE"
8563 else
8564 no_cache=1
8565 fi
8566
8567 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8568
e6cc62c6 8569fi;
10f2d63a
VZ
8570
8571 eval "$ac_cv_use_textdlg"
8572 if test "$no_cache" != 1; then
8573 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8574 fi
8575
8576 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8577 echo "$as_me:$LINENO: result: yes" >&5
8578echo "${ECHO_T}yes" >&6
10f2d63a 8579 else
e6cc62c6
VS
8580 echo "$as_me:$LINENO: result: no" >&5
8581echo "${ECHO_T}no" >&6
10f2d63a 8582 fi
e6cc62c6 8583
10f2d63a 8584
5005acfe 8585 enablestring=
e6cc62c6
VS
8586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8587echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8588 no_cache=0
8589 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8590if test "${enable_tipdlg+set}" = set; then
8591 enableval="$enable_tipdlg"
e6cc62c6 8592
10f2d63a
VZ
8593 if test "$enableval" = yes; then
8594 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8595 else
8596 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8597 fi
e6cc62c6 8598
10f2d63a 8599else
e6cc62c6 8600
10f2d63a
VZ
8601 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8602 if test "x$LINE" != x ; then
8603 eval "DEFAULT_$LINE"
8604 else
8605 no_cache=1
8606 fi
8607
8608 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8609
e6cc62c6 8610fi;
10f2d63a
VZ
8611
8612 eval "$ac_cv_use_tipdlg"
8613 if test "$no_cache" != 1; then
8614 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8615 fi
8616
8617 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8618 echo "$as_me:$LINENO: result: yes" >&5
8619echo "${ECHO_T}yes" >&6
10f2d63a 8620 else
e6cc62c6
VS
8621 echo "$as_me:$LINENO: result: no" >&5
8622echo "${ECHO_T}no" >&6
10f2d63a 8623 fi
e6cc62c6 8624
10f2d63a 8625
5005acfe 8626 enablestring=
e6cc62c6
VS
8627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8628echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8629 no_cache=0
8630 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8631if test "${enable_progressdlg+set}" = set; then
8632 enableval="$enable_progressdlg"
e6cc62c6 8633
10f2d63a
VZ
8634 if test "$enableval" = yes; then
8635 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8636 else
8637 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8638 fi
e6cc62c6 8639
10f2d63a 8640else
e6cc62c6 8641
10f2d63a
VZ
8642 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8643 if test "x$LINE" != x ; then
8644 eval "DEFAULT_$LINE"
8645 else
8646 no_cache=1
8647 fi
8648
8649 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8650
e6cc62c6 8651fi;
10f2d63a
VZ
8652
8653 eval "$ac_cv_use_progressdlg"
8654 if test "$no_cache" != 1; then
8655 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8656 fi
8657
8658 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8659 echo "$as_me:$LINENO: result: yes" >&5
8660echo "${ECHO_T}yes" >&6
10f2d63a 8661 else
e6cc62c6
VS
8662 echo "$as_me:$LINENO: result: no" >&5
8663echo "${ECHO_T}no" >&6
10f2d63a 8664 fi
e6cc62c6 8665
10f2d63a 8666
5005acfe 8667 enablestring=
e6cc62c6
VS
8668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8669echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8670 no_cache=0
8671 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8672if test "${enable_wizarddlg+set}" = set; then
8673 enableval="$enable_wizarddlg"
e6cc62c6 8674
b1f5d087
VZ
8675 if test "$enableval" = yes; then
8676 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8677 else
8678 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8679 fi
e6cc62c6 8680
b1f5d087 8681else
e6cc62c6 8682
b1f5d087
VZ
8683 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8684 if test "x$LINE" != x ; then
8685 eval "DEFAULT_$LINE"
8686 else
8687 no_cache=1
8688 fi
8689
8690 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8691
e6cc62c6 8692fi;
b1f5d087
VZ
8693
8694 eval "$ac_cv_use_wizarddlg"
8695 if test "$no_cache" != 1; then
8696 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8697 fi
8698
8699 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8700 echo "$as_me:$LINENO: result: yes" >&5
8701echo "${ECHO_T}yes" >&6
b1f5d087 8702 else
e6cc62c6
VS
8703 echo "$as_me:$LINENO: result: no" >&5
8704echo "${ECHO_T}no" >&6
b1f5d087 8705 fi
e6cc62c6 8706
8284b0c5
MB
8707
8708
52127426 8709
5005acfe 8710 enablestring=
e6cc62c6
VS
8711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8712echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8713 no_cache=0
8714 # Check whether --enable-menus or --disable-menus was given.
8715if test "${enable_menus+set}" = set; then
8716 enableval="$enable_menus"
e6cc62c6 8717
1e6feb95
VZ
8718 if test "$enableval" = yes; then
8719 ac_cv_use_menus='wxUSE_MENUS=yes'
8720 else
8721 ac_cv_use_menus='wxUSE_MENUS=no'
8722 fi
e6cc62c6 8723
1e6feb95 8724else
e6cc62c6 8725
1e6feb95
VZ
8726 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8727 if test "x$LINE" != x ; then
8728 eval "DEFAULT_$LINE"
8729 else
8730 no_cache=1
8731 fi
8732
8733 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8734
e6cc62c6 8735fi;
1e6feb95
VZ
8736
8737 eval "$ac_cv_use_menus"
8738 if test "$no_cache" != 1; then
8739 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8740 fi
8741
8742 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8743 echo "$as_me:$LINENO: result: yes" >&5
8744echo "${ECHO_T}yes" >&6
1e6feb95 8745 else
e6cc62c6
VS
8746 echo "$as_me:$LINENO: result: no" >&5
8747echo "${ECHO_T}no" >&6
1e6feb95 8748 fi
e6cc62c6 8749
1e6feb95 8750
5005acfe 8751 enablestring=
e6cc62c6
VS
8752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8753echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8754 no_cache=0
8755 # Check whether --enable-miniframe or --disable-miniframe was given.
8756if test "${enable_miniframe+set}" = set; then
8757 enableval="$enable_miniframe"
e6cc62c6 8758
10f2d63a
VZ
8759 if test "$enableval" = yes; then
8760 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8761 else
8762 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8763 fi
e6cc62c6 8764
10f2d63a 8765else
e6cc62c6 8766
10f2d63a
VZ
8767 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8768 if test "x$LINE" != x ; then
8769 eval "DEFAULT_$LINE"
8770 else
8771 no_cache=1
8772 fi
8773
8774 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8775
e6cc62c6 8776fi;
10f2d63a
VZ
8777
8778 eval "$ac_cv_use_miniframe"
8779 if test "$no_cache" != 1; then
8780 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8781 fi
8782
8783 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8784 echo "$as_me:$LINENO: result: yes" >&5
8785echo "${ECHO_T}yes" >&6
10f2d63a 8786 else
e6cc62c6
VS
8787 echo "$as_me:$LINENO: result: no" >&5
8788echo "${ECHO_T}no" >&6
10f2d63a 8789 fi
e6cc62c6 8790
10f2d63a 8791
5005acfe 8792 enablestring=
e6cc62c6
VS
8793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8794echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8795 no_cache=0
8796 # Check whether --enable-tooltips or --disable-tooltips was given.
8797if test "${enable_tooltips+set}" = set; then
8798 enableval="$enable_tooltips"
e6cc62c6 8799
10f2d63a
VZ
8800 if test "$enableval" = yes; then
8801 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8802 else
8803 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8804 fi
e6cc62c6 8805
10f2d63a 8806else
e6cc62c6 8807
10f2d63a
VZ
8808 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8809 if test "x$LINE" != x ; then
8810 eval "DEFAULT_$LINE"
8811 else
8812 no_cache=1
8813 fi
8814
8815 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8816
e6cc62c6 8817fi;
10f2d63a
VZ
8818
8819 eval "$ac_cv_use_tooltips"
8820 if test "$no_cache" != 1; then
8821 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8822 fi
8823
8824 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8825 echo "$as_me:$LINENO: result: yes" >&5
8826echo "${ECHO_T}yes" >&6
10f2d63a 8827 else
e6cc62c6
VS
8828 echo "$as_me:$LINENO: result: no" >&5
8829echo "${ECHO_T}no" >&6
10f2d63a 8830 fi
e6cc62c6 8831
10f2d63a 8832
5005acfe 8833 enablestring=
e6cc62c6
VS
8834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8835echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8836 no_cache=0
8837 # Check whether --enable-splines or --disable-splines was given.
8838if test "${enable_splines+set}" = set; then
8839 enableval="$enable_splines"
e6cc62c6 8840
10f2d63a
VZ
8841 if test "$enableval" = yes; then
8842 ac_cv_use_splines='wxUSE_SPLINES=yes'
8843 else
8844 ac_cv_use_splines='wxUSE_SPLINES=no'
8845 fi
e6cc62c6 8846
10f2d63a 8847else
e6cc62c6 8848
10f2d63a
VZ
8849 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8850 if test "x$LINE" != x ; then
8851 eval "DEFAULT_$LINE"
8852 else
8853 no_cache=1
8854 fi
8855
8856 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8857
e6cc62c6 8858fi;
10f2d63a
VZ
8859
8860 eval "$ac_cv_use_splines"
8861 if test "$no_cache" != 1; then
8862 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8863 fi
8864
8865 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8866 echo "$as_me:$LINENO: result: yes" >&5
8867echo "${ECHO_T}yes" >&6
10f2d63a 8868 else
e6cc62c6
VS
8869 echo "$as_me:$LINENO: result: no" >&5
8870echo "${ECHO_T}no" >&6
10f2d63a 8871 fi
e6cc62c6 8872
10f2d63a 8873
5005acfe 8874 enablestring=
e6cc62c6
VS
8875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8876echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8877 no_cache=0
8878 # Check whether --enable-validators or --disable-validators was given.
8879if test "${enable_validators+set}" = set; then
8880 enableval="$enable_validators"
e6cc62c6 8881
10f2d63a
VZ
8882 if test "$enableval" = yes; then
8883 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8884 else
8885 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8886 fi
e6cc62c6 8887
10f2d63a 8888else
e6cc62c6 8889
10f2d63a
VZ
8890 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8891 if test "x$LINE" != x ; then
8892 eval "DEFAULT_$LINE"
8893 else
8894 no_cache=1
8895 fi
8896
8897 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8898
e6cc62c6 8899fi;
10f2d63a
VZ
8900
8901 eval "$ac_cv_use_validators"
8902 if test "$no_cache" != 1; then
8903 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8904 fi
8905
8906 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8907 echo "$as_me:$LINENO: result: yes" >&5
8908echo "${ECHO_T}yes" >&6
10f2d63a 8909 else
e6cc62c6
VS
8910 echo "$as_me:$LINENO: result: no" >&5
8911echo "${ECHO_T}no" >&6
10f2d63a 8912 fi
e6cc62c6 8913
10f2d63a 8914
5005acfe 8915 enablestring=
e6cc62c6
VS
8916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8917echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8918 no_cache=0
8919 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8920if test "${enable_busyinfo+set}" = set; then
8921 enableval="$enable_busyinfo"
e6cc62c6 8922
10f2d63a
VZ
8923 if test "$enableval" = yes; then
8924 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8925 else
8926 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8927 fi
e6cc62c6 8928
10f2d63a 8929else
e6cc62c6 8930
10f2d63a
VZ
8931 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8932 if test "x$LINE" != x ; then
8933 eval "DEFAULT_$LINE"
8934 else
8935 no_cache=1
8936 fi
8937
8938 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8939
e6cc62c6 8940fi;
10f2d63a
VZ
8941
8942 eval "$ac_cv_use_busyinfo"
8943 if test "$no_cache" != 1; then
8944 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8945 fi
8946
8947 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8948 echo "$as_me:$LINENO: result: yes" >&5
8949echo "${ECHO_T}yes" >&6
10f2d63a 8950 else
e6cc62c6
VS
8951 echo "$as_me:$LINENO: result: no" >&5
8952echo "${ECHO_T}no" >&6
10f2d63a 8953 fi
e6cc62c6 8954
10f2d63a 8955
5005acfe 8956 enablestring=
e6cc62c6
VS
8957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8958echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8959 no_cache=0
8960 # Check whether --enable-joystick or --disable-joystick was given.
8961if test "${enable_joystick+set}" = set; then
8962 enableval="$enable_joystick"
e6cc62c6 8963
f6bcfd97
BP
8964 if test "$enableval" = yes; then
8965 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8966 else
8967 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8968 fi
e6cc62c6 8969
f6bcfd97 8970else
e6cc62c6 8971
f6bcfd97
BP
8972 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8973 if test "x$LINE" != x ; then
8974 eval "DEFAULT_$LINE"
8975 else
8976 no_cache=1
8977 fi
8978
8979 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8980
e6cc62c6 8981fi;
f6bcfd97
BP
8982
8983 eval "$ac_cv_use_joystick"
8984 if test "$no_cache" != 1; then
8985 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8986 fi
8987
8988 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8989 echo "$as_me:$LINENO: result: yes" >&5
8990echo "${ECHO_T}yes" >&6
f6bcfd97 8991 else
e6cc62c6
VS
8992 echo "$as_me:$LINENO: result: no" >&5
8993echo "${ECHO_T}no" >&6
f6bcfd97 8994 fi
e6cc62c6 8995
698dcdb6 8996
5005acfe 8997 enablestring=
e6cc62c6
VS
8998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8999echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9000 no_cache=0
9001 # Check whether --enable-metafile or --disable-metafile was given.
9002if test "${enable_metafile+set}" = set; then
9003 enableval="$enable_metafile"
e6cc62c6 9004
1e6feb95
VZ
9005 if test "$enableval" = yes; then
9006 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9007 else
9008 ac_cv_use_metafile='wxUSE_METAFILE=no'
9009 fi
e6cc62c6 9010
1e6feb95 9011else
e6cc62c6 9012
1e6feb95
VZ
9013 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9014 if test "x$LINE" != x ; then
9015 eval "DEFAULT_$LINE"
9016 else
9017 no_cache=1
9018 fi
9019
9020 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9021
e6cc62c6 9022fi;
1e6feb95
VZ
9023
9024 eval "$ac_cv_use_metafile"
9025 if test "$no_cache" != 1; then
9026 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9027 fi
9028
9029 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9030 echo "$as_me:$LINENO: result: yes" >&5
9031echo "${ECHO_T}yes" >&6
1e6feb95 9032 else
e6cc62c6
VS
9033 echo "$as_me:$LINENO: result: no" >&5
9034echo "${ECHO_T}no" >&6
1e6feb95 9035 fi
e6cc62c6 9036
1e6feb95 9037
5005acfe 9038 enablestring=
e6cc62c6
VS
9039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9040echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9041 no_cache=0
9042 # Check whether --enable-dragimage or --disable-dragimage was given.
9043if test "${enable_dragimage+set}" = set; then
9044 enableval="$enable_dragimage"
e6cc62c6 9045
24fd6d87
VZ
9046 if test "$enableval" = yes; then
9047 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9048 else
9049 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9050 fi
e6cc62c6 9051
24fd6d87 9052else
e6cc62c6 9053
24fd6d87
VZ
9054 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9055 if test "x$LINE" != x ; then
9056 eval "DEFAULT_$LINE"
9057 else
9058 no_cache=1
9059 fi
9060
9061 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9062
e6cc62c6 9063fi;
24fd6d87
VZ
9064
9065 eval "$ac_cv_use_dragimage"
9066 if test "$no_cache" != 1; then
9067 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9068 fi
9069
9070 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9071 echo "$as_me:$LINENO: result: yes" >&5
9072echo "${ECHO_T}yes" >&6
24fd6d87 9073 else
e6cc62c6
VS
9074 echo "$as_me:$LINENO: result: no" >&5
9075echo "${ECHO_T}no" >&6
24fd6d87 9076 fi
e6cc62c6 9077
52127426 9078
7bb2947d 9079 enablestring=
e6cc62c6
VS
9080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9081echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9082 no_cache=0
9083 # Check whether --enable-accessibility or --disable-accessibility was given.
9084if test "${enable_accessibility+set}" = set; then
9085 enableval="$enable_accessibility"
e6cc62c6 9086
7bb2947d
MB
9087 if test "$enableval" = yes; then
9088 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9089 else
9090 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9091 fi
e6cc62c6 9092
7bb2947d 9093else
e6cc62c6 9094
7bb2947d
MB
9095 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9096 if test "x$LINE" != x ; then
9097 eval "DEFAULT_$LINE"
9098 else
9099 no_cache=1
9100 fi
9101
9102 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9103
e6cc62c6 9104fi;
7bb2947d
MB
9105
9106 eval "$ac_cv_use_accessibility"
9107 if test "$no_cache" != 1; then
9108 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9109 fi
9110
9111 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9112 echo "$as_me:$LINENO: result: yes" >&5
9113echo "${ECHO_T}yes" >&6
7bb2947d 9114 else
e6cc62c6
VS
9115 echo "$as_me:$LINENO: result: no" >&5
9116echo "${ECHO_T}no" >&6
7bb2947d 9117 fi
e6cc62c6 9118
7bb2947d 9119
8284b0c5
MB
9120
9121
5005acfe 9122 enablestring=
e6cc62c6
VS
9123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9124echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9125 no_cache=0
9126 # Check whether --enable-palette or --disable-palette was given.
9127if test "${enable_palette+set}" = set; then
9128 enableval="$enable_palette"
e6cc62c6 9129
edae8572
VZ
9130 if test "$enableval" = yes; then
9131 ac_cv_use_palette='wxUSE_PALETTE=yes'
9132 else
9133 ac_cv_use_palette='wxUSE_PALETTE=no'
9134 fi
e6cc62c6 9135
edae8572 9136else
e6cc62c6 9137
edae8572
VZ
9138 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9139 if test "x$LINE" != x ; then
9140 eval "DEFAULT_$LINE"
9141 else
9142 no_cache=1
9143 fi
9144
9145 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9146
e6cc62c6 9147fi;
edae8572
VZ
9148
9149 eval "$ac_cv_use_palette"
9150 if test "$no_cache" != 1; then
9151 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9152 fi
9153
9154 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9155 echo "$as_me:$LINENO: result: yes" >&5
9156echo "${ECHO_T}yes" >&6
edae8572 9157 else
e6cc62c6
VS
9158 echo "$as_me:$LINENO: result: no" >&5
9159echo "${ECHO_T}no" >&6
edae8572 9160 fi
e6cc62c6 9161
edae8572 9162
5005acfe 9163 enablestring=
e6cc62c6
VS
9164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9165echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9166 no_cache=0
9167 # Check whether --enable-image or --disable-image was given.
9168if test "${enable_image+set}" = set; then
9169 enableval="$enable_image"
e6cc62c6 9170
0046ff7c
VS
9171 if test "$enableval" = yes; then
9172 ac_cv_use_image='wxUSE_IMAGE=yes'
9173 else
9174 ac_cv_use_image='wxUSE_IMAGE=no'
9175 fi
e6cc62c6 9176
0046ff7c 9177else
e6cc62c6 9178
0046ff7c
VS
9179 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9180 if test "x$LINE" != x ; then
9181 eval "DEFAULT_$LINE"
9182 else
9183 no_cache=1
9184 fi
9185
9186 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9187
e6cc62c6 9188fi;
0046ff7c
VS
9189
9190 eval "$ac_cv_use_image"
9191 if test "$no_cache" != 1; then
9192 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9193 fi
9194
9195 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9196 echo "$as_me:$LINENO: result: yes" >&5
9197echo "${ECHO_T}yes" >&6
0046ff7c 9198 else
e6cc62c6
VS
9199 echo "$as_me:$LINENO: result: no" >&5
9200echo "${ECHO_T}no" >&6
0046ff7c 9201 fi
e6cc62c6 9202
0046ff7c 9203
5005acfe 9204 enablestring=
e6cc62c6
VS
9205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9206echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9207 no_cache=0
9208 # Check whether --enable-gif or --disable-gif was given.
9209if test "${enable_gif+set}" = set; then
9210 enableval="$enable_gif"
e6cc62c6 9211
10f2d63a
VZ
9212 if test "$enableval" = yes; then
9213 ac_cv_use_gif='wxUSE_GIF=yes'
9214 else
9215 ac_cv_use_gif='wxUSE_GIF=no'
9216 fi
e6cc62c6 9217
10f2d63a 9218else
e6cc62c6 9219
10f2d63a
VZ
9220 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9221 if test "x$LINE" != x ; then
9222 eval "DEFAULT_$LINE"
9223 else
9224 no_cache=1
9225 fi
9226
9227 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9228
e6cc62c6 9229fi;
10f2d63a
VZ
9230
9231 eval "$ac_cv_use_gif"
9232 if test "$no_cache" != 1; then
9233 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9234 fi
9235
9236 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9237 echo "$as_me:$LINENO: result: yes" >&5
9238echo "${ECHO_T}yes" >&6
10f2d63a 9239 else
e6cc62c6
VS
9240 echo "$as_me:$LINENO: result: no" >&5
9241echo "${ECHO_T}no" >&6
10f2d63a 9242 fi
e6cc62c6 9243
10f2d63a 9244
5005acfe 9245 enablestring=
e6cc62c6
VS
9246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9247echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9248 no_cache=0
9249 # Check whether --enable-pcx or --disable-pcx was given.
9250if test "${enable_pcx+set}" = set; then
9251 enableval="$enable_pcx"
e6cc62c6 9252
10f2d63a
VZ
9253 if test "$enableval" = yes; then
9254 ac_cv_use_pcx='wxUSE_PCX=yes'
9255 else
9256 ac_cv_use_pcx='wxUSE_PCX=no'
9257 fi
e6cc62c6 9258
10f2d63a 9259else
e6cc62c6 9260
10f2d63a
VZ
9261 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9262 if test "x$LINE" != x ; then
9263 eval "DEFAULT_$LINE"
9264 else
9265 no_cache=1
9266 fi
9267
9268 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9269
e6cc62c6 9270fi;
10f2d63a
VZ
9271
9272 eval "$ac_cv_use_pcx"
9273 if test "$no_cache" != 1; then
9274 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9275 fi
9276
9277 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9278 echo "$as_me:$LINENO: result: yes" >&5
9279echo "${ECHO_T}yes" >&6
10f2d63a 9280 else
e6cc62c6
VS
9281 echo "$as_me:$LINENO: result: no" >&5
9282echo "${ECHO_T}no" >&6
10f2d63a 9283 fi
e6cc62c6 9284
10f2d63a 9285
5005acfe 9286 enablestring=
e6cc62c6
VS
9287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9288echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9289 no_cache=0
9290 # Check whether --enable-iff or --disable-iff was given.
9291if test "${enable_iff+set}" = set; then
9292 enableval="$enable_iff"
e6cc62c6 9293
4b6b4dfc
RR
9294 if test "$enableval" = yes; then
9295 ac_cv_use_iff='wxUSE_IFF=yes'
9296 else
9297 ac_cv_use_iff='wxUSE_IFF=no'
9298 fi
e6cc62c6 9299
4b6b4dfc 9300else
e6cc62c6 9301
4b6b4dfc
RR
9302 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9303 if test "x$LINE" != x ; then
9304 eval "DEFAULT_$LINE"
9305 else
9306 no_cache=1
9307 fi
9308
9309 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9310
e6cc62c6 9311fi;
4b6b4dfc
RR
9312
9313 eval "$ac_cv_use_iff"
9314 if test "$no_cache" != 1; then
9315 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9316 fi
9317
9318 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9319 echo "$as_me:$LINENO: result: yes" >&5
9320echo "${ECHO_T}yes" >&6
4b6b4dfc 9321 else
e6cc62c6
VS
9322 echo "$as_me:$LINENO: result: no" >&5
9323echo "${ECHO_T}no" >&6
4b6b4dfc 9324 fi
e6cc62c6 9325
4b6b4dfc 9326
5005acfe 9327 enablestring=
e6cc62c6
VS
9328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9329echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9330 no_cache=0
9331 # Check whether --enable-pnm or --disable-pnm was given.
9332if test "${enable_pnm+set}" = set; then
9333 enableval="$enable_pnm"
e6cc62c6 9334
10f2d63a
VZ
9335 if test "$enableval" = yes; then
9336 ac_cv_use_pnm='wxUSE_PNM=yes'
9337 else
9338 ac_cv_use_pnm='wxUSE_PNM=no'
9339 fi
e6cc62c6 9340
10f2d63a 9341else
e6cc62c6 9342
10f2d63a
VZ
9343 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9344 if test "x$LINE" != x ; then
9345 eval "DEFAULT_$LINE"
9346 else
9347 no_cache=1
9348 fi
9349
9350 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9351
e6cc62c6 9352fi;
10f2d63a
VZ
9353
9354 eval "$ac_cv_use_pnm"
9355 if test "$no_cache" != 1; then
9356 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9357 fi
9358
9359 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9360 echo "$as_me:$LINENO: result: yes" >&5
9361echo "${ECHO_T}yes" >&6
10f2d63a 9362 else
e6cc62c6
VS
9363 echo "$as_me:$LINENO: result: no" >&5
9364echo "${ECHO_T}no" >&6
10f2d63a 9365 fi
e6cc62c6 9366
10f2d63a 9367
5005acfe 9368 enablestring=
e6cc62c6
VS
9369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9370echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9371 no_cache=0
69d27ff7
MB
9372 # Check whether --enable-xpm or --disable-xpm was given.
9373if test "${enable_xpm+set}" = set; then
9374 enableval="$enable_xpm"
e6cc62c6 9375
0046ff7c 9376 if test "$enableval" = yes; then
69d27ff7 9377 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9378 else
69d27ff7 9379 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9380 fi
e6cc62c6 9381
0046ff7c 9382else
e6cc62c6 9383
0046ff7c
VS
9384 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9385 if test "x$LINE" != x ; then
9386 eval "DEFAULT_$LINE"
9387 else
9388 no_cache=1
9389 fi
9390
69d27ff7 9391 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9392
e6cc62c6 9393fi;
0046ff7c 9394
69d27ff7 9395 eval "$ac_cv_use_xpm"
0046ff7c 9396 if test "$no_cache" != 1; then
69d27ff7 9397 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9398 fi
9399
9400 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9401 echo "$as_me:$LINENO: result: yes" >&5
9402echo "${ECHO_T}yes" >&6
0046ff7c 9403 else
e6cc62c6
VS
9404 echo "$as_me:$LINENO: result: no" >&5
9405echo "${ECHO_T}no" >&6
0046ff7c 9406 fi
e6cc62c6 9407
0046ff7c 9408
5005acfe 9409 enablestring=
e6cc62c6
VS
9410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9411echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9412 no_cache=0
c7206e64
VS
9413 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9414if test "${enable_ico_cur+set}" = set; then
9415 enableval="$enable_ico_cur"
e6cc62c6 9416
658974ae 9417 if test "$enableval" = yes; then
c7206e64 9418 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9419 else
c7206e64 9420 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9421 fi
e6cc62c6 9422
658974ae 9423else
e6cc62c6 9424
658974ae
VS
9425 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9426 if test "x$LINE" != x ; then
9427 eval "DEFAULT_$LINE"
9428 else
9429 no_cache=1
9430 fi
9431
c7206e64 9432 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9433
e6cc62c6 9434fi;
658974ae 9435
c7206e64 9436 eval "$ac_cv_use_ico_cur"
658974ae 9437 if test "$no_cache" != 1; then
c7206e64 9438 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9439 fi
9440
9441 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9442 echo "$as_me:$LINENO: result: yes" >&5
9443echo "${ECHO_T}yes" >&6
658974ae 9444 else
e6cc62c6
VS
9445 echo "$as_me:$LINENO: result: no" >&5
9446echo "${ECHO_T}no" >&6
658974ae 9447 fi
e6cc62c6 9448
658974ae 9449
b12915c1
VZ
9450fi
9451
d558c907
VS
9452case "${host}" in
9453 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
9454 PATH_IFS=';'
9455 LEX_STEM="lexyy"
d558c907
VS
9456 ;;
9457 *)
9458 PATH_IFS=':'
9459 LEX_STEM="lex.yy"
9460 ;;
9461esac
9462
8284b0c5
MB
9463
9464
10f2d63a
VZ
9465 echo "saving argument cache $wx_arg_cache_file"
9466 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9467
8284b0c5 9468
e6cc62c6
VS
9469
9470echo "$as_me:$LINENO: checking for toolkit" >&5
9471echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9472
9473# In Wine, we need to default to MSW, not GTK or MOTIF
9474if test "$wxUSE_WINE" = "yes"; then
9475 DEFAULT_DEFAULT_wxUSE_GTK=0
9476 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9477 DEFAULT_DEFAULT_wxUSE_MSW=1
9478fi
10f2d63a
VZ
9479
9480if test "$wxUSE_GUI" = "yes"; then
9481
3a922bb4 9482 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9483 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9484echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9485 { (exit 1); exit 1; }; }
3a922bb4 9486 fi
b12915c1 9487
3a922bb4
RL
9488 if test "$TOOLKIT_GIVEN" = 1; then
9489 for toolkit in `echo $ALL_TOOLKITS`; do
9490 var=wxUSE_$toolkit
9491 eval "value=\$${var}"
9492 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9493 done
10f2d63a 9494 else
3a922bb4
RL
9495 for toolkit in `echo $ALL_TOOLKITS`; do
9496 if test "$has_toolkit_in_cache" != 1; then
9497 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9498 else
9499 var=DEFAULT_wxUSE_$toolkit
9500 fi
9501 eval "wxUSE_$toolkit=\$${var}"
9502 done
10f2d63a 9503 fi
10f2d63a 9504
ac0c4cc3
DE
9505 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9506 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9507 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9508
d558c907 9509 case "${host}" in
6fa882bd 9510 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9511 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9512 esac
10f2d63a 9513
3a922bb4
RL
9514 case "$NUM_TOOLKITS" in
9515 1)
9516 ;;
9517 0)
e6cc62c6
VS
9518 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9519echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9520 { (exit 1); exit 1; }; }
3a922bb4
RL
9521 ;;
9522 *)
e6cc62c6
VS
9523 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9524echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9525 { (exit 1); exit 1; }; }
3a922bb4 9526 esac
10f2d63a 9527
3a922bb4
RL
9528 for toolkit in `echo $ALL_TOOLKITS`; do
9529 var=wxUSE_$toolkit
9530 eval "value=\$${var}"
9531 if test "x$value" != x; then
9532 cache_var=CACHE_$toolkit
9533 eval "cache=\$${cache_var}"
9534 if test "$cache" = 1; then
9535 echo "$var=$value" >> ${wx_arg_cache_file}
9536 fi
9537 if test "$value" = 1; then
9538 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9539 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9540echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9541 fi
9542 fi
9543 done
10f2d63a 9544else
9de9b8f0
VZ
9545 if test "x$host_alias" != "x"; then
9546 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9547echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9548 else
9549 echo "$as_me:$LINENO: result: base only" >&5
9550echo "${ECHO_T}base only" >&6
9551 fi
10f2d63a
VZ
9552fi
9553
43d99b6d
VS
9554wants_win32=0
9555doesnt_want_win32=0
17234b26
MB
9556case "${host}" in
9557 *-*-cygwin*)
9558 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9559 wants_win32=1
9560 else
9561 doesnt_want_win32=1
17234b26
MB
9562 fi
9563 ;;
9564 *-*-mingw*)
43d99b6d 9565 wants_win32=1
17234b26
MB
9566 ;;
9567esac
9568
89e6bf6d
VZ
9569if test "$wxUSE_WINE" = "yes"; then
9570 wants_win32=1
9571 CC=winegcc
9572 CXX=wineg++
9573 RESCOMP=wrc
9574fi
9575
43d99b6d 9576if test "$wants_win32" = 1 ; then
17234b26
MB
9577 USE_UNIX=0
9578 USE_WIN32=1
e6cc62c6 9579 cat >>confdefs.h <<\_ACEOF
17234b26 9580#define __WIN32__ 1
e6cc62c6 9581_ACEOF
17234b26 9582
e6cc62c6 9583 cat >>confdefs.h <<\_ACEOF
17234b26 9584#define __WIN95__ 1
e6cc62c6 9585_ACEOF
17234b26 9586
e6cc62c6 9587 cat >>confdefs.h <<\_ACEOF
17234b26 9588#define __WINDOWS__ 1
e6cc62c6 9589_ACEOF
17234b26 9590
e6cc62c6 9591 cat >>confdefs.h <<\_ACEOF
17234b26 9592#define __GNUWIN32__ 1
e6cc62c6 9593_ACEOF
17234b26 9594
e6cc62c6 9595 cat >>confdefs.h <<\_ACEOF
17234b26 9596#define STRICT 1
e6cc62c6 9597_ACEOF
17234b26 9598
e6cc62c6 9599 cat >>confdefs.h <<\_ACEOF
17234b26 9600#define WINVER 0x0400
e6cc62c6 9601_ACEOF
17234b26 9602
43d99b6d
VS
9603fi
9604if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9605 USE_UNIX=1
9606 USE_WIN32=0
9607fi
9608
9609if test "$USE_UNIX" = 1 ; then
9610 wxUSE_UNIX=yes
e6cc62c6 9611 cat >>confdefs.h <<\_ACEOF
17234b26 9612#define __UNIX__ 1
e6cc62c6 9613_ACEOF
17234b26
MB
9614
9615fi
9616
8284b0c5 9617
e6cc62c6 9618cat >confcache <<\_ACEOF
10f2d63a
VZ
9619# This file is a shell script that caches the results of configure
9620# tests run on this system so they can be shared between configure
e6cc62c6
VS
9621# scripts and configure runs, see configure's option --config-cache.
9622# It is not useful on other systems. If it contains results you don't
9623# want to keep, you may remove or edit it.
10f2d63a 9624#
e6cc62c6
VS
9625# config.status only pays attention to the cache file if you give it
9626# the --recheck option to rerun configure.
10f2d63a 9627#
e6cc62c6
VS
9628# `ac_cv_env_foo' variables (set or unset) will be overridden when
9629# loading this file, other *unset* `ac_cv_foo' will be assigned the
9630# following values.
9631
9632_ACEOF
9633
10f2d63a
VZ
9634# The following way of writing the cache mishandles newlines in values,
9635# but we know of no workaround that is simple, portable, and efficient.
9636# So, don't put newlines in cache variables' values.
9637# Ultrix sh set writes to stderr and can't be redirected directly,
9638# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9639{
9640 (set) 2>&1 |
9641 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9642 *ac_space=\ *)
9643 # `set' does not quote correctly, so add quotes (double-quote
9644 # substitution turns \\\\ into \\, and sed turns \\ into \).
9645 sed -n \
9646 "s/'/'\\\\''/g;
9647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9648 ;;
9649 *)
9650 # `set' quotes correctly as required by POSIX, so do not add quotes.
9651 sed -n \
9652 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9653 ;;
9654 esac;
9655} |
9656 sed '
9657 t clear
9658 : clear
9659 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9660 t end
9661 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9662 : end' >>confcache
9663if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9664 if test -w $cache_file; then
e6cc62c6
VS
9665 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9666 cat confcache >$cache_file
10f2d63a
VZ
9667 else
9668 echo "not updating unwritable cache $cache_file"
9669 fi
9670fi
9671rm -f confcache
9672
e59890c3 9673if test "$build" != "$host" ; then
9d353d4a 9674 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9675 CC=$host_alias-gcc
9676 CXX=$host_alias-c++
9677 AR=$host_alias-ar
9678 RANLIB=$host_alias-ranlib
9679 DLLTOOL=$host_alias-dlltool
9680 RESCOMP=$host_alias-windres
9681 LD=$host_alias-ld
9682 NM=$host_alias-nm
9683 STRIP=$host_alias-strip
9684 else
e6cc62c6
VS
9685 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9686echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9687 { (exit 1); exit 1; }; }
3a922bb4 9688 fi
10f2d63a
VZ
9689fi
9690
ec603395 9691CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9692ac_ext=c
9693ac_cpp='$CPP $CPPFLAGS'
9694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9696ac_compiler_gnu=$ac_cv_c_compiler_gnu
9697if test -n "$ac_tool_prefix"; then
9698 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9699set dummy ${ac_tool_prefix}gcc; ac_word=$2
9700echo "$as_me:$LINENO: checking for $ac_word" >&5
9701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9702if test "${ac_cv_prog_CC+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704else
9705 if test -n "$CC"; then
9706 ac_cv_prog_CC="$CC" # Let the user override the test.
9707else
9708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709for as_dir in $PATH
9710do
9711 IFS=$as_save_IFS
9712 test -z "$as_dir" && as_dir=.
9713 for ac_exec_ext in '' $ac_executable_extensions; do
9714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9715 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 break 2
9718 fi
9719done
9720done
9721
9722fi
9723fi
9724CC=$ac_cv_prog_CC
9725if test -n "$CC"; then
9726 echo "$as_me:$LINENO: result: $CC" >&5
9727echo "${ECHO_T}$CC" >&6
9728else
9729 echo "$as_me:$LINENO: result: no" >&5
9730echo "${ECHO_T}no" >&6
9731fi
9732
9733fi
9734if test -z "$ac_cv_prog_CC"; then
9735 ac_ct_CC=$CC
9736 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9737set dummy gcc; ac_word=$2
e6cc62c6
VS
9738echo "$as_me:$LINENO: checking for $ac_word" >&5
9739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9740if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742else
9743 if test -n "$ac_ct_CC"; then
9744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9745else
9746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747for as_dir in $PATH
9748do
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
9751 for ac_exec_ext in '' $ac_executable_extensions; do
9752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9753 ac_cv_prog_ac_ct_CC="gcc"
9754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 break 2
9756 fi
9757done
9758done
9759
9760fi
9761fi
9762ac_ct_CC=$ac_cv_prog_ac_ct_CC
9763if test -n "$ac_ct_CC"; then
9764 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9765echo "${ECHO_T}$ac_ct_CC" >&6
9766else
9767 echo "$as_me:$LINENO: result: no" >&5
9768echo "${ECHO_T}no" >&6
9769fi
9770
9771 CC=$ac_ct_CC
9772else
9773 CC="$ac_cv_prog_CC"
9774fi
9775
9776if test -z "$CC"; then
9777 if test -n "$ac_tool_prefix"; then
9778 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9779set dummy ${ac_tool_prefix}cc; ac_word=$2
9780echo "$as_me:$LINENO: checking for $ac_word" >&5
9781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9782if test "${ac_cv_prog_CC+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9784else
9785 if test -n "$CC"; then
9786 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9787else
e6cc62c6
VS
9788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $PATH
9790do
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
9794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795 ac_cv_prog_CC="${ac_tool_prefix}cc"
9796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9798 fi
9799done
9800done
9801
10f2d63a 9802fi
6232543b 9803fi
e6cc62c6 9804CC=$ac_cv_prog_CC
6232543b 9805if test -n "$CC"; then
e6cc62c6
VS
9806 echo "$as_me:$LINENO: result: $CC" >&5
9807echo "${ECHO_T}$CC" >&6
9808else
9809 echo "$as_me:$LINENO: result: no" >&5
9810echo "${ECHO_T}no" >&6
9811fi
9812
9813fi
9814if test -z "$ac_cv_prog_CC"; then
9815 ac_ct_CC=$CC
9816 # Extract the first word of "cc", so it can be a program name with args.
9817set dummy cc; ac_word=$2
9818echo "$as_me:$LINENO: checking for $ac_word" >&5
9819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9820if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822else
9823 if test -n "$ac_ct_CC"; then
9824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9825else
9826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827for as_dir in $PATH
9828do
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9833 ac_cv_prog_ac_ct_CC="cc"
9834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9836 fi
9837done
9838done
9839
9840fi
9841fi
9842ac_ct_CC=$ac_cv_prog_ac_ct_CC
9843if test -n "$ac_ct_CC"; then
9844 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9845echo "${ECHO_T}$ac_ct_CC" >&6
9846else
9847 echo "$as_me:$LINENO: result: no" >&5
9848echo "${ECHO_T}no" >&6
9849fi
9850
9851 CC=$ac_ct_CC
247f5006 9852else
e6cc62c6 9853 CC="$ac_cv_prog_CC"
247f5006
VZ
9854fi
9855
e6cc62c6 9856fi
5c6fa7d2
RR
9857if test -z "$CC"; then
9858 # Extract the first word of "cc", so it can be a program name with args.
9859set dummy cc; ac_word=$2
e6cc62c6
VS
9860echo "$as_me:$LINENO: checking for $ac_word" >&5
9861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9862if test "${ac_cv_prog_CC+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9864else
9865 if test -n "$CC"; then
9866 ac_cv_prog_CC="$CC" # Let the user override the test.
9867else
9868 ac_prog_rejected=no
e6cc62c6
VS
9869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870for as_dir in $PATH
9871do
9872 IFS=$as_save_IFS
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9877 ac_prog_rejected=yes
9878 continue
9879 fi
9880 ac_cv_prog_CC="cc"
9881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9882 break 2
9883 fi
9884done
9885done
9886
328a083c
RR
9887if test $ac_prog_rejected = yes; then
9888 # We found a bogon in the path, so make sure we never use it.
9889 set dummy $ac_cv_prog_CC
9890 shift
e6cc62c6 9891 if test $# != 0; then
328a083c 9892 # We chose a different compiler from the bogus one.
1e487827
VS
9893 # However, it has the same basename, so the bogon will be chosen
9894 # first if we set CC to just the basename; use the full file name.
9895 shift
e6cc62c6 9896 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9897 fi
1e487827
VS
9898fi
9899fi
9900fi
e6cc62c6 9901CC=$ac_cv_prog_CC
1e487827 9902if test -n "$CC"; then
e6cc62c6
VS
9903 echo "$as_me:$LINENO: result: $CC" >&5
9904echo "${ECHO_T}$CC" >&6
703e0a69 9905else
e6cc62c6
VS
9906 echo "$as_me:$LINENO: result: no" >&5
9907echo "${ECHO_T}no" >&6
703e0a69 9908fi
1e487827 9909
e6cc62c6
VS
9910fi
9911if test -z "$CC"; then
9912 if test -n "$ac_tool_prefix"; then
9913 for ac_prog in cl
9914 do
9915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9917echo "$as_me:$LINENO: checking for $ac_word" >&5
9918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9919if test "${ac_cv_prog_CC+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9921else
9922 if test -n "$CC"; then
9923 ac_cv_prog_CC="$CC" # Let the user override the test.
9924else
e6cc62c6
VS
9925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926for as_dir in $PATH
9927do
9928 IFS=$as_save_IFS
9929 test -z "$as_dir" && as_dir=.
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9932 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9934 break 2
9935 fi
9936done
9937done
9938
f09359cf
VS
9939fi
9940fi
e6cc62c6 9941CC=$ac_cv_prog_CC
f09359cf 9942if test -n "$CC"; then
e6cc62c6
VS
9943 echo "$as_me:$LINENO: result: $CC" >&5
9944echo "${ECHO_T}$CC" >&6
f09359cf 9945else
e6cc62c6
VS
9946 echo "$as_me:$LINENO: result: no" >&5
9947echo "${ECHO_T}no" >&6
5c6fa7d2 9948fi
1e487827 9949
e6cc62c6
VS
9950 test -n "$CC" && break
9951 done
9952fi
9953if test -z "$CC"; then
9954 ac_ct_CC=$CC
9955 for ac_prog in cl
9956do
9957 # Extract the first word of "$ac_prog", so it can be a program name with args.
9958set dummy $ac_prog; ac_word=$2
9959echo "$as_me:$LINENO: checking for $ac_word" >&5
9960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9961if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963else
9964 if test -n "$ac_ct_CC"; then
9965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9966else
9967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968for as_dir in $PATH
9969do
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974 ac_cv_prog_ac_ct_CC="$ac_prog"
9975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9976 break 2
9977 fi
9978done
9979done
f09359cf 9980
e6cc62c6
VS
9981fi
9982fi
9983ac_ct_CC=$ac_cv_prog_ac_ct_CC
9984if test -n "$ac_ct_CC"; then
9985 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9986echo "${ECHO_T}$ac_ct_CC" >&6
9987else
9988 echo "$as_me:$LINENO: result: no" >&5
9989echo "${ECHO_T}no" >&6
9990fi
f09359cf 9991
e6cc62c6
VS
9992 test -n "$ac_ct_CC" && break
9993done
247f5006 9994
e6cc62c6
VS
9995 CC=$ac_ct_CC
9996fi
9997
9998fi
9999
10000
10001test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10002See \`config.log' for more details." >&5
10003echo "$as_me: error: no acceptable C compiler found in \$PATH
10004See \`config.log' for more details." >&2;}
10005 { (exit 1); exit 1; }; }
10006
10007# Provide some information about the compiler.
10008echo "$as_me:$LINENO:" \
10009 "checking for C compiler version" >&5
10010ac_compiler=`set X $ac_compile; echo $2`
10011{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10012 (eval $ac_compiler --version </dev/null >&5) 2>&5
10013 ac_status=$?
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }
10016{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10017 (eval $ac_compiler -v </dev/null >&5) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }
10021{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10022 (eval $ac_compiler -V </dev/null >&5) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }
10026
10027cat >conftest.$ac_ext <<_ACEOF
10028#line $LINENO "configure"
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
10034
10035int
10036main ()
10037{
247f5006 10038
e6cc62c6
VS
10039 ;
10040 return 0;
10041}
10042_ACEOF
10043ac_clean_files_save=$ac_clean_files
10044ac_clean_files="$ac_clean_files a.out a.exe b.out"
10045# Try to create an executable without -o first, disregard a.out.
10046# It will help us diagnose broken compilers, and finding out an intuition
10047# of exeext.
10048echo "$as_me:$LINENO: checking for C compiler default output" >&5
10049echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10050ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10051if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10052 (eval $ac_link_default) 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; then
10056 # Find the output, starting from the most likely. This scheme is
10057# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10058# resort.
10059
10060# Be careful to initialize this variable, since it used to be cached.
10061# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10062ac_cv_exeext=
10063# b.out is created by i960 compilers.
10064for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10065do
10066 test -f "$ac_file" || continue
10067 case $ac_file in
10068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10069 ;;
10070 conftest.$ac_ext )
10071 # This is the source file.
10072 ;;
10073 [ab].out )
10074 # We found the default executable, but exeext='' is most
10075 # certainly right.
10076 break;;
10077 *.* )
10078 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10079 # FIXME: I believe we export ac_cv_exeext for Libtool,
10080 # but it would be cool to find out if it's true. Does anybody
10081 # maintain Libtool? --akim.
10082 export ac_cv_exeext
10083 break;;
10084 * )
10085 break;;
10086 esac
10087done
10088else
10089 echo "$as_me: failed program was:" >&5
10090sed 's/^/| /' conftest.$ac_ext >&5
10091
10092{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10093See \`config.log' for more details." >&5
10094echo "$as_me: error: C compiler cannot create executables
10095See \`config.log' for more details." >&2;}
10096 { (exit 77); exit 77; }; }
10097fi
10098
10099ac_exeext=$ac_cv_exeext
10100echo "$as_me:$LINENO: result: $ac_file" >&5
10101echo "${ECHO_T}$ac_file" >&6
10102
10103# Check the compiler produces executables we can run. If not, either
10104# the compiler is broken, or we cross compile.
10105echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10106echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10107# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10108# If not cross compiling, check that we can run a simple program.
10109if test "$cross_compiling" != yes; then
10110 if { ac_try='./$ac_file'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10113 ac_status=$?
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10116 cross_compiling=no
698dcdb6 10117 else
e6cc62c6
VS
10118 if test "$cross_compiling" = maybe; then
10119 cross_compiling=yes
10120 else
10121 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10122If you meant to cross compile, use \`--host'.
10123See \`config.log' for more details." >&5
10124echo "$as_me: error: cannot run C compiled programs.
10125If you meant to cross compile, use \`--host'.
10126See \`config.log' for more details." >&2;}
10127 { (exit 1); exit 1; }; }
10128 fi
698dcdb6 10129 fi
52127426 10130fi
e6cc62c6
VS
10131echo "$as_me:$LINENO: result: yes" >&5
10132echo "${ECHO_T}yes" >&6
10133
10134rm -f a.out a.exe conftest$ac_cv_exeext b.out
10135ac_clean_files=$ac_clean_files_save
10136# Check the compiler produces executables we can run. If not, either
10137# the compiler is broken, or we cross compile.
10138echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10139echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10140echo "$as_me:$LINENO: result: $cross_compiling" >&5
10141echo "${ECHO_T}$cross_compiling" >&6
10142
10143echo "$as_me:$LINENO: checking for suffix of executables" >&5
10144echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10146 (eval $ac_link) 2>&5
10147 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; then
10150 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10151# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10152# work properly (i.e., refer to `conftest.exe'), while it won't with
10153# `rm'.
10154for ac_file in conftest.exe conftest conftest.*; do
10155 test -f "$ac_file" || continue
10156 case $ac_file in
10157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10159 export ac_cv_exeext
10160 break;;
10161 * ) break;;
10162 esac
10163done
5c6fa7d2 10164else
e6cc62c6
VS
10165 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10166See \`config.log' for more details." >&5
10167echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10168See \`config.log' for more details." >&2;}
10169 { (exit 1); exit 1; }; }
10170fi
10171
10172rm -f conftest$ac_cv_exeext
10173echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10174echo "${ECHO_T}$ac_cv_exeext" >&6
10175
10176rm -f conftest.$ac_ext
10177EXEEXT=$ac_cv_exeext
10178ac_exeext=$EXEEXT
10179echo "$as_me:$LINENO: checking for suffix of object files" >&5
10180echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10181if test "${ac_cv_objext+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 cat >conftest.$ac_ext <<_ACEOF
10185#line $LINENO "configure"
10186/* confdefs.h. */
10187_ACEOF
10188cat confdefs.h >>conftest.$ac_ext
10189cat >>conftest.$ac_ext <<_ACEOF
10190/* end confdefs.h. */
10191
10192int
10193main ()
10194{
f09359cf 10195
e6cc62c6
VS
10196 ;
10197 return 0;
10198}
10199_ACEOF
10200rm -f conftest.o conftest.obj
10201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; then
10206 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10207 case $ac_file in
10208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10210 break;;
10211 esac
10212done
a0b9e27f 10213else
e6cc62c6
VS
10214 echo "$as_me: failed program was:" >&5
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
10217{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10218See \`config.log' for more details." >&5
10219echo "$as_me: error: cannot compute suffix of object files: cannot compile
10220See \`config.log' for more details." >&2;}
10221 { (exit 1); exit 1; }; }
a0b9e27f 10222fi
247f5006 10223
e6cc62c6
VS
10224rm -f conftest.$ac_cv_objext conftest.$ac_ext
10225fi
10226echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10227echo "${ECHO_T}$ac_cv_objext" >&6
10228OBJEXT=$ac_cv_objext
10229ac_objext=$OBJEXT
10230echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10231echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10232if test "${ac_cv_c_compiler_gnu+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10234else
e6cc62c6
VS
10235 cat >conftest.$ac_ext <<_ACEOF
10236#line $LINENO "configure"
10237/* confdefs.h. */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
10242
10243int
10244main ()
10245{
10246#ifndef __GNUC__
10247 choke me
10248#endif
10249
10250 ;
10251 return 0;
10252}
10253_ACEOF
10254rm -f conftest.$ac_objext
10255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10256 (eval $ac_compile) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try='test -s conftest.$ac_objext'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 ac_compiler_gnu=yes
10267else
10268 echo "$as_me: failed program was:" >&5
10269sed 's/^/| /' conftest.$ac_ext >&5
10270
10271ac_compiler_gnu=no
10272fi
10273rm -f conftest.$ac_objext conftest.$ac_ext
10274ac_cv_c_compiler_gnu=$ac_compiler_gnu
10275
10276fi
10277echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10278echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10279GCC=`test $ac_compiler_gnu = yes && echo yes`
10280ac_test_CFLAGS=${CFLAGS+set}
10281ac_save_CFLAGS=$CFLAGS
10282CFLAGS="-g"
10283echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10284echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10285if test "${ac_cv_prog_cc_g+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287else
10288 cat >conftest.$ac_ext <<_ACEOF
10289#line $LINENO "configure"
10290/* confdefs.h. */
10291_ACEOF
10292cat confdefs.h >>conftest.$ac_ext
10293cat >>conftest.$ac_ext <<_ACEOF
10294/* end confdefs.h. */
10295
10296int
10297main ()
10298{
10299
10300 ;
10301 return 0;
10302}
10303_ACEOF
10304rm -f conftest.$ac_objext
10305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306 (eval $ac_compile) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } &&
10310 { ac_try='test -s conftest.$ac_objext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10f2d63a
VZ
10316 ac_cv_prog_cc_g=yes
10317else
e6cc62c6
VS
10318 echo "$as_me: failed program was:" >&5
10319sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10320
e6cc62c6 10321ac_cv_prog_cc_g=no
10f2d63a 10322fi
e6cc62c6
VS
10323rm -f conftest.$ac_objext conftest.$ac_ext
10324fi
10325echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10326echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10327if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10328 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10329elif test $ac_cv_prog_cc_g = yes; then
10330 if test "$GCC" = yes; then
10f2d63a
VZ
10331 CFLAGS="-g -O2"
10332 else
f09359cf 10333 CFLAGS="-g"
10f2d63a 10334 fi
5c0a20c3 10335else
f09359cf
VS
10336 if test "$GCC" = yes; then
10337 CFLAGS="-O2"
10338 else
10339 CFLAGS=
10340 fi
10f2d63a 10341fi
e6cc62c6
VS
10342echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10343echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10344if test "${ac_cv_prog_cc_stdc+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10346else
10347 ac_cv_prog_cc_stdc=no
10348ac_save_CC=$CC
10349cat >conftest.$ac_ext <<_ACEOF
10350#line $LINENO "configure"
10351/* confdefs.h. */
10352_ACEOF
10353cat confdefs.h >>conftest.$ac_ext
10354cat >>conftest.$ac_ext <<_ACEOF
10355/* end confdefs.h. */
10356#include <stdarg.h>
10357#include <stdio.h>
10358#include <sys/types.h>
10359#include <sys/stat.h>
10360/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10361struct buf { int x; };
10362FILE * (*rcsopen) (struct buf *, struct stat *, int);
10363static char *e (p, i)
10364 char **p;
10365 int i;
10366{
10367 return p[i];
10368}
10369static char *f (char * (*g) (char **, int), char **p, ...)
10370{
10371 char *s;
10372 va_list v;
10373 va_start (v,p);
10374 s = g (p, va_arg (v,int));
10375 va_end (v);
10376 return s;
10377}
10378int test (int i, double x);
10379struct s1 {int (*f) (int a);};
10380struct s2 {int (*f) (double a);};
10381int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10382int argc;
10383char **argv;
10384int
10385main ()
10386{
10387return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10388 ;
10389 return 0;
10390}
10391_ACEOF
10392# Don't try gcc -ansi; that turns off useful extensions and
10393# breaks some systems' header files.
10394# AIX -qlanglvl=ansi
10395# Ultrix and OSF/1 -std1
10396# HP-UX 10.20 and later -Ae
10397# HP-UX older versions -Aa -D_HPUX_SOURCE
10398# SVR4 -Xc -D__EXTENSIONS__
10399for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10400do
10401 CC="$ac_save_CC $ac_arg"
10402 rm -f conftest.$ac_objext
10403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404 (eval $ac_compile) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } &&
10408 { ac_try='test -s conftest.$ac_objext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 ac_cv_prog_cc_stdc=$ac_arg
10415break
10416else
10417 echo "$as_me: failed program was:" >&5
10418sed 's/^/| /' conftest.$ac_ext >&5
10419
10420fi
10421rm -f conftest.$ac_objext
10422done
10423rm -f conftest.$ac_ext conftest.$ac_objext
10424CC=$ac_save_CC
10425
10426fi
10427
10428case "x$ac_cv_prog_cc_stdc" in
10429 x|xno)
10430 echo "$as_me:$LINENO: result: none needed" >&5
10431echo "${ECHO_T}none needed" >&6 ;;
10432 *)
10433 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10434echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10435 CC="$CC $ac_cv_prog_cc_stdc" ;;
10436esac
10437
10438# Some people use a C++ compiler to compile C. Since we use `exit',
10439# in C++ we need to declare it. In case someone uses the same compiler
10440# for both compiling C and C++ we need to have the C++ compiler decide
10441# the declaration of exit, since it's the most demanding environment.
10442cat >conftest.$ac_ext <<_ACEOF
10443#ifndef __cplusplus
10444 choke me
10445#endif
10446_ACEOF
10447rm -f conftest.$ac_objext
10448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449 (eval $ac_compile) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } &&
10453 { ac_try='test -s conftest.$ac_objext'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10456 ac_status=$?
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10459 for ac_declaration in \
6f628073
VS
10460 ''\
10461 '#include <stdlib.h>' \
e6cc62c6
VS
10462 'extern "C" void std::exit (int) throw (); using std::exit;' \
10463 'extern "C" void std::exit (int); using std::exit;' \
10464 'extern "C" void exit (int) throw ();' \
10465 'extern "C" void exit (int);' \
10466 'void exit (int);'
10467do
10468 cat >conftest.$ac_ext <<_ACEOF
10469#line $LINENO "configure"
10470/* confdefs.h. */
10471_ACEOF
10472cat confdefs.h >>conftest.$ac_ext
10473cat >>conftest.$ac_ext <<_ACEOF
10474/* end confdefs.h. */
71e83a03 10475#include <stdlib.h>
6f628073 10476$ac_declaration
e6cc62c6
VS
10477int
10478main ()
10479{
10480exit (42);
10481 ;
10482 return 0;
10483}
10484_ACEOF
10485rm -f conftest.$ac_objext
10486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487 (eval $ac_compile) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
10491 { ac_try='test -s conftest.$ac_objext'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
10497 :
10498else
10499 echo "$as_me: failed program was:" >&5
10500sed 's/^/| /' conftest.$ac_ext >&5
10501
10502continue
10503fi
10504rm -f conftest.$ac_objext conftest.$ac_ext
10505 cat >conftest.$ac_ext <<_ACEOF
10506#line $LINENO "configure"
10507/* confdefs.h. */
10508_ACEOF
10509cat confdefs.h >>conftest.$ac_ext
10510cat >>conftest.$ac_ext <<_ACEOF
10511/* end confdefs.h. */
10512$ac_declaration
10513int
10514main ()
10515{
10516exit (42);
10517 ;
10518 return 0;
10519}
10520_ACEOF
10521rm -f conftest.$ac_objext
10522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10523 (eval $ac_compile) 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } &&
10527 { ac_try='test -s conftest.$ac_objext'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 break
10534else
10535 echo "$as_me: failed program was:" >&5
10536sed 's/^/| /' conftest.$ac_ext >&5
10537
10538fi
10539rm -f conftest.$ac_objext conftest.$ac_ext
10540done
10541rm -f conftest*
10542if test -n "$ac_declaration"; then
10543 echo '#ifdef __cplusplus' >>confdefs.h
10544 echo $ac_declaration >>confdefs.h
10545 echo '#endif' >>confdefs.h
10546fi
10547
10548else
10549 echo "$as_me: failed program was:" >&5
10550sed 's/^/| /' conftest.$ac_ext >&5
10551
10552fi
10553rm -f conftest.$ac_objext conftest.$ac_ext
10554ac_ext=c
10555ac_cpp='$CPP $CPPFLAGS'
10556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10559
10560
e6cc62c6
VS
10561
10562ac_ext=c
10563ac_cpp='$CPP $CPPFLAGS'
10564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10566ac_compiler_gnu=$ac_cv_c_compiler_gnu
10567echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10568echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10569# On Suns, sometimes $CPP names a directory.
10570if test -n "$CPP" && test -d "$CPP"; then
10571 CPP=
10572fi
10573if test -z "$CPP"; then
e6cc62c6
VS
10574 if test "${ac_cv_prog_CPP+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576else
10577 # Double quotes because CPP needs to be expanded
10578 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10579 do
10580 ac_preproc_ok=false
10581for ac_c_preproc_warn_flag in '' yes
10582do
10583 # Use a header file that comes with gcc, so configuring glibc
10584 # with a fresh cross-compiler works.
10585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10586 # <limits.h> exists even on freestanding compilers.
10f2d63a 10587 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10588 # not just through cpp. "Syntax error" is here to catch this case.
10589 cat >conftest.$ac_ext <<_ACEOF
10590#line $LINENO "configure"
10591/* confdefs.h. */
10592_ACEOF
10593cat confdefs.h >>conftest.$ac_ext
10594cat >>conftest.$ac_ext <<_ACEOF
10595/* end confdefs.h. */
10596#ifdef __STDC__
10597# include <limits.h>
10598#else
10599# include <assert.h>
10600#endif
10601 Syntax error
10602_ACEOF
10603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } >/dev/null; then
10611 if test -s conftest.err; then
10612 ac_cpp_err=$ac_c_preproc_warn_flag
10613 else
10614 ac_cpp_err=
10615 fi
10f2d63a 10616else
e6cc62c6
VS
10617 ac_cpp_err=yes
10618fi
10619if test -z "$ac_cpp_err"; then
a0b9e27f 10620 :
247f5006 10621else
e6cc62c6
VS
10622 echo "$as_me: failed program was:" >&5
10623sed 's/^/| /' conftest.$ac_ext >&5
10624
10625 # Broken: fails on valid input.
10626continue
10627fi
10628rm -f conftest.err conftest.$ac_ext
10629
10630 # OK, works on sane cases. Now check whether non-existent headers
10631 # can be detected and how.
10632 cat >conftest.$ac_ext <<_ACEOF
10633#line $LINENO "configure"
10634/* confdefs.h. */
10635_ACEOF
10636cat confdefs.h >>conftest.$ac_ext
10637cat >>conftest.$ac_ext <<_ACEOF
10638/* end confdefs.h. */
10639#include <ac_nonexistent.h>
10640_ACEOF
10641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } >/dev/null; then
10649 if test -s conftest.err; then
10650 ac_cpp_err=$ac_c_preproc_warn_flag
10651 else
10652 ac_cpp_err=
10653 fi
10f2d63a 10654else
e6cc62c6 10655 ac_cpp_err=yes
579d8138 10656fi
e6cc62c6
VS
10657if test -z "$ac_cpp_err"; then
10658 # Broken: success on invalid input.
10659continue
10660else
10661 echo "$as_me: failed program was:" >&5
10662sed 's/^/| /' conftest.$ac_ext >&5
10663
10664 # Passes both tests.
10665ac_preproc_ok=:
10666break
52127426 10667fi
e6cc62c6
VS
10668rm -f conftest.err conftest.$ac_ext
10669
10670done
10671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10672rm -f conftest.err conftest.$ac_ext
10673if $ac_preproc_ok; then
10674 break
8284b0c5 10675fi
e6cc62c6
VS
10676
10677 done
10678 ac_cv_prog_CPP=$CPP
10679
10680fi
10681 CPP=$ac_cv_prog_CPP
10682else
10683 ac_cv_prog_CPP=$CPP
10684fi
10685echo "$as_me:$LINENO: result: $CPP" >&5
10686echo "${ECHO_T}$CPP" >&6
10687ac_preproc_ok=false
10688for ac_c_preproc_warn_flag in '' yes
10689do
10690 # Use a header file that comes with gcc, so configuring glibc
10691 # with a fresh cross-compiler works.
10692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10693 # <limits.h> exists even on freestanding compilers.
10694 # On the NeXT, cc -E runs the code through the compiler's parser,
10695 # not just through cpp. "Syntax error" is here to catch this case.
10696 cat >conftest.$ac_ext <<_ACEOF
10697#line $LINENO "configure"
10698/* confdefs.h. */
10699_ACEOF
10700cat confdefs.h >>conftest.$ac_ext
10701cat >>conftest.$ac_ext <<_ACEOF
10702/* end confdefs.h. */
10703#ifdef __STDC__
10704# include <limits.h>
10705#else
10706# include <assert.h>
10707#endif
10708 Syntax error
10709_ACEOF
10710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } >/dev/null; then
10718 if test -s conftest.err; then
10719 ac_cpp_err=$ac_c_preproc_warn_flag
10720 else
10721 ac_cpp_err=
10722 fi
10723else
10724 ac_cpp_err=yes
10725fi
10726if test -z "$ac_cpp_err"; then
10727 :
10728else
10729 echo "$as_me: failed program was:" >&5
10730sed 's/^/| /' conftest.$ac_ext >&5
10731
10732 # Broken: fails on valid input.
10733continue
10734fi
10735rm -f conftest.err conftest.$ac_ext
10736
10737 # OK, works on sane cases. Now check whether non-existent headers
10738 # can be detected and how.
10739 cat >conftest.$ac_ext <<_ACEOF
10740#line $LINENO "configure"
10741/* confdefs.h. */
10742_ACEOF
10743cat confdefs.h >>conftest.$ac_ext
10744cat >>conftest.$ac_ext <<_ACEOF
10745/* end confdefs.h. */
10746#include <ac_nonexistent.h>
10747_ACEOF
10748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } >/dev/null; then
10756 if test -s conftest.err; then
10757 ac_cpp_err=$ac_c_preproc_warn_flag
10758 else
10759 ac_cpp_err=
10760 fi
10761else
10762 ac_cpp_err=yes
10763fi
10764if test -z "$ac_cpp_err"; then
10765 # Broken: success on invalid input.
10766continue
10767else
10768 echo "$as_me: failed program was:" >&5
10769sed 's/^/| /' conftest.$ac_ext >&5
10770
10771 # Passes both tests.
10772ac_preproc_ok=:
10773break
a0b9e27f 10774fi
e6cc62c6
VS
10775rm -f conftest.err conftest.$ac_ext
10776
10777done
10778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10779rm -f conftest.err conftest.$ac_ext
10780if $ac_preproc_ok; then
10781 :
10782else
10783 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10784See \`config.log' for more details." >&5
10785echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10786See \`config.log' for more details." >&2;}
10787 { (exit 1); exit 1; }; }
10788fi
10789
10790ac_ext=c
10791ac_cpp='$CPP $CPPFLAGS'
10792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10794ac_compiler_gnu=$ac_cv_c_compiler_gnu
10795
10796
10797echo "$as_me:$LINENO: checking for egrep" >&5
10798echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10799if test "${ac_cv_prog_egrep+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10801else
e6cc62c6
VS
10802 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10803 then ac_cv_prog_egrep='grep -E'
10804 else ac_cv_prog_egrep='egrep'
10805 fi
10f2d63a 10806fi
e6cc62c6
VS
10807echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10808echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10809 EGREP=$ac_cv_prog_egrep
10810
10f2d63a 10811
e6cc62c6
VS
10812if test $ac_cv_c_compiler_gnu = yes; then
10813 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10814echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10815if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10817else
10818 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10819 cat >conftest.$ac_ext <<_ACEOF
10820#line $LINENO "configure"
10821/* confdefs.h. */
10822_ACEOF
10823cat confdefs.h >>conftest.$ac_ext
10824cat >>conftest.$ac_ext <<_ACEOF
10825/* end confdefs.h. */
10f2d63a
VZ
10826#include <sgtty.h>
10827Autoconf TIOCGETP
e6cc62c6 10828_ACEOF
10f2d63a 10829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10830 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10831 ac_cv_prog_gcc_traditional=yes
10832else
10f2d63a
VZ
10833 ac_cv_prog_gcc_traditional=no
10834fi
10835rm -f conftest*
10836
8284b0c5 10837
10f2d63a 10838 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10839 cat >conftest.$ac_ext <<_ACEOF
10840#line $LINENO "configure"
10841/* confdefs.h. */
10842_ACEOF
10843cat confdefs.h >>conftest.$ac_ext
10844cat >>conftest.$ac_ext <<_ACEOF
10845/* end confdefs.h. */
10f2d63a
VZ
10846#include <termio.h>
10847Autoconf TCGETA
e6cc62c6 10848_ACEOF
10f2d63a 10849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10850 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10851 ac_cv_prog_gcc_traditional=yes
10852fi
10853rm -f conftest*
10854
10855 fi
10856fi
e6cc62c6
VS
10857echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10858echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10859 if test $ac_cv_prog_gcc_traditional = yes; then
10860 CC="$CC -traditional"
10861 fi
10862fi
10863
8284b0c5
MB
10864
10865
e6cc62c6
VS
10866
10867ac_ext=cc
1e487827 10868ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10872
698dcdb6 10873
ec603395 10874CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10875ac_ext=cc
10876ac_cpp='$CXXCPP $CPPFLAGS'
10877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10880if test -n "$ac_tool_prefix"; then
10881 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10882 do
10883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10885echo "$as_me:$LINENO: checking for $ac_word" >&5
10886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10887if test "${ac_cv_prog_CXX+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10889else
10890 if test -n "$CXX"; then
10891 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10892else
e6cc62c6
VS
10893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894for as_dir in $PATH
10895do
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10903 fi
10904done
10905done
10906
10f2d63a
VZ
10907fi
10908fi
e6cc62c6 10909CXX=$ac_cv_prog_CXX
10f2d63a 10910if test -n "$CXX"; then
e6cc62c6
VS
10911 echo "$as_me:$LINENO: result: $CXX" >&5
10912echo "${ECHO_T}$CXX" >&6
10f2d63a 10913else
e6cc62c6
VS
10914 echo "$as_me:$LINENO: result: no" >&5
10915echo "${ECHO_T}no" >&6
10f2d63a
VZ
10916fi
10917
e6cc62c6
VS
10918 test -n "$CXX" && break
10919 done
10920fi
10921if test -z "$CXX"; then
10922 ac_ct_CXX=$CXX
10923 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10924do
10925 # Extract the first word of "$ac_prog", so it can be a program name with args.
10926set dummy $ac_prog; ac_word=$2
10927echo "$as_me:$LINENO: checking for $ac_word" >&5
10928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10929if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931else
10932 if test -n "$ac_ct_CXX"; then
10933 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10934else
10935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $PATH
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942 ac_cv_prog_ac_ct_CXX="$ac_prog"
10943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10945 fi
10946done
10f2d63a 10947done
a0b9e27f 10948
8284b0c5 10949fi
a0b9e27f 10950fi
e6cc62c6
VS
10951ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10952if test -n "$ac_ct_CXX"; then
10953 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10954echo "${ECHO_T}$ac_ct_CXX" >&6
10955else
10956 echo "$as_me:$LINENO: result: no" >&5
10957echo "${ECHO_T}no" >&6
a0b9e27f 10958fi
10f2d63a 10959
e6cc62c6
VS
10960 test -n "$ac_ct_CXX" && break
10961done
10962test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10963
10964 CXX=$ac_ct_CXX
10965fi
10966
10967
10968# Provide some information about the compiler.
10969echo "$as_me:$LINENO:" \
10970 "checking for C++ compiler version" >&5
10971ac_compiler=`set X $ac_compile; echo $2`
10972{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10973 (eval $ac_compiler --version </dev/null >&5) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }
10977{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10978 (eval $ac_compiler -v </dev/null >&5) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }
10982{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10983 (eval $ac_compiler -V </dev/null >&5) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }
10987
10988echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10989echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10990if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992else
10993 cat >conftest.$ac_ext <<_ACEOF
10994#line $LINENO "configure"
10995/* confdefs.h. */
10996_ACEOF
10997cat confdefs.h >>conftest.$ac_ext
10998cat >>conftest.$ac_ext <<_ACEOF
10999/* end confdefs.h. */
11000
11001int
11002main ()
11003{
11004#ifndef __GNUC__
11005 choke me
11006#endif
10f2d63a 11007
e6cc62c6
VS
11008 ;
11009 return 0;
11010}
11011_ACEOF
11012rm -f conftest.$ac_objext
11013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014 (eval $ac_compile) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -s conftest.$ac_objext'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }; then
11024 ac_compiler_gnu=yes
11025else
11026 echo "$as_me: failed program was:" >&5
11027sed 's/^/| /' conftest.$ac_ext >&5
11028
11029ac_compiler_gnu=no
11030fi
11031rm -f conftest.$ac_objext conftest.$ac_ext
11032ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11033
11034fi
11035echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11036echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11037GXX=`test $ac_compiler_gnu = yes && echo yes`
11038ac_test_CXXFLAGS=${CXXFLAGS+set}
11039ac_save_CXXFLAGS=$CXXFLAGS
11040CXXFLAGS="-g"
11041echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11042echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11043if test "${ac_cv_prog_cxx_g+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045else
11046 cat >conftest.$ac_ext <<_ACEOF
11047#line $LINENO "configure"
11048/* confdefs.h. */
11049_ACEOF
11050cat confdefs.h >>conftest.$ac_ext
11051cat >>conftest.$ac_ext <<_ACEOF
11052/* end confdefs.h. */
11053
11054int
11055main ()
11056{
f09359cf 11057
e6cc62c6
VS
11058 ;
11059 return 0;
11060}
11061_ACEOF
11062rm -f conftest.$ac_objext
11063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11064 (eval $ac_compile) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -s conftest.$ac_objext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
10f2d63a
VZ
11074 ac_cv_prog_cxx_g=yes
11075else
e6cc62c6
VS
11076 echo "$as_me: failed program was:" >&5
11077sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11078
e6cc62c6 11079ac_cv_prog_cxx_g=no
10f2d63a 11080fi
e6cc62c6
VS
11081rm -f conftest.$ac_objext conftest.$ac_ext
11082fi
11083echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11084echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11085if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11086 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11087elif test $ac_cv_prog_cxx_g = yes; then
11088 if test "$GXX" = yes; then
10f2d63a
VZ
11089 CXXFLAGS="-g -O2"
11090 else
f09359cf 11091 CXXFLAGS="-g"
10f2d63a 11092 fi
5c0a20c3 11093else
f09359cf
VS
11094 if test "$GXX" = yes; then
11095 CXXFLAGS="-O2"
11096 else
11097 CXXFLAGS=
11098 fi
10f2d63a 11099fi
e6cc62c6 11100for ac_declaration in \
6f628073
VS
11101 ''\
11102 '#include <stdlib.h>' \
e6cc62c6
VS
11103 'extern "C" void std::exit (int) throw (); using std::exit;' \
11104 'extern "C" void std::exit (int); using std::exit;' \
11105 'extern "C" void exit (int) throw ();' \
11106 'extern "C" void exit (int);' \
11107 'void exit (int);'
11108do
11109 cat >conftest.$ac_ext <<_ACEOF
11110#line $LINENO "configure"
11111/* confdefs.h. */
11112_ACEOF
11113cat confdefs.h >>conftest.$ac_ext
11114cat >>conftest.$ac_ext <<_ACEOF
11115/* end confdefs.h. */
71e83a03 11116#include <stdlib.h>
6f628073 11117$ac_declaration
e6cc62c6
VS
11118int
11119main ()
11120{
11121exit (42);
11122 ;
11123 return 0;
11124}
11125_ACEOF
11126rm -f conftest.$ac_objext
11127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11128 (eval $ac_compile) 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -s conftest.$ac_objext'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 :
11139else
11140 echo "$as_me: failed program was:" >&5
11141sed 's/^/| /' conftest.$ac_ext >&5
11142
11143continue
11144fi
11145rm -f conftest.$ac_objext conftest.$ac_ext
11146 cat >conftest.$ac_ext <<_ACEOF
11147#line $LINENO "configure"
11148/* confdefs.h. */
11149_ACEOF
11150cat confdefs.h >>conftest.$ac_ext
11151cat >>conftest.$ac_ext <<_ACEOF
11152/* end confdefs.h. */
11153$ac_declaration
11154int
11155main ()
11156{
11157exit (42);
11158 ;
11159 return 0;
11160}
11161_ACEOF
11162rm -f conftest.$ac_objext
11163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164 (eval $ac_compile) 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } &&
11168 { ac_try='test -s conftest.$ac_objext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 break
11175else
11176 echo "$as_me: failed program was:" >&5
11177sed 's/^/| /' conftest.$ac_ext >&5
11178
11179fi
11180rm -f conftest.$ac_objext conftest.$ac_ext
11181done
11182rm -f conftest*
11183if test -n "$ac_declaration"; then
11184 echo '#ifdef __cplusplus' >>confdefs.h
11185 echo $ac_declaration >>confdefs.h
11186 echo '#endif' >>confdefs.h
11187fi
11188
11189ac_ext=cc
11190ac_cpp='$CXXCPP $CPPFLAGS'
11191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11194
11195
10f2d63a 11196ac_ext=c
10f2d63a 11197ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11200ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11201
11202
e6cc62c6
VS
11203if test -n "$ac_tool_prefix"; then
11204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11205set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11206echo "$as_me:$LINENO: checking for $ac_word" >&5
11207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11208if test "${ac_cv_prog_RANLIB+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11210else
11211 if test -n "$RANLIB"; then
11212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11213else
e6cc62c6
VS
11214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $PATH
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 break 2
11224 fi
11225done
11226done
11227
10f2d63a
VZ
11228fi
11229fi
e6cc62c6 11230RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11231if test -n "$RANLIB"; then
e6cc62c6
VS
11232 echo "$as_me:$LINENO: result: $RANLIB" >&5
11233echo "${ECHO_T}$RANLIB" >&6
11234else
11235 echo "$as_me:$LINENO: result: no" >&5
11236echo "${ECHO_T}no" >&6
11237fi
11238
11239fi
11240if test -z "$ac_cv_prog_RANLIB"; then
11241 ac_ct_RANLIB=$RANLIB
11242 # Extract the first word of "ranlib", so it can be a program name with args.
11243set dummy ranlib; ac_word=$2
11244echo "$as_me:$LINENO: checking for $ac_word" >&5
11245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11246if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11248else
e6cc62c6
VS
11249 if test -n "$ac_ct_RANLIB"; then
11250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11251else
11252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253for as_dir in $PATH
11254do
11255 IFS=$as_save_IFS
11256 test -z "$as_dir" && as_dir=.
11257 for ac_exec_ext in '' $ac_executable_extensions; do
11258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11259 ac_cv_prog_ac_ct_RANLIB="ranlib"
11260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11261 break 2
11262 fi
11263done
11264done
11265
11266 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11267fi
11268fi
11269ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11270if test -n "$ac_ct_RANLIB"; then
11271 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11272echo "${ECHO_T}$ac_ct_RANLIB" >&6
11273else
11274 echo "$as_me:$LINENO: result: no" >&5
11275echo "${ECHO_T}no" >&6
11276fi
11277
11278 RANLIB=$ac_ct_RANLIB
11279else
11280 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11281fi
11282
10f2d63a
VZ
11283
11284# Extract the first word of "ar", so it can be a program name with args.
11285set dummy ar; ac_word=$2
e6cc62c6
VS
11286echo "$as_me:$LINENO: checking for $ac_word" >&5
11287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11288if test "${ac_cv_prog_AR+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11290else
11291 if test -n "$AR"; then
11292 ac_cv_prog_AR="$AR" # Let the user override the test.
11293else
e6cc62c6
VS
11294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295for as_dir in $PATH
11296do
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301 ac_cv_prog_AR="ar"
11302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 break 2
11304 fi
11305done
11306done
11307
10f2d63a
VZ
11308 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11309fi
11310fi
e6cc62c6 11311AR=$ac_cv_prog_AR
10f2d63a 11312if test -n "$AR"; then
e6cc62c6
VS
11313 echo "$as_me:$LINENO: result: $AR" >&5
11314echo "${ECHO_T}$AR" >&6
10f2d63a 11315else
e6cc62c6
VS
11316 echo "$as_me:$LINENO: result: no" >&5
11317echo "${ECHO_T}no" >&6
10f2d63a
VZ
11318fi
11319
8284b0c5 11320
6054113a 11321# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11322# so one script is as good as another. But avoid the broken or
11323# incompatible versions:
11324# SysV /etc/install, /usr/sbin/install
11325# SunOS /usr/etc/install
11326# IRIX /sbin/install
11327# AIX /bin/install
e6cc62c6 11328# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11329# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11330# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11331# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11332# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11333echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11334echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11335if test -z "$INSTALL"; then
e6cc62c6
VS
11336if test "${ac_cv_path_install+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338else
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340for as_dir in $PATH
11341do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 # Account for people who put trailing slashes in PATH elements.
11345case $as_dir/ in
11346 ./ | .// | /cC/* | \
11347 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11348 /usr/ucb/* ) ;;
11349 *)
11350 # OSF1 and SCO ODT 3.0 have their own names for install.
11351 # Don't use installbsd from OSF since it installs stuff as root
11352 # by default.
11353 for ac_prog in ginstall scoinst install; do
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11356 if test $ac_prog = install &&
11357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11358 # AIX install. It has an incompatible calling convention.
11359 :
11360 elif test $ac_prog = install &&
11361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11362 # program-specific install script used by HP pwplus--don't use.
11363 :
11364 else
11365 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11366 break 3
11367 fi
11368 fi
10f2d63a 11369 done
e6cc62c6
VS
11370 done
11371 ;;
11372esac
11373done
11374
10f2d63a
VZ
11375
11376fi
11377 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11378 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11379 else
11380 # As a last resort, use the slow shell script. We don't cache a
11381 # path for INSTALL within a source directory, because that will
11382 # break other packages using the cache if that directory is
11383 # removed, or if the path is relative.
e6cc62c6 11384 INSTALL=$ac_install_sh
10f2d63a
VZ
11385 fi
11386fi
e6cc62c6
VS
11387echo "$as_me:$LINENO: result: $INSTALL" >&5
11388echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11389
11390# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11391# It thinks the first close brace ends the variable substitution.
11392test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11393
e6cc62c6 11394test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11395
10f2d63a
VZ
11396test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11397
8284b0c5 11398
1d1b75ac
VZ
11399case ${INSTALL} in
11400 /* ) # Absolute
11401 ;;
4f5a7f74
VZ
11402 ?:* ) # Drive letter, considered as absolute.
11403 ;;
3bd8fb5f 11404 *)
1d1b75ac
VZ
11405 INSTALL=`pwd`/${INSTALL} ;;
11406esac
11407
4f5a7f74
VZ
11408case ${host} in
11409 *-hp-hpux* )
11410 INSTALL_DIR="mkdir"
11411 ;;
11412
11413 *) INSTALL_DIR="$INSTALL -d"
11414 ;;
11415esac
11416
8284b0c5 11417
6054113a
GD
11418case "${host}" in
11419
b5853384 11420 powerpc-*-darwin* )
eb99ae0b
GD
11421 INSTALL_PROGRAM="cp -fp"
11422 INSTALL_DATA="cp -fp"
6054113a
GD
11423 ;;
11424 *)
11425 ;;
d6853540 11426esac
698dcdb6 11427
10f2d63a
VZ
11428# Extract the first word of "strip", so it can be a program name with args.
11429set dummy strip; ac_word=$2
e6cc62c6
VS
11430echo "$as_me:$LINENO: checking for $ac_word" >&5
11431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11432if test "${ac_cv_prog_STRIP+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11434else
11435 if test -n "$STRIP"; then
11436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11437else
e6cc62c6
VS
11438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439for as_dir in $PATH
11440do
11441 IFS=$as_save_IFS
11442 test -z "$as_dir" && as_dir=.
11443 for ac_exec_ext in '' $ac_executable_extensions; do
11444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11445 ac_cv_prog_STRIP="strip"
11446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11447 break 2
11448 fi
11449done
11450done
11451
10f2d63a
VZ
11452 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11453fi
11454fi
e6cc62c6 11455STRIP=$ac_cv_prog_STRIP
10f2d63a 11456if test -n "$STRIP"; then
e6cc62c6
VS
11457 echo "$as_me:$LINENO: result: $STRIP" >&5
11458echo "${ECHO_T}$STRIP" >&6
10f2d63a 11459else
e6cc62c6
VS
11460 echo "$as_me:$LINENO: result: no" >&5
11461echo "${ECHO_T}no" >&6
10f2d63a
VZ
11462fi
11463
5c6fa7d2 11464
e6cc62c6
VS
11465echo "$as_me:$LINENO: checking if make is GNU make" >&5
11466echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11467if test "${wx_cv_prog_makeisgnu+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11469else
e6cc62c6 11470
414eab6d 11471 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11472 egrep -s GNU > /dev/null); then
414eab6d
VZ
11473 wx_cv_prog_makeisgnu="yes"
11474 else
11475 wx_cv_prog_makeisgnu="no"
11476 fi
11477
11478fi
e6cc62c6
VS
11479echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11480echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11481
11482if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11483 IF_GNU_MAKE=""
11484else
11485 IF_GNU_MAKE="#"
11486fi
11487
8284b0c5
MB
11488
11489
414eab6d 11490if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11491echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11492echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11493if test "${wx_cv_prog_makevpath+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11495else
e6cc62c6 11496
10f2d63a
VZ
11497cat - << EOF > confMake
11498check : file
11499 cp \$? \$@
11500 cp \$? final_file
11501EOF
11502
11503if test ! -d sub ; then
11504 mkdir sub
11505fi
11506echo dummy > sub/file
f6bcfd97 11507${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11508RESULT=$?
11509rm -f sub/file check final_file confMake
11510rmdir sub
11511if test "$RESULT" = 0; then
04e7a216 11512 wx_cv_prog_makevpath="yes"
10f2d63a 11513else
04e7a216
VZ
11514 wx_cv_prog_makevpath="no"
11515fi
11516
11517fi
e6cc62c6
VS
11518echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11519echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11520
11521if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11522{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11523You need a make-utility that is able to use the variable
11524VPATH correctly.
11525If your version of make does not support VPATH correctly,
11526please install GNU-make (possibly as gmake), and start
11527configure with the following command:
11528export MAKE=gmake; ./configure for sh-type shells
11529setenv MAKE gmake; ./configure for csh-type shells
11530Also please do remember to use gmake in this case every time
11531you are trying to compile.
e6cc62c6
VS
11532" >&5
11533echo "$as_me: error:
11534You need a make-utility that is able to use the variable
11535VPATH correctly.
11536If your version of make does not support VPATH correctly,
11537please install GNU-make (possibly as gmake), and start
11538configure with the following command:
11539export MAKE=gmake; ./configure for sh-type shells
11540setenv MAKE gmake; ./configure for csh-type shells
11541Also please do remember to use gmake in this case every time
11542you are trying to compile.
11543" >&2;}
11544 { (exit 1); exit 1; }; }
11545fi fi
10f2d63a
VZ
11546for ac_prog in 'bison -y' byacc
11547do
e6cc62c6 11548 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 11549set dummy $ac_prog; ac_word=$2
e6cc62c6
VS
11550echo "$as_me:$LINENO: checking for $ac_word" >&5
11551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11552if test "${ac_cv_prog_YACC+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11554else
11555 if test -n "$YACC"; then
11556 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11557else
e6cc62c6
VS
11558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559for as_dir in $PATH
11560do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_prog_YACC="$ac_prog"
11566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11568 fi
11569done
11570done
11571
10f2d63a
VZ
11572fi
11573fi
e6cc62c6 11574YACC=$ac_cv_prog_YACC
10f2d63a 11575if test -n "$YACC"; then
e6cc62c6
VS
11576 echo "$as_me:$LINENO: result: $YACC" >&5
11577echo "${ECHO_T}$YACC" >&6
10f2d63a 11578else
e6cc62c6
VS
11579 echo "$as_me:$LINENO: result: no" >&5
11580echo "${ECHO_T}no" >&6
10f2d63a
VZ
11581fi
11582
e6cc62c6 11583 test -n "$YACC" && break
10f2d63a
VZ
11584done
11585test -n "$YACC" || YACC="yacc"
11586
8284b0c5 11587
e6cc62c6
VS
11588for ac_prog in flex lex
11589do
11590 # Extract the first word of "$ac_prog", so it can be a program name with args.
11591set dummy $ac_prog; ac_word=$2
11592echo "$as_me:$LINENO: checking for $ac_word" >&5
11593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11594if test "${ac_cv_prog_LEX+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11596else
11597 if test -n "$LEX"; then
11598 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11599else
e6cc62c6
VS
11600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601for as_dir in $PATH
11602do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11607 ac_cv_prog_LEX="$ac_prog"
11608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11610 fi
11611done
11612done
11613
10f2d63a
VZ
11614fi
11615fi
e6cc62c6 11616LEX=$ac_cv_prog_LEX
10f2d63a 11617if test -n "$LEX"; then
e6cc62c6
VS
11618 echo "$as_me:$LINENO: result: $LEX" >&5
11619echo "${ECHO_T}$LEX" >&6
10f2d63a 11620else
e6cc62c6
VS
11621 echo "$as_me:$LINENO: result: no" >&5
11622echo "${ECHO_T}no" >&6
10f2d63a
VZ
11623fi
11624
e6cc62c6
VS
11625 test -n "$LEX" && break
11626done
11627test -n "$LEX" || LEX=":"
11628
10f2d63a
VZ
11629if test -z "$LEXLIB"
11630then
e6cc62c6
VS
11631 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11632echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11633if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635else
11636 ac_check_lib_save_LIBS=$LIBS
11637LIBS="-lfl $LIBS"
11638cat >conftest.$ac_ext <<_ACEOF
11639#line $LINENO "configure"
11640/* confdefs.h. */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h. */
11645
11646/* Override any gcc2 internal prototype to avoid an error. */
11647#ifdef __cplusplus
11648extern "C"
11649#endif
11650/* We use char because int might match the return type of a gcc2
11651 builtin and then its argument prototype would still apply. */
11652char yywrap ();
11653int
11654main ()
11655{
11656yywrap ();
11657 ;
11658 return 0;
11659}
11660_ACEOF
11661rm -f conftest.$ac_objext conftest$ac_exeext
11662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663 (eval $ac_link) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -s conftest$ac_exeext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_cv_lib_fl_yywrap=yes
11674else
11675 echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
11677
11678ac_cv_lib_fl_yywrap=no
11679fi
11680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11681LIBS=$ac_check_lib_save_LIBS
11682fi
11683echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11684echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11685if test $ac_cv_lib_fl_yywrap = yes; then
11686 LEXLIB="-lfl"
11687else
11688 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11689echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11690if test "${ac_cv_lib_l_yywrap+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692else
11693 ac_check_lib_save_LIBS=$LIBS
11694LIBS="-ll $LIBS"
11695cat >conftest.$ac_ext <<_ACEOF
11696#line $LINENO "configure"
11697/* confdefs.h. */
11698_ACEOF
11699cat confdefs.h >>conftest.$ac_ext
11700cat >>conftest.$ac_ext <<_ACEOF
11701/* end confdefs.h. */
11702
247f5006 11703/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11704#ifdef __cplusplus
11705extern "C"
11706#endif
247f5006 11707/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11708 builtin and then its argument prototype would still apply. */
11709char yywrap ();
11710int
11711main ()
11712{
11713yywrap ();
11714 ;
11715 return 0;
11716}
11717_ACEOF
11718rm -f conftest.$ac_objext conftest$ac_exeext
11719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 { ac_try='test -s conftest$ac_exeext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 ac_cv_lib_l_yywrap=yes
11731else
11732 echo "$as_me: failed program was:" >&5
11733sed 's/^/| /' conftest.$ac_ext >&5
11734
11735ac_cv_lib_l_yywrap=no
11736fi
11737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11738LIBS=$ac_check_lib_save_LIBS
11739fi
11740echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11741echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11742if test $ac_cv_lib_l_yywrap = yes; then
11743 LEXLIB="-ll"
11744fi
10f2d63a 11745
10f2d63a 11746fi
8284b0c5 11747
10f2d63a 11748fi
e6cc62c6
VS
11749
11750if test "x$LEX" != "x:"; then
11751 echo "$as_me:$LINENO: checking lex output file root" >&5
11752echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11753if test "${ac_cv_prog_lex_root+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755else
11756 # The minimal lex program is just a single line: %%. But some broken lexes
11757# (Solaris, I think it was) want two %% lines, so accommodate them.
11758cat >conftest.l <<_ACEOF
11759%%
11760%%
11761_ACEOF
11762{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11763 (eval $LEX conftest.l) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }
11767if test -f lex.yy.c; then
11768 ac_cv_prog_lex_root=lex.yy
11769elif test -f lexyy.c; then
11770 ac_cv_prog_lex_root=lexyy
8284b0c5 11771else
e6cc62c6
VS
11772 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11773echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11774 { (exit 1); exit 1; }; }
10f2d63a 11775fi
a0b9e27f 11776fi
e6cc62c6
VS
11777echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11778echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11779rm -f conftest.l
11780LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10f2d63a 11781
e6cc62c6
VS
11782echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11783echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11784if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11786else
e6cc62c6
VS
11787 # POSIX says lex can declare yytext either as a pointer or an array; the
11788# default is implementation-dependent. Figure out which it is, since
11789# not all implementations provide the %pointer and %array declarations.
11790ac_cv_prog_lex_yytext_pointer=no
11791echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11792ac_save_LIBS=$LIBS
11793LIBS="$LIBS $LEXLIB"
11794cat >conftest.$ac_ext <<_ACEOF
11795`cat $LEX_OUTPUT_ROOT.c`
11796_ACEOF
11797rm -f conftest.$ac_objext conftest$ac_exeext
11798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11799 (eval $ac_link) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try='test -s conftest$ac_exeext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 11810else
e6cc62c6
VS
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
10f2d63a 11814fi
e6cc62c6
VS
11815rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11816LIBS=$ac_save_LIBS
11817rm -f "${LEX_OUTPUT_ROOT}.c"
11818
11819fi
11820echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11821echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11822if test $ac_cv_prog_lex_yytext_pointer = yes; then
11823
11824cat >>confdefs.h <<\_ACEOF
11825#define YYTEXT_POINTER 1
11826_ACEOF
11827
a0b9e27f 11828fi
e6cc62c6
VS
11829
11830fi
11831
11832echo "$as_me:$LINENO: checking whether ln -s works" >&5
11833echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11834LN_S=$as_ln_s
11835if test "$LN_S" = "ln -s"; then
11836 echo "$as_me:$LINENO: result: yes" >&5
11837echo "${ECHO_T}yes" >&6
10f2d63a 11838else
e6cc62c6
VS
11839 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11840echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11841fi
5c6fa7d2 11842
247f5006 11843
2b5f62a0
VZ
11844case "${host}" in
11845 *-pc-os2_emx | *-pc-os2-emx )
11846 LIBS="$LIBS -lstdcpp"
11847 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11848 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11849echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11850if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11852else
e6cc62c6 11853 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11854LIBS="-lcExt $LIBS"
e6cc62c6
VS
11855cat >conftest.$ac_ext <<_ACEOF
11856#line $LINENO "configure"
11857/* confdefs.h. */
11858_ACEOF
11859cat confdefs.h >>conftest.$ac_ext
11860cat >>conftest.$ac_ext <<_ACEOF
11861/* end confdefs.h. */
11862
2b5f62a0 11863/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11864#ifdef __cplusplus
11865extern "C"
11866#endif
2b5f62a0 11867/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11868 builtin and then its argument prototype would still apply. */
11869char drand48 ();
11870int
11871main ()
11872{
11873drand48 ();
11874 ;
11875 return 0;
11876}
11877_ACEOF
11878rm -f conftest.$ac_objext conftest$ac_exeext
11879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880 (eval $ac_link) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -s conftest$ac_exeext'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 ac_cv_lib_cExt_drand48=yes
11891else
11892 echo "$as_me: failed program was:" >&5
11893sed 's/^/| /' conftest.$ac_ext >&5
11894
11895ac_cv_lib_cExt_drand48=no
11896fi
11897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11898LIBS=$ac_check_lib_save_LIBS
11899fi
11900echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11901echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11902if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11903 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11904fi
11905
11906 else
11907 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11908 fi
11909 ;;
11910esac
11911
a0b9e27f 11912
01aa5863
VS
11913if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11914 echo "$as_me:$LINENO: checking for strings.h" >&5
11915echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11916if test "${ac_cv_header_strings_h+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919 ac_cv_header_strings_h=no
11920fi
11921echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11922echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11923 if test "$ac_cv_header_strings_h" = "no"; then
11924 echo "$as_me:$LINENO: result: forced no into cache" >&5
11925echo "${ECHO_T}forced no into cache" >&6
11926 else
11927 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11928echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11929 fi
11930fi
11931echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11932echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11933if test "${ac_cv_header_stdc+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935else
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#include <stdarg.h>
11945#include <string.h>
11946#include <float.h>
247f5006 11947
e6cc62c6
VS
11948int
11949main ()
11950{
90dd450c 11951
e6cc62c6
VS
11952 ;
11953 return 0;
11954}
11955_ACEOF
11956rm -f conftest.$ac_objext
11957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11958 (eval $ac_compile) 2>&5
11959 ac_status=$?
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -s conftest.$ac_objext'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 ac_cv_header_stdc=yes
8284b0c5 11969else
e6cc62c6
VS
11970 echo "$as_me: failed program was:" >&5
11971sed 's/^/| /' conftest.$ac_ext >&5
11972
11973ac_cv_header_stdc=no
21d1c967 11974fi
e6cc62c6 11975rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11976
e6cc62c6
VS
11977if test $ac_cv_header_stdc = yes; then
11978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11979 cat >conftest.$ac_ext <<_ACEOF
11980#line $LINENO "configure"
11981/* confdefs.h. */
11982_ACEOF
11983cat confdefs.h >>conftest.$ac_ext
11984cat >>conftest.$ac_ext <<_ACEOF
11985/* end confdefs.h. */
11986#include <string.h>
11987
11988_ACEOF
11989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11990 $EGREP "memchr" >/dev/null 2>&1; then
11991 :
11992else
11993 ac_cv_header_stdc=no
3a922bb4 11994fi
a0b9e27f 11995rm -f conftest*
e6cc62c6 11996
90dd450c 11997fi
e6cc62c6
VS
11998
11999if test $ac_cv_header_stdc = yes; then
12000 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12001 cat >conftest.$ac_ext <<_ACEOF
12002#line $LINENO "configure"
12003/* confdefs.h. */
12004_ACEOF
12005cat confdefs.h >>conftest.$ac_ext
12006cat >>conftest.$ac_ext <<_ACEOF
12007/* end confdefs.h. */
12008#include <stdlib.h>
12009
12010_ACEOF
12011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12012 $EGREP "free" >/dev/null 2>&1; then
12013 :
a0b9e27f 12014else
e6cc62c6 12015 ac_cv_header_stdc=no
21d1c967 12016fi
e6cc62c6 12017rm -f conftest*
247f5006
VZ
12018
12019fi
e6cc62c6
VS
12020
12021if test $ac_cv_header_stdc = yes; then
12022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12023 if test "$cross_compiling" = yes; then
12024 :
12025else
12026 cat >conftest.$ac_ext <<_ACEOF
12027#line $LINENO "configure"
12028/* confdefs.h. */
12029_ACEOF
12030cat confdefs.h >>conftest.$ac_ext
12031cat >>conftest.$ac_ext <<_ACEOF
12032/* end confdefs.h. */
12033#include <ctype.h>
12034#if ((' ' & 0x0FF) == 0x020)
12035# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12036# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12037#else
12038# define ISLOWER(c) \
12039 (('a' <= (c) && (c) <= 'i') \
12040 || ('j' <= (c) && (c) <= 'r') \
12041 || ('s' <= (c) && (c) <= 'z'))
12042# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12043#endif
12044
12045#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12046int
12047main ()
12048{
12049 int i;
12050 for (i = 0; i < 256; i++)
12051 if (XOR (islower (i), ISLOWER (i))
12052 || toupper (i) != TOUPPER (i))
12053 exit(2);
12054 exit (0);
12055}
12056_ACEOF
12057rm -f conftest$ac_exeext
12058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059 (eval $ac_link) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 :
a0b9e27f 12069else
e6cc62c6
VS
12070 echo "$as_me: program exited with status $ac_status" >&5
12071echo "$as_me: failed program was:" >&5
12072sed 's/^/| /' conftest.$ac_ext >&5
12073
12074( exit $ac_status )
12075ac_cv_header_stdc=no
12076fi
12077rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12078fi
12079fi
12080fi
12081echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12082echo "${ECHO_T}$ac_cv_header_stdc" >&6
12083if test $ac_cv_header_stdc = yes; then
12084
12085cat >>confdefs.h <<\_ACEOF
12086#define STDC_HEADERS 1
12087_ACEOF
12088
a0b9e27f 12089fi
e6cc62c6
VS
12090
12091# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12102 inttypes.h stdint.h unistd.h
12103do
12104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12105echo "$as_me:$LINENO: checking for $ac_header" >&5
12106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12107if eval "test \"\${$as_ac_Header+set}\" = set"; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12109else
12110 cat >conftest.$ac_ext <<_ACEOF
12111#line $LINENO "configure"
12112/* confdefs.h. */
12113_ACEOF
12114cat confdefs.h >>conftest.$ac_ext
12115cat >>conftest.$ac_ext <<_ACEOF
12116/* end confdefs.h. */
12117$ac_includes_default
12118
12119#include <$ac_header>
12120_ACEOF
12121rm -f conftest.$ac_objext
12122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12123 (eval $ac_compile) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -s conftest.$ac_objext'
12128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12130 ac_status=$?
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 eval "$as_ac_Header=yes"
12134else
12135 echo "$as_me: failed program was:" >&5
12136sed 's/^/| /' conftest.$ac_ext >&5
12137
12138eval "$as_ac_Header=no"
12139fi
12140rm -f conftest.$ac_objext conftest.$ac_ext
12141fi
12142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12144if test `eval echo '${'$as_ac_Header'}'` = yes; then
12145 cat >>confdefs.h <<_ACEOF
12146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12147_ACEOF
12148
12149fi
12150
a0b9e27f 12151done
90dd450c 12152
e6cc62c6
VS
12153
12154
12155for ac_header in strings.h
21d1c967 12156do
e6cc62c6
VS
12157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158if eval "test \"\${$as_ac_Header+set}\" = set"; then
12159 echo "$as_me:$LINENO: checking for $ac_header" >&5
12160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12161if eval "test \"\${$as_ac_Header+set}\" = set"; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12163fi
12164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12166else
12167 # Is the header compilable?
12168echo "$as_me:$LINENO: checking $ac_header usability" >&5
12169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12170cat >conftest.$ac_ext <<_ACEOF
12171#line $LINENO "configure"
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177$ac_includes_default
12178#include <$ac_header>
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -s conftest.$ac_objext'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 ac_header_compiler=yes
12193else
12194 echo "$as_me: failed program was:" >&5
12195sed 's/^/| /' conftest.$ac_ext >&5
12196
12197ac_header_compiler=no
12198fi
12199rm -f conftest.$ac_objext conftest.$ac_ext
12200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12201echo "${ECHO_T}$ac_header_compiler" >&6
12202
12203# Is the header present?
12204echo "$as_me:$LINENO: checking $ac_header presence" >&5
12205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12206cat >conftest.$ac_ext <<_ACEOF
12207#line $LINENO "configure"
12208/* confdefs.h. */
12209_ACEOF
12210cat confdefs.h >>conftest.$ac_ext
12211cat >>conftest.$ac_ext <<_ACEOF
12212/* end confdefs.h. */
12213#include <$ac_header>
12214_ACEOF
12215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } >/dev/null; then
12223 if test -s conftest.err; then
12224 ac_cpp_err=$ac_c_preproc_warn_flag
12225 else
12226 ac_cpp_err=
12227 fi
12228else
12229 ac_cpp_err=yes
12230fi
12231if test -z "$ac_cpp_err"; then
12232 ac_header_preproc=yes
12233else
12234 echo "$as_me: failed program was:" >&5
12235sed 's/^/| /' conftest.$ac_ext >&5
12236
12237 ac_header_preproc=no
12238fi
12239rm -f conftest.err conftest.$ac_ext
12240echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12241echo "${ECHO_T}$ac_header_preproc" >&6
12242
12243# So? What about this header?
12244case $ac_header_compiler:$ac_header_preproc in
12245 yes:no )
12246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12247echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12249echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12250 (
12251 cat <<\_ASBOX
12252## ------------------------------------ ##
12253## Report this to bug-autoconf@gnu.org. ##
12254## ------------------------------------ ##
12255_ASBOX
12256 ) |
12257 sed "s/^/$as_me: WARNING: /" >&2
12258 ;;
12259 no:yes )
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12265echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12266 (
12267 cat <<\_ASBOX
12268## ------------------------------------ ##
12269## Report this to bug-autoconf@gnu.org. ##
12270## ------------------------------------ ##
12271_ASBOX
12272 ) |
12273 sed "s/^/$as_me: WARNING: /" >&2
12274 ;;
12275esac
12276echo "$as_me:$LINENO: checking for $ac_header" >&5
12277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12278if eval "test \"\${$as_ac_Header+set}\" = set"; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12280else
12281 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12282fi
e6cc62c6
VS
12283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12284echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12285
a0b9e27f 12286fi
e6cc62c6
VS
12287if test `eval echo '${'$as_ac_Header'}'` = yes; then
12288 cat >>confdefs.h <<_ACEOF
12289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12290_ACEOF
12291
12292fi
12293
12294done
12295
e6cc62c6
VS
12296
12297
12298for ac_header in stdlib.h
12299do
12300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12301if eval "test \"\${$as_ac_Header+set}\" = set"; then
12302 echo "$as_me:$LINENO: checking for $ac_header" >&5
12303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12304if eval "test \"\${$as_ac_Header+set}\" = set"; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306fi
12307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12309else
12310 # Is the header compilable?
12311echo "$as_me:$LINENO: checking $ac_header usability" >&5
12312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12313cat >conftest.$ac_ext <<_ACEOF
12314#line $LINENO "configure"
12315/* confdefs.h. */
12316_ACEOF
12317cat confdefs.h >>conftest.$ac_ext
12318cat >>conftest.$ac_ext <<_ACEOF
12319/* end confdefs.h. */
12320$ac_includes_default
12321#include <$ac_header>
12322_ACEOF
12323rm -f conftest.$ac_objext
12324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12325 (eval $ac_compile) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } &&
12329 { ac_try='test -s conftest.$ac_objext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_header_compiler=yes
12336else
12337 echo "$as_me: failed program was:" >&5
12338sed 's/^/| /' conftest.$ac_ext >&5
12339
12340ac_header_compiler=no
12341fi
12342rm -f conftest.$ac_objext conftest.$ac_ext
12343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12344echo "${ECHO_T}$ac_header_compiler" >&6
12345
12346# Is the header present?
12347echo "$as_me:$LINENO: checking $ac_header presence" >&5
12348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12349cat >conftest.$ac_ext <<_ACEOF
12350#line $LINENO "configure"
12351/* confdefs.h. */
12352_ACEOF
12353cat confdefs.h >>conftest.$ac_ext
12354cat >>conftest.$ac_ext <<_ACEOF
12355/* end confdefs.h. */
12356#include <$ac_header>
12357_ACEOF
12358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } >/dev/null; then
12366 if test -s conftest.err; then
12367 ac_cpp_err=$ac_c_preproc_warn_flag
12368 else
12369 ac_cpp_err=
12370 fi
12371else
12372 ac_cpp_err=yes
12373fi
12374if test -z "$ac_cpp_err"; then
12375 ac_header_preproc=yes
12376else
12377 echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
12380 ac_header_preproc=no
12381fi
12382rm -f conftest.err conftest.$ac_ext
12383echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12384echo "${ECHO_T}$ac_header_preproc" >&6
12385
12386# So? What about this header?
12387case $ac_header_compiler:$ac_header_preproc in
12388 yes:no )
12389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12392echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12393 (
12394 cat <<\_ASBOX
12395## ------------------------------------ ##
12396## Report this to bug-autoconf@gnu.org. ##
12397## ------------------------------------ ##
12398_ASBOX
12399 ) |
12400 sed "s/^/$as_me: WARNING: /" >&2
12401 ;;
12402 no:yes )
12403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12409 (
12410 cat <<\_ASBOX
12411## ------------------------------------ ##
12412## Report this to bug-autoconf@gnu.org. ##
12413## ------------------------------------ ##
12414_ASBOX
12415 ) |
12416 sed "s/^/$as_me: WARNING: /" >&2
12417 ;;
12418esac
12419echo "$as_me:$LINENO: checking for $ac_header" >&5
12420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12421if eval "test \"\${$as_ac_Header+set}\" = set"; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12423else
e6cc62c6
VS
12424 eval "$as_ac_Header=$ac_header_preproc"
12425fi
12426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12428
21d1c967 12429fi
e6cc62c6
VS
12430if test `eval echo '${'$as_ac_Header'}'` = yes; then
12431 cat >>confdefs.h <<_ACEOF
12432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12433_ACEOF
12434
12435fi
12436
21d1c967 12437done
4f14bcd8 12438
5c6fa7d2 12439
e6cc62c6 12440for ac_header in malloc.h
21d1c967 12441do
e6cc62c6
VS
12442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12443if eval "test \"\${$as_ac_Header+set}\" = set"; then
12444 echo "$as_me:$LINENO: checking for $ac_header" >&5
12445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12446if eval "test \"\${$as_ac_Header+set}\" = set"; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448fi
12449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12451else
12452 # Is the header compilable?
12453echo "$as_me:$LINENO: checking $ac_header usability" >&5
12454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12455cat >conftest.$ac_ext <<_ACEOF
12456#line $LINENO "configure"
12457/* confdefs.h. */
12458_ACEOF
12459cat confdefs.h >>conftest.$ac_ext
12460cat >>conftest.$ac_ext <<_ACEOF
12461/* end confdefs.h. */
12462$ac_includes_default
12463#include <$ac_header>
12464_ACEOF
12465rm -f conftest.$ac_objext
12466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467 (eval $ac_compile) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -s conftest.$ac_objext'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 ac_header_compiler=yes
12478else
12479 echo "$as_me: failed program was:" >&5
12480sed 's/^/| /' conftest.$ac_ext >&5
12481
12482ac_header_compiler=no
12483fi
12484rm -f conftest.$ac_objext conftest.$ac_ext
12485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12486echo "${ECHO_T}$ac_header_compiler" >&6
12487
12488# Is the header present?
12489echo "$as_me:$LINENO: checking $ac_header presence" >&5
12490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12491cat >conftest.$ac_ext <<_ACEOF
12492#line $LINENO "configure"
12493/* confdefs.h. */
12494_ACEOF
12495cat confdefs.h >>conftest.$ac_ext
12496cat >>conftest.$ac_ext <<_ACEOF
12497/* end confdefs.h. */
12498#include <$ac_header>
12499_ACEOF
12500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12502 ac_status=$?
12503 grep -v '^ *+' conftest.er1 >conftest.err
12504 rm -f conftest.er1
12505 cat conftest.err >&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } >/dev/null; then
12508 if test -s conftest.err; then
12509 ac_cpp_err=$ac_c_preproc_warn_flag
12510 else
12511 ac_cpp_err=
12512 fi
12513else
12514 ac_cpp_err=yes
12515fi
12516if test -z "$ac_cpp_err"; then
12517 ac_header_preproc=yes
12518else
12519 echo "$as_me: failed program was:" >&5
12520sed 's/^/| /' conftest.$ac_ext >&5
12521
12522 ac_header_preproc=no
12523fi
12524rm -f conftest.err conftest.$ac_ext
12525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12526echo "${ECHO_T}$ac_header_preproc" >&6
12527
12528# So? What about this header?
12529case $ac_header_compiler:$ac_header_preproc in
12530 yes:no )
12531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12535 (
12536 cat <<\_ASBOX
12537## ------------------------------------ ##
12538## Report this to bug-autoconf@gnu.org. ##
12539## ------------------------------------ ##
12540_ASBOX
12541 ) |
12542 sed "s/^/$as_me: WARNING: /" >&2
12543 ;;
12544 no:yes )
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12551 (
12552 cat <<\_ASBOX
12553## ------------------------------------ ##
12554## Report this to bug-autoconf@gnu.org. ##
12555## ------------------------------------ ##
12556_ASBOX
12557 ) |
12558 sed "s/^/$as_me: WARNING: /" >&2
12559 ;;
12560esac
12561echo "$as_me:$LINENO: checking for $ac_header" >&5
12562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12563if eval "test \"\${$as_ac_Header+set}\" = set"; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12565else
12566 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12567fi
e6cc62c6
VS
12568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12570
21d1c967 12571fi
e6cc62c6
VS
12572if test `eval echo '${'$as_ac_Header'}'` = yes; then
12573 cat >>confdefs.h <<_ACEOF
12574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12575_ACEOF
12576
12577fi
12578
12579done
12580
12581
12582for ac_header in unistd.h
12583do
12584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12585if eval "test \"\${$as_ac_Header+set}\" = set"; then
12586 echo "$as_me:$LINENO: checking for $ac_header" >&5
12587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12588if eval "test \"\${$as_ac_Header+set}\" = set"; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590fi
12591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12593else
12594 # Is the header compilable?
12595echo "$as_me:$LINENO: checking $ac_header usability" >&5
12596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12597cat >conftest.$ac_ext <<_ACEOF
12598#line $LINENO "configure"
12599/* confdefs.h. */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h. */
12604$ac_includes_default
12605#include <$ac_header>
12606_ACEOF
12607rm -f conftest.$ac_objext
12608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12609 (eval $ac_compile) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -s conftest.$ac_objext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_header_compiler=yes
12620else
12621 echo "$as_me: failed program was:" >&5
12622sed 's/^/| /' conftest.$ac_ext >&5
12623
12624ac_header_compiler=no
12625fi
12626rm -f conftest.$ac_objext conftest.$ac_ext
12627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12628echo "${ECHO_T}$ac_header_compiler" >&6
12629
12630# Is the header present?
12631echo "$as_me:$LINENO: checking $ac_header presence" >&5
12632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12633cat >conftest.$ac_ext <<_ACEOF
12634#line $LINENO "configure"
12635/* confdefs.h. */
12636_ACEOF
12637cat confdefs.h >>conftest.$ac_ext
12638cat >>conftest.$ac_ext <<_ACEOF
12639/* end confdefs.h. */
12640#include <$ac_header>
12641_ACEOF
12642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12644 ac_status=$?
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } >/dev/null; then
12650 if test -s conftest.err; then
12651 ac_cpp_err=$ac_c_preproc_warn_flag
12652 else
12653 ac_cpp_err=
12654 fi
a0b9e27f 12655else
e6cc62c6
VS
12656 ac_cpp_err=yes
12657fi
12658if test -z "$ac_cpp_err"; then
12659 ac_header_preproc=yes
12660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664 ac_header_preproc=no
12665fi
12666rm -f conftest.err conftest.$ac_ext
12667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12668echo "${ECHO_T}$ac_header_preproc" >&6
12669
12670# So? What about this header?
12671case $ac_header_compiler:$ac_header_preproc in
12672 yes:no )
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12677 (
12678 cat <<\_ASBOX
12679## ------------------------------------ ##
12680## Report this to bug-autoconf@gnu.org. ##
12681## ------------------------------------ ##
12682_ASBOX
12683 ) |
12684 sed "s/^/$as_me: WARNING: /" >&2
12685 ;;
12686 no:yes )
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12690echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12693 (
12694 cat <<\_ASBOX
12695## ------------------------------------ ##
12696## Report this to bug-autoconf@gnu.org. ##
12697## ------------------------------------ ##
12698_ASBOX
12699 ) |
12700 sed "s/^/$as_me: WARNING: /" >&2
12701 ;;
12702esac
12703echo "$as_me:$LINENO: checking for $ac_header" >&5
12704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12705if eval "test \"\${$as_ac_Header+set}\" = set"; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12707else
12708 eval "$as_ac_Header=$ac_header_preproc"
12709fi
12710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12712
12713fi
12714if test `eval echo '${'$as_ac_Header'}'` = yes; then
12715 cat >>confdefs.h <<_ACEOF
12716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12717_ACEOF
12718
d4158b5d 12719fi
e6cc62c6 12720
21d1c967 12721done
f6bcfd97 12722
e6cc62c6
VS
12723
12724for ac_header in wchar.h
12725do
12726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12727if eval "test \"\${$as_ac_Header+set}\" = set"; then
12728 echo "$as_me:$LINENO: checking for $ac_header" >&5
12729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12730if eval "test \"\${$as_ac_Header+set}\" = set"; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732fi
12733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12735else
12736 # Is the header compilable?
12737echo "$as_me:$LINENO: checking $ac_header usability" >&5
12738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12739cat >conftest.$ac_ext <<_ACEOF
12740#line $LINENO "configure"
12741/* confdefs.h. */
12742_ACEOF
12743cat confdefs.h >>conftest.$ac_ext
12744cat >>conftest.$ac_ext <<_ACEOF
12745/* end confdefs.h. */
12746$ac_includes_default
12747#include <$ac_header>
12748_ACEOF
12749rm -f conftest.$ac_objext
12750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12751 (eval $ac_compile) 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -s conftest.$ac_objext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_header_compiler=yes
12762else
12763 echo "$as_me: failed program was:" >&5
12764sed 's/^/| /' conftest.$ac_ext >&5
12765
12766ac_header_compiler=no
12767fi
12768rm -f conftest.$ac_objext conftest.$ac_ext
12769echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12770echo "${ECHO_T}$ac_header_compiler" >&6
12771
12772# Is the header present?
12773echo "$as_me:$LINENO: checking $ac_header presence" >&5
12774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12775cat >conftest.$ac_ext <<_ACEOF
12776#line $LINENO "configure"
12777/* confdefs.h. */
12778_ACEOF
12779cat confdefs.h >>conftest.$ac_ext
12780cat >>conftest.$ac_ext <<_ACEOF
12781/* end confdefs.h. */
12782#include <$ac_header>
12783_ACEOF
12784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } >/dev/null; then
12792 if test -s conftest.err; then
12793 ac_cpp_err=$ac_c_preproc_warn_flag
12794 else
12795 ac_cpp_err=
12796 fi
12797else
12798 ac_cpp_err=yes
12799fi
12800if test -z "$ac_cpp_err"; then
12801 ac_header_preproc=yes
12802else
12803 echo "$as_me: failed program was:" >&5
12804sed 's/^/| /' conftest.$ac_ext >&5
12805
12806 ac_header_preproc=no
12807fi
12808rm -f conftest.err conftest.$ac_ext
12809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12810echo "${ECHO_T}$ac_header_preproc" >&6
12811
12812# So? What about this header?
12813case $ac_header_compiler:$ac_header_preproc in
12814 yes:no )
12815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12819 (
12820 cat <<\_ASBOX
12821## ------------------------------------ ##
12822## Report this to bug-autoconf@gnu.org. ##
12823## ------------------------------------ ##
12824_ASBOX
12825 ) |
12826 sed "s/^/$as_me: WARNING: /" >&2
12827 ;;
12828 no:yes )
12829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12832echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12835 (
12836 cat <<\_ASBOX
12837## ------------------------------------ ##
12838## Report this to bug-autoconf@gnu.org. ##
12839## ------------------------------------ ##
12840_ASBOX
12841 ) |
12842 sed "s/^/$as_me: WARNING: /" >&2
12843 ;;
12844esac
12845echo "$as_me:$LINENO: checking for $ac_header" >&5
12846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12847if eval "test \"\${$as_ac_Header+set}\" = set"; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12849else
12850 eval "$as_ac_Header=$ac_header_preproc"
12851fi
12852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12854
90dd450c 12855fi
e6cc62c6
VS
12856if test `eval echo '${'$as_ac_Header'}'` = yes; then
12857 cat >>confdefs.h <<_ACEOF
12858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12859_ACEOF
12860
12861fi
12862
12863done
90dd450c 12864
e6cc62c6
VS
12865
12866if test "$ac_cv_header_wchar_h" != "yes"; then
12867
12868for ac_header in wcstr.h
21d1c967 12869do
e6cc62c6
VS
12870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12871if eval "test \"\${$as_ac_Header+set}\" = set"; then
12872 echo "$as_me:$LINENO: checking for $ac_header" >&5
12873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12874if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876fi
12877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12878echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12879else
12880 # Is the header compilable?
12881echo "$as_me:$LINENO: checking $ac_header usability" >&5
12882echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12883cat >conftest.$ac_ext <<_ACEOF
12884#line $LINENO "configure"
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
12890$ac_includes_default
12891#include <$ac_header>
12892_ACEOF
12893rm -f conftest.$ac_objext
12894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895 (eval $ac_compile) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
12899 { ac_try='test -s conftest.$ac_objext'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 ac_header_compiler=yes
12906else
12907 echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910ac_header_compiler=no
12911fi
12912rm -f conftest.$ac_objext conftest.$ac_ext
12913echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12914echo "${ECHO_T}$ac_header_compiler" >&6
12915
12916# Is the header present?
12917echo "$as_me:$LINENO: checking $ac_header presence" >&5
12918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12919cat >conftest.$ac_ext <<_ACEOF
12920#line $LINENO "configure"
12921/* confdefs.h. */
12922_ACEOF
12923cat confdefs.h >>conftest.$ac_ext
12924cat >>conftest.$ac_ext <<_ACEOF
12925/* end confdefs.h. */
12926#include <$ac_header>
12927_ACEOF
12928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12930 ac_status=$?
12931 grep -v '^ *+' conftest.er1 >conftest.err
12932 rm -f conftest.er1
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } >/dev/null; then
12936 if test -s conftest.err; then
12937 ac_cpp_err=$ac_c_preproc_warn_flag
12938 else
12939 ac_cpp_err=
12940 fi
12941else
12942 ac_cpp_err=yes
12943fi
12944if test -z "$ac_cpp_err"; then
12945 ac_header_preproc=yes
12946else
12947 echo "$as_me: failed program was:" >&5
12948sed 's/^/| /' conftest.$ac_ext >&5
12949
12950 ac_header_preproc=no
12951fi
12952rm -f conftest.err conftest.$ac_ext
12953echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12954echo "${ECHO_T}$ac_header_preproc" >&6
12955
12956# So? What about this header?
12957case $ac_header_compiler:$ac_header_preproc in
12958 yes:no )
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12962echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12963 (
12964 cat <<\_ASBOX
12965## ------------------------------------ ##
12966## Report this to bug-autoconf@gnu.org. ##
12967## ------------------------------------ ##
12968_ASBOX
12969 ) |
12970 sed "s/^/$as_me: WARNING: /" >&2
12971 ;;
12972 no:yes )
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12974echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12976echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12979 (
12980 cat <<\_ASBOX
12981## ------------------------------------ ##
12982## Report this to bug-autoconf@gnu.org. ##
12983## ------------------------------------ ##
12984_ASBOX
12985 ) |
12986 sed "s/^/$as_me: WARNING: /" >&2
12987 ;;
12988esac
12989echo "$as_me:$LINENO: checking for $ac_header" >&5
12990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12991if eval "test \"\${$as_ac_Header+set}\" = set"; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12993else
12994 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12995fi
e6cc62c6
VS
12996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12998
4f14bcd8 12999fi
e6cc62c6
VS
13000if test `eval echo '${'$as_ac_Header'}'` = yes; then
13001 cat >>confdefs.h <<_ACEOF
13002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13003_ACEOF
13004
13005fi
13006
13007done
13008
13009fi
13010
13011
13012for ac_header in fnmatch.h
13013do
13014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13015if eval "test \"\${$as_ac_Header+set}\" = set"; then
13016 echo "$as_me:$LINENO: checking for $ac_header" >&5
13017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13018if eval "test \"\${$as_ac_Header+set}\" = set"; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13020fi
13021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13023else
13024 # Is the header compilable?
13025echo "$as_me:$LINENO: checking $ac_header usability" >&5
13026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13027cat >conftest.$ac_ext <<_ACEOF
13028#line $LINENO "configure"
13029/* confdefs.h. */
13030_ACEOF
13031cat confdefs.h >>conftest.$ac_ext
13032cat >>conftest.$ac_ext <<_ACEOF
13033/* end confdefs.h. */
13034$ac_includes_default
13035#include <$ac_header>
13036_ACEOF
13037rm -f conftest.$ac_objext
13038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13039 (eval $ac_compile) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
13043 { ac_try='test -s conftest.$ac_objext'
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13046 ac_status=$?
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; }; then
13049 ac_header_compiler=yes
13050else
13051 echo "$as_me: failed program was:" >&5
13052sed 's/^/| /' conftest.$ac_ext >&5
13053
13054ac_header_compiler=no
13055fi
13056rm -f conftest.$ac_objext conftest.$ac_ext
13057echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13058echo "${ECHO_T}$ac_header_compiler" >&6
13059
13060# Is the header present?
13061echo "$as_me:$LINENO: checking $ac_header presence" >&5
13062echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13063cat >conftest.$ac_ext <<_ACEOF
13064#line $LINENO "configure"
13065/* confdefs.h. */
13066_ACEOF
13067cat confdefs.h >>conftest.$ac_ext
13068cat >>conftest.$ac_ext <<_ACEOF
13069/* end confdefs.h. */
13070#include <$ac_header>
13071_ACEOF
13072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13074 ac_status=$?
13075 grep -v '^ *+' conftest.er1 >conftest.err
13076 rm -f conftest.er1
13077 cat conftest.err >&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } >/dev/null; then
13080 if test -s conftest.err; then
13081 ac_cpp_err=$ac_c_preproc_warn_flag
13082 else
13083 ac_cpp_err=
13084 fi
13085else
13086 ac_cpp_err=yes
13087fi
13088if test -z "$ac_cpp_err"; then
13089 ac_header_preproc=yes
13090else
13091 echo "$as_me: failed program was:" >&5
13092sed 's/^/| /' conftest.$ac_ext >&5
13093
13094 ac_header_preproc=no
13095fi
13096rm -f conftest.err conftest.$ac_ext
13097echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13098echo "${ECHO_T}$ac_header_preproc" >&6
13099
13100# So? What about this header?
13101case $ac_header_compiler:$ac_header_preproc in
13102 yes:no )
13103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13104echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13107 (
13108 cat <<\_ASBOX
13109## ------------------------------------ ##
13110## Report this to bug-autoconf@gnu.org. ##
13111## ------------------------------------ ##
13112_ASBOX
13113 ) |
13114 sed "s/^/$as_me: WARNING: /" >&2
13115 ;;
13116 no:yes )
13117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13118echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13120echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13123 (
13124 cat <<\_ASBOX
13125## ------------------------------------ ##
13126## Report this to bug-autoconf@gnu.org. ##
13127## ------------------------------------ ##
13128_ASBOX
13129 ) |
13130 sed "s/^/$as_me: WARNING: /" >&2
13131 ;;
13132esac
13133echo "$as_me:$LINENO: checking for $ac_header" >&5
13134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13135if eval "test \"\${$as_ac_Header+set}\" = set"; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13137else
e6cc62c6
VS
13138 eval "$as_ac_Header=$ac_header_preproc"
13139fi
13140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13142
21d1c967 13143fi
e6cc62c6
VS
13144if test `eval echo '${'$as_ac_Header'}'` = yes; then
13145 cat >>confdefs.h <<_ACEOF
13146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13147_ACEOF
13148
13149fi
13150
21d1c967 13151done
90dd450c 13152
5c6fa7d2 13153
a0b9e27f 13154if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13155
13156for ac_func in fnmatch
21d1c967 13157do
e6cc62c6
VS
13158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13159echo "$as_me:$LINENO: checking for $ac_func" >&5
13160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13161if eval "test \"\${$as_ac_var+set}\" = set"; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163else
13164 cat >conftest.$ac_ext <<_ACEOF
13165#line $LINENO "configure"
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
a0b9e27f 13171/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13172 which can conflict with char $ac_func (); below.
13173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13174 <limits.h> exists even on freestanding compilers. */
13175#ifdef __STDC__
13176# include <limits.h>
13177#else
13178# include <assert.h>
13179#endif
a0b9e27f 13180/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13181#ifdef __cplusplus
13182extern "C"
13183{
13184#endif
a0b9e27f 13185/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13186 builtin and then its argument prototype would still apply. */
13187char $ac_func ();
a0b9e27f
MB
13188/* The GNU C library defines this for functions which it implements
13189 to always fail with ENOSYS. Some functions are actually named
13190 something starting with __ and the normal name is an alias. */
13191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13192choke me
13193#else
e6cc62c6
VS
13194char (*f) () = $ac_func;
13195#endif
13196#ifdef __cplusplus
13197}
a0b9e27f
MB
13198#endif
13199
e6cc62c6
VS
13200int
13201main ()
13202{
13203return f != $ac_func;
13204 ;
13205 return 0;
13206}
13207_ACEOF
13208rm -f conftest.$ac_objext conftest$ac_exeext
13209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210 (eval $ac_link) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
13214 { ac_try='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 eval "$as_ac_var=yes"
13221else
13222 echo "$as_me: failed program was:" >&5
13223sed 's/^/| /' conftest.$ac_ext >&5
13224
13225eval "$as_ac_var=no"
13226fi
13227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13228fi
13229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13231if test `eval echo '${'$as_ac_var'}'` = yes; then
13232 cat >>confdefs.h <<_ACEOF
13233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13234_ACEOF
32832908 13235
21d1c967
GD
13236fi
13237done
90dd450c 13238
a0b9e27f 13239fi
90dd450c 13240
e6cc62c6
VS
13241
13242for ac_header in langinfo.h
21d1c967 13243do
e6cc62c6
VS
13244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13245if eval "test \"\${$as_ac_Header+set}\" = set"; then
13246 echo "$as_me:$LINENO: checking for $ac_header" >&5
13247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13248if eval "test \"\${$as_ac_Header+set}\" = set"; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250fi
13251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13253else
13254 # Is the header compilable?
13255echo "$as_me:$LINENO: checking $ac_header usability" >&5
13256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13257cat >conftest.$ac_ext <<_ACEOF
13258#line $LINENO "configure"
13259/* confdefs.h. */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
13263/* end confdefs.h. */
13264$ac_includes_default
13265#include <$ac_header>
13266_ACEOF
13267rm -f conftest.$ac_objext
13268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -s conftest.$ac_objext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_header_compiler=yes
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284ac_header_compiler=no
13285fi
13286rm -f conftest.$ac_objext conftest.$ac_ext
13287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13288echo "${ECHO_T}$ac_header_compiler" >&6
13289
13290# Is the header present?
13291echo "$as_me:$LINENO: checking $ac_header presence" >&5
13292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13293cat >conftest.$ac_ext <<_ACEOF
13294#line $LINENO "configure"
13295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
13299/* end confdefs.h. */
13300#include <$ac_header>
13301_ACEOF
13302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13304 ac_status=$?
13305 grep -v '^ *+' conftest.er1 >conftest.err
13306 rm -f conftest.er1
13307 cat conftest.err >&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } >/dev/null; then
13310 if test -s conftest.err; then
13311 ac_cpp_err=$ac_c_preproc_warn_flag
13312 else
13313 ac_cpp_err=
13314 fi
13315else
13316 ac_cpp_err=yes
13317fi
13318if test -z "$ac_cpp_err"; then
13319 ac_header_preproc=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_header_preproc=no
13325fi
13326rm -f conftest.err conftest.$ac_ext
13327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13328echo "${ECHO_T}$ac_header_preproc" >&6
13329
13330# So? What about this header?
13331case $ac_header_compiler:$ac_header_preproc in
13332 yes:no )
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13336echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13337 (
13338 cat <<\_ASBOX
13339## ------------------------------------ ##
13340## Report this to bug-autoconf@gnu.org. ##
13341## ------------------------------------ ##
13342_ASBOX
13343 ) |
13344 sed "s/^/$as_me: WARNING: /" >&2
13345 ;;
13346 no:yes )
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13350echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13353 (
13354 cat <<\_ASBOX
13355## ------------------------------------ ##
13356## Report this to bug-autoconf@gnu.org. ##
13357## ------------------------------------ ##
13358_ASBOX
13359 ) |
13360 sed "s/^/$as_me: WARNING: /" >&2
13361 ;;
13362esac
13363echo "$as_me:$LINENO: checking for $ac_header" >&5
13364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13365if eval "test \"\${$as_ac_Header+set}\" = set"; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367else
13368 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13369fi
e6cc62c6
VS
13370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13372
4f14bcd8 13373fi
e6cc62c6
VS
13374if test `eval echo '${'$as_ac_Header'}'` = yes; then
13375 cat >>confdefs.h <<_ACEOF
13376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13377_ACEOF
13378
21d1c967 13379fi
e6cc62c6 13380
21d1c967 13381done
3a922bb4 13382
8284b0c5 13383
4f5a7f74
VZ
13384case "${host}" in
13385 *-pc-os2_emx | *-pc-os2-emx )
13386 if test $ac_cv_header_langinfo_h = "yes"; then
13387 LIBS="$LIBS -lintl"
13388 fi
13389 ;;
13390esac
1542ea39 13391
a0b9e27f
MB
13392if test "$wxUSE_GUI" = "yes"; then
13393 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
13394
13395for ac_header in X11/XKBlib.h
21d1c967 13396do
e6cc62c6
VS
13397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13398if eval "test \"\${$as_ac_Header+set}\" = set"; then
13399 echo "$as_me:$LINENO: checking for $ac_header" >&5
13400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13401if eval "test \"\${$as_ac_Header+set}\" = set"; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13403fi
13404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13406else
13407 # Is the header compilable?
13408echo "$as_me:$LINENO: checking $ac_header usability" >&5
13409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13410cat >conftest.$ac_ext <<_ACEOF
13411#line $LINENO "configure"
13412/* confdefs.h. */
13413_ACEOF
13414cat confdefs.h >>conftest.$ac_ext
13415cat >>conftest.$ac_ext <<_ACEOF
13416/* end confdefs.h. */
13417$ac_includes_default
13418#include <$ac_header>
13419_ACEOF
13420rm -f conftest.$ac_objext
13421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422 (eval $ac_compile) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -s conftest.$ac_objext'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_header_compiler=yes
13433else
13434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437ac_header_compiler=no
13438fi
13439rm -f conftest.$ac_objext conftest.$ac_ext
13440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13441echo "${ECHO_T}$ac_header_compiler" >&6
13442
13443# Is the header present?
13444echo "$as_me:$LINENO: checking $ac_header presence" >&5
13445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13446cat >conftest.$ac_ext <<_ACEOF
13447#line $LINENO "configure"
13448/* confdefs.h. */
13449_ACEOF
13450cat confdefs.h >>conftest.$ac_ext
13451cat >>conftest.$ac_ext <<_ACEOF
13452/* end confdefs.h. */
13453#include <$ac_header>
13454_ACEOF
13455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13457 ac_status=$?
13458 grep -v '^ *+' conftest.er1 >conftest.err
13459 rm -f conftest.er1
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } >/dev/null; then
13463 if test -s conftest.err; then
13464 ac_cpp_err=$ac_c_preproc_warn_flag
13465 else
13466 ac_cpp_err=
13467 fi
13468else
13469 ac_cpp_err=yes
13470fi
13471if test -z "$ac_cpp_err"; then
13472 ac_header_preproc=yes
13473else
13474 echo "$as_me: failed program was:" >&5
13475sed 's/^/| /' conftest.$ac_ext >&5
13476
13477 ac_header_preproc=no
13478fi
13479rm -f conftest.err conftest.$ac_ext
13480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13481echo "${ECHO_T}$ac_header_preproc" >&6
13482
13483# So? What about this header?
13484case $ac_header_compiler:$ac_header_preproc in
13485 yes:no )
13486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13489echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13490 (
13491 cat <<\_ASBOX
13492## ------------------------------------ ##
13493## Report this to bug-autoconf@gnu.org. ##
13494## ------------------------------------ ##
13495_ASBOX
13496 ) |
13497 sed "s/^/$as_me: WARNING: /" >&2
13498 ;;
13499 no:yes )
13500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13501echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13503echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13506 (
13507 cat <<\_ASBOX
13508## ------------------------------------ ##
13509## Report this to bug-autoconf@gnu.org. ##
13510## ------------------------------------ ##
13511_ASBOX
13512 ) |
13513 sed "s/^/$as_me: WARNING: /" >&2
13514 ;;
13515esac
13516echo "$as_me:$LINENO: checking for $ac_header" >&5
13517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13518if eval "test \"\${$as_ac_Header+set}\" = set"; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13520else
13521 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13522fi
e6cc62c6
VS
13523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13525
90dd450c 13526fi
e6cc62c6
VS
13527if test `eval echo '${'$as_ac_Header'}'` = yes; then
13528 cat >>confdefs.h <<_ACEOF
13529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13530_ACEOF
13531
247f5006 13532fi
e6cc62c6 13533
247f5006
VZ
13534done
13535
a0b9e27f
MB
13536 fi
13537fi
247f5006 13538
247f5006 13539
e6cc62c6
VS
13540echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13541echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13542if test "${ac_cv_c_const+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544else
13545 cat >conftest.$ac_ext <<_ACEOF
13546#line $LINENO "configure"
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
13552
13553int
13554main ()
13555{
13556/* FIXME: Include the comments suggested by Paul. */
13557#ifndef __cplusplus
13558 /* Ultrix mips cc rejects this. */
13559 typedef int charset[2];
13560 const charset x;
13561 /* SunOS 4.1.1 cc rejects this. */
13562 char const *const *ccp;
13563 char **p;
13564 /* NEC SVR4.0.2 mips cc rejects this. */
13565 struct point {int x, y;};
13566 static struct point const zero = {0,0};
13567 /* AIX XL C 1.02.0.0 rejects this.
13568 It does not let you subtract one const X* pointer from another in
13569 an arm of an if-expression whose if-part is not a constant
13570 expression */
13571 const char *g = "string";
13572 ccp = &g + (g ? g-g : 0);
13573 /* HPUX 7.0 cc rejects these. */
13574 ++ccp;
13575 p = (char**) ccp;
13576 ccp = (char const *const *) p;
13577 { /* SCO 3.2v4 cc rejects this. */
13578 char *t;
13579 char const *s = 0 ? (char *) 0 : (char const *) 0;
13580
13581 *t++ = 0;
13582 }
13583 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13584 int x[] = {25, 17};
13585 const int *foo = &x[0];
13586 ++foo;
13587 }
13588 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13589 typedef const int *iptr;
13590 iptr p = 0;
13591 ++p;
13592 }
13593 { /* AIX XL C 1.02.0.0 rejects this saying
13594 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13595 struct s { int j; const int *ap[3]; };
13596 struct s *b; b->j = 5;
13597 }
13598 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13599 const int foo = 10;
13600 }
13601#endif
13602
13603 ;
13604 return 0;
13605}
13606_ACEOF
13607rm -f conftest.$ac_objext
13608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609 (eval $ac_compile) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -s conftest.$ac_objext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
a0b9e27f 13619 ac_cv_c_const=yes
247f5006 13620else
e6cc62c6
VS
13621 echo "$as_me: failed program was:" >&5
13622sed 's/^/| /' conftest.$ac_ext >&5
13623
13624ac_cv_c_const=no
247f5006 13625fi
e6cc62c6 13626rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13627fi
e6cc62c6
VS
13628echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13629echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13630if test $ac_cv_c_const = no; then
e6cc62c6
VS
13631
13632cat >>confdefs.h <<\_ACEOF
13633#define const
13634_ACEOF
10f2d63a 13635
90dd450c 13636fi
81809c07 13637
e6cc62c6
VS
13638echo "$as_me:$LINENO: checking for inline" >&5
13639echo $ECHO_N "checking for inline... $ECHO_C" >&6
13640if test "${ac_cv_c_inline+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13642else
a0b9e27f
MB
13643 ac_cv_c_inline=no
13644for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13645 cat >conftest.$ac_ext <<_ACEOF
13646#line $LINENO "configure"
13647/* confdefs.h. */
13648_ACEOF
13649cat confdefs.h >>conftest.$ac_ext
13650cat >>conftest.$ac_ext <<_ACEOF
13651/* end confdefs.h. */
13652#ifndef __cplusplus
13653typedef int foo_t;
13654static $ac_kw foo_t static_foo () {return 0; }
13655$ac_kw foo_t foo () {return 0; }
13656#endif
a0b9e27f 13657
e6cc62c6
VS
13658_ACEOF
13659rm -f conftest.$ac_objext
13660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661 (eval $ac_compile) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -s conftest.$ac_objext'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
a0b9e27f 13671 ac_cv_c_inline=$ac_kw; break
247f5006 13672else
e6cc62c6
VS
13673 echo "$as_me: failed program was:" >&5
13674sed 's/^/| /' conftest.$ac_ext >&5
13675
247f5006 13676fi
e6cc62c6 13677rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13678done
247f5006
VZ
13679
13680fi
e6cc62c6
VS
13681echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13682echo "${ECHO_T}$ac_cv_c_inline" >&6
13683case $ac_cv_c_inline in
a0b9e27f 13684 inline | yes) ;;
e6cc62c6
VS
13685 no)
13686cat >>confdefs.h <<\_ACEOF
13687#define inline
13688_ACEOF
a0b9e27f 13689 ;;
e6cc62c6 13690 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13691#define inline $ac_cv_c_inline
e6cc62c6 13692_ACEOF
a0b9e27f
MB
13693 ;;
13694esac
247f5006 13695
247f5006 13696
e6cc62c6
VS
13697echo "$as_me:$LINENO: checking for char" >&5
13698echo $ECHO_N "checking for char... $ECHO_C" >&6
13699if test "${ac_cv_type_char+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701else
13702 cat >conftest.$ac_ext <<_ACEOF
13703#line $LINENO "configure"
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709$ac_includes_default
13710int
13711main ()
13712{
13713if ((char *) 0)
13714 return 0;
13715if (sizeof (char))
13716 return 0;
13717 ;
13718 return 0;
13719}
13720_ACEOF
13721rm -f conftest.$ac_objext
13722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723 (eval $ac_compile) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try='test -s conftest.$ac_objext'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13733 ac_cv_type_char=yes
13734else
13735 echo "$as_me: failed program was:" >&5
13736sed 's/^/| /' conftest.$ac_ext >&5
13737
13738ac_cv_type_char=no
13739fi
13740rm -f conftest.$ac_objext conftest.$ac_ext
13741fi
13742echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13743echo "${ECHO_T}$ac_cv_type_char" >&6
13744
13745echo "$as_me:$LINENO: checking size of char" >&5
13746echo $ECHO_N "checking size of char... $ECHO_C" >&6
13747if test "${ac_cv_sizeof_char+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749else
13750 if test "$ac_cv_type_char" = yes; then
13751 # The cast to unsigned long works around a bug in the HP C Compiler
13752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13754 # This bug is HP SR number 8606223364.
a0b9e27f 13755 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13756 # Depending upon the size, compute the lo and hi bounds.
13757cat >conftest.$ac_ext <<_ACEOF
13758#line $LINENO "configure"
13759/* confdefs.h. */
13760_ACEOF
13761cat confdefs.h >>conftest.$ac_ext
13762cat >>conftest.$ac_ext <<_ACEOF
13763/* end confdefs.h. */
13764$ac_includes_default
13765int
13766main ()
13767{
13768static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13769test_array [0] = 0
13770
13771 ;
13772 return 0;
13773}
13774_ACEOF
13775rm -f conftest.$ac_objext
13776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13777 (eval $ac_compile) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -s conftest.$ac_objext'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_lo=0 ac_mid=0
13788 while :; do
13789 cat >conftest.$ac_ext <<_ACEOF
13790#line $LINENO "configure"
13791/* confdefs.h. */
13792_ACEOF
13793cat confdefs.h >>conftest.$ac_ext
13794cat >>conftest.$ac_ext <<_ACEOF
13795/* end confdefs.h. */
13796$ac_includes_default
13797int
13798main ()
13799{
13800static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13801test_array [0] = 0
13802
13803 ;
13804 return 0;
13805}
13806_ACEOF
13807rm -f conftest.$ac_objext
13808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13809 (eval $ac_compile) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -s conftest.$ac_objext'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_hi=$ac_mid; break
13820else
13821 echo "$as_me: failed program was:" >&5
13822sed 's/^/| /' conftest.$ac_ext >&5
13823
13824ac_lo=`expr $ac_mid + 1`
13825 if test $ac_lo -le $ac_mid; then
13826 ac_lo= ac_hi=
13827 break
13828 fi
13829 ac_mid=`expr 2 '*' $ac_mid + 1`
13830fi
13831rm -f conftest.$ac_objext conftest.$ac_ext
13832 done
a0b9e27f 13833else
e6cc62c6
VS
13834 echo "$as_me: failed program was:" >&5
13835sed 's/^/| /' conftest.$ac_ext >&5
13836
13837cat >conftest.$ac_ext <<_ACEOF
13838#line $LINENO "configure"
13839/* confdefs.h. */
13840_ACEOF
13841cat confdefs.h >>conftest.$ac_ext
13842cat >>conftest.$ac_ext <<_ACEOF
13843/* end confdefs.h. */
13844$ac_includes_default
13845int
13846main ()
13847{
13848static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13849test_array [0] = 0
13850
13851 ;
13852 return 0;
13853}
13854_ACEOF
13855rm -f conftest.$ac_objext
13856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13857 (eval $ac_compile) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
13861 { ac_try='test -s conftest.$ac_objext'
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; }; then
13867 ac_hi=-1 ac_mid=-1
13868 while :; do
13869 cat >conftest.$ac_ext <<_ACEOF
13870#line $LINENO "configure"
13871/* confdefs.h. */
13872_ACEOF
13873cat confdefs.h >>conftest.$ac_ext
13874cat >>conftest.$ac_ext <<_ACEOF
13875/* end confdefs.h. */
13876$ac_includes_default
13877int
13878main ()
13879{
13880static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13881test_array [0] = 0
13882
13883 ;
13884 return 0;
13885}
13886_ACEOF
13887rm -f conftest.$ac_objext
13888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13889 (eval $ac_compile) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try='test -s conftest.$ac_objext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_lo=$ac_mid; break
13900else
13901 echo "$as_me: failed program was:" >&5
13902sed 's/^/| /' conftest.$ac_ext >&5
13903
13904ac_hi=`expr '(' $ac_mid ')' - 1`
13905 if test $ac_mid -le $ac_hi; then
13906 ac_lo= ac_hi=
13907 break
13908 fi
13909 ac_mid=`expr 2 '*' $ac_mid`
13910fi
13911rm -f conftest.$ac_objext conftest.$ac_ext
13912 done
13913else
13914 echo "$as_me: failed program was:" >&5
13915sed 's/^/| /' conftest.$ac_ext >&5
13916
13917ac_lo= ac_hi=
13918fi
13919rm -f conftest.$ac_objext conftest.$ac_ext
13920fi
13921rm -f conftest.$ac_objext conftest.$ac_ext
13922# Binary search between lo and hi bounds.
13923while test "x$ac_lo" != "x$ac_hi"; do
13924 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13925 cat >conftest.$ac_ext <<_ACEOF
13926#line $LINENO "configure"
13927/* confdefs.h. */
13928_ACEOF
13929cat confdefs.h >>conftest.$ac_ext
13930cat >>conftest.$ac_ext <<_ACEOF
13931/* end confdefs.h. */
13932$ac_includes_default
13933int
13934main ()
13935{
13936static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13937test_array [0] = 0
13938
13939 ;
13940 return 0;
13941}
13942_ACEOF
13943rm -f conftest.$ac_objext
13944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -s conftest.$ac_objext'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_hi=$ac_mid
13956else
13957 echo "$as_me: failed program was:" >&5
13958sed 's/^/| /' conftest.$ac_ext >&5
13959
13960ac_lo=`expr '(' $ac_mid ')' + 1`
13961fi
13962rm -f conftest.$ac_objext conftest.$ac_ext
13963done
13964case $ac_lo in
13965?*) ac_cv_sizeof_char=$ac_lo;;
13966'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13967See \`config.log' for more details." >&5
13968echo "$as_me: error: cannot compute sizeof (char), 77
13969See \`config.log' for more details." >&2;}
13970 { (exit 1); exit 1; }; } ;;
13971esac
13972else
13973 if test "$cross_compiling" = yes; then
13974 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13975See \`config.log' for more details." >&5
13976echo "$as_me: error: cannot run test program while cross compiling
13977See \`config.log' for more details." >&2;}
13978 { (exit 1); exit 1; }; }
13979else
13980 cat >conftest.$ac_ext <<_ACEOF
13981#line $LINENO "configure"
13982/* confdefs.h. */
13983_ACEOF
13984cat confdefs.h >>conftest.$ac_ext
13985cat >>conftest.$ac_ext <<_ACEOF
13986/* end confdefs.h. */
13987$ac_includes_default
13988long longval () { return (long) (sizeof (char)); }
13989unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13990#include <stdio.h>
e6cc62c6
VS
13991#include <stdlib.h>
13992int
13993main ()
247f5006 13994{
e6cc62c6
VS
13995
13996 FILE *f = fopen ("conftest.val", "w");
13997 if (! f)
13998 exit (1);
13999 if (((long) (sizeof (char))) < 0)
14000 {
14001 long i = longval ();
14002 if (i != ((long) (sizeof (char))))
14003 exit (1);
14004 fprintf (f, "%ld\n", i);
14005 }
14006 else
14007 {
14008 unsigned long i = ulongval ();
14009 if (i != ((long) (sizeof (char))))
14010 exit (1);
14011 fprintf (f, "%lu\n", i);
14012 }
14013 exit (ferror (f) || fclose (f) != 0);
14014
14015 ;
14016 return 0;
52127426 14017}
e6cc62c6
VS
14018_ACEOF
14019rm -f conftest$ac_exeext
14020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14021 (eval $ac_link) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_cv_sizeof_char=`cat conftest.val`
14031else
14032 echo "$as_me: program exited with status $ac_status" >&5
14033echo "$as_me: failed program was:" >&5
14034sed 's/^/| /' conftest.$ac_ext >&5
14035
14036( exit $ac_status )
14037{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14038See \`config.log' for more details." >&5
14039echo "$as_me: error: cannot compute sizeof (char), 77
14040See \`config.log' for more details." >&2;}
14041 { (exit 1); exit 1; }; }
14042fi
14043rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14044fi
14045fi
14046rm -f conftest.val
247f5006 14047else
a0b9e27f 14048 ac_cv_sizeof_char=0
247f5006 14049fi
247f5006 14050fi
e6cc62c6
VS
14051echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14052echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14053cat >>confdefs.h <<_ACEOF
14054#define SIZEOF_CHAR $ac_cv_sizeof_char
14055_ACEOF
14056
14057
14058echo "$as_me:$LINENO: checking for short" >&5
14059echo $ECHO_N "checking for short... $ECHO_C" >&6
14060if test "${ac_cv_type_short+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062else
14063 cat >conftest.$ac_ext <<_ACEOF
14064#line $LINENO "configure"
14065/* confdefs.h. */
14066_ACEOF
14067cat confdefs.h >>conftest.$ac_ext
14068cat >>conftest.$ac_ext <<_ACEOF
14069/* end confdefs.h. */
14070$ac_includes_default
14071int
14072main ()
14073{
14074if ((short *) 0)
14075 return 0;
14076if (sizeof (short))
14077 return 0;
14078 ;
14079 return 0;
14080}
14081_ACEOF
14082rm -f conftest.$ac_objext
14083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14084 (eval $ac_compile) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } &&
14088 { ac_try='test -s conftest.$ac_objext'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14094 ac_cv_type_short=yes
14095else
14096 echo "$as_me: failed program was:" >&5
14097sed 's/^/| /' conftest.$ac_ext >&5
14098
14099ac_cv_type_short=no
14100fi
14101rm -f conftest.$ac_objext conftest.$ac_ext
14102fi
14103echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14104echo "${ECHO_T}$ac_cv_type_short" >&6
14105
14106echo "$as_me:$LINENO: checking size of short" >&5
14107echo $ECHO_N "checking size of short... $ECHO_C" >&6
14108if test "${ac_cv_sizeof_short+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110else
14111 if test "$ac_cv_type_short" = yes; then
14112 # The cast to unsigned long works around a bug in the HP C Compiler
14113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14114 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14115 # This bug is HP SR number 8606223364.
14116 if test "$cross_compiling" = yes; then
14117 # Depending upon the size, compute the lo and hi bounds.
14118cat >conftest.$ac_ext <<_ACEOF
14119#line $LINENO "configure"
14120/* confdefs.h. */
14121_ACEOF
14122cat confdefs.h >>conftest.$ac_ext
14123cat >>conftest.$ac_ext <<_ACEOF
14124/* end confdefs.h. */
14125$ac_includes_default
14126int
14127main ()
14128{
14129static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14130test_array [0] = 0
247f5006 14131
e6cc62c6
VS
14132 ;
14133 return 0;
14134}
14135_ACEOF
14136rm -f conftest.$ac_objext
14137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14138 (eval $ac_compile) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
14142 { ac_try='test -s conftest.$ac_objext'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; }; then
14148 ac_lo=0 ac_mid=0
14149 while :; do
14150 cat >conftest.$ac_ext <<_ACEOF
14151#line $LINENO "configure"
14152/* confdefs.h. */
14153_ACEOF
14154cat confdefs.h >>conftest.$ac_ext
14155cat >>conftest.$ac_ext <<_ACEOF
14156/* end confdefs.h. */
14157$ac_includes_default
14158int
14159main ()
14160{
14161static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14162test_array [0] = 0
14163
14164 ;
14165 return 0;
14166}
14167_ACEOF
14168rm -f conftest.$ac_objext
14169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_hi=$ac_mid; break
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185ac_lo=`expr $ac_mid + 1`
14186 if test $ac_lo -le $ac_mid; then
14187 ac_lo= ac_hi=
14188 break
14189 fi
14190 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14191fi
e6cc62c6
VS
14192rm -f conftest.$ac_objext conftest.$ac_ext
14193 done
14194else
14195 echo "$as_me: failed program was:" >&5
14196sed 's/^/| /' conftest.$ac_ext >&5
14197
14198cat >conftest.$ac_ext <<_ACEOF
14199#line $LINENO "configure"
14200/* confdefs.h. */
14201_ACEOF
14202cat confdefs.h >>conftest.$ac_ext
14203cat >>conftest.$ac_ext <<_ACEOF
14204/* end confdefs.h. */
14205$ac_includes_default
14206int
14207main ()
14208{
14209static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14210test_array [0] = 0
247f5006 14211
e6cc62c6
VS
14212 ;
14213 return 0;
14214}
14215_ACEOF
14216rm -f conftest.$ac_objext
14217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14218 (eval $ac_compile) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -s conftest.$ac_objext'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_hi=-1 ac_mid=-1
14229 while :; do
14230 cat >conftest.$ac_ext <<_ACEOF
14231#line $LINENO "configure"
14232/* confdefs.h. */
14233_ACEOF
14234cat confdefs.h >>conftest.$ac_ext
14235cat >>conftest.$ac_ext <<_ACEOF
14236/* end confdefs.h. */
14237$ac_includes_default
14238int
14239main ()
14240{
14241static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14242test_array [0] = 0
247f5006 14243
e6cc62c6
VS
14244 ;
14245 return 0;
14246}
14247_ACEOF
14248rm -f conftest.$ac_objext
14249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14250 (eval $ac_compile) 2>&5
14251 ac_status=$?
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } &&
14254 { ac_try='test -s conftest.$ac_objext'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }; then
14260 ac_lo=$ac_mid; break
14261else
14262 echo "$as_me: failed program was:" >&5
14263sed 's/^/| /' conftest.$ac_ext >&5
14264
14265ac_hi=`expr '(' $ac_mid ')' - 1`
14266 if test $ac_mid -le $ac_hi; then
14267 ac_lo= ac_hi=
14268 break
14269 fi
14270 ac_mid=`expr 2 '*' $ac_mid`
14271fi
14272rm -f conftest.$ac_objext conftest.$ac_ext
14273 done
247f5006 14274else
e6cc62c6
VS
14275 echo "$as_me: failed program was:" >&5
14276sed 's/^/| /' conftest.$ac_ext >&5
14277
14278ac_lo= ac_hi=
14279fi
14280rm -f conftest.$ac_objext conftest.$ac_ext
14281fi
14282rm -f conftest.$ac_objext conftest.$ac_ext
14283# Binary search between lo and hi bounds.
14284while test "x$ac_lo" != "x$ac_hi"; do
14285 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14286 cat >conftest.$ac_ext <<_ACEOF
14287#line $LINENO "configure"
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
14293$ac_includes_default
14294int
14295main ()
14296{
14297static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14298test_array [0] = 0
14299
14300 ;
14301 return 0;
14302}
14303_ACEOF
14304rm -f conftest.$ac_objext
14305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14306 (eval $ac_compile) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -s conftest.$ac_objext'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14313 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 ac_hi=$ac_mid
14317else
14318 echo "$as_me: failed program was:" >&5
14319sed 's/^/| /' conftest.$ac_ext >&5
14320
14321ac_lo=`expr '(' $ac_mid ')' + 1`
14322fi
14323rm -f conftest.$ac_objext conftest.$ac_ext
14324done
14325case $ac_lo in
14326?*) ac_cv_sizeof_short=$ac_lo;;
14327'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14328See \`config.log' for more details." >&5
14329echo "$as_me: error: cannot compute sizeof (short), 77
14330See \`config.log' for more details." >&2;}
14331 { (exit 1); exit 1; }; } ;;
14332esac
247f5006 14333else
e6cc62c6
VS
14334 if test "$cross_compiling" = yes; then
14335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14336See \`config.log' for more details." >&5
14337echo "$as_me: error: cannot run test program while cross compiling
14338See \`config.log' for more details." >&2;}
14339 { (exit 1); exit 1; }; }
14340else
14341 cat >conftest.$ac_ext <<_ACEOF
14342#line $LINENO "configure"
14343/* confdefs.h. */
14344_ACEOF
14345cat confdefs.h >>conftest.$ac_ext
14346cat >>conftest.$ac_ext <<_ACEOF
14347/* end confdefs.h. */
14348$ac_includes_default
14349long longval () { return (long) (sizeof (short)); }
14350unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14351#include <stdio.h>
e6cc62c6
VS
14352#include <stdlib.h>
14353int
14354main ()
a0b9e27f 14355{
e6cc62c6
VS
14356
14357 FILE *f = fopen ("conftest.val", "w");
14358 if (! f)
14359 exit (1);
14360 if (((long) (sizeof (short))) < 0)
14361 {
14362 long i = longval ();
14363 if (i != ((long) (sizeof (short))))
14364 exit (1);
14365 fprintf (f, "%ld\n", i);
14366 }
14367 else
14368 {
14369 unsigned long i = ulongval ();
14370 if (i != ((long) (sizeof (short))))
14371 exit (1);
14372 fprintf (f, "%lu\n", i);
14373 }
14374 exit (ferror (f) || fclose (f) != 0);
14375
14376 ;
14377 return 0;
a0b9e27f 14378}
e6cc62c6
VS
14379_ACEOF
14380rm -f conftest$ac_exeext
14381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14382 (eval $ac_link) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 ac_cv_sizeof_short=`cat conftest.val`
14392else
14393 echo "$as_me: program exited with status $ac_status" >&5
14394echo "$as_me: failed program was:" >&5
14395sed 's/^/| /' conftest.$ac_ext >&5
14396
14397( exit $ac_status )
14398{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14399See \`config.log' for more details." >&5
14400echo "$as_me: error: cannot compute sizeof (short), 77
14401See \`config.log' for more details." >&2;}
14402 { (exit 1); exit 1; }; }
14403fi
14404rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14405fi
14406fi
14407rm -f conftest.val
247f5006 14408else
a0b9e27f 14409 ac_cv_sizeof_short=0
247f5006 14410fi
247f5006 14411fi
e6cc62c6
VS
14412echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14413echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14414cat >>confdefs.h <<_ACEOF
14415#define SIZEOF_SHORT $ac_cv_sizeof_short
14416_ACEOF
14417
14418
14419echo "$as_me:$LINENO: checking for void *" >&5
14420echo $ECHO_N "checking for void *... $ECHO_C" >&6
14421if test "${ac_cv_type_void_p+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14423else
14424 cat >conftest.$ac_ext <<_ACEOF
14425#line $LINENO "configure"
14426/* confdefs.h. */
14427_ACEOF
14428cat confdefs.h >>conftest.$ac_ext
14429cat >>conftest.$ac_ext <<_ACEOF
14430/* end confdefs.h. */
14431$ac_includes_default
14432int
14433main ()
14434{
14435if ((void * *) 0)
14436 return 0;
14437if (sizeof (void *))
14438 return 0;
14439 ;
14440 return 0;
14441}
14442_ACEOF
14443rm -f conftest.$ac_objext
14444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14445 (eval $ac_compile) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -s conftest.$ac_objext'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 ac_cv_type_void_p=yes
14456else
14457 echo "$as_me: failed program was:" >&5
14458sed 's/^/| /' conftest.$ac_ext >&5
14459
14460ac_cv_type_void_p=no
14461fi
14462rm -f conftest.$ac_objext conftest.$ac_ext
14463fi
14464echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14465echo "${ECHO_T}$ac_cv_type_void_p" >&6
14466
14467echo "$as_me:$LINENO: checking size of void *" >&5
14468echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14469if test "${ac_cv_sizeof_void_p+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471else
14472 if test "$ac_cv_type_void_p" = yes; then
14473 # The cast to unsigned long works around a bug in the HP C Compiler
14474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14476 # This bug is HP SR number 8606223364.
14477 if test "$cross_compiling" = yes; then
14478 # Depending upon the size, compute the lo and hi bounds.
14479cat >conftest.$ac_ext <<_ACEOF
14480#line $LINENO "configure"
14481/* confdefs.h. */
14482_ACEOF
14483cat confdefs.h >>conftest.$ac_ext
14484cat >>conftest.$ac_ext <<_ACEOF
14485/* end confdefs.h. */
14486$ac_includes_default
14487int
14488main ()
14489{
14490static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14491test_array [0] = 0
14492
14493 ;
14494 return 0;
14495}
14496_ACEOF
14497rm -f conftest.$ac_objext
14498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14499 (eval $ac_compile) 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -s conftest.$ac_objext'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14506 ac_status=$?
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; }; then
14509 ac_lo=0 ac_mid=0
14510 while :; do
14511 cat >conftest.$ac_ext <<_ACEOF
14512#line $LINENO "configure"
14513/* confdefs.h. */
14514_ACEOF
14515cat confdefs.h >>conftest.$ac_ext
14516cat >>conftest.$ac_ext <<_ACEOF
14517/* end confdefs.h. */
14518$ac_includes_default
14519int
14520main ()
14521{
14522static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14523test_array [0] = 0
247f5006 14524
e6cc62c6
VS
14525 ;
14526 return 0;
14527}
14528_ACEOF
14529rm -f conftest.$ac_objext
14530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14531 (eval $ac_compile) 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try='test -s conftest.$ac_objext'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541 ac_hi=$ac_mid; break
14542else
14543 echo "$as_me: failed program was:" >&5
14544sed 's/^/| /' conftest.$ac_ext >&5
14545
14546ac_lo=`expr $ac_mid + 1`
14547 if test $ac_lo -le $ac_mid; then
14548 ac_lo= ac_hi=
14549 break
14550 fi
14551 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14552fi
e6cc62c6
VS
14553rm -f conftest.$ac_objext conftest.$ac_ext
14554 done
14555else
14556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559cat >conftest.$ac_ext <<_ACEOF
14560#line $LINENO "configure"
14561/* confdefs.h. */
14562_ACEOF
14563cat confdefs.h >>conftest.$ac_ext
14564cat >>conftest.$ac_ext <<_ACEOF
14565/* end confdefs.h. */
14566$ac_includes_default
14567int
14568main ()
14569{
14570static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14571test_array [0] = 0
247f5006 14572
e6cc62c6
VS
14573 ;
14574 return 0;
14575}
14576_ACEOF
14577rm -f conftest.$ac_objext
14578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579 (eval $ac_compile) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
14583 { ac_try='test -s conftest.$ac_objext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 ac_hi=-1 ac_mid=-1
14590 while :; do
14591 cat >conftest.$ac_ext <<_ACEOF
14592#line $LINENO "configure"
14593/* confdefs.h. */
14594_ACEOF
14595cat confdefs.h >>conftest.$ac_ext
14596cat >>conftest.$ac_ext <<_ACEOF
14597/* end confdefs.h. */
14598$ac_includes_default
14599int
14600main ()
14601{
14602static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14603test_array [0] = 0
247f5006 14604
e6cc62c6
VS
14605 ;
14606 return 0;
14607}
14608_ACEOF
14609rm -f conftest.$ac_objext
14610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14611 (eval $ac_compile) 2>&5
14612 ac_status=$?
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -s conftest.$ac_objext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 ac_lo=$ac_mid; break
14622else
14623 echo "$as_me: failed program was:" >&5
14624sed 's/^/| /' conftest.$ac_ext >&5
14625
14626ac_hi=`expr '(' $ac_mid ')' - 1`
14627 if test $ac_mid -le $ac_hi; then
14628 ac_lo= ac_hi=
14629 break
14630 fi
14631 ac_mid=`expr 2 '*' $ac_mid`
14632fi
14633rm -f conftest.$ac_objext conftest.$ac_ext
14634 done
a0b9e27f 14635else
e6cc62c6
VS
14636 echo "$as_me: failed program was:" >&5
14637sed 's/^/| /' conftest.$ac_ext >&5
14638
14639ac_lo= ac_hi=
14640fi
14641rm -f conftest.$ac_objext conftest.$ac_ext
14642fi
14643rm -f conftest.$ac_objext conftest.$ac_ext
14644# Binary search between lo and hi bounds.
14645while test "x$ac_lo" != "x$ac_hi"; do
14646 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14647 cat >conftest.$ac_ext <<_ACEOF
14648#line $LINENO "configure"
14649/* confdefs.h. */
14650_ACEOF
14651cat confdefs.h >>conftest.$ac_ext
14652cat >>conftest.$ac_ext <<_ACEOF
14653/* end confdefs.h. */
14654$ac_includes_default
14655int
14656main ()
14657{
14658static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14659test_array [0] = 0
14660
14661 ;
14662 return 0;
14663}
14664_ACEOF
14665rm -f conftest.$ac_objext
14666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667 (eval $ac_compile) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
14671 { ac_try='test -s conftest.$ac_objext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_hi=$ac_mid
14678else
14679 echo "$as_me: failed program was:" >&5
14680sed 's/^/| /' conftest.$ac_ext >&5
14681
14682ac_lo=`expr '(' $ac_mid ')' + 1`
14683fi
14684rm -f conftest.$ac_objext conftest.$ac_ext
14685done
14686case $ac_lo in
14687?*) ac_cv_sizeof_void_p=$ac_lo;;
14688'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14689See \`config.log' for more details." >&5
14690echo "$as_me: error: cannot compute sizeof (void *), 77
14691See \`config.log' for more details." >&2;}
14692 { (exit 1); exit 1; }; } ;;
14693esac
247f5006 14694else
e6cc62c6
VS
14695 if test "$cross_compiling" = yes; then
14696 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14697See \`config.log' for more details." >&5
14698echo "$as_me: error: cannot run test program while cross compiling
14699See \`config.log' for more details." >&2;}
14700 { (exit 1); exit 1; }; }
14701else
14702 cat >conftest.$ac_ext <<_ACEOF
14703#line $LINENO "configure"
14704/* confdefs.h. */
14705_ACEOF
14706cat confdefs.h >>conftest.$ac_ext
14707cat >>conftest.$ac_ext <<_ACEOF
14708/* end confdefs.h. */
14709$ac_includes_default
14710long longval () { return (long) (sizeof (void *)); }
14711unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14712#include <stdio.h>
e6cc62c6
VS
14713#include <stdlib.h>
14714int
14715main ()
247f5006 14716{
e6cc62c6
VS
14717
14718 FILE *f = fopen ("conftest.val", "w");
14719 if (! f)
14720 exit (1);
14721 if (((long) (sizeof (void *))) < 0)
14722 {
14723 long i = longval ();
14724 if (i != ((long) (sizeof (void *))))
14725 exit (1);
14726 fprintf (f, "%ld\n", i);
14727 }
14728 else
14729 {
14730 unsigned long i = ulongval ();
14731 if (i != ((long) (sizeof (void *))))
14732 exit (1);
14733 fprintf (f, "%lu\n", i);
14734 }
14735 exit (ferror (f) || fclose (f) != 0);
14736
14737 ;
14738 return 0;
5c6fa7d2 14739}
e6cc62c6
VS
14740_ACEOF
14741rm -f conftest$ac_exeext
14742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14743 (eval $ac_link) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_cv_sizeof_void_p=`cat conftest.val`
14753else
14754 echo "$as_me: program exited with status $ac_status" >&5
14755echo "$as_me: failed program was:" >&5
14756sed 's/^/| /' conftest.$ac_ext >&5
14757
14758( exit $ac_status )
14759{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14760See \`config.log' for more details." >&5
14761echo "$as_me: error: cannot compute sizeof (void *), 77
14762See \`config.log' for more details." >&2;}
14763 { (exit 1); exit 1; }; }
14764fi
14765rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14766fi
14767fi
14768rm -f conftest.val
a0b9e27f 14769else
a0b9e27f
MB
14770 ac_cv_sizeof_void_p=0
14771fi
a0b9e27f 14772fi
e6cc62c6
VS
14773echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14774echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14775cat >>confdefs.h <<_ACEOF
14776#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14777_ACEOF
14778
14779
14780echo "$as_me:$LINENO: checking for int" >&5
14781echo $ECHO_N "checking for int... $ECHO_C" >&6
14782if test "${ac_cv_type_int+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784else
14785 cat >conftest.$ac_ext <<_ACEOF
14786#line $LINENO "configure"
14787/* confdefs.h. */
14788_ACEOF
14789cat confdefs.h >>conftest.$ac_ext
14790cat >>conftest.$ac_ext <<_ACEOF
14791/* end confdefs.h. */
14792$ac_includes_default
14793int
14794main ()
14795{
14796if ((int *) 0)
14797 return 0;
14798if (sizeof (int))
14799 return 0;
14800 ;
14801 return 0;
14802}
14803_ACEOF
14804rm -f conftest.$ac_objext
14805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14806 (eval $ac_compile) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
14810 { ac_try='test -s conftest.$ac_objext'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816 ac_cv_type_int=yes
14817else
14818 echo "$as_me: failed program was:" >&5
14819sed 's/^/| /' conftest.$ac_ext >&5
14820
14821ac_cv_type_int=no
14822fi
14823rm -f conftest.$ac_objext conftest.$ac_ext
14824fi
14825echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14826echo "${ECHO_T}$ac_cv_type_int" >&6
14827
14828echo "$as_me:$LINENO: checking size of int" >&5
14829echo $ECHO_N "checking size of int... $ECHO_C" >&6
14830if test "${ac_cv_sizeof_int+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832else
14833 if test "$ac_cv_type_int" = yes; then
14834 # The cast to unsigned long works around a bug in the HP C Compiler
14835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14837 # This bug is HP SR number 8606223364.
14838 if test "$cross_compiling" = yes; then
14839 # Depending upon the size, compute the lo and hi bounds.
14840cat >conftest.$ac_ext <<_ACEOF
14841#line $LINENO "configure"
14842/* confdefs.h. */
14843_ACEOF
14844cat confdefs.h >>conftest.$ac_ext
14845cat >>conftest.$ac_ext <<_ACEOF
14846/* end confdefs.h. */
14847$ac_includes_default
14848int
14849main ()
14850{
14851static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14852test_array [0] = 0
8284b0c5 14853
e6cc62c6
VS
14854 ;
14855 return 0;
14856}
14857_ACEOF
14858rm -f conftest.$ac_objext
14859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14860 (eval $ac_compile) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -s conftest.$ac_objext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 ac_lo=0 ac_mid=0
14871 while :; do
14872 cat >conftest.$ac_ext <<_ACEOF
14873#line $LINENO "configure"
14874/* confdefs.h. */
14875_ACEOF
14876cat confdefs.h >>conftest.$ac_ext
14877cat >>conftest.$ac_ext <<_ACEOF
14878/* end confdefs.h. */
14879$ac_includes_default
14880int
14881main ()
14882{
14883static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14884test_array [0] = 0
14885
14886 ;
14887 return 0;
14888}
14889_ACEOF
14890rm -f conftest.$ac_objext
14891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892 (eval $ac_compile) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14902 ac_hi=$ac_mid; break
14903else
14904 echo "$as_me: failed program was:" >&5
14905sed 's/^/| /' conftest.$ac_ext >&5
14906
14907ac_lo=`expr $ac_mid + 1`
14908 if test $ac_lo -le $ac_mid; then
14909 ac_lo= ac_hi=
14910 break
14911 fi
14912 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14913fi
e6cc62c6
VS
14914rm -f conftest.$ac_objext conftest.$ac_ext
14915 done
14916else
14917 echo "$as_me: failed program was:" >&5
14918sed 's/^/| /' conftest.$ac_ext >&5
14919
14920cat >conftest.$ac_ext <<_ACEOF
14921#line $LINENO "configure"
14922/* confdefs.h. */
14923_ACEOF
14924cat confdefs.h >>conftest.$ac_ext
14925cat >>conftest.$ac_ext <<_ACEOF
14926/* end confdefs.h. */
14927$ac_includes_default
14928int
14929main ()
14930{
14931static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14932test_array [0] = 0
247f5006 14933
e6cc62c6
VS
14934 ;
14935 return 0;
14936}
14937_ACEOF
14938rm -f conftest.$ac_objext
14939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940 (eval $ac_compile) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } &&
14944 { ac_try='test -s conftest.$ac_objext'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950 ac_hi=-1 ac_mid=-1
14951 while :; do
14952 cat >conftest.$ac_ext <<_ACEOF
14953#line $LINENO "configure"
14954/* confdefs.h. */
14955_ACEOF
14956cat confdefs.h >>conftest.$ac_ext
14957cat >>conftest.$ac_ext <<_ACEOF
14958/* end confdefs.h. */
14959$ac_includes_default
14960int
14961main ()
14962{
14963static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14964test_array [0] = 0
247f5006 14965
e6cc62c6
VS
14966 ;
14967 return 0;
14968}
14969_ACEOF
14970rm -f conftest.$ac_objext
14971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972 (eval $ac_compile) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
14976 { ac_try='test -s conftest.$ac_objext'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 ac_lo=$ac_mid; break
14983else
14984 echo "$as_me: failed program was:" >&5
14985sed 's/^/| /' conftest.$ac_ext >&5
14986
14987ac_hi=`expr '(' $ac_mid ')' - 1`
14988 if test $ac_mid -le $ac_hi; then
14989 ac_lo= ac_hi=
14990 break
14991 fi
14992 ac_mid=`expr 2 '*' $ac_mid`
14993fi
14994rm -f conftest.$ac_objext conftest.$ac_ext
14995 done
247f5006 14996else
e6cc62c6
VS
14997 echo "$as_me: failed program was:" >&5
14998sed 's/^/| /' conftest.$ac_ext >&5
14999
15000ac_lo= ac_hi=
15001fi
15002rm -f conftest.$ac_objext conftest.$ac_ext
15003fi
15004rm -f conftest.$ac_objext conftest.$ac_ext
15005# Binary search between lo and hi bounds.
15006while test "x$ac_lo" != "x$ac_hi"; do
15007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15008 cat >conftest.$ac_ext <<_ACEOF
15009#line $LINENO "configure"
15010/* confdefs.h. */
15011_ACEOF
15012cat confdefs.h >>conftest.$ac_ext
15013cat >>conftest.$ac_ext <<_ACEOF
15014/* end confdefs.h. */
15015$ac_includes_default
15016int
15017main ()
15018{
15019static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15020test_array [0] = 0
15021
15022 ;
15023 return 0;
15024}
15025_ACEOF
15026rm -f conftest.$ac_objext
15027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028 (eval $ac_compile) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
15032 { ac_try='test -s conftest.$ac_objext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_hi=$ac_mid
15039else
15040 echo "$as_me: failed program was:" >&5
15041sed 's/^/| /' conftest.$ac_ext >&5
15042
15043ac_lo=`expr '(' $ac_mid ')' + 1`
15044fi
15045rm -f conftest.$ac_objext conftest.$ac_ext
15046done
15047case $ac_lo in
15048?*) ac_cv_sizeof_int=$ac_lo;;
15049'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15050See \`config.log' for more details." >&5
15051echo "$as_me: error: cannot compute sizeof (int), 77
15052See \`config.log' for more details." >&2;}
15053 { (exit 1); exit 1; }; } ;;
15054esac
a0b9e27f 15055else
e6cc62c6
VS
15056 if test "$cross_compiling" = yes; then
15057 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15058See \`config.log' for more details." >&5
15059echo "$as_me: error: cannot run test program while cross compiling
15060See \`config.log' for more details." >&2;}
15061 { (exit 1); exit 1; }; }
15062else
15063 cat >conftest.$ac_ext <<_ACEOF
15064#line $LINENO "configure"
15065/* confdefs.h. */
15066_ACEOF
15067cat confdefs.h >>conftest.$ac_ext
15068cat >>conftest.$ac_ext <<_ACEOF
15069/* end confdefs.h. */
15070$ac_includes_default
15071long longval () { return (long) (sizeof (int)); }
15072unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15073#include <stdio.h>
e6cc62c6
VS
15074#include <stdlib.h>
15075int
15076main ()
247f5006 15077{
e6cc62c6
VS
15078
15079 FILE *f = fopen ("conftest.val", "w");
15080 if (! f)
15081 exit (1);
15082 if (((long) (sizeof (int))) < 0)
15083 {
15084 long i = longval ();
15085 if (i != ((long) (sizeof (int))))
15086 exit (1);
15087 fprintf (f, "%ld\n", i);
15088 }
15089 else
15090 {
15091 unsigned long i = ulongval ();
15092 if (i != ((long) (sizeof (int))))
15093 exit (1);
15094 fprintf (f, "%lu\n", i);
15095 }
15096 exit (ferror (f) || fclose (f) != 0);
15097
15098 ;
15099 return 0;
247f5006 15100}
e6cc62c6
VS
15101_ACEOF
15102rm -f conftest$ac_exeext
15103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15104 (eval $ac_link) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113 ac_cv_sizeof_int=`cat conftest.val`
15114else
15115 echo "$as_me: program exited with status $ac_status" >&5
15116echo "$as_me: failed program was:" >&5
15117sed 's/^/| /' conftest.$ac_ext >&5
15118
15119( exit $ac_status )
15120{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15121See \`config.log' for more details." >&5
15122echo "$as_me: error: cannot compute sizeof (int), 77
15123See \`config.log' for more details." >&2;}
15124 { (exit 1); exit 1; }; }
15125fi
15126rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15127fi
15128fi
15129rm -f conftest.val
6f72b082 15130else
a0b9e27f 15131 ac_cv_sizeof_int=0
21d1c967 15132fi
698dcdb6 15133fi
e6cc62c6
VS
15134echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15135echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15136cat >>confdefs.h <<_ACEOF
15137#define SIZEOF_INT $ac_cv_sizeof_int
15138_ACEOF
15139
15140
15141echo "$as_me:$LINENO: checking for long" >&5
15142echo $ECHO_N "checking for long... $ECHO_C" >&6
15143if test "${ac_cv_type_long+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15145else
15146 cat >conftest.$ac_ext <<_ACEOF
15147#line $LINENO "configure"
15148/* confdefs.h. */
15149_ACEOF
15150cat confdefs.h >>conftest.$ac_ext
15151cat >>conftest.$ac_ext <<_ACEOF
15152/* end confdefs.h. */
15153$ac_includes_default
15154int
15155main ()
15156{
15157if ((long *) 0)
15158 return 0;
15159if (sizeof (long))
15160 return 0;
15161 ;
15162 return 0;
15163}
15164_ACEOF
15165rm -f conftest.$ac_objext
15166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15167 (eval $ac_compile) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } &&
15171 { ac_try='test -s conftest.$ac_objext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_cv_type_long=yes
15178else
15179 echo "$as_me: failed program was:" >&5
15180sed 's/^/| /' conftest.$ac_ext >&5
15181
15182ac_cv_type_long=no
15183fi
15184rm -f conftest.$ac_objext conftest.$ac_ext
15185fi
15186echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15187echo "${ECHO_T}$ac_cv_type_long" >&6
15188
15189echo "$as_me:$LINENO: checking size of long" >&5
15190echo $ECHO_N "checking size of long... $ECHO_C" >&6
15191if test "${ac_cv_sizeof_long+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193else
15194 if test "$ac_cv_type_long" = yes; then
15195 # The cast to unsigned long works around a bug in the HP C Compiler
15196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15198 # This bug is HP SR number 8606223364.
15199 if test "$cross_compiling" = yes; then
15200 # Depending upon the size, compute the lo and hi bounds.
15201cat >conftest.$ac_ext <<_ACEOF
15202#line $LINENO "configure"
15203/* confdefs.h. */
15204_ACEOF
15205cat confdefs.h >>conftest.$ac_ext
15206cat >>conftest.$ac_ext <<_ACEOF
15207/* end confdefs.h. */
15208$ac_includes_default
15209int
15210main ()
15211{
15212static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15213test_array [0] = 0
15214
15215 ;
15216 return 0;
15217}
15218_ACEOF
15219rm -f conftest.$ac_objext
15220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15221 (eval $ac_compile) 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
15225 { ac_try='test -s conftest.$ac_objext'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; }; then
15231 ac_lo=0 ac_mid=0
15232 while :; do
15233 cat >conftest.$ac_ext <<_ACEOF
15234#line $LINENO "configure"
15235/* confdefs.h. */
15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
15240$ac_includes_default
15241int
15242main ()
15243{
15244static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15245test_array [0] = 0
4f14bcd8 15246
e6cc62c6
VS
15247 ;
15248 return 0;
15249}
15250_ACEOF
15251rm -f conftest.$ac_objext
15252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15253 (eval $ac_compile) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
15257 { ac_try='test -s conftest.$ac_objext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_hi=$ac_mid; break
15264else
15265 echo "$as_me: failed program was:" >&5
15266sed 's/^/| /' conftest.$ac_ext >&5
15267
15268ac_lo=`expr $ac_mid + 1`
15269 if test $ac_lo -le $ac_mid; then
15270 ac_lo= ac_hi=
15271 break
15272 fi
15273 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15274fi
e6cc62c6
VS
15275rm -f conftest.$ac_objext conftest.$ac_ext
15276 done
15277else
15278 echo "$as_me: failed program was:" >&5
15279sed 's/^/| /' conftest.$ac_ext >&5
15280
15281cat >conftest.$ac_ext <<_ACEOF
15282#line $LINENO "configure"
15283/* confdefs.h. */
15284_ACEOF
15285cat confdefs.h >>conftest.$ac_ext
15286cat >>conftest.$ac_ext <<_ACEOF
15287/* end confdefs.h. */
15288$ac_includes_default
15289int
15290main ()
15291{
15292static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15293test_array [0] = 0
4f14bcd8 15294
e6cc62c6
VS
15295 ;
15296 return 0;
15297}
15298_ACEOF
15299rm -f conftest.$ac_objext
15300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301 (eval $ac_compile) 2>&5
15302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } &&
15305 { ac_try='test -s conftest.$ac_objext'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15308 ac_status=$?
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 ac_hi=-1 ac_mid=-1
15312 while :; do
15313 cat >conftest.$ac_ext <<_ACEOF
15314#line $LINENO "configure"
15315/* confdefs.h. */
15316_ACEOF
15317cat confdefs.h >>conftest.$ac_ext
15318cat >>conftest.$ac_ext <<_ACEOF
15319/* end confdefs.h. */
15320$ac_includes_default
15321int
15322main ()
15323{
15324static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15325test_array [0] = 0
5c6fa7d2 15326
e6cc62c6
VS
15327 ;
15328 return 0;
15329}
15330_ACEOF
15331rm -f conftest.$ac_objext
15332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15333 (eval $ac_compile) 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -s conftest.$ac_objext'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 ac_lo=$ac_mid; break
15344else
15345 echo "$as_me: failed program was:" >&5
15346sed 's/^/| /' conftest.$ac_ext >&5
15347
15348ac_hi=`expr '(' $ac_mid ')' - 1`
15349 if test $ac_mid -le $ac_hi; then
15350 ac_lo= ac_hi=
15351 break
15352 fi
15353 ac_mid=`expr 2 '*' $ac_mid`
15354fi
15355rm -f conftest.$ac_objext conftest.$ac_ext
15356 done
247f5006 15357else
e6cc62c6
VS
15358 echo "$as_me: failed program was:" >&5
15359sed 's/^/| /' conftest.$ac_ext >&5
15360
15361ac_lo= ac_hi=
15362fi
15363rm -f conftest.$ac_objext conftest.$ac_ext
15364fi
15365rm -f conftest.$ac_objext conftest.$ac_ext
15366# Binary search between lo and hi bounds.
15367while test "x$ac_lo" != "x$ac_hi"; do
15368 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15369 cat >conftest.$ac_ext <<_ACEOF
15370#line $LINENO "configure"
15371/* confdefs.h. */
15372_ACEOF
15373cat confdefs.h >>conftest.$ac_ext
15374cat >>conftest.$ac_ext <<_ACEOF
15375/* end confdefs.h. */
15376$ac_includes_default
15377int
15378main ()
15379{
15380static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15381test_array [0] = 0
15382
15383 ;
15384 return 0;
15385}
15386_ACEOF
15387rm -f conftest.$ac_objext
15388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15389 (eval $ac_compile) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try='test -s conftest.$ac_objext'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 ac_hi=$ac_mid
15400else
15401 echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404ac_lo=`expr '(' $ac_mid ')' + 1`
15405fi
15406rm -f conftest.$ac_objext conftest.$ac_ext
15407done
15408case $ac_lo in
15409?*) ac_cv_sizeof_long=$ac_lo;;
15410'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15411See \`config.log' for more details." >&5
15412echo "$as_me: error: cannot compute sizeof (long), 77
15413See \`config.log' for more details." >&2;}
15414 { (exit 1); exit 1; }; } ;;
15415esac
247f5006 15416else
e6cc62c6
VS
15417 if test "$cross_compiling" = yes; then
15418 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15419See \`config.log' for more details." >&5
15420echo "$as_me: error: cannot run test program while cross compiling
15421See \`config.log' for more details." >&2;}
15422 { (exit 1); exit 1; }; }
15423else
15424 cat >conftest.$ac_ext <<_ACEOF
15425#line $LINENO "configure"
15426/* confdefs.h. */
15427_ACEOF
15428cat confdefs.h >>conftest.$ac_ext
15429cat >>conftest.$ac_ext <<_ACEOF
15430/* end confdefs.h. */
15431$ac_includes_default
15432long longval () { return (long) (sizeof (long)); }
15433unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15434#include <stdio.h>
e6cc62c6
VS
15435#include <stdlib.h>
15436int
15437main ()
247f5006 15438{
e6cc62c6
VS
15439
15440 FILE *f = fopen ("conftest.val", "w");
15441 if (! f)
15442 exit (1);
15443 if (((long) (sizeof (long))) < 0)
15444 {
15445 long i = longval ();
15446 if (i != ((long) (sizeof (long))))
15447 exit (1);
15448 fprintf (f, "%ld\n", i);
15449 }
15450 else
15451 {
15452 unsigned long i = ulongval ();
15453 if (i != ((long) (sizeof (long))))
15454 exit (1);
15455 fprintf (f, "%lu\n", i);
15456 }
15457 exit (ferror (f) || fclose (f) != 0);
15458
15459 ;
15460 return 0;
247f5006 15461}
e6cc62c6
VS
15462_ACEOF
15463rm -f conftest$ac_exeext
15464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15465 (eval $ac_link) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474 ac_cv_sizeof_long=`cat conftest.val`
15475else
15476 echo "$as_me: program exited with status $ac_status" >&5
15477echo "$as_me: failed program was:" >&5
15478sed 's/^/| /' conftest.$ac_ext >&5
15479
15480( exit $ac_status )
15481{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15482See \`config.log' for more details." >&5
15483echo "$as_me: error: cannot compute sizeof (long), 77
15484See \`config.log' for more details." >&2;}
15485 { (exit 1); exit 1; }; }
15486fi
15487rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15488fi
15489fi
15490rm -f conftest.val
247f5006 15491else
a0b9e27f 15492 ac_cv_sizeof_long=0
247f5006 15493fi
247f5006 15494fi
e6cc62c6
VS
15495echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15496echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15497cat >>confdefs.h <<_ACEOF
a0b9e27f 15498#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15499_ACEOF
247f5006 15500
a0b9e27f
MB
15501
15502
15503case "${host}" in
15504 arm-*-linux* )
e6cc62c6
VS
15505 echo "$as_me:$LINENO: checking for long long" >&5
15506echo $ECHO_N "checking for long long... $ECHO_C" >&6
15507if test "${ac_cv_type_long_long+set}" = set; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15509else
15510 cat >conftest.$ac_ext <<_ACEOF
15511#line $LINENO "configure"
15512/* confdefs.h. */
15513_ACEOF
15514cat confdefs.h >>conftest.$ac_ext
15515cat >>conftest.$ac_ext <<_ACEOF
15516/* end confdefs.h. */
15517$ac_includes_default
15518int
15519main ()
15520{
15521if ((long long *) 0)
15522 return 0;
15523if (sizeof (long long))
15524 return 0;
15525 ;
15526 return 0;
15527}
15528_ACEOF
15529rm -f conftest.$ac_objext
15530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15531 (eval $ac_compile) 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -s conftest.$ac_objext'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; }; then
15541 ac_cv_type_long_long=yes
15542else
15543 echo "$as_me: failed program was:" >&5
15544sed 's/^/| /' conftest.$ac_ext >&5
15545
15546ac_cv_type_long_long=no
15547fi
15548rm -f conftest.$ac_objext conftest.$ac_ext
15549fi
15550echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15551echo "${ECHO_T}$ac_cv_type_long_long" >&6
15552
15553echo "$as_me:$LINENO: checking size of long long" >&5
15554echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15555if test "${ac_cv_sizeof_long_long+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557else
15558 if test "$ac_cv_type_long_long" = yes; then
15559 # The cast to unsigned long works around a bug in the HP C Compiler
15560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15562 # This bug is HP SR number 8606223364.
a0b9e27f 15563 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15564 # Depending upon the size, compute the lo and hi bounds.
15565cat >conftest.$ac_ext <<_ACEOF
15566#line $LINENO "configure"
15567/* confdefs.h. */
15568_ACEOF
15569cat confdefs.h >>conftest.$ac_ext
15570cat >>conftest.$ac_ext <<_ACEOF
15571/* end confdefs.h. */
15572$ac_includes_default
15573int
15574main ()
15575{
15576static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15577test_array [0] = 0
15578
15579 ;
15580 return 0;
15581}
15582_ACEOF
15583rm -f conftest.$ac_objext
15584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15585 (eval $ac_compile) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
15589 { ac_try='test -s conftest.$ac_objext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_lo=0 ac_mid=0
15596 while :; do
15597 cat >conftest.$ac_ext <<_ACEOF
15598#line $LINENO "configure"
15599/* confdefs.h. */
15600_ACEOF
15601cat confdefs.h >>conftest.$ac_ext
15602cat >>conftest.$ac_ext <<_ACEOF
15603/* end confdefs.h. */
15604$ac_includes_default
15605int
15606main ()
15607{
15608static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15609test_array [0] = 0
15610
15611 ;
15612 return 0;
15613}
15614_ACEOF
15615rm -f conftest.$ac_objext
15616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15617 (eval $ac_compile) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -s conftest.$ac_objext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 ac_hi=$ac_mid; break
15628else
15629 echo "$as_me: failed program was:" >&5
15630sed 's/^/| /' conftest.$ac_ext >&5
15631
15632ac_lo=`expr $ac_mid + 1`
15633 if test $ac_lo -le $ac_mid; then
15634 ac_lo= ac_hi=
15635 break
15636 fi
15637 ac_mid=`expr 2 '*' $ac_mid + 1`
15638fi
15639rm -f conftest.$ac_objext conftest.$ac_ext
15640 done
15641else
15642 echo "$as_me: failed program was:" >&5
15643sed 's/^/| /' conftest.$ac_ext >&5
15644
15645cat >conftest.$ac_ext <<_ACEOF
15646#line $LINENO "configure"
15647/* confdefs.h. */
15648_ACEOF
15649cat confdefs.h >>conftest.$ac_ext
15650cat >>conftest.$ac_ext <<_ACEOF
15651/* end confdefs.h. */
15652$ac_includes_default
15653int
15654main ()
15655{
15656static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15657test_array [0] = 0
15658
15659 ;
15660 return 0;
15661}
15662_ACEOF
15663rm -f conftest.$ac_objext
15664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15665 (eval $ac_compile) 2>&5
15666 ac_status=$?
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_hi=-1 ac_mid=-1
15676 while :; do
15677 cat >conftest.$ac_ext <<_ACEOF
15678#line $LINENO "configure"
15679/* confdefs.h. */
15680_ACEOF
15681cat confdefs.h >>conftest.$ac_ext
15682cat >>conftest.$ac_ext <<_ACEOF
15683/* end confdefs.h. */
15684$ac_includes_default
15685int
15686main ()
15687{
15688static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15689test_array [0] = 0
15690
15691 ;
15692 return 0;
15693}
15694_ACEOF
15695rm -f conftest.$ac_objext
15696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697 (eval $ac_compile) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -s conftest.$ac_objext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_lo=$ac_mid; break
15708else
15709 echo "$as_me: failed program was:" >&5
15710sed 's/^/| /' conftest.$ac_ext >&5
15711
15712ac_hi=`expr '(' $ac_mid ')' - 1`
15713 if test $ac_mid -le $ac_hi; then
15714 ac_lo= ac_hi=
15715 break
15716 fi
15717 ac_mid=`expr 2 '*' $ac_mid`
15718fi
15719rm -f conftest.$ac_objext conftest.$ac_ext
15720 done
15721else
15722 echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725ac_lo= ac_hi=
15726fi
15727rm -f conftest.$ac_objext conftest.$ac_ext
15728fi
15729rm -f conftest.$ac_objext conftest.$ac_ext
15730# Binary search between lo and hi bounds.
15731while test "x$ac_lo" != "x$ac_hi"; do
15732 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15733 cat >conftest.$ac_ext <<_ACEOF
15734#line $LINENO "configure"
15735/* confdefs.h. */
15736_ACEOF
15737cat confdefs.h >>conftest.$ac_ext
15738cat >>conftest.$ac_ext <<_ACEOF
15739/* end confdefs.h. */
15740$ac_includes_default
15741int
15742main ()
15743{
15744static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15745test_array [0] = 0
15746
15747 ;
15748 return 0;
15749}
15750_ACEOF
15751rm -f conftest.$ac_objext
15752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15753 (eval $ac_compile) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
15757 { ac_try='test -s conftest.$ac_objext'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763 ac_hi=$ac_mid
15764else
15765 echo "$as_me: failed program was:" >&5
15766sed 's/^/| /' conftest.$ac_ext >&5
15767
15768ac_lo=`expr '(' $ac_mid ')' + 1`
15769fi
15770rm -f conftest.$ac_objext conftest.$ac_ext
15771done
15772case $ac_lo in
15773?*) ac_cv_sizeof_long_long=$ac_lo;;
15774'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15775See \`config.log' for more details." >&5
15776echo "$as_me: error: cannot compute sizeof (long long), 77
15777See \`config.log' for more details." >&2;}
15778 { (exit 1); exit 1; }; } ;;
15779esac
a0b9e27f 15780else
e6cc62c6
VS
15781 if test "$cross_compiling" = yes; then
15782 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15783See \`config.log' for more details." >&5
15784echo "$as_me: error: cannot run test program while cross compiling
15785See \`config.log' for more details." >&2;}
15786 { (exit 1); exit 1; }; }
15787else
15788 cat >conftest.$ac_ext <<_ACEOF
15789#line $LINENO "configure"
15790/* confdefs.h. */
15791_ACEOF
15792cat confdefs.h >>conftest.$ac_ext
15793cat >>conftest.$ac_ext <<_ACEOF
15794/* end confdefs.h. */
15795$ac_includes_default
15796long longval () { return (long) (sizeof (long long)); }
15797unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15798#include <stdio.h>
e6cc62c6
VS
15799#include <stdlib.h>
15800int
15801main ()
247f5006 15802{
e6cc62c6
VS
15803
15804 FILE *f = fopen ("conftest.val", "w");
15805 if (! f)
15806 exit (1);
15807 if (((long) (sizeof (long long))) < 0)
15808 {
15809 long i = longval ();
15810 if (i != ((long) (sizeof (long long))))
15811 exit (1);
15812 fprintf (f, "%ld\n", i);
15813 }
15814 else
15815 {
15816 unsigned long i = ulongval ();
15817 if (i != ((long) (sizeof (long long))))
15818 exit (1);
15819 fprintf (f, "%lu\n", i);
15820 }
15821 exit (ferror (f) || fclose (f) != 0);
15822
15823 ;
15824 return 0;
247f5006 15825}
e6cc62c6
VS
15826_ACEOF
15827rm -f conftest$ac_exeext
15828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15829 (eval $ac_link) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 ac_cv_sizeof_long_long=`cat conftest.val`
15839else
15840 echo "$as_me: program exited with status $ac_status" >&5
15841echo "$as_me: failed program was:" >&5
15842sed 's/^/| /' conftest.$ac_ext >&5
15843
15844( exit $ac_status )
15845{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15846See \`config.log' for more details." >&5
15847echo "$as_me: error: cannot compute sizeof (long long), 77
15848See \`config.log' for more details." >&2;}
15849 { (exit 1); exit 1; }; }
15850fi
15851rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15852fi
15853fi
15854rm -f conftest.val
7b4a847f 15855else
a0b9e27f 15856 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15857fi
15858fi
e6cc62c6
VS
15859echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15860echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15861cat >>confdefs.h <<_ACEOF
15862#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15863_ACEOF
15864
15865
15866 ;;
15867 *-hp-hpux* )
15868 echo "$as_me:$LINENO: checking for long long" >&5
15869echo $ECHO_N "checking for long long... $ECHO_C" >&6
15870if test "${ac_cv_type_long_long+set}" = set; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15872else
15873 cat >conftest.$ac_ext <<_ACEOF
15874#line $LINENO "configure"
15875/* confdefs.h. */
15876_ACEOF
15877cat confdefs.h >>conftest.$ac_ext
15878cat >>conftest.$ac_ext <<_ACEOF
15879/* end confdefs.h. */
15880$ac_includes_default
15881int
15882main ()
15883{
15884if ((long long *) 0)
15885 return 0;
15886if (sizeof (long long))
15887 return 0;
15888 ;
15889 return 0;
15890}
15891_ACEOF
15892rm -f conftest.$ac_objext
15893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894 (eval $ac_compile) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } &&
15898 { ac_try='test -s conftest.$ac_objext'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; }; then
15904 ac_cv_type_long_long=yes
15905else
15906 echo "$as_me: failed program was:" >&5
15907sed 's/^/| /' conftest.$ac_ext >&5
15908
15909ac_cv_type_long_long=no
15910fi
15911rm -f conftest.$ac_objext conftest.$ac_ext
15912fi
15913echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15914echo "${ECHO_T}$ac_cv_type_long_long" >&6
15915
15916echo "$as_me:$LINENO: checking size of long long" >&5
15917echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15918if test "${ac_cv_sizeof_long_long+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15920else
15921 if test "$ac_cv_type_long_long" = yes; then
15922 # The cast to unsigned long works around a bug in the HP C Compiler
15923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15925 # This bug is HP SR number 8606223364.
15926 if test "$cross_compiling" = yes; then
15927 # Depending upon the size, compute the lo and hi bounds.
15928cat >conftest.$ac_ext <<_ACEOF
15929#line $LINENO "configure"
15930/* confdefs.h. */
15931_ACEOF
15932cat confdefs.h >>conftest.$ac_ext
15933cat >>conftest.$ac_ext <<_ACEOF
15934/* end confdefs.h. */
15935$ac_includes_default
15936int
15937main ()
15938{
15939static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15940test_array [0] = 0
15941
15942 ;
15943 return 0;
15944}
15945_ACEOF
15946rm -f conftest.$ac_objext
15947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948 (eval $ac_compile) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } &&
15952 { ac_try='test -s conftest.$ac_objext'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_lo=0 ac_mid=0
15959 while :; do
15960 cat >conftest.$ac_ext <<_ACEOF
15961#line $LINENO "configure"
15962/* confdefs.h. */
15963_ACEOF
15964cat confdefs.h >>conftest.$ac_ext
15965cat >>conftest.$ac_ext <<_ACEOF
15966/* end confdefs.h. */
15967$ac_includes_default
15968int
15969main ()
15970{
15971static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15972test_array [0] = 0
8284b0c5 15973
e6cc62c6
VS
15974 ;
15975 return 0;
15976}
15977_ACEOF
15978rm -f conftest.$ac_objext
15979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15980 (eval $ac_compile) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -s conftest.$ac_objext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_hi=$ac_mid; break
15991else
15992 echo "$as_me: failed program was:" >&5
15993sed 's/^/| /' conftest.$ac_ext >&5
15994
15995ac_lo=`expr $ac_mid + 1`
15996 if test $ac_lo -le $ac_mid; then
15997 ac_lo= ac_hi=
15998 break
15999 fi
16000 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16001fi
e6cc62c6
VS
16002rm -f conftest.$ac_objext conftest.$ac_ext
16003 done
16004else
16005 echo "$as_me: failed program was:" >&5
16006sed 's/^/| /' conftest.$ac_ext >&5
16007
16008cat >conftest.$ac_ext <<_ACEOF
16009#line $LINENO "configure"
16010/* confdefs.h. */
16011_ACEOF
16012cat confdefs.h >>conftest.$ac_ext
16013cat >>conftest.$ac_ext <<_ACEOF
16014/* end confdefs.h. */
16015$ac_includes_default
16016int
16017main ()
16018{
16019static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16020test_array [0] = 0
a0b9e27f 16021
e6cc62c6
VS
16022 ;
16023 return 0;
16024}
16025_ACEOF
16026rm -f conftest.$ac_objext
16027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16028 (eval $ac_compile) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
16032 { ac_try='test -s conftest.$ac_objext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_hi=-1 ac_mid=-1
16039 while :; do
16040 cat >conftest.$ac_ext <<_ACEOF
16041#line $LINENO "configure"
16042/* confdefs.h. */
16043_ACEOF
16044cat confdefs.h >>conftest.$ac_ext
16045cat >>conftest.$ac_ext <<_ACEOF
16046/* end confdefs.h. */
16047$ac_includes_default
16048int
16049main ()
16050{
16051static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16052test_array [0] = 0
a0b9e27f 16053
e6cc62c6
VS
16054 ;
16055 return 0;
16056}
16057_ACEOF
16058rm -f conftest.$ac_objext
16059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16060 (eval $ac_compile) 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -s conftest.$ac_objext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_lo=$ac_mid; break
16071else
16072 echo "$as_me: failed program was:" >&5
16073sed 's/^/| /' conftest.$ac_ext >&5
16074
16075ac_hi=`expr '(' $ac_mid ')' - 1`
16076 if test $ac_mid -le $ac_hi; then
16077 ac_lo= ac_hi=
16078 break
16079 fi
16080 ac_mid=`expr 2 '*' $ac_mid`
16081fi
16082rm -f conftest.$ac_objext conftest.$ac_ext
16083 done
8284b0c5 16084else
e6cc62c6
VS
16085 echo "$as_me: failed program was:" >&5
16086sed 's/^/| /' conftest.$ac_ext >&5
16087
16088ac_lo= ac_hi=
16089fi
16090rm -f conftest.$ac_objext conftest.$ac_ext
16091fi
16092rm -f conftest.$ac_objext conftest.$ac_ext
16093# Binary search between lo and hi bounds.
16094while test "x$ac_lo" != "x$ac_hi"; do
16095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16096 cat >conftest.$ac_ext <<_ACEOF
16097#line $LINENO "configure"
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103$ac_includes_default
16104int
16105main ()
16106{
16107static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16108test_array [0] = 0
16109
16110 ;
16111 return 0;
16112}
16113_ACEOF
16114rm -f conftest.$ac_objext
16115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16116 (eval $ac_compile) 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } &&
16120 { ac_try='test -s conftest.$ac_objext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_hi=$ac_mid
16127else
16128 echo "$as_me: failed program was:" >&5
16129sed 's/^/| /' conftest.$ac_ext >&5
16130
16131ac_lo=`expr '(' $ac_mid ')' + 1`
16132fi
16133rm -f conftest.$ac_objext conftest.$ac_ext
16134done
16135case $ac_lo in
16136?*) ac_cv_sizeof_long_long=$ac_lo;;
16137'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16138See \`config.log' for more details." >&5
16139echo "$as_me: error: cannot compute sizeof (long long), 77
16140See \`config.log' for more details." >&2;}
16141 { (exit 1); exit 1; }; } ;;
16142esac
8284b0c5 16143else
e6cc62c6
VS
16144 if test "$cross_compiling" = yes; then
16145 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16146See \`config.log' for more details." >&5
16147echo "$as_me: error: cannot run test program while cross compiling
16148See \`config.log' for more details." >&2;}
16149 { (exit 1); exit 1; }; }
16150else
16151 cat >conftest.$ac_ext <<_ACEOF
16152#line $LINENO "configure"
16153/* confdefs.h. */
16154_ACEOF
16155cat confdefs.h >>conftest.$ac_ext
16156cat >>conftest.$ac_ext <<_ACEOF
16157/* end confdefs.h. */
16158$ac_includes_default
16159long longval () { return (long) (sizeof (long long)); }
16160unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16161#include <stdio.h>
e6cc62c6
VS
16162#include <stdlib.h>
16163int
16164main ()
8284b0c5 16165{
e6cc62c6
VS
16166
16167 FILE *f = fopen ("conftest.val", "w");
16168 if (! f)
16169 exit (1);
16170 if (((long) (sizeof (long long))) < 0)
16171 {
16172 long i = longval ();
16173 if (i != ((long) (sizeof (long long))))
16174 exit (1);
16175 fprintf (f, "%ld\n", i);
16176 }
16177 else
16178 {
16179 unsigned long i = ulongval ();
16180 if (i != ((long) (sizeof (long long))))
16181 exit (1);
16182 fprintf (f, "%lu\n", i);
16183 }
16184 exit (ferror (f) || fclose (f) != 0);
16185
16186 ;
16187 return 0;
8284b0c5 16188}
e6cc62c6
VS
16189_ACEOF
16190rm -f conftest$ac_exeext
16191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16192 (eval $ac_link) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_cv_sizeof_long_long=`cat conftest.val`
16202else
16203 echo "$as_me: program exited with status $ac_status" >&5
16204echo "$as_me: failed program was:" >&5
16205sed 's/^/| /' conftest.$ac_ext >&5
16206
16207( exit $ac_status )
16208{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16209See \`config.log' for more details." >&5
16210echo "$as_me: error: cannot compute sizeof (long long), 77
16211See \`config.log' for more details." >&2;}
16212 { (exit 1); exit 1; }; }
16213fi
16214rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16215fi
16216fi
16217rm -f conftest.val
5c6fa7d2
RR
16218else
16219 ac_cv_sizeof_long_long=0
52127426 16220fi
4f57cf11 16221fi
e6cc62c6
VS
16222echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16223echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16224cat >>confdefs.h <<_ACEOF
4f57cf11 16225#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16226_ACEOF
4f57cf11
GD
16227
16228
16229 if test "$ac_cv_sizeof_long_long" != "0"; then
16230 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16231 fi
16232 ;;
16233 * )
e6cc62c6
VS
16234 echo "$as_me:$LINENO: checking for long long" >&5
16235echo $ECHO_N "checking for long long... $ECHO_C" >&6
16236if test "${ac_cv_type_long_long+set}" = set; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16238else
16239 cat >conftest.$ac_ext <<_ACEOF
16240#line $LINENO "configure"
16241/* confdefs.h. */
16242_ACEOF
16243cat confdefs.h >>conftest.$ac_ext
16244cat >>conftest.$ac_ext <<_ACEOF
16245/* end confdefs.h. */
16246$ac_includes_default
16247int
16248main ()
16249{
16250if ((long long *) 0)
16251 return 0;
16252if (sizeof (long long))
16253 return 0;
16254 ;
16255 return 0;
16256}
16257_ACEOF
16258rm -f conftest.$ac_objext
16259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16260 (eval $ac_compile) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -s conftest.$ac_objext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_type_long_long=yes
16271else
16272 echo "$as_me: failed program was:" >&5
16273sed 's/^/| /' conftest.$ac_ext >&5
16274
16275ac_cv_type_long_long=no
16276fi
16277rm -f conftest.$ac_objext conftest.$ac_ext
16278fi
16279echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16280echo "${ECHO_T}$ac_cv_type_long_long" >&6
16281
16282echo "$as_me:$LINENO: checking size of long long" >&5
16283echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16284if test "${ac_cv_sizeof_long_long+set}" = set; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16286else
16287 if test "$ac_cv_type_long_long" = yes; then
16288 # The cast to unsigned long works around a bug in the HP C Compiler
16289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16291 # This bug is HP SR number 8606223364.
4f57cf11 16292 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16293 # Depending upon the size, compute the lo and hi bounds.
16294cat >conftest.$ac_ext <<_ACEOF
16295#line $LINENO "configure"
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
16301$ac_includes_default
16302int
16303main ()
16304{
16305static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16306test_array [0] = 0
16307
16308 ;
16309 return 0;
16310}
16311_ACEOF
16312rm -f conftest.$ac_objext
16313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16314 (eval $ac_compile) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } &&
16318 { ac_try='test -s conftest.$ac_objext'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_lo=0 ac_mid=0
16325 while :; do
16326 cat >conftest.$ac_ext <<_ACEOF
16327#line $LINENO "configure"
16328/* confdefs.h. */
16329_ACEOF
16330cat confdefs.h >>conftest.$ac_ext
16331cat >>conftest.$ac_ext <<_ACEOF
16332/* end confdefs.h. */
16333$ac_includes_default
16334int
16335main ()
16336{
16337static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16338test_array [0] = 0
16339
16340 ;
16341 return 0;
16342}
16343_ACEOF
16344rm -f conftest.$ac_objext
16345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346 (eval $ac_compile) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -s conftest.$ac_objext'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 ac_hi=$ac_mid; break
16357else
16358 echo "$as_me: failed program was:" >&5
16359sed 's/^/| /' conftest.$ac_ext >&5
16360
16361ac_lo=`expr $ac_mid + 1`
16362 if test $ac_lo -le $ac_mid; then
16363 ac_lo= ac_hi=
16364 break
16365 fi
16366 ac_mid=`expr 2 '*' $ac_mid + 1`
16367fi
16368rm -f conftest.$ac_objext conftest.$ac_ext
16369 done
16370else
16371 echo "$as_me: failed program was:" >&5
16372sed 's/^/| /' conftest.$ac_ext >&5
16373
16374cat >conftest.$ac_ext <<_ACEOF
16375#line $LINENO "configure"
16376/* confdefs.h. */
16377_ACEOF
16378cat confdefs.h >>conftest.$ac_ext
16379cat >>conftest.$ac_ext <<_ACEOF
16380/* end confdefs.h. */
16381$ac_includes_default
16382int
16383main ()
16384{
16385static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16386test_array [0] = 0
16387
16388 ;
16389 return 0;
16390}
16391_ACEOF
16392rm -f conftest.$ac_objext
16393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16394 (eval $ac_compile) 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -s conftest.$ac_objext'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; }; then
16404 ac_hi=-1 ac_mid=-1
16405 while :; do
16406 cat >conftest.$ac_ext <<_ACEOF
16407#line $LINENO "configure"
16408/* confdefs.h. */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h. */
16413$ac_includes_default
16414int
16415main ()
16416{
16417static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16418test_array [0] = 0
16419
16420 ;
16421 return 0;
16422}
16423_ACEOF
16424rm -f conftest.$ac_objext
16425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16426 (eval $ac_compile) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } &&
16430 { ac_try='test -s conftest.$ac_objext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_lo=$ac_mid; break
16437else
16438 echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
16441ac_hi=`expr '(' $ac_mid ')' - 1`
16442 if test $ac_mid -le $ac_hi; then
16443 ac_lo= ac_hi=
16444 break
16445 fi
16446 ac_mid=`expr 2 '*' $ac_mid`
16447fi
16448rm -f conftest.$ac_objext conftest.$ac_ext
16449 done
4f57cf11 16450else
e6cc62c6
VS
16451 echo "$as_me: failed program was:" >&5
16452sed 's/^/| /' conftest.$ac_ext >&5
16453
16454ac_lo= ac_hi=
16455fi
16456rm -f conftest.$ac_objext conftest.$ac_ext
16457fi
16458rm -f conftest.$ac_objext conftest.$ac_ext
16459# Binary search between lo and hi bounds.
16460while test "x$ac_lo" != "x$ac_hi"; do
16461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16462 cat >conftest.$ac_ext <<_ACEOF
16463#line $LINENO "configure"
16464/* confdefs.h. */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h. */
16469$ac_includes_default
16470int
16471main ()
16472{
16473static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16474test_array [0] = 0
16475
16476 ;
16477 return 0;
16478}
16479_ACEOF
16480rm -f conftest.$ac_objext
16481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16482 (eval $ac_compile) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -s conftest.$ac_objext'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 ac_hi=$ac_mid
16493else
16494 echo "$as_me: failed program was:" >&5
16495sed 's/^/| /' conftest.$ac_ext >&5
16496
16497ac_lo=`expr '(' $ac_mid ')' + 1`
16498fi
16499rm -f conftest.$ac_objext conftest.$ac_ext
16500done
16501case $ac_lo in
16502?*) ac_cv_sizeof_long_long=$ac_lo;;
16503'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16504See \`config.log' for more details." >&5
16505echo "$as_me: error: cannot compute sizeof (long long), 77
16506See \`config.log' for more details." >&2;}
16507 { (exit 1); exit 1; }; } ;;
16508esac
16509else
16510 if test "$cross_compiling" = yes; then
16511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16512See \`config.log' for more details." >&5
16513echo "$as_me: error: cannot run test program while cross compiling
16514See \`config.log' for more details." >&2;}
16515 { (exit 1); exit 1; }; }
16516else
16517 cat >conftest.$ac_ext <<_ACEOF
16518#line $LINENO "configure"
16519/* confdefs.h. */
16520_ACEOF
16521cat confdefs.h >>conftest.$ac_ext
16522cat >>conftest.$ac_ext <<_ACEOF
16523/* end confdefs.h. */
16524$ac_includes_default
16525long longval () { return (long) (sizeof (long long)); }
16526unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16527#include <stdio.h>
e6cc62c6
VS
16528#include <stdlib.h>
16529int
16530main ()
4f57cf11 16531{
e6cc62c6
VS
16532
16533 FILE *f = fopen ("conftest.val", "w");
16534 if (! f)
16535 exit (1);
16536 if (((long) (sizeof (long long))) < 0)
16537 {
16538 long i = longval ();
16539 if (i != ((long) (sizeof (long long))))
16540 exit (1);
16541 fprintf (f, "%ld\n", i);
16542 }
16543 else
16544 {
16545 unsigned long i = ulongval ();
16546 if (i != ((long) (sizeof (long long))))
16547 exit (1);
16548 fprintf (f, "%lu\n", i);
16549 }
16550 exit (ferror (f) || fclose (f) != 0);
16551
16552 ;
16553 return 0;
4f57cf11 16554}
e6cc62c6
VS
16555_ACEOF
16556rm -f conftest$ac_exeext
16557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16558 (eval $ac_link) 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 ac_cv_sizeof_long_long=`cat conftest.val`
16568else
16569 echo "$as_me: program exited with status $ac_status" >&5
16570echo "$as_me: failed program was:" >&5
16571sed 's/^/| /' conftest.$ac_ext >&5
16572
16573( exit $ac_status )
16574{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16575See \`config.log' for more details." >&5
16576echo "$as_me: error: cannot compute sizeof (long long), 77
16577See \`config.log' for more details." >&2;}
16578 { (exit 1); exit 1; }; }
16579fi
16580rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16581fi
16582fi
16583rm -f conftest.val
4f57cf11 16584else
4f57cf11
GD
16585 ac_cv_sizeof_long_long=0
16586fi
7b4a847f 16587fi
e6cc62c6
VS
16588echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16589echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16590cat >>confdefs.h <<_ACEOF
21d1c967 16591#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16592_ACEOF
9e691f46 16593
8284b0c5 16594
21d1c967
GD
16595esac
16596
e6cc62c6
VS
16597echo "$as_me:$LINENO: checking size of wchar_t" >&5
16598echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16599if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16601else
e6cc62c6 16602
21d1c967 16603 if test "$cross_compiling" = yes; then
e6cc62c6 16604
2b5f62a0
VZ
16605 case "${host}" in
16606 *-pc-msdosdjgpp )
16607 wx_cv_sizeof_wchar_t=0
16608 ;;
16609 * )
16610 wx_cv_sizeof_wchar_t=4
16611 ;;
16612 esac
e6cc62c6
VS
16613
16614
6f72b082 16615else
e6cc62c6
VS
16616 cat >conftest.$ac_ext <<_ACEOF
16617#line $LINENO "configure"
16618/* confdefs.h. */
16619_ACEOF
16620cat confdefs.h >>conftest.$ac_ext
16621cat >>conftest.$ac_ext <<_ACEOF
16622/* end confdefs.h. */
21d1c967 16623
2b5f62a0
VZ
16624 /* DJGPP only has fake wchar_t: */
16625 #ifdef __DJGPP__
16626 # error "fake wchar_t"
16627 #endif
21d1c967
GD
16628 #ifdef HAVE_WCHAR_H
16629 # ifdef __CYGWIN__
16630 # include <stddef.h>
16631 # endif
16632 # include <wchar.h>
16633 #endif
16634 #ifdef HAVE_STDLIB_H
16635 # include <stdlib.h>
16636 #endif
16637 #include <stdio.h>
16638 int main()
16639 {
16640 FILE *f=fopen("conftestval", "w");
16641 if (!f) exit(1);
16642 fprintf(f, "%i", sizeof(wchar_t));
16643 exit(0);
16644 }
e6cc62c6
VS
16645
16646_ACEOF
16647rm -f conftest$ac_exeext
16648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16649 (eval $ac_link) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
21d1c967 16658 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16659else
e6cc62c6
VS
16660 echo "$as_me: program exited with status $ac_status" >&5
16661echo "$as_me: failed program was:" >&5
16662sed 's/^/| /' conftest.$ac_ext >&5
16663
16664( exit $ac_status )
16665wx_cv_sizeof_wchar_t=0
6f72b082 16666fi
e6cc62c6 16667rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16668fi
6f72b082 16669
3f345b47 16670fi
e6cc62c6
VS
16671echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16672echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16673
e6cc62c6 16674cat >>confdefs.h <<_ACEOF
21d1c967 16675#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16676_ACEOF
90dd450c 16677
8284b0c5 16678
21d1c967
GD
16679# Check whether --enable-largefile or --disable-largefile was given.
16680if test "${enable_largefile+set}" = set; then
16681 enableval="$enable_largefile"
3f345b47 16682
e6cc62c6 16683fi;
21d1c967
GD
16684if test "$enable_largefile" != no; then
16685 wx_largefile=no
e6cc62c6
VS
16686
16687 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16688echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16689if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691else
16692
16693 cat >conftest.$ac_ext <<_ACEOF
16694#line $LINENO "configure"
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
21d1c967
GD
16700#define _FILE_OFFSET_BITS 64
16701 #include <sys/types.h>
e6cc62c6
VS
16702int
16703main ()
16704{
21d1c967
GD
16705typedef struct {
16706 unsigned int field: sizeof(off_t) == 8;
16707} wxlf;
16708
e6cc62c6
VS
16709 ;
16710 return 0;
16711}
16712_ACEOF
16713rm -f conftest.$ac_objext
16714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715 (eval $ac_compile) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
21d1c967 16725 ac_cv_sys_file_offset_bits=64
f6bcfd97 16726else
e6cc62c6
VS
16727 echo "$as_me: failed program was:" >&5
16728sed 's/^/| /' conftest.$ac_ext >&5
16729
16730ac_cv_sys_file_offset_bits=no
247f5006 16731fi
e6cc62c6
VS
16732rm -f conftest.$ac_objext conftest.$ac_ext
16733
a0b9e27f 16734
e6cc62c6
VS
16735fi
16736echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16737echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16738
16739 if test "$ac_cv_sys_file_offset_bits" != no; then
16740 wx_largefile=yes
e6cc62c6 16741 cat >>confdefs.h <<_ACEOF
21d1c967 16742#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16743_ACEOF
21d1c967
GD
16744
16745 fi
16746
16747 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16748
16749 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16750echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16751if test "${ac_cv_sys_large_files+set}" = set; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16753else
16754
16755 cat >conftest.$ac_ext <<_ACEOF
16756#line $LINENO "configure"
16757/* confdefs.h. */
16758_ACEOF
16759cat confdefs.h >>conftest.$ac_ext
16760cat >>conftest.$ac_ext <<_ACEOF
16761/* end confdefs.h. */
21d1c967
GD
16762#define _LARGE_FILES 1
16763 #include <sys/types.h>
e6cc62c6
VS
16764int
16765main ()
16766{
21d1c967
GD
16767typedef struct {
16768 unsigned int field: sizeof(off_t) == 8;
16769} wxlf;
16770
e6cc62c6
VS
16771 ;
16772 return 0;
16773}
16774_ACEOF
16775rm -f conftest.$ac_objext
16776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16777 (eval $ac_compile) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -s conftest.$ac_objext'
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
21d1c967 16787 ac_cv_sys_large_files=1
f6bcfd97 16788else
e6cc62c6
VS
16789 echo "$as_me: failed program was:" >&5
16790sed 's/^/| /' conftest.$ac_ext >&5
16791
16792ac_cv_sys_large_files=no
247f5006 16793fi
e6cc62c6 16794rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16795
e6cc62c6
VS
16796
16797fi
16798echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16799echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16800
21d1c967
GD
16801 if test "$ac_cv_sys_large_files" != no; then
16802 wx_largefile=yes
e6cc62c6 16803 cat >>confdefs.h <<_ACEOF
21d1c967 16804#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16805_ACEOF
90dd450c 16806
90dd450c
VZ
16807 fi
16808
90dd450c 16809 fi
90dd450c 16810
e6cc62c6
VS
16811 echo "$as_me:$LINENO: checking if large file support is available" >&5
16812echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16813 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16814 cat >>confdefs.h <<\_ACEOF
21d1c967 16815#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16816_ACEOF
90dd450c 16817
90dd450c 16818 fi
e6cc62c6
VS
16819 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16820echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16821fi
90dd450c 16822
8284b0c5 16823
f02444d0 16824if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16825 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16826 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16827 else
e26c13cf 16828 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16829 fi
e26c13cf 16830 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16831fi
16832
e6cc62c6
VS
16833echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16834echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16835if test "${ac_cv_c_bigendian+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16837else
21d1c967
GD
16838 ac_cv_c_bigendian=unknown
16839# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16840cat >conftest.$ac_ext <<_ACEOF
16841#line $LINENO "configure"
16842/* confdefs.h. */
16843_ACEOF
16844cat confdefs.h >>conftest.$ac_ext
16845cat >>conftest.$ac_ext <<_ACEOF
16846/* end confdefs.h. */
21d1c967
GD
16847#include <sys/types.h>
16848#include <sys/param.h>
e6cc62c6
VS
16849int
16850main ()
16851{
21d1c967
GD
16852
16853#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16854 bogus endian macros
16855#endif
e6cc62c6
VS
16856 ;
16857 return 0;
16858}
16859_ACEOF
16860rm -f conftest.$ac_objext
16861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16862 (eval $ac_compile) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -s conftest.$ac_objext'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
21d1c967 16872 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16873cat >conftest.$ac_ext <<_ACEOF
16874#line $LINENO "configure"
16875/* confdefs.h. */
16876_ACEOF
16877cat confdefs.h >>conftest.$ac_ext
16878cat >>conftest.$ac_ext <<_ACEOF
16879/* end confdefs.h. */
21d1c967
GD
16880#include <sys/types.h>
16881#include <sys/param.h>
e6cc62c6
VS
16882int
16883main ()
16884{
21d1c967
GD
16885
16886#if BYTE_ORDER != BIG_ENDIAN
16887 not big endian
16888#endif
e6cc62c6
VS
16889 ;
16890 return 0;
16891}
16892_ACEOF
16893rm -f conftest.$ac_objext
16894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16895 (eval $ac_compile) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } &&
16899 { ac_try='test -s conftest.$ac_objext'
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; }; then
21d1c967 16905 ac_cv_c_bigendian=yes
3f345b47 16906else
e6cc62c6
VS
16907 echo "$as_me: failed program was:" >&5
16908sed 's/^/| /' conftest.$ac_ext >&5
16909
16910ac_cv_c_bigendian=no
3f345b47 16911fi
e6cc62c6 16912rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16913else
e6cc62c6
VS
16914 echo "$as_me: failed program was:" >&5
16915sed 's/^/| /' conftest.$ac_ext >&5
16916
3f345b47 16917fi
e6cc62c6 16918rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16919if test $ac_cv_c_bigendian = unknown; then
16920if test "$cross_compiling" = yes; then
16921 ac_cv_c_bigendian=unknown
10f2d63a 16922else
e6cc62c6
VS
16923 cat >conftest.$ac_ext <<_ACEOF
16924#line $LINENO "configure"
16925/* confdefs.h. */
16926_ACEOF
16927cat confdefs.h >>conftest.$ac_ext
16928cat >>conftest.$ac_ext <<_ACEOF
16929/* end confdefs.h. */
21d1c967
GD
16930main () {
16931 /* Are we little or big endian? From Harbison&Steele. */
16932 union
16933 {
16934 long l;
16935 char c[sizeof (long)];
16936 } u;
16937 u.l = 1;
16938 exit (u.c[sizeof (long) - 1] == 1);
16939}
e6cc62c6
VS
16940_ACEOF
16941rm -f conftest$ac_exeext
16942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16943 (eval $ac_link) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; }; then
21d1c967 16952 ac_cv_c_bigendian=no
3f345b47 16953else
e6cc62c6
VS
16954 echo "$as_me: program exited with status $ac_status" >&5
16955echo "$as_me: failed program was:" >&5
16956sed 's/^/| /' conftest.$ac_ext >&5
16957
16958( exit $ac_status )
16959ac_cv_c_bigendian=yes
247f5006 16960fi
e6cc62c6 16961rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16962fi
3f345b47 16963fi
8168de4c 16964fi
e6cc62c6
VS
16965echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16966echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16967if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16968 { 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
16969echo "$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
16970fi
16971if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16972 cat >>confdefs.h <<\_ACEOF
247f5006 16973#define WORDS_BIGENDIAN 1
e6cc62c6 16974_ACEOF
247f5006
VZ
16975
16976fi
16977
16978
e6cc62c6
VS
16979
16980ac_ext=cc
16981ac_cpp='$CXXCPP $CPPFLAGS'
16982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16985echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16986echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16987if test -z "$CXXCPP"; then
e6cc62c6
VS
16988 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990else
16991 # Double quotes because CXXCPP needs to be expanded
16992 for CXXCPP in "$CXX -E" "/lib/cpp"
16993 do
16994 ac_preproc_ok=false
16995for ac_cxx_preproc_warn_flag in '' yes
16996do
16997 # Use a header file that comes with gcc, so configuring glibc
16998 # with a fresh cross-compiler works.
16999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17000 # <limits.h> exists even on freestanding compilers.
17001 # On the NeXT, cc -E runs the code through the compiler's parser,
17002 # not just through cpp. "Syntax error" is here to catch this case.
17003 cat >conftest.$ac_ext <<_ACEOF
17004#line $LINENO "configure"
17005/* confdefs.h. */
17006_ACEOF
17007cat confdefs.h >>conftest.$ac_ext
17008cat >>conftest.$ac_ext <<_ACEOF
17009/* end confdefs.h. */
17010#ifdef __STDC__
17011# include <limits.h>
17012#else
17013# include <assert.h>
17014#endif
17015 Syntax error
17016_ACEOF
17017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17019 ac_status=$?
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } >/dev/null; then
17025 if test -s conftest.err; then
17026 ac_cpp_err=$ac_cxx_preproc_warn_flag
17027 else
17028 ac_cpp_err=
17029 fi
247f5006 17030else
e6cc62c6
VS
17031 ac_cpp_err=yes
17032fi
17033if test -z "$ac_cpp_err"; then
17034 :
17035else
17036 echo "$as_me: failed program was:" >&5
17037sed 's/^/| /' conftest.$ac_ext >&5
17038
17039 # Broken: fails on valid input.
17040continue
17041fi
17042rm -f conftest.err conftest.$ac_ext
17043
17044 # OK, works on sane cases. Now check whether non-existent headers
17045 # can be detected and how.
17046 cat >conftest.$ac_ext <<_ACEOF
17047#line $LINENO "configure"
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
17053#include <ac_nonexistent.h>
17054_ACEOF
17055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17057 ac_status=$?
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } >/dev/null; then
17063 if test -s conftest.err; then
17064 ac_cpp_err=$ac_cxx_preproc_warn_flag
17065 else
17066 ac_cpp_err=
17067 fi
17068else
17069 ac_cpp_err=yes
17070fi
17071if test -z "$ac_cpp_err"; then
17072 # Broken: success on invalid input.
17073continue
17074else
17075 echo "$as_me: failed program was:" >&5
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 # Passes both tests.
17079ac_preproc_ok=:
17080break
17081fi
17082rm -f conftest.err conftest.$ac_ext
17083
17084done
17085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17086rm -f conftest.err conftest.$ac_ext
17087if $ac_preproc_ok; then
17088 break
17089fi
17090
17091 done
17092 ac_cv_prog_CXXCPP=$CXXCPP
17093
17094fi
17095 CXXCPP=$ac_cv_prog_CXXCPP
17096else
17097 ac_cv_prog_CXXCPP=$CXXCPP
17098fi
17099echo "$as_me:$LINENO: result: $CXXCPP" >&5
17100echo "${ECHO_T}$CXXCPP" >&6
17101ac_preproc_ok=false
17102for ac_cxx_preproc_warn_flag in '' yes
17103do
17104 # Use a header file that comes with gcc, so configuring glibc
17105 # with a fresh cross-compiler works.
17106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17107 # <limits.h> exists even on freestanding compilers.
17108 # On the NeXT, cc -E runs the code through the compiler's parser,
17109 # not just through cpp. "Syntax error" is here to catch this case.
17110 cat >conftest.$ac_ext <<_ACEOF
17111#line $LINENO "configure"
17112/* confdefs.h. */
17113_ACEOF
17114cat confdefs.h >>conftest.$ac_ext
17115cat >>conftest.$ac_ext <<_ACEOF
17116/* end confdefs.h. */
17117#ifdef __STDC__
17118# include <limits.h>
17119#else
17120# include <assert.h>
17121#endif
17122 Syntax error
17123_ACEOF
17124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } >/dev/null; then
17132 if test -s conftest.err; then
17133 ac_cpp_err=$ac_cxx_preproc_warn_flag
17134 else
17135 ac_cpp_err=
17136 fi
17137else
17138 ac_cpp_err=yes
17139fi
17140if test -z "$ac_cpp_err"; then
21d1c967 17141 :
698dcdb6 17142else
e6cc62c6
VS
17143 echo "$as_me: failed program was:" >&5
17144sed 's/^/| /' conftest.$ac_ext >&5
17145
17146 # Broken: fails on valid input.
17147continue
17148fi
17149rm -f conftest.err conftest.$ac_ext
17150
17151 # OK, works on sane cases. Now check whether non-existent headers
17152 # can be detected and how.
17153 cat >conftest.$ac_ext <<_ACEOF
17154#line $LINENO "configure"
17155/* confdefs.h. */
17156_ACEOF
17157cat confdefs.h >>conftest.$ac_ext
17158cat >>conftest.$ac_ext <<_ACEOF
17159/* end confdefs.h. */
17160#include <ac_nonexistent.h>
17161_ACEOF
17162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17164 ac_status=$?
17165 grep -v '^ *+' conftest.er1 >conftest.err
17166 rm -f conftest.er1
17167 cat conftest.err >&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } >/dev/null; then
17170 if test -s conftest.err; then
17171 ac_cpp_err=$ac_cxx_preproc_warn_flag
17172 else
17173 ac_cpp_err=
17174 fi
17175else
17176 ac_cpp_err=yes
247f5006 17177fi
e6cc62c6
VS
17178if test -z "$ac_cpp_err"; then
17179 # Broken: success on invalid input.
17180continue
17181else
17182 echo "$as_me: failed program was:" >&5
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
17185 # Passes both tests.
17186ac_preproc_ok=:
17187break
328a083c 17188fi
e6cc62c6
VS
17189rm -f conftest.err conftest.$ac_ext
17190
17191done
17192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17193rm -f conftest.err conftest.$ac_ext
17194if $ac_preproc_ok; then
17195 :
17196else
17197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17198See \`config.log' for more details." >&5
17199echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17200See \`config.log' for more details." >&2;}
17201 { (exit 1); exit 1; }; }
90dd450c 17202fi
e6cc62c6
VS
17203
17204ac_ext=cc
17205ac_cpp='$CXXCPP $CPPFLAGS'
17206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17209
1e6feb95 17210
1725144d 17211
21d1c967 17212 if test "$cross_compiling" = "yes"; then
e6cc62c6 17213 cat >>confdefs.h <<\_ACEOF
21d1c967 17214#define wxUSE_IOSTREAMH 1
e6cc62c6 17215_ACEOF
ab9b9eab 17216
21d1c967 17217 else
e6cc62c6
VS
17218
17219
17220 ac_ext=cc
5c6fa7d2 17221ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17225
52127426 17226
247f5006 17227
e6cc62c6 17228for ac_header in iostream
21d1c967 17229do
e6cc62c6
VS
17230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17231if eval "test \"\${$as_ac_Header+set}\" = set"; then
17232 echo "$as_me:$LINENO: checking for $ac_header" >&5
17233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17234if eval "test \"\${$as_ac_Header+set}\" = set"; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236fi
17237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17239else
17240 # Is the header compilable?
17241echo "$as_me:$LINENO: checking $ac_header usability" >&5
17242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17243cat >conftest.$ac_ext <<_ACEOF
17244#line $LINENO "configure"
17245/* confdefs.h. */
17246_ACEOF
17247cat confdefs.h >>conftest.$ac_ext
17248cat >>conftest.$ac_ext <<_ACEOF
17249/* end confdefs.h. */
17250$ac_includes_default
17251#include <$ac_header>
17252_ACEOF
17253rm -f conftest.$ac_objext
17254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17255 (eval $ac_compile) 2>&5
17256 ac_status=$?
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } &&
17259 { ac_try='test -s conftest.$ac_objext'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17265 ac_header_compiler=yes
17266else
17267 echo "$as_me: failed program was:" >&5
17268sed 's/^/| /' conftest.$ac_ext >&5
17269
17270ac_header_compiler=no
17271fi
17272rm -f conftest.$ac_objext conftest.$ac_ext
17273echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17274echo "${ECHO_T}$ac_header_compiler" >&6
17275
17276# Is the header present?
17277echo "$as_me:$LINENO: checking $ac_header presence" >&5
17278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17279cat >conftest.$ac_ext <<_ACEOF
17280#line $LINENO "configure"
17281/* confdefs.h. */
17282_ACEOF
17283cat confdefs.h >>conftest.$ac_ext
17284cat >>conftest.$ac_ext <<_ACEOF
17285/* end confdefs.h. */
17286#include <$ac_header>
17287_ACEOF
17288if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17290 ac_status=$?
17291 grep -v '^ *+' conftest.er1 >conftest.err
17292 rm -f conftest.er1
17293 cat conftest.err >&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } >/dev/null; then
17296 if test -s conftest.err; then
17297 ac_cpp_err=$ac_cxx_preproc_warn_flag
17298 else
17299 ac_cpp_err=
17300 fi
17301else
17302 ac_cpp_err=yes
17303fi
17304if test -z "$ac_cpp_err"; then
17305 ac_header_preproc=yes
17306else
17307 echo "$as_me: failed program was:" >&5
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
17310 ac_header_preproc=no
17311fi
17312rm -f conftest.err conftest.$ac_ext
17313echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17314echo "${ECHO_T}$ac_header_preproc" >&6
17315
17316# So? What about this header?
17317case $ac_header_compiler:$ac_header_preproc in
17318 yes:no )
17319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17320echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17323 (
17324 cat <<\_ASBOX
17325## ------------------------------------ ##
17326## Report this to bug-autoconf@gnu.org. ##
17327## ------------------------------------ ##
17328_ASBOX
17329 ) |
17330 sed "s/^/$as_me: WARNING: /" >&2
17331 ;;
17332 no:yes )
17333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17339 (
17340 cat <<\_ASBOX
17341## ------------------------------------ ##
17342## Report this to bug-autoconf@gnu.org. ##
17343## ------------------------------------ ##
17344_ASBOX
17345 ) |
17346 sed "s/^/$as_me: WARNING: /" >&2
17347 ;;
17348esac
17349echo "$as_me:$LINENO: checking for $ac_header" >&5
17350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17351if eval "test \"\${$as_ac_Header+set}\" = set"; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17353else
17354 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17355fi
e6cc62c6
VS
17356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17358
90dd450c 17359fi
e6cc62c6
VS
17360if test `eval echo '${'$as_ac_Header'}'` = yes; then
17361 cat >>confdefs.h <<_ACEOF
17362#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17363_ACEOF
17364
90dd450c 17365fi
e6cc62c6 17366
21d1c967 17367done
10f2d63a 17368
8284b0c5 17369
21d1c967
GD
17370 if test "$ac_cv_header_iostream" = "yes" ; then
17371 :
17372 else
e6cc62c6 17373 cat >>confdefs.h <<\_ACEOF
21d1c967 17374#define wxUSE_IOSTREAMH 1
e6cc62c6 17375_ACEOF
788deba1 17376
90dd450c 17377 fi
ab9b9eab 17378
21d1c967 17379 ac_ext=c
21d1c967 17380ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17383ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17384
21d1c967 17385 fi
ab9b9eab 17386
52127426 17387
8284b0c5 17388
e6cc62c6
VS
17389 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17390echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17391if test "${wx_cv_cpp_bool+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17393else
e6cc62c6
VS
17394
17395
17396
17397 ac_ext=cc
5c6fa7d2 17398ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17402
8284b0c5 17403
e6cc62c6
VS
17404 cat >conftest.$ac_ext <<_ACEOF
17405#line $LINENO "configure"
17406/* confdefs.h. */
17407_ACEOF
17408cat confdefs.h >>conftest.$ac_ext
17409cat >>conftest.$ac_ext <<_ACEOF
17410/* end confdefs.h. */
21d1c967 17411
e6cc62c6
VS
17412
17413int
17414main ()
17415{
21d1c967
GD
17416
17417 bool b = true;
17418
17419 return 0;
e6cc62c6
VS
17420
17421 ;
17422 return 0;
17423}
17424_ACEOF
17425rm -f conftest.$ac_objext
17426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17427 (eval $ac_compile) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try='test -s conftest.$ac_objext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437
21d1c967 17438 wx_cv_cpp_bool=yes
e6cc62c6 17439
698dcdb6 17440else
e6cc62c6
VS
17441 echo "$as_me: failed program was:" >&5
17442sed 's/^/| /' conftest.$ac_ext >&5
17443
17444
21d1c967 17445 wx_cv_cpp_bool=no
e6cc62c6
VS
17446
17447
698dcdb6 17448fi
e6cc62c6 17449rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17450
17451 ac_ext=c
21d1c967 17452ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17455ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17456
a0b9e27f 17457
e6cc62c6
VS
17458fi
17459echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17460echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17461
17462 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17463 cat >>confdefs.h <<\_ACEOF
21d1c967 17464#define HAVE_BOOL 1
e6cc62c6 17465_ACEOF
ab9b9eab 17466
21d1c967
GD
17467 fi
17468
52127426 17469
8284b0c5 17470
e6cc62c6
VS
17471 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17472echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17473if test "${wx_cv_explicit+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17475else
e6cc62c6
VS
17476
17477
17478
17479 ac_ext=cc
5c6fa7d2 17480ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17484
8284b0c5 17485
e6cc62c6
VS
17486 cat >conftest.$ac_ext <<_ACEOF
17487#line $LINENO "configure"
17488/* confdefs.h. */
17489_ACEOF
17490cat confdefs.h >>conftest.$ac_ext
17491cat >>conftest.$ac_ext <<_ACEOF
17492/* end confdefs.h. */
986ecc86
VZ
17493
17494 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17495
17496int
17497main ()
17498{
986ecc86
VZ
17499
17500 return 0;
e6cc62c6
VS
17501
17502 ;
17503 return 0;
17504}
17505_ACEOF
17506rm -f conftest.$ac_objext
17507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17508 (eval $ac_compile) 2>&5
17509 ac_status=$?
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
17512 { ac_try='test -s conftest.$ac_objext'
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518
17519 cat >conftest.$ac_ext <<_ACEOF
17520#line $LINENO "configure"
17521/* confdefs.h. */
17522_ACEOF
17523cat confdefs.h >>conftest.$ac_ext
17524cat >>conftest.$ac_ext <<_ACEOF
17525/* end confdefs.h. */
986ecc86
VZ
17526
17527 class Foo { public: explicit Foo(int) {} };
17528 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17529
17530int
17531main ()
17532{
986ecc86
VZ
17533
17534 TakeFoo(17);
17535 return 0;
e6cc62c6
VS
17536
17537 ;
17538 return 0;
17539}
17540_ACEOF
17541rm -f conftest.$ac_objext
17542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17543 (eval $ac_compile) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
17547 { ac_try='test -s conftest.$ac_objext'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
986ecc86
VZ
17553 wx_cv_explicit=no
17554else
e6cc62c6
VS
17555 echo "$as_me: failed program was:" >&5
17556sed 's/^/| /' conftest.$ac_ext >&5
17557
17558wx_cv_explicit=yes
17559
986ecc86 17560fi
e6cc62c6
VS
17561rm -f conftest.$ac_objext conftest.$ac_ext
17562
986ecc86 17563else
e6cc62c6
VS
17564 echo "$as_me: failed program was:" >&5
17565sed 's/^/| /' conftest.$ac_ext >&5
17566
17567wx_cv_explicit=no
17568
986ecc86 17569fi
e6cc62c6 17570rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17571
17572 ac_ext=c
986ecc86 17573ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17576ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17577
a0b9e27f 17578
e6cc62c6
VS
17579fi
17580echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17581echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17582
17583 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17584 cat >>confdefs.h <<\_ACEOF
986ecc86 17585#define HAVE_EXPLICIT 1
e6cc62c6 17586_ACEOF
986ecc86
VZ
17587
17588 fi
17589
8284b0c5 17590
e6cc62c6
VS
17591echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17592echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17593if test "${ac_cv_cxx_const_cast+set}" = set; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17595else
521196a2 17596
521196a2 17597
e6cc62c6
VS
17598 ac_ext=cc
17599ac_cpp='$CXXCPP $CPPFLAGS'
17600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17603
17604 cat >conftest.$ac_ext <<_ACEOF
17605#line $LINENO "configure"
17606/* confdefs.h. */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h. */
17611
17612int
17613main ()
17614{
521196a2 17615int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17616 ;
17617 return 0;
17618}
17619_ACEOF
17620rm -f conftest.$ac_objext
17621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17622 (eval $ac_compile) 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -s conftest.$ac_objext'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
521196a2
MB
17632 ac_cv_cxx_const_cast=yes
17633else
e6cc62c6
VS
17634 echo "$as_me: failed program was:" >&5
17635sed 's/^/| /' conftest.$ac_ext >&5
17636
17637ac_cv_cxx_const_cast=no
521196a2 17638fi
e6cc62c6 17639rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17640 ac_ext=c
521196a2 17641ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17645
17646
17647fi
e6cc62c6
VS
17648echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17649echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17650if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17651
17652cat >>confdefs.h <<\_ACEOF
17653#define HAVE_CONST_CAST
17654_ACEOF
521196a2
MB
17655
17656fi
17657
17658
8284b0c5 17659
21d1c967
GD
17660SEARCH_INCLUDE="\
17661 /usr/local/include \
17662 \
17663 /usr/Motif-1.2/include \
17664 /usr/Motif-2.1/include \
17665 \
17666 /usr/include/Motif1.2 \
17667 /opt/xpm/include/X11 \
17668 /opt/GBxpm/include/ \
17669 /opt/GBxpm/X11/include/ \
17670 \
17671 /usr/Motif1.2/include \
17672 /usr/dt/include \
17673 /usr/openwin/include \
17674 \
17675 /usr/include/Xm \
17676 \
17677 /usr/X11R6/include \
17678 /usr/X11R6.4/include \
17679 /usr/X11R5/include \
17680 /usr/X11R4/include \
17681 \
17682 /usr/include/X11R6 \
17683 /usr/include/X11R5 \
17684 /usr/include/X11R4 \
17685 \
17686 /usr/local/X11R6/include \
17687 /usr/local/X11R5/include \
17688 /usr/local/X11R4/include \
17689 \
17690 /usr/local/include/X11R6 \
17691 /usr/local/include/X11R5 \
17692 /usr/local/include/X11R4 \
17693 \
17694 /usr/X11/include \
17695 /usr/include/X11 \
17696 /usr/local/X11/include \
17697 /usr/local/include/X11 \
17698 \
17699 /usr/X386/include \
17700 /usr/x386/include \
17701 /usr/XFree86/include/X11 \
17702 \
17703 X:/XFree86/include \
17704 X:/XFree86/include/X11 \
17705 \
17706 /usr/include/gtk \
17707 /usr/local/include/gtk \
17708 /usr/include/glib \
17709 /usr/local/include/glib \
17710 \
17711 /usr/include/qt \
17712 /usr/local/include/qt \
17713 \
17714 /usr/include/windows \
17715 /usr/include/wine \
17716 /usr/local/include/wine \
17717 \
17718 /usr/unsupported/include \
17719 /usr/athena/include \
17720 /usr/local/x11r5/include \
17721 /usr/lpp/Xamples/include \
17722 \
2b5f62a0 17723 /usr/openwin/share/include"
21d1c967
GD
17724
17725SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17726
8284b0c5 17727
e6cc62c6 17728cat >confcache <<\_ACEOF
21d1c967
GD
17729# This file is a shell script that caches the results of configure
17730# tests run on this system so they can be shared between configure
e6cc62c6
VS
17731# scripts and configure runs, see configure's option --config-cache.
17732# It is not useful on other systems. If it contains results you don't
17733# want to keep, you may remove or edit it.
21d1c967 17734#
e6cc62c6
VS
17735# config.status only pays attention to the cache file if you give it
17736# the --recheck option to rerun configure.
21d1c967 17737#
e6cc62c6
VS
17738# `ac_cv_env_foo' variables (set or unset) will be overridden when
17739# loading this file, other *unset* `ac_cv_foo' will be assigned the
17740# following values.
17741
17742_ACEOF
17743
21d1c967
GD
17744# The following way of writing the cache mishandles newlines in values,
17745# but we know of no workaround that is simple, portable, and efficient.
17746# So, don't put newlines in cache variables' values.
17747# Ultrix sh set writes to stderr and can't be redirected directly,
17748# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17749{
17750 (set) 2>&1 |
17751 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17752 *ac_space=\ *)
17753 # `set' does not quote correctly, so add quotes (double-quote
17754 # substitution turns \\\\ into \\, and sed turns \\ into \).
17755 sed -n \
17756 "s/'/'\\\\''/g;
17757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17758 ;;
17759 *)
17760 # `set' quotes correctly as required by POSIX, so do not add quotes.
17761 sed -n \
17762 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17763 ;;
17764 esac;
17765} |
17766 sed '
17767 t clear
17768 : clear
17769 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17770 t end
17771 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17772 : end' >>confcache
17773if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17774 if test -w $cache_file; then
e6cc62c6
VS
17775 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17776 cat confcache >$cache_file
21d1c967
GD
17777 else
17778 echo "not updating unwritable cache $cache_file"
17779 fi
ab9b9eab 17780fi
21d1c967 17781rm -f confcache
ab9b9eab 17782
fe0895cf 17783if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17784 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17785echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17786if test "${wx_cv_lib_glibc21+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17788else
17789
17790 cat >conftest.$ac_ext <<_ACEOF
17791#line $LINENO "configure"
17792/* confdefs.h. */
17793_ACEOF
17794cat confdefs.h >>conftest.$ac_ext
17795cat >>conftest.$ac_ext <<_ACEOF
17796/* end confdefs.h. */
21d1c967 17797#include <features.h>
e6cc62c6
VS
17798int
17799main ()
17800{
ab9b9eab 17801
21d1c967
GD
17802 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17803 #error not glibc2.1
17804 #endif
e6cc62c6
VS
17805
17806 ;
17807 return 0;
17808}
17809_ACEOF
17810rm -f conftest.$ac_objext
17811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17812 (eval $ac_compile) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
17816 { ac_try='test -s conftest.$ac_objext'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822
21d1c967 17823 wx_cv_lib_glibc21=yes
e6cc62c6 17824
698dcdb6 17825else
e6cc62c6
VS
17826 echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
17829
21d1c967 17830 wx_cv_lib_glibc21=no
e6cc62c6
VS
17831
17832
247f5006 17833fi
e6cc62c6 17834rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17835
e6cc62c6
VS
17836fi
17837echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17838echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17839 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17840 cat >>confdefs.h <<\_ACEOF
21d1c967 17841#define wxHAVE_GLIBC2 1
e6cc62c6 17842_ACEOF
1e487827 17843
90dd450c 17844 fi
ab9b9eab
VZ
17845fi
17846
5c0a20c3
VZ
17847if test "x$wx_cv_lib_glibc21" = "xyes"; then
17848 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17849 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17850#define _GNU_SOURCE 1
e6cc62c6 17851_ACEOF
5c0a20c3
VZ
17852
17853 fi
17854fi
17855
8284b0c5
MB
17856
17857
21d1c967
GD
17858REGEX_INCLUDE=
17859if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17860 cat >>confdefs.h <<\_ACEOF
21d1c967 17861#define wxUSE_REGEX 1
e6cc62c6 17862_ACEOF
698dcdb6 17863
8284b0c5 17864
21d1c967 17865 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17866 if test "${ac_cv_header_regex_h+set}" = set; then
17867 echo "$as_me:$LINENO: checking for regex.h" >&5
17868echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17869if test "${ac_cv_header_regex_h+set}" = set; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17871fi
17872echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17873echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17874else
17875 # Is the header compilable?
17876echo "$as_me:$LINENO: checking regex.h usability" >&5
17877echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17878cat >conftest.$ac_ext <<_ACEOF
17879#line $LINENO "configure"
17880/* confdefs.h. */
17881_ACEOF
17882cat confdefs.h >>conftest.$ac_ext
17883cat >>conftest.$ac_ext <<_ACEOF
17884/* end confdefs.h. */
17885$ac_includes_default
247f5006 17886#include <regex.h>
e6cc62c6
VS
17887_ACEOF
17888rm -f conftest.$ac_objext
17889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17890 (eval $ac_compile) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); } &&
17894 { ac_try='test -s conftest.$ac_objext'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
17900 ac_header_compiler=yes
17901else
17902 echo "$as_me: failed program was:" >&5
17903sed 's/^/| /' conftest.$ac_ext >&5
17904
17905ac_header_compiler=no
17906fi
17907rm -f conftest.$ac_objext conftest.$ac_ext
17908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17909echo "${ECHO_T}$ac_header_compiler" >&6
17910
17911# Is the header present?
17912echo "$as_me:$LINENO: checking regex.h presence" >&5
17913echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17914cat >conftest.$ac_ext <<_ACEOF
17915#line $LINENO "configure"
17916/* confdefs.h. */
17917_ACEOF
17918cat confdefs.h >>conftest.$ac_ext
17919cat >>conftest.$ac_ext <<_ACEOF
17920/* end confdefs.h. */
17921#include <regex.h>
17922_ACEOF
17923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17925 ac_status=$?
17926 grep -v '^ *+' conftest.er1 >conftest.err
17927 rm -f conftest.er1
17928 cat conftest.err >&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } >/dev/null; then
17931 if test -s conftest.err; then
17932 ac_cpp_err=$ac_c_preproc_warn_flag
17933 else
17934 ac_cpp_err=
17935 fi
17936else
17937 ac_cpp_err=yes
17938fi
17939if test -z "$ac_cpp_err"; then
17940 ac_header_preproc=yes
17941else
17942 echo "$as_me: failed program was:" >&5
17943sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 ac_header_preproc=no
17946fi
17947rm -f conftest.err conftest.$ac_ext
17948echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17949echo "${ECHO_T}$ac_header_preproc" >&6
17950
17951# So? What about this header?
17952case $ac_header_compiler:$ac_header_preproc in
17953 yes:no )
17954 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17955echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17956 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17957echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17958 (
17959 cat <<\_ASBOX
17960## ------------------------------------ ##
17961## Report this to bug-autoconf@gnu.org. ##
17962## ------------------------------------ ##
17963_ASBOX
17964 ) |
17965 sed "s/^/$as_me: WARNING: /" >&2
17966 ;;
17967 no:yes )
17968 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17969echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17970 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17971echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17972 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17973echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17974 (
17975 cat <<\_ASBOX
17976## ------------------------------------ ##
17977## Report this to bug-autoconf@gnu.org. ##
17978## ------------------------------------ ##
17979_ASBOX
17980 ) |
17981 sed "s/^/$as_me: WARNING: /" >&2
17982 ;;
17983esac
17984echo "$as_me:$LINENO: checking for regex.h" >&5
17985echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17986if test "${ac_cv_header_regex_h+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17988else
17989 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 17990fi
e6cc62c6
VS
17991echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17992echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17993
698dcdb6 17994fi
e6cc62c6
VS
17995if test $ac_cv_header_regex_h = yes; then
17996
17997for ac_func in regcomp
21d1c967 17998do
e6cc62c6
VS
17999as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18000echo "$as_me:$LINENO: checking for $ac_func" >&5
18001echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18002if eval "test \"\${$as_ac_var+set}\" = set"; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18004else
18005 cat >conftest.$ac_ext <<_ACEOF
18006#line $LINENO "configure"
18007/* confdefs.h. */
18008_ACEOF
18009cat confdefs.h >>conftest.$ac_ext
18010cat >>conftest.$ac_ext <<_ACEOF
18011/* end confdefs.h. */
a0b9e27f 18012/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18013 which can conflict with char $ac_func (); below.
18014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18015 <limits.h> exists even on freestanding compilers. */
18016#ifdef __STDC__
18017# include <limits.h>
18018#else
18019# include <assert.h>
18020#endif
21d1c967 18021/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18022#ifdef __cplusplus
18023extern "C"
18024{
18025#endif
21d1c967 18026/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18027 builtin and then its argument prototype would still apply. */
18028char $ac_func ();
21d1c967
GD
18029/* The GNU C library defines this for functions which it implements
18030 to always fail with ENOSYS. Some functions are actually named
18031 something starting with __ and the normal name is an alias. */
18032#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18033choke me
18034#else
e6cc62c6
VS
18035char (*f) () = $ac_func;
18036#endif
18037#ifdef __cplusplus
18038}
21d1c967 18039#endif
90dd450c 18040
e6cc62c6
VS
18041int
18042main ()
18043{
18044return f != $ac_func;
18045 ;
18046 return 0;
18047}
18048_ACEOF
18049rm -f conftest.$ac_objext conftest$ac_exeext
18050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18051 (eval $ac_link) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } &&
18055 { ac_try='test -s conftest$ac_exeext'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 eval "$as_ac_var=yes"
18062else
18063 echo "$as_me: failed program was:" >&5
18064sed 's/^/| /' conftest.$ac_ext >&5
18065
18066eval "$as_ac_var=no"
18067fi
18068rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18069fi
18070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18071echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18072if test `eval echo '${'$as_ac_var'}'` = yes; then
18073 cat >>confdefs.h <<_ACEOF
18074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18075_ACEOF
5c6fa7d2 18076
698dcdb6 18077fi
21d1c967
GD
18078done
18079
ab9b9eab
VZ
18080fi
18081
8284b0c5 18082
e6cc62c6 18083
21d1c967
GD
18084 if test "x$ac_cv_func_regcomp" != "xyes"; then
18085 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18086 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18087echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18088 { (exit 1); exit 1; }; }
21d1c967 18089 else
e6cc62c6
VS
18090 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18091echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18092 wxUSE_REGEX=builtin
18093 fi
18094 else
18095 wxUSE_REGEX=sys
18096 fi
ab9b9eab 18097 fi
90dd450c 18098
21d1c967
GD
18099 if test "$wxUSE_REGEX" = "builtin" ; then
18100 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18101 fi
21d1c967 18102fi
90dd450c 18103
8284b0c5 18104
21d1c967
GD
18105ZLIB_INCLUDE=
18106ZLIB_LINK=
18107if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18108 cat >>confdefs.h <<\_ACEOF
21d1c967 18109#define wxUSE_ZLIB 1
e6cc62c6 18110_ACEOF
21d1c967 18111
8284b0c5 18112
21d1c967 18113 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18114 if test "$USE_DARWIN" = 1; then
18115 system_zlib_h_ok="yes"
18116 else
e6cc62c6
VS
18117 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18118echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18119if test "${ac_cv_header_zlib_h+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18121else
18122 if test "$cross_compiling" = yes; then
89e6bf6d 18123 unset ac_cv_header_zlib_h
e6cc62c6 18124
d643b80e 18125else
e6cc62c6
VS
18126 cat >conftest.$ac_ext <<_ACEOF
18127#line $LINENO "configure"
18128/* confdefs.h. */
18129_ACEOF
18130cat confdefs.h >>conftest.$ac_ext
18131cat >>conftest.$ac_ext <<_ACEOF
18132/* end confdefs.h. */
18133
ef33c576 18134 #include <zlib.h>
d775acfa 18135 #include <stdio.h>
d643b80e 18136
d775acfa
VZ
18137 int main()
18138 {
18139 FILE *f=fopen("conftestval", "w");
18140 if (!f) exit(1);
18141 fprintf(f, "%s",
18142 ZLIB_VERSION[0] == '1' &&
18143 (ZLIB_VERSION[2] > '1' ||
18144 (ZLIB_VERSION[2] == '1' &&
18145 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18146 exit(0);
18147 }
e6cc62c6
VS
18148
18149_ACEOF
18150rm -f conftest$ac_exeext
18151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18152 (eval $ac_link) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
d643b80e
VZ
18161 ac_cv_header_zlib_h=`cat conftestval`
18162else
e6cc62c6
VS
18163 echo "$as_me: program exited with status $ac_status" >&5
18164echo "$as_me: failed program was:" >&5
18165sed 's/^/| /' conftest.$ac_ext >&5
18166
18167( exit $ac_status )
18168ac_cv_header_zlib_h=no
d643b80e 18169fi
e6cc62c6 18170rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18171fi
18172
d643b80e 18173fi
e6cc62c6
VS
18174echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18175echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18176 if test "${ac_cv_header_zlib_h+set}" = set; then
18177 echo "$as_me:$LINENO: checking for zlib.h" >&5
18178echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18179if test "${ac_cv_header_zlib_h+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18181fi
18182echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18183echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18184else
e6cc62c6
VS
18185 # Is the header compilable?
18186echo "$as_me:$LINENO: checking zlib.h usability" >&5
18187echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18188cat >conftest.$ac_ext <<_ACEOF
18189#line $LINENO "configure"
18190/* confdefs.h. */
18191_ACEOF
18192cat confdefs.h >>conftest.$ac_ext
18193cat >>conftest.$ac_ext <<_ACEOF
18194/* end confdefs.h. */
18195$ac_includes_default
89e6bf6d 18196#include <zlib.h>
e6cc62c6
VS
18197_ACEOF
18198rm -f conftest.$ac_objext
18199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18200 (eval $ac_compile) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -s conftest.$ac_objext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_header_compiler=yes
18211else
18212 echo "$as_me: failed program was:" >&5
18213sed 's/^/| /' conftest.$ac_ext >&5
18214
18215ac_header_compiler=no
18216fi
18217rm -f conftest.$ac_objext conftest.$ac_ext
18218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18219echo "${ECHO_T}$ac_header_compiler" >&6
18220
18221# Is the header present?
18222echo "$as_me:$LINENO: checking zlib.h presence" >&5
18223echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18224cat >conftest.$ac_ext <<_ACEOF
18225#line $LINENO "configure"
18226/* confdefs.h. */
18227_ACEOF
18228cat confdefs.h >>conftest.$ac_ext
18229cat >>conftest.$ac_ext <<_ACEOF
18230/* end confdefs.h. */
18231#include <zlib.h>
18232_ACEOF
18233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18235 ac_status=$?
18236 grep -v '^ *+' conftest.er1 >conftest.err
18237 rm -f conftest.er1
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } >/dev/null; then
18241 if test -s conftest.err; then
18242 ac_cpp_err=$ac_c_preproc_warn_flag
18243 else
18244 ac_cpp_err=
18245 fi
18246else
18247 ac_cpp_err=yes
18248fi
18249if test -z "$ac_cpp_err"; then
18250 ac_header_preproc=yes
18251else
18252 echo "$as_me: failed program was:" >&5
18253sed 's/^/| /' conftest.$ac_ext >&5
18254
18255 ac_header_preproc=no
18256fi
18257rm -f conftest.err conftest.$ac_ext
18258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18259echo "${ECHO_T}$ac_header_preproc" >&6
18260
18261# So? What about this header?
18262case $ac_header_compiler:$ac_header_preproc in
18263 yes:no )
18264 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18265echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18266 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18267echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18268 (
18269 cat <<\_ASBOX
18270## ------------------------------------ ##
18271## Report this to bug-autoconf@gnu.org. ##
18272## ------------------------------------ ##
18273_ASBOX
18274 ) |
18275 sed "s/^/$as_me: WARNING: /" >&2
18276 ;;
18277 no:yes )
18278 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18279echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18280 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18281echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18282 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18283echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18284 (
18285 cat <<\_ASBOX
18286## ------------------------------------ ##
18287## Report this to bug-autoconf@gnu.org. ##
18288## ------------------------------------ ##
18289_ASBOX
18290 ) |
18291 sed "s/^/$as_me: WARNING: /" >&2
18292 ;;
18293esac
18294echo "$as_me:$LINENO: checking for zlib.h" >&5
18295echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18296if test "${ac_cv_header_zlib_h+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18298else
e6cc62c6
VS
18299 ac_cv_header_zlib_h=$ac_header_preproc
18300fi
18301echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18302echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18303
89e6bf6d
VZ
18304fi
18305
d643b80e 18306
e6cc62c6 18307
d775acfa
VZ
18308 system_zlib_h_ok=$ac_cv_header_zlib_h
18309 fi
18310
18311 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18312 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18313echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18314if test "${ac_cv_lib_z_deflate+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18316else
e6cc62c6 18317 ac_check_lib_save_LIBS=$LIBS
21d1c967 18318LIBS="-lz $LIBS"
e6cc62c6
VS
18319cat >conftest.$ac_ext <<_ACEOF
18320#line $LINENO "configure"
18321/* confdefs.h. */
18322_ACEOF
18323cat confdefs.h >>conftest.$ac_ext
18324cat >>conftest.$ac_ext <<_ACEOF
18325/* end confdefs.h. */
18326
21d1c967 18327/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18328#ifdef __cplusplus
18329extern "C"
18330#endif
21d1c967 18331/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18332 builtin and then its argument prototype would still apply. */
18333char deflate ();
18334int
18335main ()
18336{
18337deflate ();
18338 ;
18339 return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext conftest$ac_exeext
18343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18344 (eval $ac_link) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
18348 { ac_try='test -s conftest$ac_exeext'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18354 ac_cv_lib_z_deflate=yes
18355else
18356 echo "$as_me: failed program was:" >&5
18357sed 's/^/| /' conftest.$ac_ext >&5
18358
18359ac_cv_lib_z_deflate=no
18360fi
18361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18362LIBS=$ac_check_lib_save_LIBS
18363fi
18364echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18365echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18366if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18367 ZLIB_LINK=" -lz"
a0b9e27f 18368fi
698dcdb6 18369
d643b80e 18370 fi
247f5006 18371
21d1c967
GD
18372 if test "x$ZLIB_LINK" = "x" ; then
18373 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18374 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18375echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18376 { (exit 1); exit 1; }; }
21d1c967 18377 else
e6cc62c6
VS
18378 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18379echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18380 wxUSE_ZLIB=builtin
18381 fi
18382 else
18383 wxUSE_ZLIB=sys
18384 fi
18385 fi
18386
18387 if test "$wxUSE_ZLIB" = "builtin" ; then
18388 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18389 fi
ab9b9eab
VZ
18390fi
18391
8284b0c5 18392
21d1c967
GD
18393PNG_INCLUDE=
18394PNG_LINK=
18395if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18396 cat >>confdefs.h <<\_ACEOF
21d1c967 18397#define wxUSE_LIBPNG 1
e6cc62c6 18398_ACEOF
90dd450c 18399
8284b0c5 18400
21d1c967 18401 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18402 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18403echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18404 wxUSE_LIBPNG=sys
18405 fi
90dd450c 18406
21d1c967 18407 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18408 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18409echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18410 wxUSE_LIBPNG=builtin
18411 fi
18412
18413 if test "$wxUSE_MGL" != 1 ; then
18414 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18415 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18416echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18417if test "${ac_cv_header_png_h+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18419else
18420 if test "$cross_compiling" = yes; then
89e6bf6d 18421 unset ac_cv_header_png_h
e6cc62c6 18422
5d3f766d 18423else
e6cc62c6
VS
18424 cat >conftest.$ac_ext <<_ACEOF
18425#line $LINENO "configure"
18426/* confdefs.h. */
18427_ACEOF
18428cat confdefs.h >>conftest.$ac_ext
18429cat >>conftest.$ac_ext <<_ACEOF
18430/* end confdefs.h. */
18431
ef33c576 18432 #include <png.h>
5d3f766d
VZ
18433 #include <stdio.h>
18434
18435 int main()
18436 {
18437 FILE *f=fopen("conftestval", "w");
18438 if (!f) exit(1);
18439 fprintf(f, "%s",
18440 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18441 exit(0);
18442 }
e6cc62c6
VS
18443
18444_ACEOF
18445rm -f conftest$ac_exeext
18446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18447 (eval $ac_link) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452 (eval $ac_try) 2>&5
18453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; }; then
5d3f766d
VZ
18456 ac_cv_header_png_h=`cat conftestval`
18457else
e6cc62c6
VS
18458 echo "$as_me: program exited with status $ac_status" >&5
18459echo "$as_me: failed program was:" >&5
18460sed 's/^/| /' conftest.$ac_ext >&5
18461
18462( exit $ac_status )
18463ac_cv_header_png_h=no
5d3f766d 18464fi
e6cc62c6 18465rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18466fi
18467
5d3f766d 18468fi
e6cc62c6
VS
18469echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18470echo "${ECHO_T}$ac_cv_header_png_h" >&6
18471 if test "${ac_cv_header_png_h+set}" = set; then
18472 echo "$as_me:$LINENO: checking for png.h" >&5
18473echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18474if test "${ac_cv_header_png_h+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18476fi
18477echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18478echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18479else
e6cc62c6
VS
18480 # Is the header compilable?
18481echo "$as_me:$LINENO: checking png.h usability" >&5
18482echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18483cat >conftest.$ac_ext <<_ACEOF
18484#line $LINENO "configure"
18485/* confdefs.h. */
18486_ACEOF
18487cat confdefs.h >>conftest.$ac_ext
18488cat >>conftest.$ac_ext <<_ACEOF
18489/* end confdefs.h. */
18490$ac_includes_default
89e6bf6d 18491#include <png.h>
e6cc62c6
VS
18492_ACEOF
18493rm -f conftest.$ac_objext
18494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18495 (eval $ac_compile) 2>&5
18496 ac_status=$?
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -s conftest.$ac_objext'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18502 ac_status=$?
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 ac_header_compiler=yes
18506else
18507 echo "$as_me: failed program was:" >&5
18508sed 's/^/| /' conftest.$ac_ext >&5
18509
18510ac_header_compiler=no
18511fi
18512rm -f conftest.$ac_objext conftest.$ac_ext
18513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18514echo "${ECHO_T}$ac_header_compiler" >&6
18515
18516# Is the header present?
18517echo "$as_me:$LINENO: checking png.h presence" >&5
18518echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18519cat >conftest.$ac_ext <<_ACEOF
18520#line $LINENO "configure"
18521/* confdefs.h. */
18522_ACEOF
18523cat confdefs.h >>conftest.$ac_ext
18524cat >>conftest.$ac_ext <<_ACEOF
18525/* end confdefs.h. */
18526#include <png.h>
18527_ACEOF
18528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18530 ac_status=$?
18531 grep -v '^ *+' conftest.er1 >conftest.err
18532 rm -f conftest.er1
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } >/dev/null; then
18536 if test -s conftest.err; then
18537 ac_cpp_err=$ac_c_preproc_warn_flag
18538 else
18539 ac_cpp_err=
18540 fi
18541else
18542 ac_cpp_err=yes
18543fi
18544if test -z "$ac_cpp_err"; then
18545 ac_header_preproc=yes
18546else
18547 echo "$as_me: failed program was:" >&5
18548sed 's/^/| /' conftest.$ac_ext >&5
18549
18550 ac_header_preproc=no
18551fi
18552rm -f conftest.err conftest.$ac_ext
18553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18554echo "${ECHO_T}$ac_header_preproc" >&6
18555
18556# So? What about this header?
18557case $ac_header_compiler:$ac_header_preproc in
18558 yes:no )
18559 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18560echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18561 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18562echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18563 (
18564 cat <<\_ASBOX
18565## ------------------------------------ ##
18566## Report this to bug-autoconf@gnu.org. ##
18567## ------------------------------------ ##
18568_ASBOX
18569 ) |
18570 sed "s/^/$as_me: WARNING: /" >&2
18571 ;;
18572 no:yes )
18573 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18574echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18575 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18576echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18577 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18578echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18579 (
18580 cat <<\_ASBOX
18581## ------------------------------------ ##
18582## Report this to bug-autoconf@gnu.org. ##
18583## ------------------------------------ ##
18584_ASBOX
18585 ) |
18586 sed "s/^/$as_me: WARNING: /" >&2
18587 ;;
18588esac
18589echo "$as_me:$LINENO: checking for png.h" >&5
18590echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18591if test "${ac_cv_header_png_h+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18593else
e6cc62c6
VS
18594 ac_cv_header_png_h=$ac_header_preproc
18595fi
18596echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18597echo "${ECHO_T}$ac_cv_header_png_h" >&6
18598
89e6bf6d
VZ
18599fi
18600
5d3f766d 18601
e6cc62c6 18602
5d3f766d 18603 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18604 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18605echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18606if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18608else
e6cc62c6 18609 ac_check_lib_save_LIBS=$LIBS
21d1c967 18610LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18611cat >conftest.$ac_ext <<_ACEOF
18612#line $LINENO "configure"
18613/* confdefs.h. */
18614_ACEOF
18615cat confdefs.h >>conftest.$ac_ext
18616cat >>conftest.$ac_ext <<_ACEOF
18617/* end confdefs.h. */
18618
21d1c967 18619/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18620#ifdef __cplusplus
18621extern "C"
18622#endif
21d1c967 18623/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18624 builtin and then its argument prototype would still apply. */
18625char png_check_sig ();
18626int
18627main ()
18628{
18629png_check_sig ();
18630 ;
18631 return 0;
18632}
18633_ACEOF
18634rm -f conftest.$ac_objext conftest$ac_exeext
18635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18636 (eval $ac_link) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); } &&
18640 { ac_try='test -s conftest$ac_exeext'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 ac_cv_lib_png_png_check_sig=yes
18647else
18648 echo "$as_me: failed program was:" >&5
18649sed 's/^/| /' conftest.$ac_ext >&5
18650
18651ac_cv_lib_png_png_check_sig=no
18652fi
18653rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18654LIBS=$ac_check_lib_save_LIBS
18655fi
18656echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18657echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18658if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18659 PNG_LINK=" -lpng"
a0b9e27f 18660fi
90dd450c 18661
5d3f766d 18662 fi
247f5006 18663
21d1c967
GD
18664 if test "x$PNG_LINK" = "x" ; then
18665 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18666 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18667echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18668 { (exit 1); exit 1; }; }
21d1c967 18669 else
e6cc62c6
VS
18670 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18671echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18672 wxUSE_LIBPNG=builtin
18673 fi
18674 else
2b5f62a0 18675 wxUSE_LIBPNG=sys
21d1c967
GD
18676 fi
18677 fi
18678 fi
90dd450c 18679
21d1c967
GD
18680 if test "$wxUSE_LIBPNG" = "builtin" ; then
18681 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18682 fi
90dd450c 18683
21d1c967 18684 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18685fi
18686
8284b0c5 18687
21d1c967
GD
18688JPEG_INCLUDE=
18689JPEG_LINK=
18690if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18691 cat >>confdefs.h <<\_ACEOF
21d1c967 18692#define wxUSE_LIBJPEG 1
e6cc62c6 18693_ACEOF
90dd450c 18694
8284b0c5 18695
21d1c967 18696 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18697 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18698echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18699 wxUSE_LIBJPEG=sys
18700 fi
90dd450c 18701
21d1c967
GD
18702 if test "$wxUSE_MGL" != 1 ; then
18703 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18704 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18705echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18706 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18708else
18709 cat >conftest.$ac_ext <<_ACEOF
18710#line $LINENO "configure"
18711/* confdefs.h. */
18712_ACEOF
18713cat confdefs.h >>conftest.$ac_ext
18714cat >>conftest.$ac_ext <<_ACEOF
18715/* end confdefs.h. */
90dd450c 18716
21d1c967
GD
18717 #undef HAVE_STDLIB_H
18718 #include <stdio.h>
18719 #include <jpeglib.h>
90dd450c 18720
e6cc62c6
VS
18721int
18722main ()
18723{
18724
18725
18726 ;
18727 return 0;
18728}
18729_ACEOF
18730rm -f conftest.$ac_objext
18731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18732 (eval $ac_compile) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } &&
18736 { ac_try='test -s conftest.$ac_objext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
21d1c967 18742 ac_cv_header_jpeglib_h=yes
90dd450c 18743else
e6cc62c6
VS
18744 echo "$as_me: failed program was:" >&5
18745sed 's/^/| /' conftest.$ac_ext >&5
18746
18747ac_cv_header_jpeglib_h=no
18748
90dd450c 18749fi
e6cc62c6
VS
18750rm -f conftest.$ac_objext conftest.$ac_ext
18751
90dd450c
VZ
18752fi
18753
e6cc62c6
VS
18754 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18755echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18756
21d1c967 18757 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18758 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18759echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18760if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18762else
e6cc62c6 18763 ac_check_lib_save_LIBS=$LIBS
21d1c967 18764LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18765cat >conftest.$ac_ext <<_ACEOF
18766#line $LINENO "configure"
18767/* confdefs.h. */
18768_ACEOF
18769cat confdefs.h >>conftest.$ac_ext
18770cat >>conftest.$ac_ext <<_ACEOF
18771/* end confdefs.h. */
18772
21d1c967 18773/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18774#ifdef __cplusplus
18775extern "C"
18776#endif
21d1c967 18777/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18778 builtin and then its argument prototype would still apply. */
18779char jpeg_read_header ();
18780int
18781main ()
18782{
18783jpeg_read_header ();
18784 ;
18785 return 0;
18786}
18787_ACEOF
18788rm -f conftest.$ac_objext conftest$ac_exeext
18789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18790 (eval $ac_link) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } &&
18794 { ac_try='test -s conftest$ac_exeext'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_cv_lib_jpeg_jpeg_read_header=yes
18801else
18802 echo "$as_me: failed program was:" >&5
18803sed 's/^/| /' conftest.$ac_ext >&5
18804
18805ac_cv_lib_jpeg_jpeg_read_header=no
18806fi
18807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18808LIBS=$ac_check_lib_save_LIBS
18809fi
18810echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18811echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18812if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18813 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18814fi
18815
21d1c967 18816 fi
90dd450c 18817
21d1c967
GD
18818 if test "x$JPEG_LINK" = "x" ; then
18819 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18820 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18821echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18822 { (exit 1); exit 1; }; }
21d1c967 18823 else
e6cc62c6
VS
18824 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18825echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18826 wxUSE_LIBJPEG=builtin
18827 fi
18828 else
18829 wxUSE_LIBJPEG=sys
18830 fi
18831 fi
18832 fi
90dd450c 18833
21d1c967
GD
18834 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18835 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18836 fi
18837fi
90dd450c 18838
8284b0c5 18839
21d1c967
GD
18840TIFF_INCLUDE=
18841TIFF_LINK=
2b5f62a0 18842TIFF_PREREQ_LINKS=-lm
21d1c967 18843if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18844 cat >>confdefs.h <<\_ACEOF
21d1c967 18845#define wxUSE_LIBTIFF 1
e6cc62c6 18846_ACEOF
21d1c967 18847
8284b0c5 18848
21d1c967 18849 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18850 if test "$wxUSE_LIBJPEG" = "sys"; then
18851 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18852 fi
18853 if test "$wxUSE_ZLIB" = "sys"; then
18854 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18855 fi
e6cc62c6
VS
18856 if test "${ac_cv_header_tiffio_h+set}" = set; then
18857 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18858echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18859if test "${ac_cv_header_tiffio_h+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18861fi
18862echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18863echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18864else
18865 # Is the header compilable?
18866echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18867echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18868cat >conftest.$ac_ext <<_ACEOF
18869#line $LINENO "configure"
18870/* confdefs.h. */
18871_ACEOF
18872cat confdefs.h >>conftest.$ac_ext
18873cat >>conftest.$ac_ext <<_ACEOF
18874/* end confdefs.h. */
18875$ac_includes_default
247f5006 18876#include <tiffio.h>
e6cc62c6
VS
18877_ACEOF
18878rm -f conftest.$ac_objext
18879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18880 (eval $ac_compile) 2>&5
18881 ac_status=$?
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try='test -s conftest.$ac_objext'
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; }; then
18890 ac_header_compiler=yes
18891else
18892 echo "$as_me: failed program was:" >&5
18893sed 's/^/| /' conftest.$ac_ext >&5
18894
18895ac_header_compiler=no
18896fi
18897rm -f conftest.$ac_objext conftest.$ac_ext
18898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18899echo "${ECHO_T}$ac_header_compiler" >&6
18900
18901# Is the header present?
18902echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18903echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18904cat >conftest.$ac_ext <<_ACEOF
18905#line $LINENO "configure"
18906/* confdefs.h. */
18907_ACEOF
18908cat confdefs.h >>conftest.$ac_ext
18909cat >>conftest.$ac_ext <<_ACEOF
18910/* end confdefs.h. */
18911#include <tiffio.h>
18912_ACEOF
18913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18915 ac_status=$?
18916 grep -v '^ *+' conftest.er1 >conftest.err
18917 rm -f conftest.er1
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } >/dev/null; then
18921 if test -s conftest.err; then
18922 ac_cpp_err=$ac_c_preproc_warn_flag
18923 else
18924 ac_cpp_err=
18925 fi
18926else
18927 ac_cpp_err=yes
18928fi
18929if test -z "$ac_cpp_err"; then
18930 ac_header_preproc=yes
18931else
18932 echo "$as_me: failed program was:" >&5
18933sed 's/^/| /' conftest.$ac_ext >&5
18934
18935 ac_header_preproc=no
18936fi
18937rm -f conftest.err conftest.$ac_ext
18938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18939echo "${ECHO_T}$ac_header_preproc" >&6
18940
18941# So? What about this header?
18942case $ac_header_compiler:$ac_header_preproc in
18943 yes:no )
18944 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18945echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18946 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18947echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18948 (
18949 cat <<\_ASBOX
18950## ------------------------------------ ##
18951## Report this to bug-autoconf@gnu.org. ##
18952## ------------------------------------ ##
18953_ASBOX
18954 ) |
18955 sed "s/^/$as_me: WARNING: /" >&2
18956 ;;
18957 no:yes )
18958 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18959echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18960 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18961echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18962 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18963echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18964 (
18965 cat <<\_ASBOX
18966## ------------------------------------ ##
18967## Report this to bug-autoconf@gnu.org. ##
18968## ------------------------------------ ##
18969_ASBOX
18970 ) |
18971 sed "s/^/$as_me: WARNING: /" >&2
18972 ;;
18973esac
18974echo "$as_me:$LINENO: checking for tiffio.h" >&5
18975echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18976if test "${ac_cv_header_tiffio_h+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18978else
18979 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 18980fi
e6cc62c6
VS
18981echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18982echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18983
21d1c967 18984fi
e6cc62c6
VS
18985if test $ac_cv_header_tiffio_h = yes; then
18986 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18987echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
18988if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 18990else
e6cc62c6 18991 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 18992LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
18993cat >conftest.$ac_ext <<_ACEOF
18994#line $LINENO "configure"
18995/* confdefs.h. */
18996_ACEOF
18997cat confdefs.h >>conftest.$ac_ext
18998cat >>conftest.$ac_ext <<_ACEOF
18999/* end confdefs.h. */
19000
ab9b9eab 19001/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19002#ifdef __cplusplus
19003extern "C"
19004#endif
ab9b9eab 19005/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19006 builtin and then its argument prototype would still apply. */
19007char TIFFError ();
19008int
19009main ()
19010{
19011TIFFError ();
19012 ;
19013 return 0;
19014}
19015_ACEOF
19016rm -f conftest.$ac_objext conftest$ac_exeext
19017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19018 (eval $ac_link) 2>&5
19019 ac_status=$?
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
19022 { ac_try='test -s conftest$ac_exeext'
19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024 (eval $ac_try) 2>&5
19025 ac_status=$?
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; }; then
19028 ac_cv_lib_tiff_TIFFError=yes
19029else
19030 echo "$as_me: failed program was:" >&5
19031sed 's/^/| /' conftest.$ac_ext >&5
19032
19033ac_cv_lib_tiff_TIFFError=no
19034fi
19035rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19036LIBS=$ac_check_lib_save_LIBS
19037fi
19038echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19039echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19040if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19041 TIFF_LINK=" -ltiff"
a0b9e27f 19042fi
cd6d6d5b 19043
e6cc62c6 19044
a0b9e27f 19045fi
8284b0c5 19046
247f5006 19047
e6cc62c6 19048
21d1c967
GD
19049 if test "x$TIFF_LINK" = "x" ; then
19050 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19051 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19052echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19053 { (exit 1); exit 1; }; }
90dd450c 19054 else
e6cc62c6
VS
19055 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19056echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19057 wxUSE_LIBTIFF=builtin
d8356fa3 19058 fi
d8356fa3 19059 else
21d1c967 19060 wxUSE_LIBTIFF=sys
d8356fa3 19061 fi
21d1c967 19062 fi
d8356fa3 19063
21d1c967
GD
19064 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19065 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19066 fi
21d1c967 19067fi
10f2d63a 19068
8284b0c5 19069
672abd7a
VS
19070if test "$wxUSE_EXPAT" != "no"; then
19071 wxUSE_XML=1
19072 cat >>confdefs.h <<\_ACEOF
19073#define wxUSE_EXPAT 1
19074_ACEOF
19075
19076 cat >>confdefs.h <<\_ACEOF
19077#define wxUSE_XML 1
19078_ACEOF
19079
19080
19081 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19082 if test "${ac_cv_header_expat_h+set}" = set; then
19083 echo "$as_me:$LINENO: checking for expat.h" >&5
19084echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19085if test "${ac_cv_header_expat_h+set}" = set; then
19086 echo $ECHO_N "(cached) $ECHO_C" >&6
19087fi
19088echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19089echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19090else
19091 # Is the header compilable?
19092echo "$as_me:$LINENO: checking expat.h usability" >&5
19093echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19094cat >conftest.$ac_ext <<_ACEOF
19095#line $LINENO "configure"
19096/* confdefs.h. */
19097_ACEOF
19098cat confdefs.h >>conftest.$ac_ext
19099cat >>conftest.$ac_ext <<_ACEOF
19100/* end confdefs.h. */
19101$ac_includes_default
19102#include <expat.h>
19103_ACEOF
19104rm -f conftest.$ac_objext
19105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19106 (eval $ac_compile) 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
19110 { ac_try='test -s conftest.$ac_objext'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_header_compiler=yes
19117else
19118 echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121ac_header_compiler=no
19122fi
19123rm -f conftest.$ac_objext conftest.$ac_ext
19124echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19125echo "${ECHO_T}$ac_header_compiler" >&6
19126
19127# Is the header present?
19128echo "$as_me:$LINENO: checking expat.h presence" >&5
19129echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19130cat >conftest.$ac_ext <<_ACEOF
19131#line $LINENO "configure"
19132/* confdefs.h. */
19133_ACEOF
19134cat confdefs.h >>conftest.$ac_ext
19135cat >>conftest.$ac_ext <<_ACEOF
19136/* end confdefs.h. */
19137#include <expat.h>
19138_ACEOF
19139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19141 ac_status=$?
19142 grep -v '^ *+' conftest.er1 >conftest.err
19143 rm -f conftest.er1
19144 cat conftest.err >&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } >/dev/null; then
19147 if test -s conftest.err; then
19148 ac_cpp_err=$ac_c_preproc_warn_flag
19149 else
19150 ac_cpp_err=
19151 fi
19152else
19153 ac_cpp_err=yes
19154fi
19155if test -z "$ac_cpp_err"; then
19156 ac_header_preproc=yes
19157else
19158 echo "$as_me: failed program was:" >&5
19159sed 's/^/| /' conftest.$ac_ext >&5
19160
19161 ac_header_preproc=no
19162fi
19163rm -f conftest.err conftest.$ac_ext
19164echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19165echo "${ECHO_T}$ac_header_preproc" >&6
19166
19167# So? What about this header?
19168case $ac_header_compiler:$ac_header_preproc in
19169 yes:no )
19170 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19171echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19172 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19173echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19174 (
19175 cat <<\_ASBOX
19176## ------------------------------------ ##
19177## Report this to bug-autoconf@gnu.org. ##
19178## ------------------------------------ ##
19179_ASBOX
19180 ) |
19181 sed "s/^/$as_me: WARNING: /" >&2
19182 ;;
19183 no:yes )
19184 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19185echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19186 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19187echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19188 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19189echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19190 (
19191 cat <<\_ASBOX
19192## ------------------------------------ ##
19193## Report this to bug-autoconf@gnu.org. ##
19194## ------------------------------------ ##
19195_ASBOX
19196 ) |
19197 sed "s/^/$as_me: WARNING: /" >&2
19198 ;;
19199esac
19200echo "$as_me:$LINENO: checking for expat.h" >&5
19201echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19202if test "${ac_cv_header_expat_h+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19204else
19205 ac_cv_header_expat_h=$ac_header_preproc
19206fi
19207echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19208echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19209
19210fi
5f0b6dff
VS
19211if test $ac_cv_header_expat_h = yes; then
19212 found_expat_h=1
19213fi
19214
19215
19216 if test "x$found_expat_h" = "x1"; then
19217 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19218echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19219if test "${wx_cv_expat_is_not_broken+set}" = set; then
19220 echo $ECHO_N "(cached) $ECHO_C" >&6
19221else
19222
19223
672abd7a 19224
5f0b6dff
VS
19225 ac_ext=cc
19226ac_cpp='$CXXCPP $CPPFLAGS'
19227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19230
19231 cat >conftest.$ac_ext <<_ACEOF
19232#line $LINENO "configure"
19233/* confdefs.h. */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
19237/* end confdefs.h. */
19238#include <expat.h>
19239int
19240main ()
19241{
672abd7a 19242
5f0b6dff
VS
19243 ;
19244 return 0;
19245}
19246_ACEOF
19247rm -f conftest.$ac_objext
19248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19249 (eval $ac_compile) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } &&
19253 { ac_try='test -s conftest.$ac_objext'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19259 wx_cv_expat_is_not_broken=yes
19260else
19261 echo "$as_me: failed program was:" >&5
19262sed 's/^/| /' conftest.$ac_ext >&5
19263
19264wx_cv_expat_is_not_broken=no
19265
19266fi
19267rm -f conftest.$ac_objext conftest.$ac_ext
19268 ac_ext=c
19269ac_cpp='$CPP $CPPFLAGS'
19270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19272ac_compiler_gnu=$ac_cv_c_compiler_gnu
19273
19274
19275
19276fi
19277echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19278echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19279 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19280 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19281echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19282if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19284else
19285 ac_check_lib_save_LIBS=$LIBS
19286LIBS="-lexpat $LIBS"
19287cat >conftest.$ac_ext <<_ACEOF
19288#line $LINENO "configure"
19289/* confdefs.h. */
19290_ACEOF
19291cat confdefs.h >>conftest.$ac_ext
19292cat >>conftest.$ac_ext <<_ACEOF
19293/* end confdefs.h. */
19294
19295/* Override any gcc2 internal prototype to avoid an error. */
19296#ifdef __cplusplus
19297extern "C"
19298#endif
19299/* We use char because int might match the return type of a gcc2
19300 builtin and then its argument prototype would still apply. */
19301char XML_ParserCreate ();
19302int
19303main ()
19304{
19305XML_ParserCreate ();
19306 ;
19307 return 0;
19308}
19309_ACEOF
19310rm -f conftest.$ac_objext conftest$ac_exeext
19311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312 (eval $ac_link) 2>&5
19313 ac_status=$?
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } &&
19316 { ac_try='test -s conftest$ac_exeext'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 ac_cv_lib_expat_XML_ParserCreate=yes
19323else
19324 echo "$as_me: failed program was:" >&5
19325sed 's/^/| /' conftest.$ac_ext >&5
19326
19327ac_cv_lib_expat_XML_ParserCreate=no
19328fi
19329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19330LIBS=$ac_check_lib_save_LIBS
19331fi
19332echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19333echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19334if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19335 EXPAT_LINK=" -lexpat"
19336fi
19337
5f0b6dff 19338 fi
672abd7a
VS
19339 fi
19340 if test "x$EXPAT_LINK" = "x" ; then
19341 if test "$wxUSE_EXPAT" = "sys" ; then
19342 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19343echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19344 { (exit 1); exit 1; }; }
19345 else
19346 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19347echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19348 wxUSE_EXPAT=builtin
19349 fi
19350 else
19351 wxUSE_EXPAT=sys
19352 fi
19353 fi
19354 if test "$wxUSE_EXPAT" = "builtin" ; then
19355
19356
19357subdirs="$subdirs src/expat"
19358
19359 fi
19360fi
19361
19362
19363
21d1c967 19364AFMINSTALL=
2b5f62a0 19365WIN32INSTALL=
90dd450c 19366
21d1c967
GD
19367TOOLKIT=
19368TOOLKIT_INCLUDE=
19369WIDGET_SET=
19370
19371if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19372
19373for ac_header in w32api.h
21d1c967 19374do
e6cc62c6
VS
19375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19376if eval "test \"\${$as_ac_Header+set}\" = set"; then
19377 echo "$as_me:$LINENO: checking for $ac_header" >&5
19378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19379if eval "test \"\${$as_ac_Header+set}\" = set"; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19381fi
19382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19384else
19385 # Is the header compilable?
19386echo "$as_me:$LINENO: checking $ac_header usability" >&5
19387echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19388cat >conftest.$ac_ext <<_ACEOF
19389#line $LINENO "configure"
19390/* confdefs.h. */
19391_ACEOF
19392cat confdefs.h >>conftest.$ac_ext
19393cat >>conftest.$ac_ext <<_ACEOF
19394/* end confdefs.h. */
19395$ac_includes_default
19396#include <$ac_header>
19397_ACEOF
19398rm -f conftest.$ac_objext
19399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19400 (eval $ac_compile) 2>&5
19401 ac_status=$?
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try='test -s conftest.$ac_objext'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
19410 ac_header_compiler=yes
19411else
19412 echo "$as_me: failed program was:" >&5
19413sed 's/^/| /' conftest.$ac_ext >&5
19414
19415ac_header_compiler=no
19416fi
19417rm -f conftest.$ac_objext conftest.$ac_ext
19418echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19419echo "${ECHO_T}$ac_header_compiler" >&6
19420
19421# Is the header present?
19422echo "$as_me:$LINENO: checking $ac_header presence" >&5
19423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19424cat >conftest.$ac_ext <<_ACEOF
19425#line $LINENO "configure"
19426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
19431#include <$ac_header>
19432_ACEOF
19433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } >/dev/null; then
19441 if test -s conftest.err; then
19442 ac_cpp_err=$ac_c_preproc_warn_flag
19443 else
19444 ac_cpp_err=
19445 fi
19446else
19447 ac_cpp_err=yes
19448fi
19449if test -z "$ac_cpp_err"; then
19450 ac_header_preproc=yes
19451else
19452 echo "$as_me: failed program was:" >&5
19453sed 's/^/| /' conftest.$ac_ext >&5
19454
19455 ac_header_preproc=no
19456fi
19457rm -f conftest.err conftest.$ac_ext
19458echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19459echo "${ECHO_T}$ac_header_preproc" >&6
19460
19461# So? What about this header?
19462case $ac_header_compiler:$ac_header_preproc in
19463 yes:no )
19464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19465echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19468 (
19469 cat <<\_ASBOX
19470## ------------------------------------ ##
19471## Report this to bug-autoconf@gnu.org. ##
19472## ------------------------------------ ##
19473_ASBOX
19474 ) |
19475 sed "s/^/$as_me: WARNING: /" >&2
19476 ;;
19477 no:yes )
19478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19481echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19484 (
19485 cat <<\_ASBOX
19486## ------------------------------------ ##
19487## Report this to bug-autoconf@gnu.org. ##
19488## ------------------------------------ ##
19489_ASBOX
19490 ) |
19491 sed "s/^/$as_me: WARNING: /" >&2
19492 ;;
19493esac
19494echo "$as_me:$LINENO: checking for $ac_header" >&5
19495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19496if eval "test \"\${$as_ac_Header+set}\" = set"; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498else
19499 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19500fi
e6cc62c6
VS
19501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19503
21d1c967 19504fi
e6cc62c6
VS
19505if test `eval echo '${'$as_ac_Header'}'` = yes; then
19506 cat >>confdefs.h <<_ACEOF
19507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19508_ACEOF
19509
21d1c967 19510fi
e6cc62c6 19511
21d1c967 19512done
f79bd02d 19513
e6cc62c6
VS
19514 if test "${ac_cv_header_windows_h+set}" = set; then
19515 echo "$as_me:$LINENO: checking for windows.h" >&5
19516echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19517if test "${ac_cv_header_windows_h+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19519fi
19520echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19521echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19522else
19523 # Is the header compilable?
19524echo "$as_me:$LINENO: checking windows.h usability" >&5
19525echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19526cat >conftest.$ac_ext <<_ACEOF
19527#line $LINENO "configure"
19528/* confdefs.h. */
19529_ACEOF
19530cat confdefs.h >>conftest.$ac_ext
19531cat >>conftest.$ac_ext <<_ACEOF
19532/* end confdefs.h. */
19533$ac_includes_default
247f5006 19534#include <windows.h>
e6cc62c6
VS
19535_ACEOF
19536rm -f conftest.$ac_objext
19537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19538 (eval $ac_compile) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -s conftest.$ac_objext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 ac_header_compiler=yes
19549else
19550 echo "$as_me: failed program was:" >&5
19551sed 's/^/| /' conftest.$ac_ext >&5
19552
19553ac_header_compiler=no
19554fi
19555rm -f conftest.$ac_objext conftest.$ac_ext
19556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19557echo "${ECHO_T}$ac_header_compiler" >&6
19558
19559# Is the header present?
19560echo "$as_me:$LINENO: checking windows.h presence" >&5
19561echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19562cat >conftest.$ac_ext <<_ACEOF
19563#line $LINENO "configure"
19564/* confdefs.h. */
19565_ACEOF
19566cat confdefs.h >>conftest.$ac_ext
19567cat >>conftest.$ac_ext <<_ACEOF
19568/* end confdefs.h. */
19569#include <windows.h>
19570_ACEOF
19571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } >/dev/null; then
19579 if test -s conftest.err; then
19580 ac_cpp_err=$ac_c_preproc_warn_flag
19581 else
19582 ac_cpp_err=
19583 fi
19584else
19585 ac_cpp_err=yes
19586fi
19587if test -z "$ac_cpp_err"; then
19588 ac_header_preproc=yes
19589else
19590 echo "$as_me: failed program was:" >&5
19591sed 's/^/| /' conftest.$ac_ext >&5
19592
19593 ac_header_preproc=no
19594fi
19595rm -f conftest.err conftest.$ac_ext
19596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19597echo "${ECHO_T}$ac_header_preproc" >&6
19598
19599# So? What about this header?
19600case $ac_header_compiler:$ac_header_preproc in
19601 yes:no )
19602 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19603echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19604 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19605echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19606 (
19607 cat <<\_ASBOX
19608## ------------------------------------ ##
19609## Report this to bug-autoconf@gnu.org. ##
19610## ------------------------------------ ##
19611_ASBOX
19612 ) |
19613 sed "s/^/$as_me: WARNING: /" >&2
19614 ;;
19615 no:yes )
19616 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19617echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19618 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19619echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19620 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19621echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19622 (
19623 cat <<\_ASBOX
19624## ------------------------------------ ##
19625## Report this to bug-autoconf@gnu.org. ##
19626## ------------------------------------ ##
19627_ASBOX
19628 ) |
19629 sed "s/^/$as_me: WARNING: /" >&2
19630 ;;
19631esac
19632echo "$as_me:$LINENO: checking for windows.h" >&5
19633echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19634if test "${ac_cv_header_windows_h+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19636else
19637 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19638fi
e6cc62c6
VS
19639echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19640echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19641
90dd450c 19642fi
e6cc62c6 19643if test $ac_cv_header_windows_h = yes; then
21d1c967 19644 :
90dd450c 19645else
21d1c967 19646
e6cc62c6
VS
19647 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19648echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19649 { (exit 1); exit 1; }; }
19650
5c6fa7d2 19651fi
7b4a847f 19652
5c6fa7d2 19653
e6cc62c6 19654
b3dfbbc9 19655 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19656
7bb2947d
MB
19657 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19658 LIBS="$LIBS -loleacc"
19659 fi
19660
21d1c967
GD
19661 case "${host}" in
19662 *-*-cygwin* )
b3dfbbc9 19663 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19664 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19665 esac
f79bd02d 19666
8647bec6
RG
19667 if test "$wxUSE_ODBC" = "sys" ; then
19668 wxUSE_ODBC = "yes"
21d1c967 19669 fi
8647bec6
RG
19670 if test "$wxUSE_ODBC" = "yes" ; then
19671 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19672 cat >>confdefs.h <<\_ACEOF
8647bec6 19673#define wxUSE_ODBC 1
e6cc62c6 19674_ACEOF
f79bd02d 19675
8647bec6 19676 fi
e6cc62c6 19677
21d1c967
GD
19678 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19679 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19680
19681 WIN32INSTALL=win32install
f79bd02d 19682fi
f79bd02d 19683
21d1c967
GD
19684if test "$wxUSE_GUI" = "yes"; then
19685 USE_GUI=1
f79bd02d 19686
21d1c967 19687 GUI_TK_LIBRARY=
f79bd02d 19688
21d1c967
GD
19689 WXGTK12=
19690 WXGTK127=
19691 WXGTK20=
f79bd02d 19692
21d1c967
GD
19693 if test "$wxUSE_MSW" = 1 ; then
19694 TOOLKIT=MSW
19695 GUIDIST=MSW_DIST
f79bd02d
JS
19696 fi
19697
21d1c967 19698 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19699 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19700echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19701
19702 gtk_version_cached=1
e6cc62c6
VS
19703 if test "${wx_cv_lib_gtk+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19705else
e6cc62c6 19706
21d1c967 19707 gtk_version_cached=0
e6cc62c6
VS
19708 echo "$as_me:$LINENO: result: " >&5
19709echo "${ECHO_T}" >&6
f79bd02d 19710
21d1c967
GD
19711 GTK_MODULES=
19712 if test "$wxUSE_THREADS" = "yes"; then
19713 GTK_MODULES=gthread
19714 fi
f79bd02d 19715
2b5f62a0 19716 wx_cv_lib_gtk=
21d1c967
GD
19717 if test "x$wxUSE_GTK2" = "xyes"; then
19718 # Check whether --enable-gtktest or --disable-gtktest was given.
19719if test "${enable_gtktest+set}" = set; then
19720 enableval="$enable_gtktest"
e6cc62c6 19721
f79bd02d 19722else
21d1c967 19723 enable_gtktest=yes
e6cc62c6 19724fi;
f79bd02d 19725
21d1c967
GD
19726 pkg_config_args=gtk+-2.0
19727 for module in . $GTK_MODULES
19728 do
19729 case "$module" in
e6cc62c6 19730 gthread)
21d1c967
GD
19731 pkg_config_args="$pkg_config_args gthread-2.0"
19732 ;;
19733 esac
19734 done
19735
19736 no_gtk=""
f79bd02d 19737
21d1c967
GD
19738 # Extract the first word of "pkg-config", so it can be a program name with args.
19739set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19740echo "$as_me:$LINENO: checking for $ac_word" >&5
19741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19742if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19744else
e6cc62c6
VS
19745 case $PKG_CONFIG in
19746 [\\/]* | ?:[\\/]*)
21d1c967
GD
19747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19748 ;;
21d1c967 19749 *)
e6cc62c6
VS
19750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19751for as_dir in $PATH
19752do
19753 IFS=$as_save_IFS
19754 test -z "$as_dir" && as_dir=.
19755 for ac_exec_ext in '' $ac_executable_extensions; do
19756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19759 break 2
19760 fi
19761done
19762done
19763
21d1c967
GD
19764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19765 ;;
19766esac
f79bd02d 19767fi
e6cc62c6
VS
19768PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19769
21d1c967 19770if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19771 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19772echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19773else
e6cc62c6
VS
19774 echo "$as_me:$LINENO: result: no" >&5
19775echo "${ECHO_T}no" >&6
f79bd02d
JS
19776fi
19777
8284b0c5 19778
21d1c967
GD
19779 if test x$PKG_CONFIG != xno ; then
19780 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19781 :
19782 else
19783 echo *** pkg-config too old; version 0.7 or better required.
19784 no_gtk=yes
19785 PKG_CONFIG=no
19786 fi
19787 else
19788 no_gtk=yes
19789 fi
f79bd02d 19790
21d1c967 19791 min_gtk_version=2.0.0
e6cc62c6
VS
19792 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19793echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19794
21d1c967
GD
19795 if test x$PKG_CONFIG != xno ; then
19796 ## don't try to run the test against uninstalled libtool libs
19797 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19798 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19799 enable_gtktest=no
19800 fi
f79bd02d 19801
21d1c967
GD
19802 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19803 :
19804 else
19805 no_gtk=yes
19806 fi
19807 fi
f79bd02d 19808
21d1c967
GD
19809 if test x"$no_gtk" = x ; then
19810 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19811 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19812 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19813 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19814 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19815 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19816 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19817 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19818 if test "x$enable_gtktest" = "xyes" ; then
19819 ac_save_CFLAGS="$CFLAGS"
19820 ac_save_LIBS="$LIBS"
19821 CFLAGS="$CFLAGS $GTK_CFLAGS"
19822 LIBS="$GTK_LIBS $LIBS"
19823 rm -f conf.gtktest
19824 if test "$cross_compiling" = yes; then
19825 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19826else
e6cc62c6
VS
19827 cat >conftest.$ac_ext <<_ACEOF
19828#line $LINENO "configure"
19829/* confdefs.h. */
19830_ACEOF
19831cat confdefs.h >>conftest.$ac_ext
19832cat >>conftest.$ac_ext <<_ACEOF
19833/* end confdefs.h. */
f79bd02d 19834
21d1c967
GD
19835#include <gtk/gtk.h>
19836#include <stdio.h>
19837#include <stdlib.h>
f79bd02d 19838
e6cc62c6 19839int
21d1c967
GD
19840main ()
19841{
19842 int major, minor, micro;
19843 char *tmp_version;
f79bd02d 19844
21d1c967 19845 system ("touch conf.gtktest");
f79bd02d 19846
21d1c967
GD
19847 /* HP/UX 9 (%@#!) writes to sscanf strings */
19848 tmp_version = g_strdup("$min_gtk_version");
19849 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19850 printf("%s, bad version string\n", "$min_gtk_version");
19851 exit(1);
19852 }
f79bd02d 19853
21d1c967
GD
19854 if ((gtk_major_version != $gtk_config_major_version) ||
19855 (gtk_minor_version != $gtk_config_minor_version) ||
19856 (gtk_micro_version != $gtk_config_micro_version))
19857 {
e6cc62c6 19858 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19859 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19860 gtk_major_version, gtk_minor_version, gtk_micro_version);
19861 printf ("*** was found! If pkg-config was correct, then it is best\n");
19862 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19863 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19864 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19865 printf("*** required on your system.\n");
19866 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19867 printf("*** to point to the correct configuration files\n");
e6cc62c6 19868 }
21d1c967
GD
19869 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19870 (gtk_minor_version != GTK_MINOR_VERSION) ||
19871 (gtk_micro_version != GTK_MICRO_VERSION))
19872 {
19873 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19874 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19875 printf("*** library (version %d.%d.%d)\n",
19876 gtk_major_version, gtk_minor_version, gtk_micro_version);
19877 }
19878 else
19879 {
19880 if ((gtk_major_version > major) ||
19881 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19882 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19883 {
19884 return 0;
19885 }
19886 else
19887 {
19888 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19889 gtk_major_version, gtk_minor_version, gtk_micro_version);
19890 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19891 major, minor, micro);
19892 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19893 printf("***\n");
19894 printf("*** If you have already installed a sufficiently new version, this error\n");
19895 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19896 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19897 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19898 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19899 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19900 printf("*** so that the correct libraries are found at run-time))\n");
19901 }
19902 }
19903 return 1;
19904}
f79bd02d 19905
e6cc62c6
VS
19906_ACEOF
19907rm -f conftest$ac_exeext
19908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19909 (eval $ac_link) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
21d1c967 19918 :
f79bd02d 19919else
e6cc62c6
VS
19920 echo "$as_me: program exited with status $ac_status" >&5
19921echo "$as_me: failed program was:" >&5
19922sed 's/^/| /' conftest.$ac_ext >&5
19923
19924( exit $ac_status )
19925no_gtk=yes
f79bd02d 19926fi
e6cc62c6 19927rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 19928fi
21d1c967
GD
19929 CFLAGS="$ac_save_CFLAGS"
19930 LIBS="$ac_save_LIBS"
19931 fi
19932 fi
19933 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19934 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19935echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19936 wx_cv_lib_gtk=2.0
21d1c967 19937 else
e6cc62c6
VS
19938 echo "$as_me:$LINENO: result: no" >&5
19939echo "${ECHO_T}no" >&6
21d1c967
GD
19940 if test "$PKG_CONFIG" = "no" ; then
19941 echo "*** A new enough version of pkg-config was not found."
19942 echo "*** See http://pkgconfig.sourceforge.net"
19943 else
19944 if test -f conf.gtktest ; then
19945 :
19946 else
19947 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
19948 ac_save_CFLAGS="$CFLAGS"
19949 ac_save_LIBS="$LIBS"
21d1c967
GD
19950 CFLAGS="$CFLAGS $GTK_CFLAGS"
19951 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19952 cat >conftest.$ac_ext <<_ACEOF
19953#line $LINENO "configure"
19954/* confdefs.h. */
19955_ACEOF
19956cat confdefs.h >>conftest.$ac_ext
19957cat >>conftest.$ac_ext <<_ACEOF
19958/* end confdefs.h. */
21d1c967
GD
19959
19960#include <gtk/gtk.h>
19961#include <stdio.h>
f79bd02d 19962
e6cc62c6
VS
19963int
19964main ()
19965{
19966 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19967 ;
19968 return 0;
19969}
19970_ACEOF
19971rm -f conftest.$ac_objext conftest$ac_exeext
19972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19973 (eval $ac_link) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -s conftest$ac_exeext'
19978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979 (eval $ac_try) 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
21d1c967
GD
19983 echo "*** The test program compiled, but did not run. This usually means"
19984 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
19985 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
19986 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19987 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19988 echo "*** is required on your system"
19989 echo "***"
19990 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 19991 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 19992else
e6cc62c6
VS
19993 echo "$as_me: failed program was:" >&5
19994sed 's/^/| /' conftest.$ac_ext >&5
19995
19996 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 19997 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 19998fi
e6cc62c6 19999rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20000 CFLAGS="$ac_save_CFLAGS"
20001 LIBS="$ac_save_LIBS"
20002 fi
20003 fi
20004 GTK_CFLAGS=""
20005 GTK_LIBS=""
20006 :
20007 fi
e6cc62c6
VS
20008
20009
21d1c967 20010 rm -f conf.gtktest
f79bd02d 20011
2b5f62a0 20012 else
e6cc62c6
VS
20013
20014# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20015if test "${with_gtk_prefix+set}" = set; then
20016 withval="$with_gtk_prefix"
20017 gtk_config_prefix="$withval"
20018else
20019 gtk_config_prefix=""
e6cc62c6 20020fi;
f79bd02d 20021
21d1c967
GD
20022# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20023if test "${with_gtk_exec_prefix+set}" = set; then
20024 withval="$with_gtk_exec_prefix"
20025 gtk_config_exec_prefix="$withval"
20026else
20027 gtk_config_exec_prefix=""
e6cc62c6 20028fi;
21d1c967
GD
20029# Check whether --enable-gtktest or --disable-gtktest was given.
20030if test "${enable_gtktest+set}" = set; then
20031 enableval="$enable_gtktest"
e6cc62c6 20032
21d1c967
GD
20033else
20034 enable_gtktest=yes
e6cc62c6 20035fi;
21d1c967
GD
20036
20037 for module in . $GTK_MODULES
20038 do
20039 case "$module" in
e6cc62c6 20040 gthread)
21d1c967
GD
20041 gtk_config_args="$gtk_config_args gthread"
20042 ;;
20043 esac
20044 done
20045
20046 if test x$gtk_config_exec_prefix != x ; then
20047 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20048 if test x${GTK_CONFIG+set} != xset ; then
20049 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20050 fi
20051 fi
20052 if test x$gtk_config_prefix != x ; then
20053 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20054 if test x${GTK_CONFIG+set} != xset ; then
20055 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20056 fi
20057 fi
20058
20059 # Extract the first word of "gtk-config", so it can be a program name with args.
20060set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20061echo "$as_me:$LINENO: checking for $ac_word" >&5
20062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20063if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20065else
e6cc62c6
VS
20066 case $GTK_CONFIG in
20067 [\\/]* | ?:[\\/]*)
21d1c967
GD
20068 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20069 ;;
21d1c967 20070 *)
e6cc62c6
VS
20071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20072for as_dir in $PATH
20073do
20074 IFS=$as_save_IFS
20075 test -z "$as_dir" && as_dir=.
20076 for ac_exec_ext in '' $ac_executable_extensions; do
20077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20078 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20080 break 2
20081 fi
20082done
20083done
20084
21d1c967
GD
20085 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20086 ;;
20087esac
20088fi
e6cc62c6
VS
20089GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20090
21d1c967 20091if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20092 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20093echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20094else
e6cc62c6
VS
20095 echo "$as_me:$LINENO: result: no" >&5
20096echo "${ECHO_T}no" >&6
21d1c967
GD
20097fi
20098
20099 min_gtk_version=1.2.7
e6cc62c6
VS
20100 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20101echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20102 no_gtk=""
20103 if test "$GTK_CONFIG" = "no" ; then
20104 no_gtk=yes
20105 else
20106 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20107 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20108 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20109 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20110 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20111 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20112 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20113 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20114 if test "x$enable_gtktest" = "xyes" ; then
20115 ac_save_CFLAGS="$CFLAGS"
20116 ac_save_LIBS="$LIBS"
20117 CFLAGS="$CFLAGS $GTK_CFLAGS"
20118 LIBS="$GTK_LIBS $LIBS"
20119 rm -f conf.gtktest
20120 if test "$cross_compiling" = yes; then
20121 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20122else
e6cc62c6
VS
20123 cat >conftest.$ac_ext <<_ACEOF
20124#line $LINENO "configure"
20125/* confdefs.h. */
20126_ACEOF
20127cat confdefs.h >>conftest.$ac_ext
20128cat >>conftest.$ac_ext <<_ACEOF
20129/* end confdefs.h. */
f79bd02d 20130
21d1c967
GD
20131#include <gtk/gtk.h>
20132#include <stdio.h>
20133#include <stdlib.h>
f79bd02d 20134
e6cc62c6 20135int
21d1c967
GD
20136main ()
20137{
20138 int major, minor, micro;
20139 char *tmp_version;
20140
20141 system ("touch conf.gtktest");
20142
20143 /* HP/UX 9 (%@#!) writes to sscanf strings */
20144 tmp_version = g_strdup("$min_gtk_version");
20145 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20146 printf("%s, bad version string\n", "$min_gtk_version");
20147 exit(1);
20148 }
90dd450c 20149
21d1c967
GD
20150 if ((gtk_major_version != $gtk_config_major_version) ||
20151 (gtk_minor_version != $gtk_config_minor_version) ||
20152 (gtk_micro_version != $gtk_config_micro_version))
20153 {
e6cc62c6 20154 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20155 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20156 gtk_major_version, gtk_minor_version, gtk_micro_version);
20157 printf ("*** was found! If gtk-config was correct, then it is best\n");
20158 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20159 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20160 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20161 printf("*** required on your system.\n");
20162 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20163 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20164 printf("*** before re-running configure\n");
e6cc62c6 20165 }
21d1c967
GD
20166#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20167 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20168 (gtk_minor_version != GTK_MINOR_VERSION) ||
20169 (gtk_micro_version != GTK_MICRO_VERSION))
20170 {
20171 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20172 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20173 printf("*** library (version %d.%d.%d)\n",
20174 gtk_major_version, gtk_minor_version, gtk_micro_version);
20175 }
20176#endif /* defined (GTK_MAJOR_VERSION) ... */
20177 else
20178 {
20179 if ((gtk_major_version > major) ||
20180 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20181 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20182 {
20183 return 0;
20184 }
20185 else
20186 {
20187 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20188 gtk_major_version, gtk_minor_version, gtk_micro_version);
20189 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20190 major, minor, micro);
20191 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20192 printf("***\n");
20193 printf("*** If you have already installed a sufficiently new version, this error\n");
20194 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20195 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20196 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20197 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20198 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20199 printf("*** so that the correct libraries are found at run-time))\n");
20200 }
20201 }
20202 return 1;
20203}
20204
e6cc62c6
VS
20205_ACEOF
20206rm -f conftest$ac_exeext
20207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20208 (eval $ac_link) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; }; then
21d1c967
GD
20217 :
20218else
e6cc62c6
VS
20219 echo "$as_me: program exited with status $ac_status" >&5
20220echo "$as_me: failed program was:" >&5
20221sed 's/^/| /' conftest.$ac_ext >&5
20222
20223( exit $ac_status )
20224no_gtk=yes
21d1c967 20225fi
e6cc62c6 20226rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20227fi
21d1c967
GD
20228 CFLAGS="$ac_save_CFLAGS"
20229 LIBS="$ac_save_LIBS"
20230 fi
20231 fi
20232 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20233 echo "$as_me:$LINENO: result: yes" >&5
20234echo "${ECHO_T}yes" >&6
20235 wx_cv_lib_gtk=1.2.7
21d1c967 20236 else
e6cc62c6
VS
20237 echo "$as_me:$LINENO: result: no" >&5
20238echo "${ECHO_T}no" >&6
21d1c967
GD
20239 if test "$GTK_CONFIG" = "no" ; then
20240 echo "*** The gtk-config script installed by GTK could not be found"
20241 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20242 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20243 echo "*** full path to gtk-config."
20244 else
20245 if test -f conf.gtktest ; then
20246 :
20247 else
20248 echo "*** Could not run GTK test program, checking why..."
20249 CFLAGS="$CFLAGS $GTK_CFLAGS"
20250 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20251 cat >conftest.$ac_ext <<_ACEOF
20252#line $LINENO "configure"
20253/* confdefs.h. */
20254_ACEOF
20255cat confdefs.h >>conftest.$ac_ext
20256cat >>conftest.$ac_ext <<_ACEOF
20257/* end confdefs.h. */
21d1c967
GD
20258
20259#include <gtk/gtk.h>
20260#include <stdio.h>
20261
e6cc62c6
VS
20262int
20263main ()
20264{
20265 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20266 ;
20267 return 0;
20268}
20269_ACEOF
20270rm -f conftest.$ac_objext conftest$ac_exeext
20271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20272 (eval $ac_link) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 { ac_try='test -s conftest$ac_exeext'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
21d1c967
GD
20282 echo "*** The test program compiled, but did not run. This usually means"
20283 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20284 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20285 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20286 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20287 echo "*** is required on your system"
20288 echo "***"
20289 echo "*** If you have an old version installed, it is best to remove it, although"
20290 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20291 echo "***"
20292 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20293 echo "*** came with the system with the command"
20294 echo "***"
e6cc62c6 20295 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20296else
e6cc62c6
VS
20297 echo "$as_me: failed program was:" >&5
20298sed 's/^/| /' conftest.$ac_ext >&5
20299
20300 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20301 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20302 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20303 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20304fi
e6cc62c6 20305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20306 CFLAGS="$ac_save_CFLAGS"
20307 LIBS="$ac_save_LIBS"
20308 fi
20309 fi
20310 GTK_CFLAGS=""
20311 GTK_LIBS=""
20312 :
20313 fi
e6cc62c6
VS
20314
20315
21d1c967
GD
20316 rm -f conf.gtktest
20317
21d1c967 20318
2b5f62a0 20319 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20320
20321# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20322if test "${with_gtk_prefix+set}" = set; then
20323 withval="$with_gtk_prefix"
20324 gtk_config_prefix="$withval"
20325else
20326 gtk_config_prefix=""
e6cc62c6 20327fi;
f79bd02d 20328
21d1c967
GD
20329# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20330if test "${with_gtk_exec_prefix+set}" = set; then
20331 withval="$with_gtk_exec_prefix"
20332 gtk_config_exec_prefix="$withval"
20333else
20334 gtk_config_exec_prefix=""
e6cc62c6 20335fi;
21d1c967
GD
20336# Check whether --enable-gtktest or --disable-gtktest was given.
20337if test "${enable_gtktest+set}" = set; then
20338 enableval="$enable_gtktest"
e6cc62c6 20339
90dd450c 20340else
21d1c967 20341 enable_gtktest=yes
e6cc62c6 20342fi;
21d1c967
GD
20343
20344 for module in . $GTK_MODULES
20345 do
20346 case "$module" in
e6cc62c6 20347 gthread)
21d1c967
GD
20348 gtk_config_args="$gtk_config_args gthread"
20349 ;;
20350 esac
20351 done
20352
20353 if test x$gtk_config_exec_prefix != x ; then
20354 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20355 if test x${GTK_CONFIG+set} != xset ; then
20356 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20357 fi
20358 fi
20359 if test x$gtk_config_prefix != x ; then
20360 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20361 if test x${GTK_CONFIG+set} != xset ; then
20362 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20363 fi
20364 fi
20365
20366 # Extract the first word of "gtk-config", so it can be a program name with args.
20367set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20368echo "$as_me:$LINENO: checking for $ac_word" >&5
20369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20370if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20372else
e6cc62c6
VS
20373 case $GTK_CONFIG in
20374 [\\/]* | ?:[\\/]*)
21d1c967
GD
20375 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20376 ;;
21d1c967 20377 *)
e6cc62c6
VS
20378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20379for as_dir in $PATH
20380do
20381 IFS=$as_save_IFS
20382 test -z "$as_dir" && as_dir=.
20383 for ac_exec_ext in '' $ac_executable_extensions; do
20384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20385 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20387 break 2
20388 fi
20389done
20390done
20391
21d1c967
GD
20392 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20393 ;;
20394esac
20395fi
e6cc62c6
VS
20396GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20397
21d1c967 20398if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20399 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20400echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20401else
e6cc62c6
VS
20402 echo "$as_me:$LINENO: result: no" >&5
20403echo "${ECHO_T}no" >&6
21d1c967
GD
20404fi
20405
20406 min_gtk_version=1.2.3
e6cc62c6
VS
20407 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20408echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20409 no_gtk=""
20410 if test "$GTK_CONFIG" = "no" ; then
20411 no_gtk=yes
20412 else
20413 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20414 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20415 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20416 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20417 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20418 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20419 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20420 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20421 if test "x$enable_gtktest" = "xyes" ; then
20422 ac_save_CFLAGS="$CFLAGS"
20423 ac_save_LIBS="$LIBS"
20424 CFLAGS="$CFLAGS $GTK_CFLAGS"
20425 LIBS="$GTK_LIBS $LIBS"
20426 rm -f conf.gtktest
20427 if test "$cross_compiling" = yes; then
20428 echo $ac_n "cross compiling; assumed OK... $ac_c"
20429else
e6cc62c6
VS
20430 cat >conftest.$ac_ext <<_ACEOF
20431#line $LINENO "configure"
20432/* confdefs.h. */
20433_ACEOF
20434cat confdefs.h >>conftest.$ac_ext
20435cat >>conftest.$ac_ext <<_ACEOF
20436/* end confdefs.h. */
21d1c967
GD
20437
20438#include <gtk/gtk.h>
20439#include <stdio.h>
20440#include <stdlib.h>
20441
e6cc62c6 20442int
21d1c967
GD
20443main ()
20444{
20445 int major, minor, micro;
20446 char *tmp_version;
20447
20448 system ("touch conf.gtktest");
20449
20450 /* HP/UX 9 (%@#!) writes to sscanf strings */
20451 tmp_version = g_strdup("$min_gtk_version");
20452 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20453 printf("%s, bad version string\n", "$min_gtk_version");
20454 exit(1);
20455 }
20456
20457 if ((gtk_major_version != $gtk_config_major_version) ||
20458 (gtk_minor_version != $gtk_config_minor_version) ||
20459 (gtk_micro_version != $gtk_config_micro_version))
20460 {
e6cc62c6 20461 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20462 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20463 gtk_major_version, gtk_minor_version, gtk_micro_version);
20464 printf ("*** was found! If gtk-config was correct, then it is best\n");
20465 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20466 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20467 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20468 printf("*** required on your system.\n");
20469 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20470 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20471 printf("*** before re-running configure\n");
e6cc62c6 20472 }
21d1c967
GD
20473#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20474 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20475 (gtk_minor_version != GTK_MINOR_VERSION) ||
20476 (gtk_micro_version != GTK_MICRO_VERSION))
20477 {
20478 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20479 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20480 printf("*** library (version %d.%d.%d)\n",
20481 gtk_major_version, gtk_minor_version, gtk_micro_version);
20482 }
20483#endif /* defined (GTK_MAJOR_VERSION) ... */
20484 else
20485 {
20486 if ((gtk_major_version > major) ||
20487 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20488 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20489 {
20490 return 0;
20491 }
20492 else
20493 {
20494 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20495 gtk_major_version, gtk_minor_version, gtk_micro_version);
20496 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20497 major, minor, micro);
20498 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20499 printf("***\n");
20500 printf("*** If you have already installed a sufficiently new version, this error\n");
20501 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20502 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20503 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20504 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20505 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20506 printf("*** so that the correct libraries are found at run-time))\n");
20507 }
20508 }
20509 return 1;
20510}
20511
e6cc62c6
VS
20512_ACEOF
20513rm -f conftest$ac_exeext
20514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20515 (eval $ac_link) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
21d1c967
GD
20524 :
20525else
e6cc62c6
VS
20526 echo "$as_me: program exited with status $ac_status" >&5
20527echo "$as_me: failed program was:" >&5
20528sed 's/^/| /' conftest.$ac_ext >&5
20529
20530( exit $ac_status )
20531no_gtk=yes
21d1c967 20532fi
e6cc62c6 20533rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20534fi
21d1c967
GD
20535 CFLAGS="$ac_save_CFLAGS"
20536 LIBS="$ac_save_LIBS"
20537 fi
20538 fi
20539 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20540 echo "$as_me:$LINENO: result: yes" >&5
20541echo "${ECHO_T}yes" >&6
20542 wx_cv_lib_gtk=1.2.3
21d1c967 20543 else
e6cc62c6
VS
20544 echo "$as_me:$LINENO: result: no" >&5
20545echo "${ECHO_T}no" >&6
21d1c967
GD
20546 if test "$GTK_CONFIG" = "no" ; then
20547 echo "*** The gtk-config script installed by GTK could not be found"
20548 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20549 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20550 echo "*** full path to gtk-config."
20551 else
20552 if test -f conf.gtktest ; then
20553 :
20554 else
20555 echo "*** Could not run GTK test program, checking why..."
20556 CFLAGS="$CFLAGS $GTK_CFLAGS"
20557 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20558 cat >conftest.$ac_ext <<_ACEOF
20559#line $LINENO "configure"
20560/* confdefs.h. */
20561_ACEOF
20562cat confdefs.h >>conftest.$ac_ext
20563cat >>conftest.$ac_ext <<_ACEOF
20564/* end confdefs.h. */
21d1c967
GD
20565
20566#include <gtk/gtk.h>
20567#include <stdio.h>
f79bd02d 20568
e6cc62c6
VS
20569int
20570main ()
20571{
20572 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20573 ;
20574 return 0;
20575}
20576_ACEOF
20577rm -f conftest.$ac_objext conftest$ac_exeext
20578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579 (eval $ac_link) 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } &&
20583 { ac_try='test -s conftest$ac_exeext'
20584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20585 (eval $ac_try) 2>&5
20586 ac_status=$?
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; }; then
21d1c967
GD
20589 echo "*** The test program compiled, but did not run. This usually means"
20590 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20591 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20592 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20593 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20594 echo "*** is required on your system"
20595 echo "***"
20596 echo "*** If you have an old version installed, it is best to remove it, although"
20597 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20598 echo "***"
20599 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20600 echo "*** came with the system with the command"
20601 echo "***"
e6cc62c6 20602 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20603else
e6cc62c6
VS
20604 echo "$as_me: failed program was:" >&5
20605sed 's/^/| /' conftest.$ac_ext >&5
20606
20607 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20608 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20609 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20610 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20611fi
e6cc62c6 20612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20613 CFLAGS="$ac_save_CFLAGS"
20614 LIBS="$ac_save_LIBS"
20615 fi
20616 fi
20617 GTK_CFLAGS=""
20618 GTK_LIBS=""
20619 :
20620 fi
e6cc62c6
VS
20621
20622
21d1c967 20623 rm -f conf.gtktest
f79bd02d 20624
2b5f62a0 20625 fi
21d1c967
GD
20626 fi
20627
20628 if test -z "$wx_cv_lib_gtk"; then
20629 wx_cv_lib_gtk=none
20630 else
20631 wx_cv_cflags_gtk=$GTK_CFLAGS
20632 wx_cv_libs_gtk=$GTK_LIBS
20633 fi
e6cc62c6
VS
20634
20635
5c6fa7d2 20636fi
52127426 20637
8284b0c5 20638
21d1c967 20639 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20640 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20641echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20642 fi
20643
20644 case "$wx_cv_lib_gtk" in
20645 2.0) WXGTK20=1
2b5f62a0 20646 TOOLKIT_VERSION=2
21d1c967
GD
20647 ;;
20648 1.2.7) WXGTK127=1
20649 WXGTK12=1
20650 ;;
20651 1.2.3) WXGTK12=1
20652 ;;
e6cc62c6
VS
20653 *) { { echo "$as_me:$LINENO: error:
20654Please check that gtk-config is in path, the directory
20655where GTK+ libraries are installed (returned by
20656'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20657equivalent variable and GTK+ is version 1.2.3 or above.
20658 " >&5
20659echo "$as_me: error:
247f5006
VZ
20660Please check that gtk-config is in path, the directory
20661where GTK+ libraries are installed (returned by
20662'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20663equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20664 " >&2;}
20665 { (exit 1); exit 1; }; }
21d1c967
GD
20666 ;;
20667 esac
20668
b13cd66e
VZ
20669 if test "$WXGTK20" = 1; then
20670 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20671
f09359cf
VS
20672 succeeded=no
20673
20674 if test -z "$PKG_CONFIG"; then
20675 # Extract the first word of "pkg-config", so it can be a program name with args.
20676set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20677echo "$as_me:$LINENO: checking for $ac_word" >&5
20678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20679if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20681else
e6cc62c6
VS
20682 case $PKG_CONFIG in
20683 [\\/]* | ?:[\\/]*)
f09359cf
VS
20684 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20685 ;;
f09359cf 20686 *)
e6cc62c6
VS
20687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20688for as_dir in $PATH
20689do
20690 IFS=$as_save_IFS
20691 test -z "$as_dir" && as_dir=.
20692 for ac_exec_ext in '' $ac_executable_extensions; do
20693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20694 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20696 break 2
20697 fi
20698done
20699done
20700
f09359cf
VS
20701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20702 ;;
20703esac
20704fi
e6cc62c6
VS
20705PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20706
f09359cf 20707if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20708 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20709echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20710else
e6cc62c6
VS
20711 echo "$as_me:$LINENO: result: no" >&5
20712echo "${ECHO_T}no" >&6
f09359cf
VS
20713fi
20714
20715 fi
20716
20717 if test "$PKG_CONFIG" = "no" ; then
20718 echo "*** The pkg-config script could not be found. Make sure it is"
20719 echo "*** in your path, or set the PKG_CONFIG environment variable"
20720 echo "*** to the full path to pkg-config."
20721 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20722 else
20723 PKG_CONFIG_MIN_VERSION=0.9.0
20724 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20725 echo "$as_me:$LINENO: checking for pangoft2" >&5
20726echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20727
20728 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20729 echo "$as_me:$LINENO: result: yes" >&5
20730echo "${ECHO_T}yes" >&6
f09359cf
VS
20731 succeeded=yes
20732
e6cc62c6
VS
20733 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20734echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20735 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20736 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20737echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20738
e6cc62c6
VS
20739 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20740echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20741 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20742 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20743echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20744 else
20745 PANGOFT2_CFLAGS=""
20746 PANGOFT2_LIBS=""
e6cc62c6 20747 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20748 ## do set a variable so people can do so.
20749 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20750
f09359cf
VS
20751 fi
20752
e6cc62c6
VS
20753
20754
f09359cf
VS
20755 else
20756 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20757 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20758 fi
20759 fi
20760
20761 if test $succeeded = yes; then
e6cc62c6 20762
b13cd66e 20763 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20764 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20765
f09359cf 20766 else
e6cc62c6
VS
20767
20768 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20769echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20770 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20771
20772
f09359cf
VS
20773 fi
20774
b13cd66e 20775 fi
2b5f62a0
VZ
20776 else
20777 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20778 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20779echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20780 wxUSE_UNICODE=no
20781 fi
20782 fi
20783
20784 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20785
20786for ac_func in poll
2b5f62a0 20787do
e6cc62c6
VS
20788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20789echo "$as_me:$LINENO: checking for $ac_func" >&5
20790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20791if eval "test \"\${$as_ac_var+set}\" = set"; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20793else
20794 cat >conftest.$ac_ext <<_ACEOF
20795#line $LINENO "configure"
20796/* confdefs.h. */
20797_ACEOF
20798cat confdefs.h >>conftest.$ac_ext
20799cat >>conftest.$ac_ext <<_ACEOF
20800/* end confdefs.h. */
2b5f62a0 20801/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20802 which can conflict with char $ac_func (); below.
20803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20804 <limits.h> exists even on freestanding compilers. */
20805#ifdef __STDC__
20806# include <limits.h>
20807#else
20808# include <assert.h>
20809#endif
2b5f62a0 20810/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20811#ifdef __cplusplus
20812extern "C"
20813{
20814#endif
2b5f62a0 20815/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20816 builtin and then its argument prototype would still apply. */
20817char $ac_func ();
2b5f62a0
VZ
20818/* The GNU C library defines this for functions which it implements
20819 to always fail with ENOSYS. Some functions are actually named
20820 something starting with __ and the normal name is an alias. */
20821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20822choke me
20823#else
e6cc62c6
VS
20824char (*f) () = $ac_func;
20825#endif
20826#ifdef __cplusplus
20827}
2b5f62a0
VZ
20828#endif
20829
e6cc62c6
VS
20830int
20831main ()
20832{
20833return f != $ac_func;
20834 ;
20835 return 0;
20836}
20837_ACEOF
20838rm -f conftest.$ac_objext conftest$ac_exeext
20839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20840 (eval $ac_link) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -s conftest$ac_exeext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 eval "$as_ac_var=yes"
20851else
20852 echo "$as_me: failed program was:" >&5
20853sed 's/^/| /' conftest.$ac_ext >&5
20854
20855eval "$as_ac_var=no"
20856fi
20857rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20858fi
20859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20860echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20861if test `eval echo '${'$as_ac_var'}'` = yes; then
20862 cat >>confdefs.h <<_ACEOF
20863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20864_ACEOF
2b5f62a0 20865
2b5f62a0
VZ
20866fi
20867done
20868
f09359cf
VS
20869 fi
20870
21d1c967 20871 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 20872 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
20873
20874 AFMINSTALL=afminstall
20875 TOOLKIT=GTK
20876 GUIDIST=GTK_DIST
20877
e6cc62c6
VS
20878 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20879echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20880if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20881 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20882else
e6cc62c6 20883 ac_check_lib_save_LIBS=$LIBS
21d1c967 20884LIBS="-lgdk $LIBS"
e6cc62c6
VS
20885cat >conftest.$ac_ext <<_ACEOF
20886#line $LINENO "configure"
20887/* confdefs.h. */
20888_ACEOF
20889cat confdefs.h >>conftest.$ac_ext
20890cat >>conftest.$ac_ext <<_ACEOF
20891/* end confdefs.h. */
20892
5c6fa7d2 20893/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20894#ifdef __cplusplus
20895extern "C"
20896#endif
5c6fa7d2 20897/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20898 builtin and then its argument prototype would still apply. */
20899char gdk_im_open ();
20900int
20901main ()
20902{
20903gdk_im_open ();
20904 ;
20905 return 0;
20906}
20907_ACEOF
20908rm -f conftest.$ac_objext conftest$ac_exeext
20909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20910 (eval $ac_link) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } &&
20914 { ac_try='test -s conftest$ac_exeext'
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
20920 ac_cv_lib_gdk_gdk_im_open=yes
20921else
20922 echo "$as_me: failed program was:" >&5
20923sed 's/^/| /' conftest.$ac_ext >&5
20924
20925ac_cv_lib_gdk_gdk_im_open=no
20926fi
20927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20928LIBS=$ac_check_lib_save_LIBS
20929fi
20930echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20931echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20932if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20933 cat >>confdefs.h <<\_ACEOF
21d1c967 20934#define HAVE_XIM 1
e6cc62c6 20935_ACEOF
21d1c967 20936
90dd450c 20937fi
1e6feb95 20938
21d1c967 20939 fi
1e6feb95 20940
21d1c967 20941 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
20942 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20943echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 20944 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
20945 echo "$as_me:$LINENO: result: not found" >&5
20946echo "${ECHO_T}not found" >&6
20947 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20948echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20949 { (exit 1); exit 1; }; }
21d1c967 20950 else
e6cc62c6
VS
20951 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20952echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
20953 fi
20954
e6cc62c6
VS
20955 echo "$as_me:$LINENO: checking for libmgl location" >&5
20956echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
20957 case "${host}" in
20958 *-*-linux* )
63a76696
VS
20959 if test "x$wxUSE_SHARED" = xyes ; then
20960 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20961 else
20962 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20963 fi
21d1c967
GD
20964 ;;
20965 *-pc-msdosdjgpp )
63a76696 20966 mgl_os_candidates="dos32/dj2"
21d1c967
GD
20967 ;;
20968 *)
e6cc62c6
VS
20969 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20970echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20971 { (exit 1); exit 1; }; }
21d1c967 20972 esac
1e6feb95 20973
21d1c967 20974 mgl_lib_type=""
63a76696
VS
20975 mgl_os=""
20976
20977 for mgl_os_i in $mgl_os_candidates ; do
20978 if test "x$mgl_os" = x ; then
20979 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20980 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20981 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
20982 mgl_lib_type=debug
20983 mgl_os=$mgl_os_i
20984 fi
20985 fi
20986 if test "x$mgl_lib_type" = x ; then
20987 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
20988 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
20989 mgl_lib_type=release
20990 mgl_os=$mgl_os_i
20991 fi
20992 fi
21d1c967 20993 fi
63a76696 20994 done
2224580a 20995
63a76696 20996 if test "x$mgl_os" = x ; then
e6cc62c6
VS
20997 echo "$as_me:$LINENO: result: not found" >&5
20998echo "${ECHO_T}not found" >&6
20999 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21000echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21001 { (exit 1); exit 1; }; }
63a76696 21002 fi
e6cc62c6
VS
21003 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21004echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21005
1d1b75ac
VZ
21006 wxUSE_UNIVERSAL="yes"
21007
21d1c967
GD
21008 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21009 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21010
90dd450c 21011 AFMINSTALL=afminstall
21d1c967
GD
21012 TOOLKIT=MGL
21013 GUIDIST=MGL_DIST
21014 fi
dad6c0ea 21015
21d1c967 21016 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21017 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21018echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21019 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21020 echo "$as_me:$LINENO: result: not found" >&5
21021echo "${ECHO_T}not found" >&6
21022 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21023echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21024 { (exit 1); exit 1; }; }
21d1c967 21025 else
e6cc62c6
VS
21026 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21027echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21028 fi
f6bcfd97 21029
21d1c967 21030 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21031 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21032echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21033 else
e6cc62c6
VS
21034 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21035echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21036 { (exit 1); exit 1; }; }
90dd450c 21037 fi
0b2effe9 21038
21d1c967
GD
21039 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21040 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21041
1d1b75ac
VZ
21042 wxUSE_UNIVERSAL="yes"
21043
21d1c967
GD
21044 AFMINSTALL=afminstall
21045 TOOLKIT=MICROWIN
21046 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21047
21048 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21049 fi
f6bcfd97 21050
21d1c967 21051 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21052 echo "$as_me:$LINENO: checking for X" >&5
21053echo $ECHO_N "checking for X... $ECHO_C" >&6
21054
d8356fa3 21055
21d1c967
GD
21056# Check whether --with-x or --without-x was given.
21057if test "${with_x+set}" = set; then
21058 withval="$with_x"
2224580a 21059
e6cc62c6 21060fi;
21d1c967
GD
21061# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21062if test "x$with_x" = xno; then
21063 # The user explicitly disabled X.
21064 have_x=disabled
21065else
21066 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21067 # Both variables are already set.
21068 have_x=yes
21069 else
e6cc62c6
VS
21070 if test "${ac_cv_have_x+set}" = set; then
21071 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21072else
21073 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21074ac_x_includes=no ac_x_libraries=no
21075rm -fr conftest.dir
21076if mkdir conftest.dir; then
21077 cd conftest.dir
21d1c967 21078 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21079 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21080acfindx:
21081 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21082_ACEOF
21d1c967
GD
21083 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21084 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21085 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21086 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21087 for ac_extension in a so sl; do
21088 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21089 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21090 ac_im_usrlibdir=$ac_im_libdir; break
21091 fi
21092 done
21093 # Screen out bogus values from the imake configuration. They are
21094 # bogus both because they are the default anyway, and because
21095 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21096 case $ac_im_incroot in
21d1c967 21097 /usr/include) ;;
e6cc62c6 21098 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21099 esac
e6cc62c6 21100 case $ac_im_usrlibdir in
21d1c967 21101 /usr/lib | /lib) ;;
e6cc62c6 21102 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21103 esac
21104 fi
21105 cd ..
e6cc62c6 21106 rm -fr conftest.dir
21d1c967 21107fi
10f2d63a 21108
e6cc62c6
VS
21109# Standard set of common directories for X headers.
21110# Check X11 before X11Rn because it is often a symlink to the current release.
21111ac_x_header_dirs='
21112/usr/X11/include
21113/usr/X11R6/include
21114/usr/X11R5/include
21115/usr/X11R4/include
21116
21117/usr/include/X11
21118/usr/include/X11R6
21119/usr/include/X11R5
21120/usr/include/X11R4
21121
21122/usr/local/X11/include
21123/usr/local/X11R6/include
21124/usr/local/X11R5/include
21125/usr/local/X11R4/include
21126
21127/usr/local/include/X11
21128/usr/local/include/X11R6
21129/usr/local/include/X11R5
21130/usr/local/include/X11R4
21131
21132/usr/X386/include
21133/usr/x386/include
21134/usr/XFree86/include/X11
21135
21136/usr/include
21137/usr/local/include
21138/usr/unsupported/include
21139/usr/athena/include
21140/usr/local/x11r5/include
21141/usr/lpp/Xamples/include
21142
21143/usr/openwin/include
21144/usr/openwin/share/include'
21145
21146if test "$ac_x_includes" = no; then
21147 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21148 # First, try using that file with no special directory specified.
e6cc62c6
VS
21149 cat >conftest.$ac_ext <<_ACEOF
21150#line $LINENO "configure"
21151/* confdefs.h. */
21152_ACEOF
21153cat confdefs.h >>conftest.$ac_ext
21154cat >>conftest.$ac_ext <<_ACEOF
21155/* end confdefs.h. */
21156#include <X11/Intrinsic.h>
21157_ACEOF
21158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21160 ac_status=$?
21161 grep -v '^ *+' conftest.er1 >conftest.err
21162 rm -f conftest.er1
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } >/dev/null; then
21166 if test -s conftest.err; then
21167 ac_cpp_err=$ac_c_preproc_warn_flag
21168 else
21169 ac_cpp_err=
21170 fi
21171else
21172 ac_cpp_err=yes
21173fi
21174if test -z "$ac_cpp_err"; then
21d1c967
GD
21175 # We can compile using X headers with no special include directory.
21176ac_x_includes=
90dd450c 21177else
e6cc62c6
VS
21178 echo "$as_me: failed program was:" >&5
21179sed 's/^/| /' conftest.$ac_ext >&5
21180
21181 for ac_dir in $ac_x_header_dirs; do
21182 if test -r "$ac_dir/X11/Intrinsic.h"; then
21183 ac_x_includes=$ac_dir
21184 break
21185 fi
21186done
3a922bb4 21187fi
e6cc62c6
VS
21188rm -f conftest.err conftest.$ac_ext
21189fi # $ac_x_includes = no
10f2d63a 21190
e6cc62c6 21191if test "$ac_x_libraries" = no; then
21d1c967 21192 # Check for the libraries.
21d1c967
GD
21193 # See if we find them without any special options.
21194 # Don't add to $LIBS permanently.
e6cc62c6
VS
21195 ac_save_LIBS=$LIBS
21196 LIBS="-lXt $LIBS"
21197 cat >conftest.$ac_ext <<_ACEOF
21198#line $LINENO "configure"
21199/* confdefs.h. */
21200_ACEOF
21201cat confdefs.h >>conftest.$ac_ext
21202cat >>conftest.$ac_ext <<_ACEOF
21203/* end confdefs.h. */
21204#include <X11/Intrinsic.h>
21205int
21206main ()
21207{
21208XtMalloc (0)
21209 ;
21210 return 0;
21211}
21212_ACEOF
21213rm -f conftest.$ac_objext conftest$ac_exeext
21214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21215 (eval $ac_link) 2>&5
21216 ac_status=$?
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); } &&
21219 { ac_try='test -s conftest$ac_exeext'
21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221 (eval $ac_try) 2>&5
21222 ac_status=$?
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; }; then
21225 LIBS=$ac_save_LIBS
21d1c967
GD
21226# We can link X programs with no special library path.
21227ac_x_libraries=
3a922bb4 21228else
e6cc62c6
VS
21229 echo "$as_me: failed program was:" >&5
21230sed 's/^/| /' conftest.$ac_ext >&5
21231
21232LIBS=$ac_save_LIBS
21233for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21234do
e6cc62c6 21235 # Don't even attempt the hair of trying to link an X program!
21d1c967 21236 for ac_extension in a so sl; do
e6cc62c6 21237 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21238 ac_x_libraries=$ac_dir
21239 break 2
21240 fi
21241 done
21242done
3a922bb4 21243fi
e6cc62c6
VS
21244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21245fi # $ac_x_libraries = no
90dd450c 21246
e6cc62c6 21247if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21248 # Didn't find X anywhere. Cache the known absence of X.
21249 ac_cv_have_x="have_x=no"
21250else
21251 # Record where we found X for the cache.
21252 ac_cv_have_x="have_x=yes \
21253 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21254fi
21d1c967 21255fi
e6cc62c6 21256
21d1c967
GD
21257 fi
21258 eval "$ac_cv_have_x"
21259fi # $with_x != no
90dd450c 21260
21d1c967 21261if test "$have_x" != yes; then
e6cc62c6
VS
21262 echo "$as_me:$LINENO: result: $have_x" >&5
21263echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21264 no_x=yes
21265else
21266 # If each of the values was on the command line, it overrides each guess.
21267 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21268 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21269 # Update the cache value to reflect the command line values.
21270 ac_cv_have_x="have_x=yes \
21271 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21272 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21273echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21274fi
90dd450c 21275
21d1c967 21276if test "$no_x" = yes; then
90dd450c 21277 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21278
21279cat >>confdefs.h <<\_ACEOF
90dd450c 21280#define X_DISPLAY_MISSING 1
e6cc62c6 21281_ACEOF
90dd450c
VZ
21282
21283 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21284else
21285 if test -n "$x_includes"; then
21286 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21287 fi
3a922bb4 21288
90dd450c
VZ
21289 # It would also be nice to do this for all -L options, not just this one.
21290 if test -n "$x_libraries"; then
21291 X_LIBS="$X_LIBS -L$x_libraries"
21292 # For Solaris; some versions of Sun CC require a space after -R and
21293 # others require no space. Words are not sufficient . . . .
e6cc62c6 21294 case `(uname -sr) 2>/dev/null` in
90dd450c 21295 "SunOS 5"*)
e6cc62c6
VS
21296 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21297echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21298 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21299 cat >conftest.$ac_ext <<_ACEOF
21300#line $LINENO "configure"
21301/* confdefs.h. */
21302_ACEOF
21303cat confdefs.h >>conftest.$ac_ext
21304cat >>conftest.$ac_ext <<_ACEOF
21305/* end confdefs.h. */
21306
21307int
21308main ()
21309{
90dd450c 21310
e6cc62c6
VS
21311 ;
21312 return 0;
21313}
21314_ACEOF
21315rm -f conftest.$ac_objext conftest$ac_exeext
21316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21317 (eval $ac_link) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); } &&
21321 { ac_try='test -s conftest$ac_exeext'
21322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21323 (eval $ac_try) 2>&5
21324 ac_status=$?
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); }; }; then
90dd450c 21327 ac_R_nospace=yes
3a922bb4 21328else
e6cc62c6
VS
21329 echo "$as_me: failed program was:" >&5
21330sed 's/^/| /' conftest.$ac_ext >&5
21331
21332ac_R_nospace=no
3a922bb4 21333fi
e6cc62c6 21334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21335 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21336 echo "$as_me:$LINENO: result: no" >&5
21337echo "${ECHO_T}no" >&6
90dd450c
VZ
21338 X_LIBS="$X_LIBS -R$x_libraries"
21339 else
21340 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21341 cat >conftest.$ac_ext <<_ACEOF
21342#line $LINENO "configure"
21343/* confdefs.h. */
21344_ACEOF
21345cat confdefs.h >>conftest.$ac_ext
21346cat >>conftest.$ac_ext <<_ACEOF
21347/* end confdefs.h. */
21348
21349int
21350main ()
21351{
6f754473 21352
e6cc62c6
VS
21353 ;
21354 return 0;
21355}
21356_ACEOF
21357rm -f conftest.$ac_objext conftest$ac_exeext
21358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21359 (eval $ac_link) 2>&5
21360 ac_status=$?
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } &&
21363 { ac_try='test -s conftest$ac_exeext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
90dd450c
VZ
21369 ac_R_space=yes
21370else
e6cc62c6
VS
21371 echo "$as_me: failed program was:" >&5
21372sed 's/^/| /' conftest.$ac_ext >&5
21373
21374ac_R_space=no
90dd450c 21375fi
e6cc62c6 21376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21377 if test $ac_R_space = yes; then
e6cc62c6
VS
21378 echo "$as_me:$LINENO: result: yes" >&5
21379echo "${ECHO_T}yes" >&6
90dd450c
VZ
21380 X_LIBS="$X_LIBS -R $x_libraries"
21381 else
e6cc62c6
VS
21382 echo "$as_me:$LINENO: result: neither works" >&5
21383echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21384 fi
21385 fi
e6cc62c6 21386 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21387 esac
21388 fi
21389
21390 # Check for system-dependent libraries X programs must link with.
21391 # Do this before checking for the system-independent R6 libraries
21392 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21393
90dd450c
VZ
21394 if test "$ISC" = yes; then
21395 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21396 else
e6cc62c6
VS
21397 # Martyn Johnson says this is needed for Ultrix, if the X
21398 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21399 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21400 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21401 cat >conftest.$ac_ext <<_ACEOF
21402#line $LINENO "configure"
21403/* confdefs.h. */
21404_ACEOF
21405cat confdefs.h >>conftest.$ac_ext
21406cat >>conftest.$ac_ext <<_ACEOF
21407/* end confdefs.h. */
21408
247f5006 21409/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21410#ifdef __cplusplus
21411extern "C"
21412#endif
247f5006 21413/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21414 builtin and then its argument prototype would still apply. */
21415char XOpenDisplay ();
21416int
21417main ()
21418{
21419XOpenDisplay ();
21420 ;
21421 return 0;
21422}
21423_ACEOF
21424rm -f conftest.$ac_objext conftest$ac_exeext
21425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426 (eval $ac_link) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } &&
21430 { ac_try='test -s conftest$ac_exeext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 :
21437else
21438 echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21440
e6cc62c6
VS
21441echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21442echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21443if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21445else
e6cc62c6
VS
21446 ac_check_lib_save_LIBS=$LIBS
21447LIBS="-ldnet $LIBS"
21448cat >conftest.$ac_ext <<_ACEOF
21449#line $LINENO "configure"
21450/* confdefs.h. */
21451_ACEOF
21452cat confdefs.h >>conftest.$ac_ext
21453cat >>conftest.$ac_ext <<_ACEOF
21454/* end confdefs.h. */
a0b9e27f 21455
e6cc62c6
VS
21456/* Override any gcc2 internal prototype to avoid an error. */
21457#ifdef __cplusplus
21458extern "C"
21459#endif
21460/* We use char because int might match the return type of a gcc2
21461 builtin and then its argument prototype would still apply. */
21462char dnet_ntoa ();
21463int
21464main ()
21465{
21466dnet_ntoa ();
21467 ;
21468 return 0;
21469}
21470_ACEOF
21471rm -f conftest.$ac_objext conftest$ac_exeext
21472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21473 (eval $ac_link) 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } &&
21477 { ac_try='test -s conftest$ac_exeext'
21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21480 ac_status=$?
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
21483 ac_cv_lib_dnet_dnet_ntoa=yes
21484else
21485 echo "$as_me: failed program was:" >&5
21486sed 's/^/| /' conftest.$ac_ext >&5
21487
21488ac_cv_lib_dnet_dnet_ntoa=no
21489fi
21490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21491LIBS=$ac_check_lib_save_LIBS
21492fi
21493echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21494echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21495if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21496 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21497fi
21498
90dd450c 21499 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21500 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21501echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21502if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21504else
e6cc62c6 21505 ac_check_lib_save_LIBS=$LIBS
90dd450c 21506LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21507cat >conftest.$ac_ext <<_ACEOF
21508#line $LINENO "configure"
21509/* confdefs.h. */
21510_ACEOF
21511cat confdefs.h >>conftest.$ac_ext
21512cat >>conftest.$ac_ext <<_ACEOF
21513/* end confdefs.h. */
21514
90dd450c 21515/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21516#ifdef __cplusplus
21517extern "C"
21518#endif
90dd450c 21519/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21520 builtin and then its argument prototype would still apply. */
21521char dnet_ntoa ();
21522int
21523main ()
21524{
21525dnet_ntoa ();
21526 ;
21527 return 0;
21528}
21529_ACEOF
21530rm -f conftest.$ac_objext conftest$ac_exeext
21531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532 (eval $ac_link) 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } &&
21536 { ac_try='test -s conftest$ac_exeext'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; }; then
21542 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21543else
21544 echo "$as_me: failed program was:" >&5
21545sed 's/^/| /' conftest.$ac_ext >&5
21546
21547ac_cv_lib_dnet_stub_dnet_ntoa=no
21548fi
21549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21550LIBS=$ac_check_lib_save_LIBS
21551fi
21552echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21553echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21554if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21555 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21556fi
21557
90dd450c 21558 fi
e6cc62c6
VS
21559fi
21560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21561 LIBS="$ac_xsave_LIBS"
978f1259 21562
90dd450c
VZ
21563 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21564 # to get the SysV transport functions.
e6cc62c6 21565 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21566 # needs -lnsl.
21567 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21568 # on Irix 5.2, according to T.E. Dickey.
21569 # The functions gethostbyname, getservbyname, and inet_addr are
21570 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21571 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21572echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21573if test "${ac_cv_func_gethostbyname+set}" = set; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21575else
21576 cat >conftest.$ac_ext <<_ACEOF
21577#line $LINENO "configure"
21578/* confdefs.h. */
21579_ACEOF
21580cat confdefs.h >>conftest.$ac_ext
21581cat >>conftest.$ac_ext <<_ACEOF
21582/* end confdefs.h. */
90dd450c 21583/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21584 which can conflict with char gethostbyname (); below.
21585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21586 <limits.h> exists even on freestanding compilers. */
21587#ifdef __STDC__
21588# include <limits.h>
21589#else
21590# include <assert.h>
21591#endif
90dd450c 21592/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21593#ifdef __cplusplus
21594extern "C"
21595{
21596#endif
90dd450c 21597/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21598 builtin and then its argument prototype would still apply. */
21599char gethostbyname ();
90dd450c
VZ
21600/* The GNU C library defines this for functions which it implements
21601 to always fail with ENOSYS. Some functions are actually named
21602 something starting with __ and the normal name is an alias. */
21603#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21604choke me
21605#else
e6cc62c6
VS
21606char (*f) () = gethostbyname;
21607#endif
21608#ifdef __cplusplus
21609}
90dd450c 21610#endif
978f1259 21611
e6cc62c6
VS
21612int
21613main ()
21614{
21615return f != gethostbyname;
21616 ;
21617 return 0;
21618}
21619_ACEOF
21620rm -f conftest.$ac_objext conftest$ac_exeext
21621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21622 (eval $ac_link) 2>&5
21623 ac_status=$?
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } &&
21626 { ac_try='test -s conftest$ac_exeext'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21629 ac_status=$?
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; }; then
21632 ac_cv_func_gethostbyname=yes
21633else
21634 echo "$as_me: failed program was:" >&5
21635sed 's/^/| /' conftest.$ac_ext >&5
21636
21637ac_cv_func_gethostbyname=no
21638fi
21639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21640fi
21641echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21642echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21643
90dd450c 21644 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21645 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21646echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21647if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21649else
e6cc62c6 21650 ac_check_lib_save_LIBS=$LIBS
90dd450c 21651LIBS="-lnsl $LIBS"
e6cc62c6
VS
21652cat >conftest.$ac_ext <<_ACEOF
21653#line $LINENO "configure"
21654/* confdefs.h. */
21655_ACEOF
21656cat confdefs.h >>conftest.$ac_ext
21657cat >>conftest.$ac_ext <<_ACEOF
21658/* end confdefs.h. */
21659
90dd450c 21660/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21661#ifdef __cplusplus
21662extern "C"
21663#endif
90dd450c 21664/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21665 builtin and then its argument prototype would still apply. */
21666char gethostbyname ();
21667int
21668main ()
21669{
21670gethostbyname ();
21671 ;
21672 return 0;
21673}
21674_ACEOF
21675rm -f conftest.$ac_objext conftest$ac_exeext
21676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21677 (eval $ac_link) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } &&
21681 { ac_try='test -s conftest$ac_exeext'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; }; then
21687 ac_cv_lib_nsl_gethostbyname=yes
21688else
21689 echo "$as_me: failed program was:" >&5
21690sed 's/^/| /' conftest.$ac_ext >&5
21691
21692ac_cv_lib_nsl_gethostbyname=no
21693fi
21694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21695LIBS=$ac_check_lib_save_LIBS
21696fi
21697echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21698echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21699if test $ac_cv_lib_nsl_gethostbyname = yes; then
21700 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21701fi
247f5006 21702
e6cc62c6
VS
21703 if test $ac_cv_lib_nsl_gethostbyname = no; then
21704 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21705echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21706if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21708else
e6cc62c6
VS
21709 ac_check_lib_save_LIBS=$LIBS
21710LIBS="-lbsd $LIBS"
21711cat >conftest.$ac_ext <<_ACEOF
21712#line $LINENO "configure"
21713/* confdefs.h. */
21714_ACEOF
21715cat confdefs.h >>conftest.$ac_ext
21716cat >>conftest.$ac_ext <<_ACEOF
21717/* end confdefs.h. */
21718
21719/* Override any gcc2 internal prototype to avoid an error. */
21720#ifdef __cplusplus
21721extern "C"
21722#endif
21723/* We use char because int might match the return type of a gcc2
21724 builtin and then its argument prototype would still apply. */
21725char gethostbyname ();
21726int
21727main ()
21728{
21729gethostbyname ();
21730 ;
21731 return 0;
21732}
21733_ACEOF
21734rm -f conftest.$ac_objext conftest$ac_exeext
21735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21736 (eval $ac_link) 2>&5
21737 ac_status=$?
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
21740 { ac_try='test -s conftest$ac_exeext'
21741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21743 ac_status=$?
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; }; then
21746 ac_cv_lib_bsd_gethostbyname=yes
21747else
21748 echo "$as_me: failed program was:" >&5
21749sed 's/^/| /' conftest.$ac_ext >&5
21750
21751ac_cv_lib_bsd_gethostbyname=no
21752fi
21753rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21754LIBS=$ac_check_lib_save_LIBS
21755fi
21756echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21757echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21758if test $ac_cv_lib_bsd_gethostbyname = yes; then
21759 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21760fi
b12915c1 21761
e6cc62c6 21762 fi
90dd450c
VZ
21763 fi
21764
21765 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21766 # socket/setsockopt and other routines are undefined under SCO ODT
21767 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21768 # on later versions), says Simon Leinen: it contains gethostby*
21769 # variants that don't use the name server (or something). -lsocket
21770 # must be given before -lnsl if both are needed. We assume that
21771 # if connect needs -lnsl, so does gethostbyname.
21772 echo "$as_me:$LINENO: checking for connect" >&5
21773echo $ECHO_N "checking for connect... $ECHO_C" >&6
21774if test "${ac_cv_func_connect+set}" = set; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21776else
21777 cat >conftest.$ac_ext <<_ACEOF
21778#line $LINENO "configure"
21779/* confdefs.h. */
21780_ACEOF
21781cat confdefs.h >>conftest.$ac_ext
21782cat >>conftest.$ac_ext <<_ACEOF
21783/* end confdefs.h. */
90dd450c 21784/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21785 which can conflict with char connect (); below.
21786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21787 <limits.h> exists even on freestanding compilers. */
21788#ifdef __STDC__
21789# include <limits.h>
21790#else
21791# include <assert.h>
21792#endif
90dd450c 21793/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21794#ifdef __cplusplus
21795extern "C"
21796{
21797#endif
90dd450c 21798/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21799 builtin and then its argument prototype would still apply. */
21800char connect ();
90dd450c
VZ
21801/* The GNU C library defines this for functions which it implements
21802 to always fail with ENOSYS. Some functions are actually named
21803 something starting with __ and the normal name is an alias. */
21804#if defined (__stub_connect) || defined (__stub___connect)
21805choke me
21806#else
e6cc62c6
VS
21807char (*f) () = connect;
21808#endif
21809#ifdef __cplusplus
21810}
90dd450c
VZ
21811#endif
21812
e6cc62c6
VS
21813int
21814main ()
21815{
21816return f != connect;
21817 ;
21818 return 0;
21819}
21820_ACEOF
21821rm -f conftest.$ac_objext conftest$ac_exeext
21822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21823 (eval $ac_link) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } &&
21827 { ac_try='test -s conftest$ac_exeext'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
21833 ac_cv_func_connect=yes
21834else
21835 echo "$as_me: failed program was:" >&5
21836sed 's/^/| /' conftest.$ac_ext >&5
21837
21838ac_cv_func_connect=no
21839fi
21840rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21841fi
21842echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21843echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21844
90dd450c 21845 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21846 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21847echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21848if test "${ac_cv_lib_socket_connect+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21850else
e6cc62c6 21851 ac_check_lib_save_LIBS=$LIBS
90dd450c 21852LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21853cat >conftest.$ac_ext <<_ACEOF
21854#line $LINENO "configure"
21855/* confdefs.h. */
21856_ACEOF
21857cat confdefs.h >>conftest.$ac_ext
21858cat >>conftest.$ac_ext <<_ACEOF
21859/* end confdefs.h. */
21860
90dd450c 21861/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21862#ifdef __cplusplus
21863extern "C"
21864#endif
90dd450c 21865/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21866 builtin and then its argument prototype would still apply. */
21867char connect ();
21868int
21869main ()
21870{
21871connect ();
21872 ;
21873 return 0;
21874}
21875_ACEOF
21876rm -f conftest.$ac_objext conftest$ac_exeext
21877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21878 (eval $ac_link) 2>&5
21879 ac_status=$?
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } &&
21882 { ac_try='test -s conftest$ac_exeext'
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21885 ac_status=$?
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; }; then
21888 ac_cv_lib_socket_connect=yes
21889else
21890 echo "$as_me: failed program was:" >&5
21891sed 's/^/| /' conftest.$ac_ext >&5
21892
21893ac_cv_lib_socket_connect=no
21894fi
21895rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21896LIBS=$ac_check_lib_save_LIBS
21897fi
21898echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21899echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21900if test $ac_cv_lib_socket_connect = yes; then
90dd450c 21901 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 21902fi
77e13408 21903
90dd450c 21904 fi
25d0687a 21905
e6cc62c6
VS
21906 # Guillermo Gomez says -lposix is necessary on A/UX.
21907 echo "$as_me:$LINENO: checking for remove" >&5
21908echo $ECHO_N "checking for remove... $ECHO_C" >&6
21909if test "${ac_cv_func_remove+set}" = set; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21911else
21912 cat >conftest.$ac_ext <<_ACEOF
21913#line $LINENO "configure"
21914/* confdefs.h. */
21915_ACEOF
21916cat confdefs.h >>conftest.$ac_ext
21917cat >>conftest.$ac_ext <<_ACEOF
21918/* end confdefs.h. */
90dd450c 21919/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21920 which can conflict with char remove (); below.
21921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21922 <limits.h> exists even on freestanding compilers. */
21923#ifdef __STDC__
21924# include <limits.h>
21925#else
21926# include <assert.h>
21927#endif
90dd450c 21928/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21929#ifdef __cplusplus
21930extern "C"
21931{
21932#endif
90dd450c 21933/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21934 builtin and then its argument prototype would still apply. */
21935char remove ();
90dd450c
VZ
21936/* The GNU C library defines this for functions which it implements
21937 to always fail with ENOSYS. Some functions are actually named
21938 something starting with __ and the normal name is an alias. */
21939#if defined (__stub_remove) || defined (__stub___remove)
21940choke me
21941#else
e6cc62c6
VS
21942char (*f) () = remove;
21943#endif
21944#ifdef __cplusplus
21945}
90dd450c 21946#endif
55e80573 21947
e6cc62c6
VS
21948int
21949main ()
21950{
21951return f != remove;
21952 ;
21953 return 0;
21954}
21955_ACEOF
21956rm -f conftest.$ac_objext conftest$ac_exeext
21957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21958 (eval $ac_link) 2>&5
21959 ac_status=$?
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } &&
21962 { ac_try='test -s conftest$ac_exeext'
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; }; then
21968 ac_cv_func_remove=yes
21969else
21970 echo "$as_me: failed program was:" >&5
21971sed 's/^/| /' conftest.$ac_ext >&5
21972
21973ac_cv_func_remove=no
21974fi
21975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21976fi
21977echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21978echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 21979
90dd450c 21980 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
21981 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21982echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21983if test "${ac_cv_lib_posix_remove+set}" = set; then
21984 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21985else
e6cc62c6 21986 ac_check_lib_save_LIBS=$LIBS
90dd450c 21987LIBS="-lposix $LIBS"
e6cc62c6
VS
21988cat >conftest.$ac_ext <<_ACEOF
21989#line $LINENO "configure"
21990/* confdefs.h. */
21991_ACEOF
21992cat confdefs.h >>conftest.$ac_ext
21993cat >>conftest.$ac_ext <<_ACEOF
21994/* end confdefs.h. */
21995
90dd450c 21996/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21997#ifdef __cplusplus
21998extern "C"
21999#endif
90dd450c 22000/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22001 builtin and then its argument prototype would still apply. */
22002char remove ();
22003int
22004main ()
22005{
22006remove ();
22007 ;
22008 return 0;
22009}
22010_ACEOF
22011rm -f conftest.$ac_objext conftest$ac_exeext
22012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22013 (eval $ac_link) 2>&5
22014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } &&
22017 { ac_try='test -s conftest$ac_exeext'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_cv_lib_posix_remove=yes
22024else
22025 echo "$as_me: failed program was:" >&5
22026sed 's/^/| /' conftest.$ac_ext >&5
22027
22028ac_cv_lib_posix_remove=no
22029fi
22030rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22031LIBS=$ac_check_lib_save_LIBS
22032fi
22033echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22034echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22035if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22037fi
f6bcfd97 22038
6fa882bd
RR
22039 fi
22040
90dd450c 22041 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22042 echo "$as_me:$LINENO: checking for shmat" >&5
22043echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22044if test "${ac_cv_func_shmat+set}" = set; then
22045 echo $ECHO_N "(cached) $ECHO_C" >&6
22046else
22047 cat >conftest.$ac_ext <<_ACEOF
22048#line $LINENO "configure"
22049/* confdefs.h. */
22050_ACEOF
22051cat confdefs.h >>conftest.$ac_ext
22052cat >>conftest.$ac_ext <<_ACEOF
22053/* end confdefs.h. */
90dd450c 22054/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22055 which can conflict with char shmat (); below.
22056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22057 <limits.h> exists even on freestanding compilers. */
22058#ifdef __STDC__
22059# include <limits.h>
22060#else
22061# include <assert.h>
22062#endif
90dd450c 22063/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22064#ifdef __cplusplus
22065extern "C"
22066{
22067#endif
90dd450c 22068/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22069 builtin and then its argument prototype would still apply. */
22070char shmat ();
90dd450c
VZ
22071/* The GNU C library defines this for functions which it implements
22072 to always fail with ENOSYS. Some functions are actually named
22073 something starting with __ and the normal name is an alias. */
22074#if defined (__stub_shmat) || defined (__stub___shmat)
22075choke me
22076#else
e6cc62c6
VS
22077char (*f) () = shmat;
22078#endif
22079#ifdef __cplusplus
22080}
90dd450c 22081#endif
10f2d63a 22082
e6cc62c6
VS
22083int
22084main ()
22085{
22086return f != shmat;
22087 ;
22088 return 0;
22089}
22090_ACEOF
22091rm -f conftest.$ac_objext conftest$ac_exeext
22092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22093 (eval $ac_link) 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); } &&
22097 { ac_try='test -s conftest$ac_exeext'
22098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099 (eval $ac_try) 2>&5
22100 ac_status=$?
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); }; }; then
22103 ac_cv_func_shmat=yes
22104else
22105 echo "$as_me: failed program was:" >&5
22106sed 's/^/| /' conftest.$ac_ext >&5
22107
22108ac_cv_func_shmat=no
22109fi
22110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22111fi
22112echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22113echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22114
90dd450c 22115 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22116 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22117echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22118if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22119 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22120else
e6cc62c6 22121 ac_check_lib_save_LIBS=$LIBS
90dd450c 22122LIBS="-lipc $LIBS"
e6cc62c6
VS
22123cat >conftest.$ac_ext <<_ACEOF
22124#line $LINENO "configure"
22125/* confdefs.h. */
22126_ACEOF
22127cat confdefs.h >>conftest.$ac_ext
22128cat >>conftest.$ac_ext <<_ACEOF
22129/* end confdefs.h. */
22130
8284b0c5 22131/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22132#ifdef __cplusplus
22133extern "C"
22134#endif
90dd450c 22135/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22136 builtin and then its argument prototype would still apply. */
22137char shmat ();
22138int
22139main ()
22140{
22141shmat ();
22142 ;
22143 return 0;
22144}
22145_ACEOF
22146rm -f conftest.$ac_objext conftest$ac_exeext
22147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22148 (eval $ac_link) 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); } &&
22152 { ac_try='test -s conftest$ac_exeext'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 ac_cv_lib_ipc_shmat=yes
22159else
22160 echo "$as_me: failed program was:" >&5
22161sed 's/^/| /' conftest.$ac_ext >&5
22162
22163ac_cv_lib_ipc_shmat=no
22164fi
22165rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22166LIBS=$ac_check_lib_save_LIBS
22167fi
22168echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22169echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22170if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22171 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22172fi
22173
d558c907 22174 fi
90dd450c 22175 fi
3a922bb4 22176
90dd450c 22177 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22178 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22179 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22180 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22181 # check for ICE first), but we must link in the order -lSM -lICE or
22182 # we get undefined symbols. So assume we have SM if we have ICE.
22183 # These have to be linked with before -lX11, unlike the other
22184 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22185 # John Interrante, Karl Berry
22186 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22187echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22188if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22190else
22191 ac_check_lib_save_LIBS=$LIBS
f09359cf 22192LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22193cat >conftest.$ac_ext <<_ACEOF
22194#line $LINENO "configure"
22195/* confdefs.h. */
22196_ACEOF
22197cat confdefs.h >>conftest.$ac_ext
22198cat >>conftest.$ac_ext <<_ACEOF
22199/* end confdefs.h. */
22200
90dd450c 22201/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22202#ifdef __cplusplus
22203extern "C"
22204#endif
90dd450c 22205/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22206 builtin and then its argument prototype would still apply. */
22207char IceConnectionNumber ();
22208int
22209main ()
22210{
22211IceConnectionNumber ();
22212 ;
22213 return 0;
22214}
22215_ACEOF
22216rm -f conftest.$ac_objext conftest$ac_exeext
22217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22218 (eval $ac_link) 2>&5
22219 ac_status=$?
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); } &&
22222 { ac_try='test -s conftest$ac_exeext'
22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22225 ac_status=$?
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; }; then
22228 ac_cv_lib_ICE_IceConnectionNumber=yes
22229else
22230 echo "$as_me: failed program was:" >&5
22231sed 's/^/| /' conftest.$ac_ext >&5
22232
22233ac_cv_lib_ICE_IceConnectionNumber=no
22234fi
22235rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22236LIBS=$ac_check_lib_save_LIBS
22237fi
22238echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22239echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22240if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22241 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22242fi
10f2d63a 22243
e6cc62c6 22244 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22245
22246fi
22247
8284b0c5 22248
90dd450c 22249 if test "$no_x" = "yes"; then
e6cc62c6
VS
22250 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22251echo "$as_me: error: X11 not found" >&2;}
22252 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22253 fi
22254
22255 GUI_TK_LIBRARY="$X_LIBS"
22256 TOOLKIT_INCLUDE="$X_CFLAGS"
22257 AFMINSTALL=afminstall
22258 COMPILED_X_PROGRAM=0
22259
21d1c967 22260 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22261 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22262echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22263 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22264 echo "$as_me:$LINENO: result: not found" >&5
22265echo "${ECHO_T}not found" >&6
22266 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22267echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22268 { (exit 1); exit 1; }; }
90dd450c 22269 else
e6cc62c6
VS
22270 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22271echo "${ECHO_T}$MICROWIN" >&6
22272 cat >>confdefs.h <<\_ACEOF
21d1c967 22273#define wxUSE_NANOX 1
e6cc62c6 22274_ACEOF
21d1c967 22275
90dd450c
VZ
22276 fi
22277 fi
22278
22279 xpm_link=
e6cc62c6
VS
22280 echo "$as_me:$LINENO: checking for Xpm library" >&5
22281echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22282
90dd450c 22283ac_find_libraries=
2b5f62a0 22284for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22285 do
22286 for ac_extension in a so sl dylib; do
22287 if test -f "$ac_dir/libXpm.$ac_extension"; then
22288 ac_find_libraries=$ac_dir
22289 break 2
22290 fi
22291 done
22292 done
22293
22294 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22295
90dd450c
VZ
22296 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22297 result=$?
22298 if test $result = 0; then
22299 ac_path_to_link=""
22300 else
22301 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22302 fi
90dd450c 22303
21d1c967
GD
22304 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22305 xpm_link=" -lXpm"
e6cc62c6 22306 cat >>confdefs.h <<\_ACEOF
21d1c967 22307#define wxHAVE_LIB_XPM 1
e6cc62c6 22308_ACEOF
90dd450c 22309
e6cc62c6
VS
22310 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22311echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22312 else
e6cc62c6
VS
22313 cat >conftest.$ac_ext <<_ACEOF
22314#line $LINENO "configure"
22315/* confdefs.h. */
22316_ACEOF
22317cat confdefs.h >>conftest.$ac_ext
22318cat >>conftest.$ac_ext <<_ACEOF
22319/* end confdefs.h. */
90dd450c 22320
21d1c967 22321 #include <X11/xpm.h>
e6cc62c6
VS
22322
22323int
22324main ()
22325{
6f72b082 22326
21d1c967
GD
22327 int version;
22328 version = XpmLibraryVersion();
e6cc62c6
VS
22329
22330 ;
22331 return 0;
22332}
22333_ACEOF
22334rm -f conftest.$ac_objext
22335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22336 (eval $ac_compile) 2>&5
22337 ac_status=$?
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); } &&
22340 { ac_try='test -s conftest.$ac_objext'
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22343 ac_status=$?
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; }; then
22346
21d1c967 22347 xpm_link=" -lXpm"
e6cc62c6 22348 cat >>confdefs.h <<\_ACEOF
21d1c967 22349#define wxHAVE_LIB_XPM 1
e6cc62c6 22350_ACEOF
90dd450c 22351
e6cc62c6
VS
22352 echo "$as_me:$LINENO: result: found in default search path" >&5
22353echo "${ECHO_T}found in default search path" >&6
21d1c967 22354 COMPILED_X_PROGRAM=0
e6cc62c6 22355
21d1c967 22356else
e6cc62c6
VS
22357 echo "$as_me: failed program was:" >&5
22358sed 's/^/| /' conftest.$ac_ext >&5
22359
22360
22361 echo "$as_me:$LINENO: result: no" >&5
22362echo "${ECHO_T}no" >&6
22363 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22364echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22365
22366
6f72b082 22367fi
e6cc62c6 22368rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22369 fi
90dd450c 22370
e6cc62c6
VS
22371 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22372echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22373if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22375else
e6cc62c6 22376 ac_check_lib_save_LIBS=$LIBS
f7f78039 22377LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22378cat >conftest.$ac_ext <<_ACEOF
22379#line $LINENO "configure"
22380/* confdefs.h. */
22381_ACEOF
22382cat confdefs.h >>conftest.$ac_ext
22383cat >>conftest.$ac_ext <<_ACEOF
22384/* end confdefs.h. */
22385
f7f78039 22386/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22387#ifdef __cplusplus
22388extern "C"
22389#endif
f7f78039 22390/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22391 builtin and then its argument prototype would still apply. */
22392char XShapeQueryExtension ();
22393int
22394main ()
22395{
22396XShapeQueryExtension ();
22397 ;
22398 return 0;
22399}
22400_ACEOF
22401rm -f conftest.$ac_objext conftest$ac_exeext
22402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22403 (eval $ac_link) 2>&5
22404 ac_status=$?
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } &&
22407 { ac_try='test -s conftest$ac_exeext'
22408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22409 (eval $ac_try) 2>&5
22410 ac_status=$?
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); }; }; then
22413 ac_cv_lib_Xext_XShapeQueryExtension=yes
22414else
22415 echo "$as_me: failed program was:" >&5
22416sed 's/^/| /' conftest.$ac_ext >&5
22417
22418ac_cv_lib_Xext_XShapeQueryExtension=no
22419fi
22420rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22421LIBS=$ac_check_lib_save_LIBS
22422fi
22423echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22424echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22425if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22426
f7f78039
MB
22427 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22428 wxHAVE_XEXT_LIB=1
e6cc62c6 22429
f7f78039
MB
22430fi
22431
22432
2b5f62a0 22433 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22434
2b5f62a0 22435 succeeded=no
90dd450c 22436
2b5f62a0
VZ
22437 if test -z "$PKG_CONFIG"; then
22438 # Extract the first word of "pkg-config", so it can be a program name with args.
22439set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22440echo "$as_me:$LINENO: checking for $ac_word" >&5
22441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22442if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22444else
e6cc62c6
VS
22445 case $PKG_CONFIG in
22446 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22447 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22448 ;;
2b5f62a0 22449 *)
e6cc62c6
VS
22450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22451for as_dir in $PATH
22452do
22453 IFS=$as_save_IFS
22454 test -z "$as_dir" && as_dir=.
22455 for ac_exec_ext in '' $ac_executable_extensions; do
22456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22457 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22459 break 2
22460 fi
22461done
22462done
22463
2b5f62a0
VZ
22464 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22465 ;;
22466esac
22467fi
e6cc62c6
VS
22468PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22469
2b5f62a0 22470if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22471 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22472echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22473else
e6cc62c6
VS
22474 echo "$as_me:$LINENO: result: no" >&5
22475echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22476fi
22477
22478 fi
22479
22480 if test "$PKG_CONFIG" = "no" ; then
22481 echo "*** The pkg-config script could not be found. Make sure it is"
22482 echo "*** in your path, or set the PKG_CONFIG environment variable"
22483 echo "*** to the full path to pkg-config."
22484 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22485 else
22486 PKG_CONFIG_MIN_VERSION=0.9.0
22487 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22488 echo "$as_me:$LINENO: checking for pangox" >&5
22489echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22490
22491 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22492 echo "$as_me:$LINENO: result: yes" >&5
22493echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22494 succeeded=yes
22495
e6cc62c6
VS
22496 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22497echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22498 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22499 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22500echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22501
e6cc62c6
VS
22502 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22503echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22504 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22505 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22506echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22507 else
22508 PANGOX_CFLAGS=""
22509 PANGOX_LIBS=""
e6cc62c6 22510 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22511 ## do set a variable so people can do so.
22512 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22513
2b5f62a0
VZ
22514 fi
22515
e6cc62c6
VS
22516
22517
2b5f62a0
VZ
22518 else
22519 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22520 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22521 fi
22522 fi
22523
22524 if test $succeeded = yes; then
e6cc62c6 22525
2b5f62a0 22526 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22527 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22528
2b5f62a0 22529 else
e6cc62c6
VS
22530
22531 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22532echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22533 { (exit 1); exit 1; }; }
22534
22535
2b5f62a0
VZ
22536 fi
22537
e6cc62c6 22538
2b5f62a0
VZ
22539 succeeded=no
22540
22541 if test -z "$PKG_CONFIG"; then
22542 # Extract the first word of "pkg-config", so it can be a program name with args.
22543set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22544echo "$as_me:$LINENO: checking for $ac_word" >&5
22545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22546if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22547 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22548else
e6cc62c6
VS
22549 case $PKG_CONFIG in
22550 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22551 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22552 ;;
2b5f62a0 22553 *)
e6cc62c6
VS
22554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22555for as_dir in $PATH
22556do
22557 IFS=$as_save_IFS
22558 test -z "$as_dir" && as_dir=.
22559 for ac_exec_ext in '' $ac_executable_extensions; do
22560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22561 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22563 break 2
22564 fi
22565done
22566done
22567
2b5f62a0
VZ
22568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22569 ;;
22570esac
22571fi
e6cc62c6
VS
22572PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22573
2b5f62a0 22574if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22575 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22576echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22577else
e6cc62c6
VS
22578 echo "$as_me:$LINENO: result: no" >&5
22579echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22580fi
22581
22582 fi
22583
22584 if test "$PKG_CONFIG" = "no" ; then
22585 echo "*** The pkg-config script could not be found. Make sure it is"
22586 echo "*** in your path, or set the PKG_CONFIG environment variable"
22587 echo "*** to the full path to pkg-config."
22588 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22589 else
22590 PKG_CONFIG_MIN_VERSION=0.9.0
22591 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22592 echo "$as_me:$LINENO: checking for pangoft2" >&5
22593echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22594
22595 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22596 echo "$as_me:$LINENO: result: yes" >&5
22597echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22598 succeeded=yes
22599
e6cc62c6
VS
22600 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22601echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22602 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22603 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22604echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22605
e6cc62c6
VS
22606 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22607echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22608 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22609 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22610echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22611 else
22612 PANGOFT2_CFLAGS=""
22613 PANGOFT2_LIBS=""
e6cc62c6 22614 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22615 ## do set a variable so people can do so.
22616 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22617
2b5f62a0
VZ
22618 fi
22619
e6cc62c6
VS
22620
22621
2b5f62a0
VZ
22622 else
22623 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22624 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22625 fi
22626 fi
22627
22628 if test $succeeded = yes; then
e6cc62c6 22629
2b5f62a0 22630 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22631 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22632
2b5f62a0 22633 else
e6cc62c6
VS
22634
22635 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22636echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22637 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22638
22639
2b5f62a0
VZ
22640 fi
22641
e6cc62c6 22642
2b5f62a0
VZ
22643 succeeded=no
22644
22645 if test -z "$PKG_CONFIG"; then
22646 # Extract the first word of "pkg-config", so it can be a program name with args.
22647set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22648echo "$as_me:$LINENO: checking for $ac_word" >&5
22649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22650if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22652else
e6cc62c6
VS
22653 case $PKG_CONFIG in
22654 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22655 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22656 ;;
2b5f62a0 22657 *)
e6cc62c6
VS
22658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22659for as_dir in $PATH
22660do
22661 IFS=$as_save_IFS
22662 test -z "$as_dir" && as_dir=.
22663 for ac_exec_ext in '' $ac_executable_extensions; do
22664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22665 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22667 break 2
22668 fi
22669done
22670done
22671
2b5f62a0
VZ
22672 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22673 ;;
22674esac
22675fi
e6cc62c6
VS
22676PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22677
2b5f62a0 22678if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22679 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22680echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22681else
e6cc62c6
VS
22682 echo "$as_me:$LINENO: result: no" >&5
22683echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22684fi
22685
22686 fi
22687
22688 if test "$PKG_CONFIG" = "no" ; then
22689 echo "*** The pkg-config script could not be found. Make sure it is"
22690 echo "*** in your path, or set the PKG_CONFIG environment variable"
22691 echo "*** to the full path to pkg-config."
22692 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22693 else
22694 PKG_CONFIG_MIN_VERSION=0.9.0
22695 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22696 echo "$as_me:$LINENO: checking for pangoxft" >&5
22697echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22698
22699 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22700 echo "$as_me:$LINENO: result: yes" >&5
22701echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22702 succeeded=yes
22703
e6cc62c6
VS
22704 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22705echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22706 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22707 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22708echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22709
e6cc62c6
VS
22710 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22711echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22712 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22713 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22714echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22715 else
22716 PANGOXFT_CFLAGS=""
22717 PANGOXFT_LIBS=""
e6cc62c6 22718 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22719 ## do set a variable so people can do so.
22720 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22721
2b5f62a0
VZ
22722 fi
22723
e6cc62c6
VS
22724
22725
2b5f62a0
VZ
22726 else
22727 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22728 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22729 fi
22730 fi
22731
22732 if test $succeeded = yes; then
e6cc62c6 22733
2b5f62a0 22734 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22735 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22736
2b5f62a0 22737 else
e6cc62c6
VS
22738
22739 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22740echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22741
22742
2b5f62a0
VZ
22743 fi
22744
22745 fi
22746
22747 wxUSE_UNIVERSAL="yes"
22748
22749 if test "$wxUSE_NANOX" = "yes"; then
22750 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22751 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
22752 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22753 else
22754 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22755 fi
22756
22757 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22758 TOOLKIT=X11
22759 GUIDIST=X11_DIST
22760 fi
22761
21d1c967
GD
22762 if test "$wxUSE_MOTIF" = 1; then
22763 if test "$no_x" = yes; then
22764 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22765
22766cat >>confdefs.h <<\_ACEOF
21d1c967 22767#define X_DISPLAY_MISSING 1
e6cc62c6 22768_ACEOF
21d1c967
GD
22769
22770 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22771else
22772 if test -n "$x_includes"; then
22773 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22774 fi
22775
21d1c967
GD
22776 # It would also be nice to do this for all -L options, not just this one.
22777 if test -n "$x_libraries"; then
22778 X_LIBS="$X_LIBS -L$x_libraries"
22779 # For Solaris; some versions of Sun CC require a space after -R and
22780 # others require no space. Words are not sufficient . . . .
e6cc62c6 22781 case `(uname -sr) 2>/dev/null` in
21d1c967 22782 "SunOS 5"*)
e6cc62c6
VS
22783 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22784echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22785 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22786 cat >conftest.$ac_ext <<_ACEOF
22787#line $LINENO "configure"
22788/* confdefs.h. */
22789_ACEOF
22790cat confdefs.h >>conftest.$ac_ext
22791cat >>conftest.$ac_ext <<_ACEOF
22792/* end confdefs.h. */
22793
22794int
22795main ()
22796{
21d1c967 22797
e6cc62c6
VS
22798 ;
22799 return 0;
22800}
22801_ACEOF
22802rm -f conftest.$ac_objext conftest$ac_exeext
22803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22804 (eval $ac_link) 2>&5
22805 ac_status=$?
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } &&
22808 { ac_try='test -s conftest$ac_exeext'
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22811 ac_status=$?
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; }; then
21d1c967 22814 ac_R_nospace=yes
698dcdb6 22815else
e6cc62c6
VS
22816 echo "$as_me: failed program was:" >&5
22817sed 's/^/| /' conftest.$ac_ext >&5
22818
22819ac_R_nospace=no
10f2d63a 22820fi
e6cc62c6 22821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22822 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22823 echo "$as_me:$LINENO: result: no" >&5
22824echo "${ECHO_T}no" >&6
21d1c967
GD
22825 X_LIBS="$X_LIBS -R$x_libraries"
22826 else
22827 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22828 cat >conftest.$ac_ext <<_ACEOF
22829#line $LINENO "configure"
22830/* confdefs.h. */
22831_ACEOF
22832cat confdefs.h >>conftest.$ac_ext
22833cat >>conftest.$ac_ext <<_ACEOF
22834/* end confdefs.h. */
22835
22836int
22837main ()
22838{
f0c87536 22839
e6cc62c6
VS
22840 ;
22841 return 0;
22842}
22843_ACEOF
22844rm -f conftest.$ac_objext conftest$ac_exeext
22845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22846 (eval $ac_link) 2>&5
22847 ac_status=$?
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } &&
22850 { ac_try='test -s conftest$ac_exeext'
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22853 ac_status=$?
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; }; then
21d1c967
GD
22856 ac_R_space=yes
22857else
e6cc62c6
VS
22858 echo "$as_me: failed program was:" >&5
22859sed 's/^/| /' conftest.$ac_ext >&5
22860
22861ac_R_space=no
21d1c967 22862fi
e6cc62c6 22863rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22864 if test $ac_R_space = yes; then
e6cc62c6
VS
22865 echo "$as_me:$LINENO: result: yes" >&5
22866echo "${ECHO_T}yes" >&6
21d1c967
GD
22867 X_LIBS="$X_LIBS -R $x_libraries"
22868 else
e6cc62c6
VS
22869 echo "$as_me:$LINENO: result: neither works" >&5
22870echo "${ECHO_T}neither works" >&6
21d1c967
GD
22871 fi
22872 fi
e6cc62c6 22873 LIBS=$ac_xsave_LIBS
21d1c967
GD
22874 esac
22875 fi
90dd450c 22876
21d1c967
GD
22877 # Check for system-dependent libraries X programs must link with.
22878 # Do this before checking for the system-independent R6 libraries
22879 # (-lICE), since we may need -lsocket or whatever for X linking.
22880
22881 if test "$ISC" = yes; then
22882 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22883 else
e6cc62c6
VS
22884 # Martyn Johnson says this is needed for Ultrix, if the X
22885 # libraries were built with DECnet support. And Karl Berry says
21d1c967 22886 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22887 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22888 cat >conftest.$ac_ext <<_ACEOF
22889#line $LINENO "configure"
22890/* confdefs.h. */
22891_ACEOF
22892cat confdefs.h >>conftest.$ac_ext
22893cat >>conftest.$ac_ext <<_ACEOF
22894/* end confdefs.h. */
22895
247f5006 22896/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22897#ifdef __cplusplus
22898extern "C"
22899#endif
247f5006 22900/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22901 builtin and then its argument prototype would still apply. */
22902char XOpenDisplay ();
22903int
22904main ()
22905{
22906XOpenDisplay ();
22907 ;
22908 return 0;
22909}
22910_ACEOF
22911rm -f conftest.$ac_objext conftest$ac_exeext
22912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22913 (eval $ac_link) 2>&5
22914 ac_status=$?
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } &&
22917 { ac_try='test -s conftest$ac_exeext'
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; }; then
22923 :
22924else
22925 echo "$as_me: failed program was:" >&5
22926sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22927
e6cc62c6
VS
22928echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22929echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22930if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22931 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22932else
e6cc62c6
VS
22933 ac_check_lib_save_LIBS=$LIBS
22934LIBS="-ldnet $LIBS"
22935cat >conftest.$ac_ext <<_ACEOF
22936#line $LINENO "configure"
22937/* confdefs.h. */
22938_ACEOF
22939cat confdefs.h >>conftest.$ac_ext
22940cat >>conftest.$ac_ext <<_ACEOF
22941/* end confdefs.h. */
a0b9e27f 22942
e6cc62c6
VS
22943/* Override any gcc2 internal prototype to avoid an error. */
22944#ifdef __cplusplus
22945extern "C"
22946#endif
22947/* We use char because int might match the return type of a gcc2
22948 builtin and then its argument prototype would still apply. */
22949char dnet_ntoa ();
22950int
22951main ()
22952{
22953dnet_ntoa ();
22954 ;
22955 return 0;
22956}
22957_ACEOF
22958rm -f conftest.$ac_objext conftest$ac_exeext
22959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22960 (eval $ac_link) 2>&5
22961 ac_status=$?
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } &&
22964 { ac_try='test -s conftest$ac_exeext'
22965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22966 (eval $ac_try) 2>&5
22967 ac_status=$?
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); }; }; then
22970 ac_cv_lib_dnet_dnet_ntoa=yes
22971else
22972 echo "$as_me: failed program was:" >&5
22973sed 's/^/| /' conftest.$ac_ext >&5
22974
22975ac_cv_lib_dnet_dnet_ntoa=no
22976fi
22977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22978LIBS=$ac_check_lib_save_LIBS
22979fi
22980echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22981echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22982if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 22983 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 22984fi
0fb0dd83 22985
21d1c967 22986 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
22987 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22988echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22989if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22990 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22991else
e6cc62c6 22992 ac_check_lib_save_LIBS=$LIBS
21d1c967 22993LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
22994cat >conftest.$ac_ext <<_ACEOF
22995#line $LINENO "configure"
22996/* confdefs.h. */
22997_ACEOF
22998cat confdefs.h >>conftest.$ac_ext
22999cat >>conftest.$ac_ext <<_ACEOF
23000/* end confdefs.h. */
23001
21d1c967 23002/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23003#ifdef __cplusplus
23004extern "C"
23005#endif
21d1c967 23006/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23007 builtin and then its argument prototype would still apply. */
23008char dnet_ntoa ();
23009int
23010main ()
23011{
23012dnet_ntoa ();
23013 ;
23014 return 0;
23015}
23016_ACEOF
23017rm -f conftest.$ac_objext conftest$ac_exeext
23018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23019 (eval $ac_link) 2>&5
23020 ac_status=$?
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } &&
23023 { ac_try='test -s conftest$ac_exeext'
23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; }; then
23029 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23030else
23031 echo "$as_me: failed program was:" >&5
23032sed 's/^/| /' conftest.$ac_ext >&5
23033
23034ac_cv_lib_dnet_stub_dnet_ntoa=no
23035fi
23036rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23037LIBS=$ac_check_lib_save_LIBS
23038fi
23039echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23040echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23041if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23042 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23043fi
23044
21d1c967 23045 fi
e6cc62c6
VS
23046fi
23047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23048 LIBS="$ac_xsave_LIBS"
90dd450c 23049
21d1c967
GD
23050 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23051 # to get the SysV transport functions.
e6cc62c6 23052 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23053 # needs -lnsl.
23054 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23055 # on Irix 5.2, according to T.E. Dickey.
23056 # The functions gethostbyname, getservbyname, and inet_addr are
23057 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23058 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23059echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23060if test "${ac_cv_func_gethostbyname+set}" = set; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
23062else
23063 cat >conftest.$ac_ext <<_ACEOF
23064#line $LINENO "configure"
23065/* confdefs.h. */
23066_ACEOF
23067cat confdefs.h >>conftest.$ac_ext
23068cat >>conftest.$ac_ext <<_ACEOF
23069/* end confdefs.h. */
21d1c967 23070/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23071 which can conflict with char gethostbyname (); below.
23072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23073 <limits.h> exists even on freestanding compilers. */
23074#ifdef __STDC__
23075# include <limits.h>
23076#else
23077# include <assert.h>
23078#endif
21d1c967 23079/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23080#ifdef __cplusplus
23081extern "C"
23082{
23083#endif
21d1c967 23084/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23085 builtin and then its argument prototype would still apply. */
23086char gethostbyname ();
21d1c967
GD
23087/* The GNU C library defines this for functions which it implements
23088 to always fail with ENOSYS. Some functions are actually named
23089 something starting with __ and the normal name is an alias. */
23090#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23091choke me
23092#else
e6cc62c6
VS
23093char (*f) () = gethostbyname;
23094#endif
23095#ifdef __cplusplus
23096}
21d1c967 23097#endif
90dd450c 23098
e6cc62c6
VS
23099int
23100main ()
23101{
23102return f != gethostbyname;
23103 ;
23104 return 0;
23105}
23106_ACEOF
23107rm -f conftest.$ac_objext conftest$ac_exeext
23108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23109 (eval $ac_link) 2>&5
23110 ac_status=$?
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } &&
23113 { ac_try='test -s conftest$ac_exeext'
23114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115 (eval $ac_try) 2>&5
23116 ac_status=$?
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; }; then
23119 ac_cv_func_gethostbyname=yes
23120else
23121 echo "$as_me: failed program was:" >&5
23122sed 's/^/| /' conftest.$ac_ext >&5
23123
23124ac_cv_func_gethostbyname=no
23125fi
23126rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23127fi
23128echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23129echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23130
21d1c967 23131 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23132 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23133echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23134if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23135 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23136else
e6cc62c6 23137 ac_check_lib_save_LIBS=$LIBS
21d1c967 23138LIBS="-lnsl $LIBS"
e6cc62c6
VS
23139cat >conftest.$ac_ext <<_ACEOF
23140#line $LINENO "configure"
23141/* confdefs.h. */
23142_ACEOF
23143cat confdefs.h >>conftest.$ac_ext
23144cat >>conftest.$ac_ext <<_ACEOF
23145/* end confdefs.h. */
23146
21d1c967 23147/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23148#ifdef __cplusplus
23149extern "C"
23150#endif
21d1c967 23151/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23152 builtin and then its argument prototype would still apply. */
23153char gethostbyname ();
23154int
23155main ()
23156{
23157gethostbyname ();
23158 ;
23159 return 0;
23160}
23161_ACEOF
23162rm -f conftest.$ac_objext conftest$ac_exeext
23163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23164 (eval $ac_link) 2>&5
23165 ac_status=$?
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } &&
23168 { ac_try='test -s conftest$ac_exeext'
23169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170 (eval $ac_try) 2>&5
23171 ac_status=$?
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; }; then
23174 ac_cv_lib_nsl_gethostbyname=yes
23175else
23176 echo "$as_me: failed program was:" >&5
23177sed 's/^/| /' conftest.$ac_ext >&5
23178
23179ac_cv_lib_nsl_gethostbyname=no
23180fi
23181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23182LIBS=$ac_check_lib_save_LIBS
23183fi
23184echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23185echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23186if test $ac_cv_lib_nsl_gethostbyname = yes; then
23187 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23188fi
247f5006 23189
e6cc62c6
VS
23190 if test $ac_cv_lib_nsl_gethostbyname = no; then
23191 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23192echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23193if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23194 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23195else
e6cc62c6
VS
23196 ac_check_lib_save_LIBS=$LIBS
23197LIBS="-lbsd $LIBS"
23198cat >conftest.$ac_ext <<_ACEOF
23199#line $LINENO "configure"
23200/* confdefs.h. */
23201_ACEOF
23202cat confdefs.h >>conftest.$ac_ext
23203cat >>conftest.$ac_ext <<_ACEOF
23204/* end confdefs.h. */
23205
23206/* Override any gcc2 internal prototype to avoid an error. */
23207#ifdef __cplusplus
23208extern "C"
23209#endif
23210/* We use char because int might match the return type of a gcc2
23211 builtin and then its argument prototype would still apply. */
23212char gethostbyname ();
23213int
23214main ()
23215{
23216gethostbyname ();
23217 ;
23218 return 0;
23219}
23220_ACEOF
23221rm -f conftest.$ac_objext conftest$ac_exeext
23222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23223 (eval $ac_link) 2>&5
23224 ac_status=$?
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); } &&
23227 { ac_try='test -s conftest$ac_exeext'
23228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229 (eval $ac_try) 2>&5
23230 ac_status=$?
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); }; }; then
23233 ac_cv_lib_bsd_gethostbyname=yes
23234else
23235 echo "$as_me: failed program was:" >&5
23236sed 's/^/| /' conftest.$ac_ext >&5
23237
23238ac_cv_lib_bsd_gethostbyname=no
23239fi
23240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23241LIBS=$ac_check_lib_save_LIBS
23242fi
23243echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23244echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23245if test $ac_cv_lib_bsd_gethostbyname = yes; then
23246 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23247fi
90dd450c 23248
e6cc62c6 23249 fi
90dd450c
VZ
23250 fi
23251
21d1c967
GD
23252 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23253 # socket/setsockopt and other routines are undefined under SCO ODT
23254 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23255 # on later versions), says Simon Leinen: it contains gethostby*
23256 # variants that don't use the name server (or something). -lsocket
23257 # must be given before -lnsl if both are needed. We assume that
23258 # if connect needs -lnsl, so does gethostbyname.
23259 echo "$as_me:$LINENO: checking for connect" >&5
23260echo $ECHO_N "checking for connect... $ECHO_C" >&6
23261if test "${ac_cv_func_connect+set}" = set; then
23262 echo $ECHO_N "(cached) $ECHO_C" >&6
23263else
23264 cat >conftest.$ac_ext <<_ACEOF
23265#line $LINENO "configure"
23266/* confdefs.h. */
23267_ACEOF
23268cat confdefs.h >>conftest.$ac_ext
23269cat >>conftest.$ac_ext <<_ACEOF
23270/* end confdefs.h. */
21d1c967 23271/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23272 which can conflict with char connect (); below.
23273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23274 <limits.h> exists even on freestanding compilers. */
23275#ifdef __STDC__
23276# include <limits.h>
23277#else
23278# include <assert.h>
23279#endif
21d1c967 23280/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23281#ifdef __cplusplus
23282extern "C"
23283{
23284#endif
21d1c967 23285/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23286 builtin and then its argument prototype would still apply. */
23287char connect ();
21d1c967
GD
23288/* The GNU C library defines this for functions which it implements
23289 to always fail with ENOSYS. Some functions are actually named
23290 something starting with __ and the normal name is an alias. */
23291#if defined (__stub_connect) || defined (__stub___connect)
23292choke me
23293#else
e6cc62c6
VS
23294char (*f) () = connect;
23295#endif
23296#ifdef __cplusplus
23297}
21d1c967 23298#endif
90dd450c 23299
e6cc62c6
VS
23300int
23301main ()
23302{
23303return f != connect;
23304 ;
23305 return 0;
23306}
23307_ACEOF
23308rm -f conftest.$ac_objext conftest$ac_exeext
23309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23310 (eval $ac_link) 2>&5
23311 ac_status=$?
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } &&
23314 { ac_try='test -s conftest$ac_exeext'
23315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316 (eval $ac_try) 2>&5
23317 ac_status=$?
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); }; }; then
23320 ac_cv_func_connect=yes
23321else
23322 echo "$as_me: failed program was:" >&5
23323sed 's/^/| /' conftest.$ac_ext >&5
23324
23325ac_cv_func_connect=no
23326fi
23327rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23328fi
23329echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23330echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23331
21d1c967 23332 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23333 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23334echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23335if test "${ac_cv_lib_socket_connect+set}" = set; then
23336 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23337else
e6cc62c6 23338 ac_check_lib_save_LIBS=$LIBS
21d1c967 23339LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23340cat >conftest.$ac_ext <<_ACEOF
23341#line $LINENO "configure"
23342/* confdefs.h. */
23343_ACEOF
23344cat confdefs.h >>conftest.$ac_ext
23345cat >>conftest.$ac_ext <<_ACEOF
23346/* end confdefs.h. */
23347
21d1c967 23348/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23349#ifdef __cplusplus
23350extern "C"
23351#endif
21d1c967 23352/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23353 builtin and then its argument prototype would still apply. */
23354char connect ();
23355int
23356main ()
23357{
23358connect ();
23359 ;
23360 return 0;
23361}
23362_ACEOF
23363rm -f conftest.$ac_objext conftest$ac_exeext
23364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23365 (eval $ac_link) 2>&5
23366 ac_status=$?
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); } &&
23369 { ac_try='test -s conftest$ac_exeext'
23370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); }; }; then
23375 ac_cv_lib_socket_connect=yes
23376else
23377 echo "$as_me: failed program was:" >&5
23378sed 's/^/| /' conftest.$ac_ext >&5
23379
23380ac_cv_lib_socket_connect=no
23381fi
23382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23383LIBS=$ac_check_lib_save_LIBS
23384fi
23385echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23386echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23387if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23388 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23389fi
90dd450c 23390
21d1c967 23391 fi
90dd450c 23392
e6cc62c6
VS
23393 # Guillermo Gomez says -lposix is necessary on A/UX.
23394 echo "$as_me:$LINENO: checking for remove" >&5
23395echo $ECHO_N "checking for remove... $ECHO_C" >&6
23396if test "${ac_cv_func_remove+set}" = set; then
23397 echo $ECHO_N "(cached) $ECHO_C" >&6
23398else
23399 cat >conftest.$ac_ext <<_ACEOF
23400#line $LINENO "configure"
23401/* confdefs.h. */
23402_ACEOF
23403cat confdefs.h >>conftest.$ac_ext
23404cat >>conftest.$ac_ext <<_ACEOF
23405/* end confdefs.h. */
21d1c967 23406/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23407 which can conflict with char remove (); below.
23408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23409 <limits.h> exists even on freestanding compilers. */
23410#ifdef __STDC__
23411# include <limits.h>
23412#else
23413# include <assert.h>
23414#endif
21d1c967 23415/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23416#ifdef __cplusplus
23417extern "C"
23418{
23419#endif
21d1c967 23420/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23421 builtin and then its argument prototype would still apply. */
23422char remove ();
21d1c967
GD
23423/* The GNU C library defines this for functions which it implements
23424 to always fail with ENOSYS. Some functions are actually named
23425 something starting with __ and the normal name is an alias. */
23426#if defined (__stub_remove) || defined (__stub___remove)
23427choke me
23428#else
e6cc62c6
VS
23429char (*f) () = remove;
23430#endif
23431#ifdef __cplusplus
23432}
21d1c967 23433#endif
90dd450c 23434
e6cc62c6
VS
23435int
23436main ()
23437{
23438return f != remove;
23439 ;
23440 return 0;
23441}
23442_ACEOF
23443rm -f conftest.$ac_objext conftest$ac_exeext
23444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23445 (eval $ac_link) 2>&5
23446 ac_status=$?
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } &&
23449 { ac_try='test -s conftest$ac_exeext'
23450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451 (eval $ac_try) 2>&5
23452 ac_status=$?
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); }; }; then
23455 ac_cv_func_remove=yes
23456else
23457 echo "$as_me: failed program was:" >&5
23458sed 's/^/| /' conftest.$ac_ext >&5
23459
23460ac_cv_func_remove=no
23461fi
23462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23463fi
23464echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23465echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23466
21d1c967 23467 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23468 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23469echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23470if test "${ac_cv_lib_posix_remove+set}" = set; then
23471 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23472else
e6cc62c6 23473 ac_check_lib_save_LIBS=$LIBS
21d1c967 23474LIBS="-lposix $LIBS"
e6cc62c6
VS
23475cat >conftest.$ac_ext <<_ACEOF
23476#line $LINENO "configure"
23477/* confdefs.h. */
23478_ACEOF
23479cat confdefs.h >>conftest.$ac_ext
23480cat >>conftest.$ac_ext <<_ACEOF
23481/* end confdefs.h. */
23482
21d1c967 23483/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23484#ifdef __cplusplus
23485extern "C"
23486#endif
21d1c967 23487/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23488 builtin and then its argument prototype would still apply. */
23489char remove ();
23490int
23491main ()
23492{
23493remove ();
23494 ;
23495 return 0;
23496}
23497_ACEOF
23498rm -f conftest.$ac_objext conftest$ac_exeext
23499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23500 (eval $ac_link) 2>&5
23501 ac_status=$?
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } &&
23504 { ac_try='test -s conftest$ac_exeext'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; }; then
23510 ac_cv_lib_posix_remove=yes
23511else
23512 echo "$as_me: failed program was:" >&5
23513sed 's/^/| /' conftest.$ac_ext >&5
23514
23515ac_cv_lib_posix_remove=no
23516fi
23517rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23518LIBS=$ac_check_lib_save_LIBS
23519fi
23520echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23521echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23522if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23524fi
19bc6aad 23525
90dd450c 23526 fi
19bc6aad 23527
21d1c967 23528 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23529 echo "$as_me:$LINENO: checking for shmat" >&5
23530echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23531if test "${ac_cv_func_shmat+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23533else
23534 cat >conftest.$ac_ext <<_ACEOF
23535#line $LINENO "configure"
23536/* confdefs.h. */
23537_ACEOF
23538cat confdefs.h >>conftest.$ac_ext
23539cat >>conftest.$ac_ext <<_ACEOF
23540/* end confdefs.h. */
21d1c967 23541/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23542 which can conflict with char shmat (); below.
23543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23544 <limits.h> exists even on freestanding compilers. */
23545#ifdef __STDC__
23546# include <limits.h>
23547#else
23548# include <assert.h>
23549#endif
21d1c967 23550/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23551#ifdef __cplusplus
23552extern "C"
23553{
23554#endif
21d1c967 23555/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23556 builtin and then its argument prototype would still apply. */
23557char shmat ();
21d1c967
GD
23558/* The GNU C library defines this for functions which it implements
23559 to always fail with ENOSYS. Some functions are actually named
23560 something starting with __ and the normal name is an alias. */
23561#if defined (__stub_shmat) || defined (__stub___shmat)
23562choke me
23563#else
e6cc62c6
VS
23564char (*f) () = shmat;
23565#endif
23566#ifdef __cplusplus
23567}
21d1c967 23568#endif
90dd450c 23569
e6cc62c6
VS
23570int
23571main ()
23572{
23573return f != shmat;
23574 ;
23575 return 0;
23576}
23577_ACEOF
23578rm -f conftest.$ac_objext conftest$ac_exeext
23579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23580 (eval $ac_link) 2>&5
23581 ac_status=$?
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } &&
23584 { ac_try='test -s conftest$ac_exeext'
23585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586 (eval $ac_try) 2>&5
23587 ac_status=$?
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); }; }; then
23590 ac_cv_func_shmat=yes
23591else
23592 echo "$as_me: failed program was:" >&5
23593sed 's/^/| /' conftest.$ac_ext >&5
23594
23595ac_cv_func_shmat=no
23596fi
23597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23598fi
23599echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23600echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23601
21d1c967 23602 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23603 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23604echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23605if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23606 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23607else
e6cc62c6 23608 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23609LIBS="-lipc $LIBS"
e6cc62c6
VS
23610cat >conftest.$ac_ext <<_ACEOF
23611#line $LINENO "configure"
23612/* confdefs.h. */
23613_ACEOF
23614cat confdefs.h >>conftest.$ac_ext
23615cat >>conftest.$ac_ext <<_ACEOF
23616/* end confdefs.h. */
23617
5c6fa7d2 23618/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23619#ifdef __cplusplus
23620extern "C"
23621#endif
5c6fa7d2 23622/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23623 builtin and then its argument prototype would still apply. */
23624char shmat ();
23625int
23626main ()
23627{
23628shmat ();
23629 ;
23630 return 0;
23631}
23632_ACEOF
23633rm -f conftest.$ac_objext conftest$ac_exeext
23634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23635 (eval $ac_link) 2>&5
23636 ac_status=$?
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } &&
23639 { ac_try='test -s conftest$ac_exeext'
23640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23641 (eval $ac_try) 2>&5
23642 ac_status=$?
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); }; }; then
23645 ac_cv_lib_ipc_shmat=yes
23646else
23647 echo "$as_me: failed program was:" >&5
23648sed 's/^/| /' conftest.$ac_ext >&5
23649
23650ac_cv_lib_ipc_shmat=no
23651fi
23652rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23653LIBS=$ac_check_lib_save_LIBS
23654fi
23655echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23656echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23657if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23658 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23659fi
90dd450c 23660
90dd450c 23661 fi
21d1c967 23662 fi
10f2d63a 23663
21d1c967 23664 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23665 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23666 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23667 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23668 # check for ICE first), but we must link in the order -lSM -lICE or
23669 # we get undefined symbols. So assume we have SM if we have ICE.
23670 # These have to be linked with before -lX11, unlike the other
23671 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23672 # John Interrante, Karl Berry
23673 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23674echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23675if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23676 echo $ECHO_N "(cached) $ECHO_C" >&6
23677else
23678 ac_check_lib_save_LIBS=$LIBS
f09359cf 23679LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23680cat >conftest.$ac_ext <<_ACEOF
23681#line $LINENO "configure"
23682/* confdefs.h. */
23683_ACEOF
23684cat confdefs.h >>conftest.$ac_ext
23685cat >>conftest.$ac_ext <<_ACEOF
23686/* end confdefs.h. */
23687
21d1c967 23688/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23689#ifdef __cplusplus
23690extern "C"
23691#endif
21d1c967 23692/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23693 builtin and then its argument prototype would still apply. */
23694char IceConnectionNumber ();
23695int
23696main ()
23697{
23698IceConnectionNumber ();
23699 ;
23700 return 0;
23701}
23702_ACEOF
23703rm -f conftest.$ac_objext conftest$ac_exeext
23704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23705 (eval $ac_link) 2>&5
23706 ac_status=$?
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } &&
23709 { ac_try='test -s conftest$ac_exeext'
23710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23711 (eval $ac_try) 2>&5
23712 ac_status=$?
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); }; }; then
23715 ac_cv_lib_ICE_IceConnectionNumber=yes
23716else
23717 echo "$as_me: failed program was:" >&5
23718sed 's/^/| /' conftest.$ac_ext >&5
23719
23720ac_cv_lib_ICE_IceConnectionNumber=no
23721fi
23722rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23723LIBS=$ac_check_lib_save_LIBS
23724fi
23725echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23726echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23727if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23728 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23729fi
21d1c967 23730
e6cc62c6 23731 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23732
10f2d63a
VZ
23733fi
23734
8284b0c5 23735
21d1c967 23736 if test "$no_x" = "yes"; then
e6cc62c6
VS
23737 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23738echo "$as_me: error: X11 not found" >&2;}
23739 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23740 fi
23741
2b5f62a0
VZ
23742 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23743 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23744 AFMINSTALL=afminstall
23745 COMPILED_X_PROGRAM=0
23746
e6cc62c6
VS
23747 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23748echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23749
21d1c967 23750ac_find_includes=
2b5f62a0 23751for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23752 do
23753 if test -f "$ac_dir/Xm/Xm.h"; then
23754 ac_find_includes=$ac_dir
23755 break
23756 fi
23757 done
23758
23759 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23760 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23761echo "${ECHO_T}found in $ac_find_includes" >&6
23762
2b5f62a0 23763 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23764 ac_path_to_include=""
23765 else
2b5f62a0
VZ
23766 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23767 result=$?
23768 if test $result = 0; then
23769 ac_path_to_include=""
23770 else
23771 ac_path_to_include=" -I$ac_find_includes"
23772 fi
dd0e4a90
VZ
23773 fi
23774
23775 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23776 else
e6cc62c6
VS
23777 cat >conftest.$ac_ext <<_ACEOF
23778#line $LINENO "configure"
23779/* confdefs.h. */
23780_ACEOF
23781cat confdefs.h >>conftest.$ac_ext
23782cat >>conftest.$ac_ext <<_ACEOF
23783/* end confdefs.h. */
21d1c967
GD
23784
23785 #include <Xm/Xm.h>
e6cc62c6
VS
23786
23787int
23788main ()
23789{
21d1c967
GD
23790
23791 int version;
23792 version = xmUseVersion;
e6cc62c6
VS
23793
23794 ;
23795 return 0;
23796}
23797_ACEOF
23798rm -f conftest.$ac_objext
23799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23800 (eval $ac_compile) 2>&5
23801 ac_status=$?
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); } &&
23804 { ac_try='test -s conftest.$ac_objext'
23805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23806 (eval $ac_try) 2>&5
23807 ac_status=$?
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); }; }; then
23810
23811 echo "$as_me:$LINENO: result: found in default search path" >&5
23812echo "${ECHO_T}found in default search path" >&6
21d1c967 23813 COMPILED_X_PROGRAM=1
e6cc62c6 23814
10f2d63a 23815else
e6cc62c6
VS
23816 echo "$as_me: failed program was:" >&5
23817sed 's/^/| /' conftest.$ac_ext >&5
23818
23819
23820 echo "$as_me:$LINENO: result: no" >&5
23821echo "${ECHO_T}no" >&6
23822 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23823echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23824 { (exit 1); exit 1; }; }
23825
23826
10f2d63a 23827fi
e6cc62c6 23828rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23829 fi
10f2d63a 23830
21d1c967 23831 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23832 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23833echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23834
21d1c967 23835ac_find_libraries=
2b5f62a0 23836for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23837 do
23838 for ac_extension in a so sl dylib; do
23839 if test -f "$ac_dir/libXm.$ac_extension"; then
23840 ac_find_libraries=$ac_dir
23841 break 2
23842 fi
23843 done
23844 done
23845
23846 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23847 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23848echo "${ECHO_T}found at $ac_find_libraries" >&6
23849
21d1c967 23850
21d1c967
GD
23851 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23852 result=$?
23853 if test $result = 0; then
23854 ac_path_to_link=""
23855 else
23856 ac_path_to_link=" -L$ac_find_libraries"
23857 fi
23858
21d1c967 23859 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23860 else
dd0e4a90
VZ
23861 save_CFLAGS=$CFLAGS
23862 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23863
e6cc62c6
VS
23864 cat >conftest.$ac_ext <<_ACEOF
23865#line $LINENO "configure"
23866/* confdefs.h. */
23867_ACEOF
23868cat confdefs.h >>conftest.$ac_ext
23869cat >>conftest.$ac_ext <<_ACEOF
23870/* end confdefs.h. */
21d1c967
GD
23871
23872 #include <Xm/Xm.h>
e6cc62c6
VS
23873
23874int
23875main ()
23876{
21d1c967
GD
23877
23878 int version;
23879 version = xmUseVersion;
e6cc62c6
VS
23880
23881 ;
23882 return 0;
23883}
23884_ACEOF
23885rm -f conftest.$ac_objext
23886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23887 (eval $ac_compile) 2>&5
23888 ac_status=$?
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } &&
23891 { ac_try='test -s conftest.$ac_objext'
23892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23893 (eval $ac_try) 2>&5
23894 ac_status=$?
23895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); }; }; then
23897
23898 echo "$as_me:$LINENO: result: found in default search path" >&5
23899echo "${ECHO_T}found in default search path" >&6
21d1c967 23900 COMPILED_X_PROGRAM=1
e6cc62c6 23901
d836ee96 23902else
e6cc62c6
VS
23903 echo "$as_me: failed program was:" >&5
23904sed 's/^/| /' conftest.$ac_ext >&5
23905
23906
23907 echo "$as_me:$LINENO: result: no" >&5
23908echo "${ECHO_T}no" >&6
23909 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23910echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23911 { (exit 1); exit 1; }; }
23912
23913
d836ee96 23914fi
e6cc62c6 23915rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23916
23917 CFLAGS=$save_CFLAGS
21d1c967
GD
23918 fi
23919 fi
23920
23921 xpm_link=
e6cc62c6
VS
23922 echo "$as_me:$LINENO: checking for Xpm library" >&5
23923echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23924
21d1c967 23925ac_find_libraries=
2b5f62a0 23926for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23927 do
23928 for ac_extension in a so sl dylib; do
23929 if test -f "$ac_dir/libXpm.$ac_extension"; then
23930 ac_find_libraries=$ac_dir
23931 break 2
23932 fi
23933 done
23934 done
23935
23936 if test "$ac_find_libraries" != "" ; then
e6cc62c6 23937
21d1c967
GD
23938 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23939 result=$?
23940 if test $result = 0; then
23941 ac_path_to_link=""
23942 else
23943 ac_path_to_link=" -L$ac_find_libraries"
23944 fi
23945
23946 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 23947
21d1c967 23948 xpm_link=" -lXpm"
e6cc62c6 23949 cat >>confdefs.h <<\_ACEOF
21d1c967 23950#define wxHAVE_LIB_XPM 1
e6cc62c6 23951_ACEOF
90dd450c 23952
e6cc62c6
VS
23953 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23954echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 23955 else
dd0e4a90
VZ
23956 save_CFLAGS=$CFLAGS
23957 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23958
e6cc62c6
VS
23959 cat >conftest.$ac_ext <<_ACEOF
23960#line $LINENO "configure"
23961/* confdefs.h. */
23962_ACEOF
23963cat confdefs.h >>conftest.$ac_ext
23964cat >>conftest.$ac_ext <<_ACEOF
23965/* end confdefs.h. */
21d1c967
GD
23966
23967 #include <X11/xpm.h>
e6cc62c6
VS
23968
23969int
23970main ()
23971{
21d1c967
GD
23972
23973 int version;
23974 version = XpmLibraryVersion();
e6cc62c6
VS
23975
23976 ;
23977 return 0;
23978}
23979_ACEOF
23980rm -f conftest.$ac_objext
23981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23982 (eval $ac_compile) 2>&5
23983 ac_status=$?
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); } &&
23986 { ac_try='test -s conftest.$ac_objext'
23987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23988 (eval $ac_try) 2>&5
23989 ac_status=$?
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); }; }; then
23992
21d1c967 23993 xpm_link=" -lXpm"
e6cc62c6 23994 cat >>confdefs.h <<\_ACEOF
21d1c967 23995#define wxHAVE_LIB_XPM 1
e6cc62c6 23996_ACEOF
21d1c967 23997
e6cc62c6
VS
23998 echo "$as_me:$LINENO: result: found in default search path" >&5
23999echo "${ECHO_T}found in default search path" >&6
21d1c967 24000 COMPILED_X_PROGRAM=0
e6cc62c6 24001
d836ee96 24002else
e6cc62c6
VS
24003 echo "$as_me: failed program was:" >&5
24004sed 's/^/| /' conftest.$ac_ext >&5
24005
24006
24007 echo "$as_me:$LINENO: result: no" >&5
24008echo "${ECHO_T}no" >&6
24009 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24010echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24011
24012
d836ee96 24013fi
e6cc62c6 24014rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24015
24016 CFLAGS=$save_CFLAGS
21d1c967
GD
24017 fi
24018
e6cc62c6
VS
24019 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24020echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24021 libp_link=""
24022 libsm_ice_link=""
24023 libs_found=0
24024 for libp in "" " -lXp"; do
24025 if test "$libs_found" = "0"; then
24026 for libsm_ice in " -lSM -lICE"; do
e26c13cf 24027 if test "$libs_found" = "0"; then
6a30f1c8
MB
24028 save_LIBS="$LIBS"
24029 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24030 save_CFLAGS=$CFLAGS
24031 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24032
e6cc62c6
VS
24033 cat >conftest.$ac_ext <<_ACEOF
24034#line $LINENO "configure"
24035/* confdefs.h. */
24036_ACEOF
24037cat confdefs.h >>conftest.$ac_ext
24038cat >>conftest.$ac_ext <<_ACEOF
24039/* end confdefs.h. */
17234b26 24040
6a30f1c8
MB
24041 #include <Xm/Xm.h>
24042 #include <Xm/List.h>
e6cc62c6
VS
24043
24044int
24045main ()
24046{
6a30f1c8
MB
24047
24048 XmString string = NULL;
24049 Widget w = NULL;
24050 int position = 0;
24051 XmListAddItem(w, string, position);
e6cc62c6
VS
24052
24053 ;
24054 return 0;
24055}
24056_ACEOF
24057rm -f conftest.$ac_objext conftest$ac_exeext
24058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24059 (eval $ac_link) 2>&5
24060 ac_status=$?
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); } &&
24063 { ac_try='test -s conftest$ac_exeext'
24064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24065 (eval $ac_try) 2>&5
24066 ac_status=$?
24067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068 (exit $ac_status); }; }; then
24069
6a30f1c8
MB
24070 libp_link="$libp"
24071 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24072 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24073echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24074 libs_found=1
e6cc62c6 24075
6a30f1c8 24076else
e6cc62c6
VS
24077 echo "$as_me: failed program was:" >&5
24078sed 's/^/| /' conftest.$ac_ext >&5
24079
24080
24081
6a30f1c8 24082fi
e6cc62c6 24083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24084
6a30f1c8 24085 LIBS="$save_LIBS"
dd0e4a90 24086 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24087 fi
24088 done
24089 fi
24090 done
24091
24092 if test "$libs_found" = "0"; then
e6cc62c6
VS
24093 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24094echo "${ECHO_T}can't find the right libraries" >&6
24095 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24096echo "$as_me: error: can't link a simple motif program" >&2;}
24097 { (exit 1); exit 1; }; }
6a30f1c8
MB
24098 fi
24099
da494b40
MB
24100 save_CFLAGS=$CFLAGS
24101 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24102 echo "$as_me:$LINENO: checking for Motif 2" >&5
24103echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24104 cat >conftest.$ac_ext <<_ACEOF
24105#line $LINENO "configure"
24106/* confdefs.h. */
24107_ACEOF
24108cat confdefs.h >>conftest.$ac_ext
24109cat >>conftest.$ac_ext <<_ACEOF
24110/* end confdefs.h. */
da494b40
MB
24111
24112 #include <Xm/Xm.h>
e6cc62c6
VS
24113
24114int
24115main ()
24116{
da494b40
MB
24117
24118 #if XmVersion < 2000
24119 #error "Not Motif 2"
24120 #endif
e6cc62c6
VS
24121
24122 ;
24123 return 0;
24124}
24125_ACEOF
24126rm -f conftest.$ac_objext
24127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24128 (eval $ac_compile) 2>&5
24129 ac_status=$?
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } &&
24132 { ac_try='test -s conftest.$ac_objext'
24133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24134 (eval $ac_try) 2>&5
24135 ac_status=$?
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); }; }; then
24138
24139 cat >>confdefs.h <<\_ACEOF
da494b40 24140#define __WXMOTIF20__ 1
e6cc62c6
VS
24141_ACEOF
24142
24143 echo "$as_me:$LINENO: result: found" >&5
24144echo "${ECHO_T}found" >&6
da494b40 24145
da494b40 24146else
e6cc62c6
VS
24147 echo "$as_me: failed program was:" >&5
24148sed 's/^/| /' conftest.$ac_ext >&5
24149
24150
24151 cat >>confdefs.h <<\_ACEOF
da494b40 24152#define __WXMOTIF20__ 0
e6cc62c6
VS
24153_ACEOF
24154
24155 echo "$as_me:$LINENO: result: not found" >&5
24156echo "${ECHO_T}not found" >&6
da494b40 24157
da494b40 24158fi
e6cc62c6 24159rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24160 CFLAGS=$save_CFLAGS
24161
6a30f1c8 24162 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24163 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24164 TOOLKIT=MOTIF
24165 GUIDIST=MOTIF_DIST
f7f78039
MB
24166 wxHAVE_XEXT_LIB=1
24167 fi
24168
24169 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24170 test "$wxHAVE_XEXT_LIB" = 1; then
24171 save_CFLAGS="$CFLAGS"
24172 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24173
e6cc62c6
VS
24174 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24175echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24176 cat >conftest.$ac_ext <<_ACEOF
24177#line $LINENO "configure"
24178/* confdefs.h. */
24179_ACEOF
24180cat confdefs.h >>conftest.$ac_ext
24181cat >>conftest.$ac_ext <<_ACEOF
24182/* end confdefs.h. */
24183
24184 #include <X11/Xlib.h>
f7f78039 24185 #include <X11/extensions/shape.h>
e6cc62c6
VS
24186
24187int
24188main ()
24189{
f7f78039
MB
24190
24191 int dummy1, dummy2;
24192 XShapeQueryExtension((Display*)NULL,
24193 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24194
24195 ;
24196 return 0;
24197}
24198_ACEOF
24199rm -f conftest.$ac_objext
24200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24201 (eval $ac_compile) 2>&5
24202 ac_status=$?
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } &&
24205 { ac_try='test -s conftest.$ac_objext'
24206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24207 (eval $ac_try) 2>&5
24208 ac_status=$?
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); }; }; then
24211
24212 cat >>confdefs.h <<\_ACEOF
f7f78039 24213#define HAVE_XSHAPE 1
e6cc62c6
VS
24214_ACEOF
24215
24216 echo "$as_me:$LINENO: result: found" >&5
24217echo "${ECHO_T}found" >&6
f7f78039 24218
f7f78039 24219else
e6cc62c6
VS
24220 echo "$as_me: failed program was:" >&5
24221sed 's/^/| /' conftest.$ac_ext >&5
24222
24223
24224 echo "$as_me:$LINENO: result: not found" >&5
24225echo "${ECHO_T}not found" >&6
24226
f7f78039 24227fi
e6cc62c6 24228rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24229 CFLAGS="$save_CFLAGS"
21d1c967
GD
24230 fi
24231
24232 if test "$wxUSE_MAC" = 1; then
0c98a14e 24233 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24234
0c98a14e 24235 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24236 TOOLKIT=MAC
24237 GUIDIST=MACX_DIST
24238 fi
24239
ac0c4cc3
DE
24240 if test "$wxUSE_COCOA" = 1; then
24241 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24242 TOOLKIT=COCOA
24243 GUIDIST=COCOA_DIST
24244 fi
24245
21d1c967
GD
24246 if test "$wxUSE_PM" = 1; then
24247 TOOLKIT=PM
24248 GUIDIST=GTK_DIST
e6cc62c6
VS
24249 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24250echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 24251 wxUSE_THREADS="no"
21d1c967
GD
24252 fi
24253
24254 if test "$TOOLKIT" = "PM" ; then
24255 TOOLKIT_DIR="os2"
24256 else
24257 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24258 fi
24259
24260 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24261
24262 if test "$wxUSE_UNIVERSAL" = "yes"; then
24263 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24264
24265 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24266 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24267
24268 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24269 if test "$wxUSE_X11" = 1; then
24270 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24271 else
24272 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24273 fi
24274 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24275 WIDGET_SET=univ
24276 else
24277 ALL_OBJECTS="\$(GUIOBJS)"
24278 ALL_SOURCES="\$(ALL_SOURCES)"
24279 ALL_HEADERS="\$(ALL_HEADERS)"
24280 fi
24281
24282 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24283
24284 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24285 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24286 fi
24287
24288 if test "$wxUSE_HTML" = "yes"; then
24289 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24290 fi
24291
24292 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24293 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24294 fi
24295 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24296 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24297 fi
24298 if test "$wxUSE_LIBPNG" = "builtin" ; then
24299 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24300 fi
24301
24302 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24303 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24304else
21d1c967
GD
24305 USE_GUI=0
24306
24307 TOOLKIT_DIR="base"
24308
24309 if test "$USE_WIN32" = 1 ; then
24310 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24311 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24312
24313 TOOLKIT="MSW"
24314 else
24315 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24316 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24317 fi
24318
24319 ALL_SOURCES="\$(ALL_SOURCES)"
24320 ALL_HEADERS="\$(ALL_HEADERS)"
24321
24322 PORT_FILES="\${top_srcdir}/src/files.lst"
24323
24324 GUIDIST="BASE_DIST"
24325 DISTDIR="wxBase"
d836ee96
VZ
24326fi
24327
8284b0c5 24328
8647bec6
RG
24329
24330
24331IODBC_C_SRC=""
24332
24333
24334if test "$TOOLKIT" != "MSW" ; then
24335
24336 if test "$wxUSE_ODBC" != "no" ; then
e6cc62c6 24337 cat >>confdefs.h <<\_ACEOF
8647bec6 24338#define wxUSE_ODBC 1
e6cc62c6 24339_ACEOF
8647bec6
RG
24340
24341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
e6cc62c6 24342
8647bec6
RG
24343 WXODBCFLAG="-D_IODBC_"
24344
24345
24346 if test "$wxUSE_ODBC" = "sys" ; then
e6cc62c6
VS
24347
24348 if test "${ac_cv_header_sql_h+set}" = set; then
24349 echo "$as_me:$LINENO: checking for sql.h" >&5
24350echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24351if test "${ac_cv_header_sql_h+set}" = set; then
24352 echo $ECHO_N "(cached) $ECHO_C" >&6
24353fi
24354echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24355echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24356else
24357 # Is the header compilable?
24358echo "$as_me:$LINENO: checking sql.h usability" >&5
24359echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24360cat >conftest.$ac_ext <<_ACEOF
24361#line $LINENO "configure"
24362/* confdefs.h. */
24363_ACEOF
24364cat confdefs.h >>conftest.$ac_ext
24365cat >>conftest.$ac_ext <<_ACEOF
24366/* end confdefs.h. */
24367$ac_includes_default
8647bec6 24368#include <sql.h>
e6cc62c6
VS
24369_ACEOF
24370rm -f conftest.$ac_objext
24371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24372 (eval $ac_compile) 2>&5
24373 ac_status=$?
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); } &&
24376 { ac_try='test -s conftest.$ac_objext'
24377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24378 (eval $ac_try) 2>&5
24379 ac_status=$?
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); }; }; then
24382 ac_header_compiler=yes
24383else
24384 echo "$as_me: failed program was:" >&5
24385sed 's/^/| /' conftest.$ac_ext >&5
24386
24387ac_header_compiler=no
24388fi
24389rm -f conftest.$ac_objext conftest.$ac_ext
24390echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24391echo "${ECHO_T}$ac_header_compiler" >&6
24392
24393# Is the header present?
24394echo "$as_me:$LINENO: checking sql.h presence" >&5
24395echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24396cat >conftest.$ac_ext <<_ACEOF
24397#line $LINENO "configure"
24398/* confdefs.h. */
24399_ACEOF
24400cat confdefs.h >>conftest.$ac_ext
24401cat >>conftest.$ac_ext <<_ACEOF
24402/* end confdefs.h. */
24403#include <sql.h>
24404_ACEOF
24405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24407 ac_status=$?
24408 grep -v '^ *+' conftest.er1 >conftest.err
24409 rm -f conftest.er1
24410 cat conftest.err >&5
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); } >/dev/null; then
24413 if test -s conftest.err; then
24414 ac_cpp_err=$ac_c_preproc_warn_flag
24415 else
24416 ac_cpp_err=
24417 fi
24418else
24419 ac_cpp_err=yes
24420fi
24421if test -z "$ac_cpp_err"; then
24422 ac_header_preproc=yes
24423else
24424 echo "$as_me: failed program was:" >&5
24425sed 's/^/| /' conftest.$ac_ext >&5
24426
24427 ac_header_preproc=no
24428fi
24429rm -f conftest.err conftest.$ac_ext
24430echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24431echo "${ECHO_T}$ac_header_preproc" >&6
24432
24433# So? What about this header?
24434case $ac_header_compiler:$ac_header_preproc in
24435 yes:no )
24436 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24437echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24438 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24439echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24440 (
24441 cat <<\_ASBOX
24442## ------------------------------------ ##
24443## Report this to bug-autoconf@gnu.org. ##
24444## ------------------------------------ ##
24445_ASBOX
24446 ) |
24447 sed "s/^/$as_me: WARNING: /" >&2
24448 ;;
24449 no:yes )
24450 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24451echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24452 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24453echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24454 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24455echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24456 (
24457 cat <<\_ASBOX
24458## ------------------------------------ ##
24459## Report this to bug-autoconf@gnu.org. ##
24460## ------------------------------------ ##
24461_ASBOX
24462 ) |
24463 sed "s/^/$as_me: WARNING: /" >&2
24464 ;;
24465esac
24466echo "$as_me:$LINENO: checking for sql.h" >&5
24467echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24468if test "${ac_cv_header_sql_h+set}" = set; then
24469 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24470else
e6cc62c6
VS
24471 ac_cv_header_sql_h=$ac_header_preproc
24472fi
24473echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24474echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24475
8647bec6
RG
24476fi
24477
e6cc62c6
VS
24478
24479 echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5
24480echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6
24481if test "${ac_cv_search_SQLAllocEnv+set}" = set; then
24482 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24483else
e6cc62c6
VS
24484 ac_func_search_save_LIBS=$LIBS
24485ac_cv_search_SQLAllocEnv=no
24486cat >conftest.$ac_ext <<_ACEOF
24487#line $LINENO "configure"
24488/* confdefs.h. */
24489_ACEOF
24490cat confdefs.h >>conftest.$ac_ext
24491cat >>conftest.$ac_ext <<_ACEOF
24492/* end confdefs.h. */
24493
8647bec6 24494/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24495#ifdef __cplusplus
24496extern "C"
24497#endif
8647bec6 24498/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24499 builtin and then its argument prototype would still apply. */
24500char SQLAllocEnv ();
24501int
24502main ()
24503{
24504SQLAllocEnv ();
24505 ;
24506 return 0;
24507}
24508_ACEOF
24509rm -f conftest.$ac_objext conftest$ac_exeext
24510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24511 (eval $ac_link) 2>&5
24512 ac_status=$?
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); } &&
24515 { ac_try='test -s conftest$ac_exeext'
24516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24517 (eval $ac_try) 2>&5
24518 ac_status=$?
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); }; }; then
8647bec6
RG
24521 ac_cv_search_SQLAllocEnv="none required"
24522else
e6cc62c6
VS
24523 echo "$as_me: failed program was:" >&5
24524sed 's/^/| /' conftest.$ac_ext >&5
24525
8647bec6 24526fi
e6cc62c6
VS
24527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24528if test "$ac_cv_search_SQLAllocEnv" = no; then
24529 for ac_lib in iodbc unixodbc odbc ; do
24530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24531 cat >conftest.$ac_ext <<_ACEOF
24532#line $LINENO "configure"
24533/* confdefs.h. */
24534_ACEOF
24535cat confdefs.h >>conftest.$ac_ext
24536cat >>conftest.$ac_ext <<_ACEOF
24537/* end confdefs.h. */
24538
8647bec6 24539/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24540#ifdef __cplusplus
24541extern "C"
24542#endif
8647bec6 24543/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24544 builtin and then its argument prototype would still apply. */
24545char SQLAllocEnv ();
24546int
24547main ()
24548{
24549SQLAllocEnv ();
24550 ;
24551 return 0;
24552}
24553_ACEOF
24554rm -f conftest.$ac_objext conftest$ac_exeext
24555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24556 (eval $ac_link) 2>&5
24557 ac_status=$?
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); } &&
24560 { ac_try='test -s conftest$ac_exeext'
24561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562 (eval $ac_try) 2>&5
24563 ac_status=$?
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); }; }; then
24566 ac_cv_search_SQLAllocEnv="-l$ac_lib"
8647bec6
RG
24567break
24568else
e6cc62c6
VS
24569 echo "$as_me: failed program was:" >&5
24570sed 's/^/| /' conftest.$ac_ext >&5
24571
8647bec6 24572fi
e6cc62c6
VS
24573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24574 done
8647bec6 24575fi
e6cc62c6
VS
24576LIBS=$ac_func_search_save_LIBS
24577fi
24578echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5
24579echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6
24580if test "$ac_cv_search_SQLAllocEnv" != no; then
8647bec6 24581 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
e6cc62c6
VS
24582
24583else
24584
24585 wxUSE_ODBC=builtin;
24586 { echo "$as_me:$LINENO: WARNING: can't find system Odbc library falling back to builtin " >&5
24587echo "$as_me: WARNING: can't find system Odbc library falling back to builtin " >&2;}
24588
8647bec6 24589fi
e6cc62c6 24590
fd3d7534
RG
24591 fi
24592 if test "$wxUSE_ODBC" != "sys" ; then
24593 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8647bec6
RG
24594 fi
24595
24596 fi
e6cc62c6 24597
6232543b 24598fi
21d1c967
GD
24599
24600if test "$wxUSE_REGEX" = "builtin" ; then
24601 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24602fi
21d1c967
GD
24603if test "$wxUSE_ZLIB" = "builtin" ; then
24604 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24605fi
24606
8284b0c5 24607
4d264332 24608USE_OPENGL=0
21d1c967 24609if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24610 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24611 OPENGL_LIBS="-framework OpenGL -framework AGL"
24612 elif test "$wxUSE_MSW" = 1; then
24613 OPENGL_LIBS="-lopengl32 -lglu32"
24614 else
01aa5863
VS
24615
24616
24617ac_find_includes=
24618for ac_dir in $SEARCH_INCLUDE /usr/include;
24619 do
24620 if test -f "$ac_dir/GL/gl.h"; then
24621 ac_find_includes=$ac_dir
24622 break
24623 fi
24624 done
24625
24626 if test "$ac_find_includes" != "" ; then
24627 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24628echo "${ECHO_T}found in $ac_find_includes" >&6
24629 set -x
24630
24631 if test "x$ac_find_includes" = "x/usr/include"; then
24632 ac_path_to_include=""
24633 else
24634 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24635 result=$?
24636 if test $result = 0; then
24637 ac_path_to_include=""
24638 else
24639 ac_path_to_include=" -I$ac_find_includes"
24640 fi
24641 fi
24642
24643 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24644 set +x
24645 fi
24646
e6cc62c6
VS
24647 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24648 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24649echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24650if test "${ac_cv_header_GL_gl_h+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24652fi
24653echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24654echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24655else
24656 # Is the header compilable?
24657echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24658echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24659cat >conftest.$ac_ext <<_ACEOF
24660#line $LINENO "configure"
24661/* confdefs.h. */
24662_ACEOF
24663cat confdefs.h >>conftest.$ac_ext
24664cat >>conftest.$ac_ext <<_ACEOF
24665/* end confdefs.h. */
24666$ac_includes_default
21d1c967 24667#include <GL/gl.h>
e6cc62c6
VS
24668_ACEOF
24669rm -f conftest.$ac_objext
24670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24671 (eval $ac_compile) 2>&5
24672 ac_status=$?
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); } &&
24675 { ac_try='test -s conftest.$ac_objext'
24676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677 (eval $ac_try) 2>&5
24678 ac_status=$?
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; }; then
24681 ac_header_compiler=yes
24682else
24683 echo "$as_me: failed program was:" >&5
24684sed 's/^/| /' conftest.$ac_ext >&5
24685
24686ac_header_compiler=no
24687fi
24688rm -f conftest.$ac_objext conftest.$ac_ext
24689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24690echo "${ECHO_T}$ac_header_compiler" >&6
24691
24692# Is the header present?
24693echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24694echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24695cat >conftest.$ac_ext <<_ACEOF
24696#line $LINENO "configure"
24697/* confdefs.h. */
24698_ACEOF
24699cat confdefs.h >>conftest.$ac_ext
24700cat >>conftest.$ac_ext <<_ACEOF
24701/* end confdefs.h. */
24702#include <GL/gl.h>
24703_ACEOF
24704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24706 ac_status=$?
24707 grep -v '^ *+' conftest.er1 >conftest.err
24708 rm -f conftest.er1
24709 cat conftest.err >&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } >/dev/null; then
24712 if test -s conftest.err; then
24713 ac_cpp_err=$ac_c_preproc_warn_flag
24714 else
24715 ac_cpp_err=
24716 fi
24717else
24718 ac_cpp_err=yes
24719fi
24720if test -z "$ac_cpp_err"; then
24721 ac_header_preproc=yes
24722else
24723 echo "$as_me: failed program was:" >&5
24724sed 's/^/| /' conftest.$ac_ext >&5
24725
24726 ac_header_preproc=no
24727fi
24728rm -f conftest.err conftest.$ac_ext
24729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24730echo "${ECHO_T}$ac_header_preproc" >&6
24731
24732# So? What about this header?
24733case $ac_header_compiler:$ac_header_preproc in
24734 yes:no )
24735 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24736echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24737 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24738echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24739 (
24740 cat <<\_ASBOX
24741## ------------------------------------ ##
24742## Report this to bug-autoconf@gnu.org. ##
24743## ------------------------------------ ##
24744_ASBOX
24745 ) |
24746 sed "s/^/$as_me: WARNING: /" >&2
24747 ;;
24748 no:yes )
24749 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24750echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24752echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24753 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24754echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24755 (
24756 cat <<\_ASBOX
24757## ------------------------------------ ##
24758## Report this to bug-autoconf@gnu.org. ##
24759## ------------------------------------ ##
24760_ASBOX
24761 ) |
24762 sed "s/^/$as_me: WARNING: /" >&2
24763 ;;
24764esac
24765echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24766echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24767if test "${ac_cv_header_GL_gl_h+set}" = set; then
24768 echo $ECHO_N "(cached) $ECHO_C" >&6
24769else
24770 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24771fi
e6cc62c6
VS
24772echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24773echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24774
698dcdb6 24775fi
e6cc62c6
VS
24776if test $ac_cv_header_GL_gl_h = yes; then
24777
89e3b3e4
VZ
24778 found_gl=0
24779
e6cc62c6
VS
24780 echo "$as_me:$LINENO: checking for -lGL" >&5
24781echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24782
21d1c967 24783ac_find_libraries=
2b5f62a0 24784for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24785 do
24786 for ac_extension in a so sl dylib; do
24787 if test -f "$ac_dir/libGL.$ac_extension"; then
24788 ac_find_libraries=$ac_dir
24789 break 2
24790 fi
24791 done
24792 done
24793
24794 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24795
21d1c967
GD
24796 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24797 result=$?
24798 if test $result = 0; then
24799 ac_path_to_link=""
24800 else
24801 ac_path_to_link=" -L$ac_find_libraries"
24802 fi
24803
89e3b3e4
VZ
24804 if test "$ac_path_to_link" != " -L/usr/lib" ; then
24805 LDFLAGS_GL="$ac_path_to_link"
21d1c967 24806 fi
89e3b3e4 24807
e6cc62c6 24808
89e3b3e4
VZ
24809ac_find_libraries=
24810for ac_dir in $SEARCH_LIB /usr/lib;
24811 do
24812 for ac_extension in a so sl dylib; do
24813 if test -f "$ac_dir/libGLU.$ac_extension"; then
24814 ac_find_libraries=$ac_dir
24815 break 2
24816 fi
24817 done
24818 done
24819
24820 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24821
89e3b3e4
VZ
24822 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24823 result=$?
24824 if test $result = 0; then
24825 ac_path_to_link=""
24826 else
24827 ac_path_to_link=" -L$ac_find_libraries"
24828 fi
24829
24830 if test "$ac_path_to_link" != " -L/usr/lib" -a \
24831 "$ac_path_to_link" != "$LDFLAGS_GL"; then
24832 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24833 fi
24834
24835 found_gl=1
24836 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
24837 echo "$as_me:$LINENO: result: yes" >&5
24838echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
24839 fi
24840 fi
24841
24842 if "$found_gl" != 1; then
e6cc62c6
VS
24843 echo "$as_me:$LINENO: result: no" >&5
24844echo "${ECHO_T}no" >&6
24845 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24846echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24847
21d1c967 24848ac_find_libraries=
2b5f62a0 24849for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24850 do
24851 for ac_extension in a so sl dylib; do
24852 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24853 ac_find_libraries=$ac_dir
24854 break 2
24855 fi
24856 done
24857 done
24858
24859 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24860
21d1c967
GD
24861 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24862 result=$?
24863 if test $result = 0; then
24864 ac_path_to_link=""
24865 else
24866 ac_path_to_link=" -L$ac_find_libraries"
24867 fi
24868
24869 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24870 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
24871 echo "$as_me:$LINENO: result: yes" >&5
24872echo "${ECHO_T}yes" >&6
21d1c967 24873 else
e6cc62c6
VS
24874 echo "$as_me:$LINENO: result: no" >&5
24875echo "${ECHO_T}no" >&6
21d1c967
GD
24876 fi
24877 fi
e6cc62c6 24878
5c6fa7d2 24879fi
52127426 24880
8284b0c5 24881
e6cc62c6 24882
21d1c967 24883 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
24884 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24885echo "$as_me: error: OpenGL libraries not available" >&2;}
24886 { (exit 1); exit 1; }; }
21d1c967
GD
24887 fi
24888 fi
90dd450c 24889
21d1c967 24890 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 24891 USE_OPENGL=1
e6cc62c6 24892 cat >>confdefs.h <<\_ACEOF
21d1c967 24893#define wxUSE_OPENGL 1
e6cc62c6 24894_ACEOF
21d1c967 24895
e6cc62c6 24896 cat >>confdefs.h <<\_ACEOF
21d1c967 24897#define wxUSE_GLCANVAS 1
e6cc62c6 24898_ACEOF
21d1c967
GD
24899
24900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
24901 fi
10f2d63a 24902fi
21d1c967
GD
24903
24904if test -z "$TOOLKIT_VPATH" ; then
24905 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 24906fi
21d1c967
GD
24907
24908if test -n "$TOOLKIT" ; then
24909 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
24910fi
24911
fe0895cf 24912UNICODE=0
21d1c967
GD
24913lib_unicode_suffix=
24914if test "$wxUSE_UNICODE" = "yes"; then
24915 lib_unicode_suffix=u
fe0895cf 24916 UNICODE=1
90dd450c 24917fi
698dcdb6 24918
21d1c967 24919lib_debug_suffix=
fe0895cf 24920BUILD=release
21d1c967
GD
24921if test "$wxUSE_DEBUG_FLAG" = "yes"; then
24922 lib_debug_suffix=d
fe0895cf 24923 BUILD=debug
21d1c967 24924fi
698dcdb6 24925
2b5f62a0
VZ
24926WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
24927
24928TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
24929TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
24930
24931if test "$cross_compiling" = "yes"; then
24932 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
24933 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 24934 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
24935fi
24936
24937WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
24938WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 24939WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
24940
24941WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24942WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24943
24944WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
24945WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24946WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
24947WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24948
24949case "${host}" in
24950 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
24951 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
24952 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
24953 ;;
24954
24955 *-*-darwin* )
e6cc62c6 24956
05159a27
GD
24957 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24958 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24959
24960 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
24961 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24962 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
24963 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24964
21d1c967 24965 if test "$wxUSE_MAC" = 1; then
f346733b
GD
24966 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
24967 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
24968 fi
24969 ;;
24970esac
24971
24972WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
24973WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
24974
24975WXCONFIG_LIBS="-l${WX_LIBRARY}"
24976WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
24977
24978if test "$wxUSE_OPENGL" = "yes"; then
24979 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
24980 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
24981fi
24982
8284b0c5
MB
24983
24984
21d1c967
GD
24985if test "$wxUSE_SHARED" = "yes"; then
24986 case "${host}" in
24987 *-pc-os2_emx | *-pc-os2-emx | \
24988 *-pc-msdosdjgpp )
24989 wxUSE_SHARED=no
e6cc62c6
VS
24990 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
24991echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
24992 ;;
24993 esac
24994fi
24995
fe0895cf 24996SHARED=0
2b5f62a0 24997if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 24998 SHARED=1
2b5f62a0 24999
e6cc62c6 25000
2b5f62a0
VZ
25001 found_versioning=no
25002
e6cc62c6 25003
2b5f62a0 25004 if test $found_versioning = no ; then
e6cc62c6
VS
25005 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25006echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25007if test "${wx_cv_version_script+set}" = set; then
25008 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25009else
e6cc62c6 25010
2b5f62a0
VZ
25011 echo "VER_1 { *; };" >conftest.sym
25012 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25013
2b5f62a0
VZ
25014 if { ac_try='
25015 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25016 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25018 (eval $ac_try) 2>&5
25019 ac_status=$?
25020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25022 if test -s conftest.stderr ; then
25023 wx_cv_version_script=no
25024 else
25025 wx_cv_version_script=yes
25026 fi
25027 else
25028 wx_cv_version_script=no
25029 fi
25030 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25031
e6cc62c6
VS
25032fi
25033echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25034echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25035 if test $wx_cv_version_script = yes ; then
e6cc62c6 25036 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25037 fi
25038 fi
21d1c967 25039
21d1c967 25040
21d1c967 25041 case "${host}" in
fe0895cf 25042 *-*-linux* | *-*-gnu* )
e6cc62c6 25043 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
21d1c967
GD
25044 ;;
25045
25046 *-*-solaris2* )
25047 if test "$GCC" = yes ; then
25048 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25049
25050 saveLdflags="$LDFLAGS"
25051 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25052 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25053echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25054 cat >conftest.$ac_ext <<_ACEOF
25055#line $LINENO "configure"
25056/* confdefs.h. */
25057_ACEOF
25058cat confdefs.h >>conftest.$ac_ext
25059cat >>conftest.$ac_ext <<_ACEOF
25060/* end confdefs.h. */
25061
25062int
25063main ()
25064{
fe0895cf 25065
e6cc62c6
VS
25066 ;
25067 return 0;
25068}
25069_ACEOF
25070rm -f conftest.$ac_objext conftest$ac_exeext
25071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25072 (eval $ac_link) 2>&5
25073 ac_status=$?
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); } &&
25076 { ac_try='test -s conftest$ac_exeext'
25077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25078 (eval $ac_try) 2>&5
25079 ac_status=$?
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); }; }; then
25082
25083 echo "$as_me:$LINENO: result: yes" >&5
25084echo "${ECHO_T}yes" >&6
25085 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25086
25087else
25088 echo "$as_me: failed program was:" >&5
25089sed 's/^/| /' conftest.$ac_ext >&5
25090
25091
25092 echo "$as_me:$LINENO: result: no" >&5
25093echo "${ECHO_T}no" >&6
25094 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25095echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25096 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25097 cat >conftest.$ac_ext <<_ACEOF
25098#line $LINENO "configure"
25099/* confdefs.h. */
25100_ACEOF
25101cat confdefs.h >>conftest.$ac_ext
25102cat >>conftest.$ac_ext <<_ACEOF
25103/* end confdefs.h. */
25104
25105int
25106main ()
25107{
25108
25109 ;
25110 return 0;
25111}
25112_ACEOF
25113rm -f conftest.$ac_objext conftest$ac_exeext
25114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25115 (eval $ac_link) 2>&5
25116 ac_status=$?
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); } &&
25119 { ac_try='test -s conftest$ac_exeext'
25120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121 (eval $ac_try) 2>&5
25122 ac_status=$?
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); }; }; then
25125
25126 echo "$as_me:$LINENO: result: yes" >&5
25127echo "${ECHO_T}yes" >&6
25128 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25129else
25130 echo "$as_me: failed program was:" >&5
25131sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25132
fe0895cf 25133
e6cc62c6
VS
25134 echo "$as_me:$LINENO: result: no" >&5
25135echo "${ECHO_T}no" >&6
25136
fe0895cf 25137fi
e6cc62c6
VS
25138rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25139
25140fi
25141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25142 LDFLAGS="$saveLdflags"
21d1c967
GD
25143 else
25144 SHARED_LD="${CXX} -G -o"
25145 PIC_FLAG="-KPIC"
e6cc62c6 25146 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25147 fi
25148 ;;
21d1c967
GD
25149 esac
25150
25151 if test "x$WX_TARGET_LIBRARY" = "x"; then
25152 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25153 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25154 fi
25155
25156 WX_TARGET_LIBRARY_TYPE="so"
25157 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25158fi
10f2d63a 25159
21d1c967
GD
25160if test "$wxUSE_SHARED" = "no"; then
25161
25162 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25163 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25164 fi
25165
ac0c4cc3 25166 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25167 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25168 fi
25169
25170 if test "$wxUSE_OPENGL" = "yes"; then
25171 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25172 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25173 else
25174 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25175 fi
25176
25177 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25178 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25179
25180 WX_TARGET_LIBRARY_TYPE="a"
25181 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25182
25183 STATIC_FLAG="yes"
25184else
25185 STATIC_FLAG="no"
90dd450c 25186fi
1e487827 25187
93fac604
VZ
25188MACRESCOMP="@#"
25189MACSETFILE="@#"
36825681 25190MACRESWXCONFIG="#"
21d1c967 25191if test "$wxUSE_MAC" = 1; then
e6cc62c6 25192 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25193 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25194 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25195 # Extract the first word of "Rez", so it can be a program name with args.
25196set dummy Rez; ac_word=$2
e6cc62c6
VS
25197echo "$as_me:$LINENO: checking for $ac_word" >&5
25198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25199if test "${ac_cv_prog_RESCOMP+set}" = set; then
25200 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25201else
21d1c967
GD
25202 if test -n "$RESCOMP"; then
25203 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25204else
e6cc62c6
VS
25205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25206for as_dir in $PATH
25207do
25208 IFS=$as_save_IFS
25209 test -z "$as_dir" && as_dir=.
25210 for ac_exec_ext in '' $ac_executable_extensions; do
25211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25212 ac_cv_prog_RESCOMP="Rez"
25213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25214 break 2
25215 fi
25216done
25217done
25218
21d1c967 25219 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25220fi
b93d0d08 25221fi
e6cc62c6 25222RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25223if test -n "$RESCOMP"; then
e6cc62c6
VS
25224 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25225echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25226else
e6cc62c6
VS
25227 echo "$as_me:$LINENO: result: no" >&5
25228echo "${ECHO_T}no" >&6
90dd450c 25229fi
b93d0d08 25230
21d1c967
GD
25231 # Extract the first word of "DeRez", so it can be a program name with args.
25232set dummy DeRez; ac_word=$2
e6cc62c6
VS
25233echo "$as_me:$LINENO: checking for $ac_word" >&5
25234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25235if test "${ac_cv_prog_DEREZ+set}" = set; then
25236 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25237else
21d1c967
GD
25238 if test -n "$DEREZ"; then
25239 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25240else
e6cc62c6
VS
25241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25242for as_dir in $PATH
25243do
25244 IFS=$as_save_IFS
25245 test -z "$as_dir" && as_dir=.
25246 for ac_exec_ext in '' $ac_executable_extensions; do
25247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25248 ac_cv_prog_DEREZ="DeRez"
25249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25250 break 2
25251 fi
25252done
25253done
25254
21d1c967 25255 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25256fi
90dd450c 25257fi
e6cc62c6 25258DEREZ=$ac_cv_prog_DEREZ
21d1c967 25259if test -n "$DEREZ"; then
e6cc62c6
VS
25260 echo "$as_me:$LINENO: result: $DEREZ" >&5
25261echo "${ECHO_T}$DEREZ" >&6
90dd450c 25262else
e6cc62c6
VS
25263 echo "$as_me:$LINENO: result: no" >&5
25264echo "${ECHO_T}no" >&6
3a922bb4 25265fi
698dcdb6 25266
36825681
GD
25267 # Extract the first word of "SetFile", so it can be a program name with args.
25268set dummy SetFile; ac_word=$2
e6cc62c6
VS
25269echo "$as_me:$LINENO: checking for $ac_word" >&5
25270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25271if test "${ac_cv_prog_SETFILE+set}" = set; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25273else
25274 if test -n "$SETFILE"; then
25275 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25276else
e6cc62c6
VS
25277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25278for as_dir in $PATH
25279do
25280 IFS=$as_save_IFS
25281 test -z "$as_dir" && as_dir=.
25282 for ac_exec_ext in '' $ac_executable_extensions; do
25283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25284 ac_cv_prog_SETFILE="SetFile"
25285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25286 break 2
25287 fi
25288done
25289done
25290
36825681
GD
25291 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25292fi
25293fi
e6cc62c6 25294SETFILE=$ac_cv_prog_SETFILE
36825681 25295if test -n "$SETFILE"; then
e6cc62c6
VS
25296 echo "$as_me:$LINENO: result: $SETFILE" >&5
25297echo "${ECHO_T}$SETFILE" >&6
36825681 25298else
e6cc62c6
VS
25299 echo "$as_me:$LINENO: result: no" >&5
25300echo "${ECHO_T}no" >&6
36825681
GD
25301fi
25302
21d1c967 25303 MACOSX_BUNDLE="bundle"
36825681
GD
25304 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25305 MACSETFILE="\$(SETFILE)"
9711d31e 25306 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25307elif test "$wxUSE_COCOA" = 1; then
25308 # Extract the first word of "Rez", so it can be a program name with args.
25309set dummy Rez; ac_word=$2
e6cc62c6
VS
25310echo "$as_me:$LINENO: checking for $ac_word" >&5
25311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25312if test "${ac_cv_prog_RESCOMP+set}" = set; then
25313 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25314else
25315 if test -n "$RESCOMP"; then
25316 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25317else
e6cc62c6
VS
25318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25319for as_dir in $PATH
25320do
25321 IFS=$as_save_IFS
25322 test -z "$as_dir" && as_dir=.
25323 for ac_exec_ext in '' $ac_executable_extensions; do
25324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25325 ac_cv_prog_RESCOMP="Rez"
25326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25327 break 2
25328 fi
25329done
25330done
25331
64440d77
DE
25332 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25333fi
25334fi
e6cc62c6 25335RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25336if test -n "$RESCOMP"; then
e6cc62c6
VS
25337 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25338echo "${ECHO_T}$RESCOMP" >&6
64440d77 25339else
e6cc62c6
VS
25340 echo "$as_me:$LINENO: result: no" >&5
25341echo "${ECHO_T}no" >&6
64440d77
DE
25342fi
25343
25344 # Extract the first word of "DeRez", so it can be a program name with args.
25345set dummy DeRez; ac_word=$2
e6cc62c6
VS
25346echo "$as_me:$LINENO: checking for $ac_word" >&5
25347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25348if test "${ac_cv_prog_DEREZ+set}" = set; then
25349 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25350else
25351 if test -n "$DEREZ"; then
25352 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25353else
e6cc62c6
VS
25354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25355for as_dir in $PATH
25356do
25357 IFS=$as_save_IFS
25358 test -z "$as_dir" && as_dir=.
25359 for ac_exec_ext in '' $ac_executable_extensions; do
25360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25361 ac_cv_prog_DEREZ="DeRez"
25362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25363 break 2
25364 fi
25365done
25366done
25367
64440d77
DE
25368 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25369fi
25370fi
e6cc62c6 25371DEREZ=$ac_cv_prog_DEREZ
64440d77 25372if test -n "$DEREZ"; then
e6cc62c6
VS
25373 echo "$as_me:$LINENO: result: $DEREZ" >&5
25374echo "${ECHO_T}$DEREZ" >&6
64440d77 25375else
e6cc62c6
VS
25376 echo "$as_me:$LINENO: result: no" >&5
25377echo "${ECHO_T}no" >&6
64440d77
DE
25378fi
25379
25380 # Extract the first word of "SetFile", so it can be a program name with args.
25381set dummy SetFile; ac_word=$2
e6cc62c6
VS
25382echo "$as_me:$LINENO: checking for $ac_word" >&5
25383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25384if test "${ac_cv_prog_SETFILE+set}" = set; then
25385 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25386else
25387 if test -n "$SETFILE"; then
25388 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25389else
e6cc62c6
VS
25390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25391for as_dir in $PATH
25392do
25393 IFS=$as_save_IFS
25394 test -z "$as_dir" && as_dir=.
25395 for ac_exec_ext in '' $ac_executable_extensions; do
25396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25397 ac_cv_prog_SETFILE="SetFile"
25398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25399 break 2
25400 fi
25401done
25402done
25403
64440d77
DE
25404 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25405fi
25406fi
e6cc62c6 25407SETFILE=$ac_cv_prog_SETFILE
64440d77 25408if test -n "$SETFILE"; then
e6cc62c6
VS
25409 echo "$as_me:$LINENO: result: $SETFILE" >&5
25410echo "${ECHO_T}$SETFILE" >&6
64440d77 25411else
e6cc62c6
VS
25412 echo "$as_me:$LINENO: result: no" >&5
25413echo "${ECHO_T}no" >&6
64440d77
DE
25414fi
25415
25416 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25417 MACSETFILE="\$(SETFILE)"
9711d31e 25418 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25419else
25420 if test "$wxUSE_PM" = 1; then
36825681 25421 MACRESCOMP="emxbind -ep"
90dd450c 25422 fi
4f14bcd8 25423fi
10f2d63a 25424
8284b0c5 25425
e6cc62c6
VS
25426echo "$as_me:$LINENO: checking for mode_t" >&5
25427echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25428if test "${ac_cv_type_mode_t+set}" = set; then
25429 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25430else
e6cc62c6
VS
25431 cat >conftest.$ac_ext <<_ACEOF
25432#line $LINENO "configure"
25433/* confdefs.h. */
25434_ACEOF
25435cat confdefs.h >>conftest.$ac_ext
25436cat >>conftest.$ac_ext <<_ACEOF
25437/* end confdefs.h. */
25438$ac_includes_default
25439int
25440main ()
25441{
25442if ((mode_t *) 0)
25443 return 0;
25444if (sizeof (mode_t))
25445 return 0;
25446 ;
25447 return 0;
25448}
25449_ACEOF
25450rm -f conftest.$ac_objext
25451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25452 (eval $ac_compile) 2>&5
25453 ac_status=$?
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } &&
25456 { ac_try='test -s conftest.$ac_objext'
25457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458 (eval $ac_try) 2>&5
25459 ac_status=$?
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); }; }; then
25462 ac_cv_type_mode_t=yes
a0b9e27f 25463else
e6cc62c6
VS
25464 echo "$as_me: failed program was:" >&5
25465sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25466
e6cc62c6 25467ac_cv_type_mode_t=no
a0b9e27f 25468fi
e6cc62c6 25469rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25470fi
e6cc62c6
VS
25471echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25472echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25473if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25474 :
25475else
a0b9e27f 25476
e6cc62c6
VS
25477cat >>confdefs.h <<_ACEOF
25478#define mode_t int
25479_ACEOF
8284b0c5
MB
25480
25481fi
25482
e6cc62c6
VS
25483echo "$as_me:$LINENO: checking for off_t" >&5
25484echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25485if test "${ac_cv_type_off_t+set}" = set; then
25486 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25487else
e6cc62c6
VS
25488 cat >conftest.$ac_ext <<_ACEOF
25489#line $LINENO "configure"
25490/* confdefs.h. */
25491_ACEOF
25492cat confdefs.h >>conftest.$ac_ext
25493cat >>conftest.$ac_ext <<_ACEOF
25494/* end confdefs.h. */
25495$ac_includes_default
25496int
25497main ()
25498{
25499if ((off_t *) 0)
25500 return 0;
25501if (sizeof (off_t))
25502 return 0;
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 ac_cv_type_off_t=yes
5c6fa7d2 25520else
e6cc62c6
VS
25521 echo "$as_me: failed program was:" >&5
25522sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25523
e6cc62c6 25524ac_cv_type_off_t=no
8284b0c5 25525fi
e6cc62c6 25526rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25527fi
e6cc62c6
VS
25528echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25529echo "${ECHO_T}$ac_cv_type_off_t" >&6
25530if test $ac_cv_type_off_t = yes; then
25531 :
247f5006
VZ
25532else
25533
e6cc62c6 25534cat >>confdefs.h <<_ACEOF
90dd450c 25535#define off_t long
e6cc62c6 25536_ACEOF
10f2d63a 25537
90dd450c 25538fi
10f2d63a 25539
e6cc62c6
VS
25540echo "$as_me:$LINENO: checking for pid_t" >&5
25541echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25542if test "${ac_cv_type_pid_t+set}" = set; then
25543 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25544else
e6cc62c6
VS
25545 cat >conftest.$ac_ext <<_ACEOF
25546#line $LINENO "configure"
25547/* confdefs.h. */
25548_ACEOF
25549cat confdefs.h >>conftest.$ac_ext
25550cat >>conftest.$ac_ext <<_ACEOF
25551/* end confdefs.h. */
25552$ac_includes_default
25553int
25554main ()
25555{
25556if ((pid_t *) 0)
25557 return 0;
25558if (sizeof (pid_t))
25559 return 0;
25560 ;
25561 return 0;
25562}
25563_ACEOF
25564rm -f conftest.$ac_objext
25565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25566 (eval $ac_compile) 2>&5
25567 ac_status=$?
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); } &&
25570 { ac_try='test -s conftest.$ac_objext'
25571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); }; }; then
90dd450c 25576 ac_cv_type_pid_t=yes
698dcdb6 25577else
e6cc62c6
VS
25578 echo "$as_me: failed program was:" >&5
25579sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25580
e6cc62c6
VS
25581ac_cv_type_pid_t=no
25582fi
25583rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25584fi
e6cc62c6
VS
25585echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25586echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25587if test $ac_cv_type_pid_t = yes; then
25588 :
25589else
25590
25591cat >>confdefs.h <<_ACEOF
90dd450c 25592#define pid_t int
e6cc62c6 25593_ACEOF
10f2d63a 25594
7b4a847f
RR
25595fi
25596
e6cc62c6
VS
25597echo "$as_me:$LINENO: checking for size_t" >&5
25598echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25599if test "${ac_cv_type_size_t+set}" = set; then
25600 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25601else
e6cc62c6
VS
25602 cat >conftest.$ac_ext <<_ACEOF
25603#line $LINENO "configure"
25604/* confdefs.h. */
25605_ACEOF
25606cat confdefs.h >>conftest.$ac_ext
25607cat >>conftest.$ac_ext <<_ACEOF
25608/* end confdefs.h. */
25609$ac_includes_default
25610int
25611main ()
25612{
25613if ((size_t *) 0)
25614 return 0;
25615if (sizeof (size_t))
25616 return 0;
25617 ;
25618 return 0;
25619}
25620_ACEOF
25621rm -f conftest.$ac_objext
25622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25623 (eval $ac_compile) 2>&5
25624 ac_status=$?
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } &&
25627 { ac_try='test -s conftest.$ac_objext'
25628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629 (eval $ac_try) 2>&5
25630 ac_status=$?
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); }; }; then
90dd450c 25633 ac_cv_type_size_t=yes
18dbb1f6 25634else
e6cc62c6
VS
25635 echo "$as_me: failed program was:" >&5
25636sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25637
e6cc62c6 25638ac_cv_type_size_t=no
a0b9e27f 25639fi
e6cc62c6
VS
25640rm -f conftest.$ac_objext conftest.$ac_ext
25641fi
25642echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25643echo "${ECHO_T}$ac_cv_type_size_t" >&6
25644if test $ac_cv_type_size_t = yes; then
25645 :
25646else
25647
25648cat >>confdefs.h <<_ACEOF
90dd450c 25649#define size_t unsigned
e6cc62c6 25650_ACEOF
90dd450c
VZ
25651
25652fi
25653
e6cc62c6
VS
25654echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25655echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25656if test "${ac_cv_type_uid_t+set}" = set; then
25657 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25658else
e6cc62c6
VS
25659 cat >conftest.$ac_ext <<_ACEOF
25660#line $LINENO "configure"
25661/* confdefs.h. */
25662_ACEOF
25663cat confdefs.h >>conftest.$ac_ext
25664cat >>conftest.$ac_ext <<_ACEOF
25665/* end confdefs.h. */
90dd450c 25666#include <sys/types.h>
e6cc62c6
VS
25667
25668_ACEOF
90dd450c 25669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25670 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25671 ac_cv_type_uid_t=yes
b3e8d00a 25672else
90dd450c 25673 ac_cv_type_uid_t=no
b3e8d00a 25674fi
90dd450c 25675rm -f conftest*
b3e8d00a 25676
4f14bcd8 25677fi
e6cc62c6
VS
25678echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25679echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25680if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25681
25682cat >>confdefs.h <<\_ACEOF
90dd450c 25683#define uid_t int
e6cc62c6 25684_ACEOF
247f5006 25685
e6cc62c6
VS
25686
25687cat >>confdefs.h <<\_ACEOF
90dd450c 25688#define gid_t int
e6cc62c6 25689_ACEOF
4f14bcd8 25690
b3e8d00a 25691fi
b3e8d00a 25692
8284b0c5
MB
25693
25694
e6cc62c6
VS
25695
25696ac_ext=cc
4f14bcd8 25697ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25701
25702echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25703echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25704if test "${wx_cv_size_t_is_uint+set}" = set; then
25705 echo $ECHO_N "(cached) $ECHO_C" >&6
25706else
25707
25708 cat >conftest.$ac_ext <<_ACEOF
25709#line $LINENO "configure"
25710/* confdefs.h. */
25711_ACEOF
25712cat confdefs.h >>conftest.$ac_ext
25713cat >>conftest.$ac_ext <<_ACEOF
25714/* end confdefs.h. */
90dd450c 25715#include <stddef.h>
e6cc62c6
VS
25716int
25717main ()
25718{
90dd450c
VZ
25719
25720 return 0; }
25721
25722 struct Foo { void foo(size_t); void foo(unsigned int); };
25723
25724 int bar() {
e6cc62c6
VS
25725
25726 ;
25727 return 0;
25728}
25729_ACEOF
25730rm -f conftest.$ac_objext
25731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25732 (eval $ac_compile) 2>&5
25733 ac_status=$?
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } &&
25736 { ac_try='test -s conftest.$ac_objext'
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
90dd450c 25742 wx_cv_size_t_is_uint=no
698dcdb6 25743else
e6cc62c6
VS
25744 echo "$as_me: failed program was:" >&5
25745sed 's/^/| /' conftest.$ac_ext >&5
25746
25747wx_cv_size_t_is_uint=yes
8284b0c5 25748
247f5006 25749fi
e6cc62c6
VS
25750rm -f conftest.$ac_objext conftest.$ac_ext
25751
a0b9e27f 25752
e6cc62c6
VS
25753fi
25754echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25755echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 25756
90dd450c 25757if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 25758 cat >>confdefs.h <<\_ACEOF
90dd450c 25759#define wxSIZE_T_IS_UINT 1
e6cc62c6 25760_ACEOF
698dcdb6 25761
90dd450c 25762else
e6cc62c6
VS
25763 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25764echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25765if test "${wx_cv_size_t_is_ulong+set}" = set; then
25766 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25767else
e6cc62c6
VS
25768 cat >conftest.$ac_ext <<_ACEOF
25769#line $LINENO "configure"
25770/* confdefs.h. */
25771_ACEOF
25772cat confdefs.h >>conftest.$ac_ext
25773cat >>conftest.$ac_ext <<_ACEOF
25774/* end confdefs.h. */
90dd450c 25775#include <stddef.h>
e6cc62c6
VS
25776int
25777main ()
25778{
90dd450c
VZ
25779
25780 return 0; }
25781
25782 struct Foo { void foo(size_t); void foo(unsigned long); };
25783
25784 int bar() {
e6cc62c6
VS
25785
25786 ;
25787 return 0;
25788}
25789_ACEOF
25790rm -f conftest.$ac_objext
25791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25792 (eval $ac_compile) 2>&5
25793 ac_status=$?
25794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795 (exit $ac_status); } &&
25796 { ac_try='test -s conftest.$ac_objext'
25797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798 (eval $ac_try) 2>&5
25799 ac_status=$?
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); }; }; then
90dd450c 25802 wx_cv_size_t_is_ulong=no
698dcdb6 25803else
e6cc62c6
VS
25804 echo "$as_me: failed program was:" >&5
25805sed 's/^/| /' conftest.$ac_ext >&5
25806
25807wx_cv_size_t_is_ulong=yes
25808
247f5006 25809fi
e6cc62c6 25810rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25811
e6cc62c6
VS
25812fi
25813echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25814echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 25815
90dd450c 25816 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 25817 cat >>confdefs.h <<\_ACEOF
90dd450c 25818#define wxSIZE_T_IS_ULONG 1
e6cc62c6 25819_ACEOF
4f14bcd8
GD
25820
25821 fi
90dd450c 25822fi
1e487827 25823
90dd450c 25824ac_ext=c
4f14bcd8 25825ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
25826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25828ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 25829
5c6fa7d2 25830
8284b0c5 25831
e6cc62c6
VS
25832echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25833echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25834if test "${wx_cv_struct_pw_gecos+set}" = set; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25836else
e6cc62c6
VS
25837
25838 cat >conftest.$ac_ext <<_ACEOF
25839#line $LINENO "configure"
25840/* confdefs.h. */
25841_ACEOF
25842cat confdefs.h >>conftest.$ac_ext
25843cat >>conftest.$ac_ext <<_ACEOF
25844/* end confdefs.h. */
90dd450c 25845#include <pwd.h>
e6cc62c6
VS
25846int
25847main ()
25848{
f6bcfd97 25849
90dd450c
VZ
25850 char *p;
25851 struct passwd *pw;
25852 p = pw->pw_gecos;
e6cc62c6
VS
25853
25854 ;
25855 return 0;
25856}
25857_ACEOF
25858rm -f conftest.$ac_objext
25859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25860 (eval $ac_compile) 2>&5
25861 ac_status=$?
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); } &&
25864 { ac_try='test -s conftest.$ac_objext'
25865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866 (eval $ac_try) 2>&5
25867 ac_status=$?
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); }; }; then
25870
90dd450c 25871 wx_cv_struct_pw_gecos=yes
e6cc62c6 25872
10f2d63a 25873else
e6cc62c6
VS
25874 echo "$as_me: failed program was:" >&5
25875sed 's/^/| /' conftest.$ac_ext >&5
25876
25877
90dd450c 25878 wx_cv_struct_pw_gecos=no
e6cc62c6 25879
247f5006
VZ
25880
25881fi
e6cc62c6 25882rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25883
e6cc62c6
VS
25884
25885fi
25886echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
25887echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 25888
90dd450c 25889if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 25890 cat >>confdefs.h <<\_ACEOF
90dd450c 25891#define HAVE_PW_GECOS 1
e6cc62c6 25892_ACEOF
c521c494 25893
90dd450c 25894fi
4f14bcd8 25895
8284b0c5 25896
d29b553b 25897if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 25898 cat >>confdefs.h <<\_ACEOF
d74f4b5a 25899#define wxUSE_WCHAR_T 1
e6cc62c6 25900_ACEOF
d74f4b5a 25901
8284b0c5 25902
d74f4b5a
VZ
25903 WCSLEN_FOUND=0
25904 WCHAR_LINK=
e6cc62c6
VS
25905
25906for ac_func in wcslen
7a30264c 25907do
e6cc62c6
VS
25908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25909echo "$as_me:$LINENO: checking for $ac_func" >&5
25910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25911if eval "test \"\${$as_ac_var+set}\" = set"; then
25912 echo $ECHO_N "(cached) $ECHO_C" >&6
25913else
25914 cat >conftest.$ac_ext <<_ACEOF
25915#line $LINENO "configure"
25916/* confdefs.h. */
25917_ACEOF
25918cat confdefs.h >>conftest.$ac_ext
25919cat >>conftest.$ac_ext <<_ACEOF
25920/* end confdefs.h. */
7a30264c 25921/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25922 which can conflict with char $ac_func (); below.
25923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25924 <limits.h> exists even on freestanding compilers. */
25925#ifdef __STDC__
25926# include <limits.h>
25927#else
25928# include <assert.h>
25929#endif
4f14bcd8 25930/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25931#ifdef __cplusplus
25932extern "C"
25933{
25934#endif
4f14bcd8 25935/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25936 builtin and then its argument prototype would still apply. */
25937char $ac_func ();
7a30264c
VZ
25938/* The GNU C library defines this for functions which it implements
25939 to always fail with ENOSYS. Some functions are actually named
25940 something starting with __ and the normal name is an alias. */
25941#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25942choke me
25943#else
e6cc62c6
VS
25944char (*f) () = $ac_func;
25945#endif
25946#ifdef __cplusplus
25947}
7a30264c
VZ
25948#endif
25949
e6cc62c6
VS
25950int
25951main ()
25952{
25953return f != $ac_func;
25954 ;
25955 return 0;
25956}
25957_ACEOF
25958rm -f conftest.$ac_objext conftest$ac_exeext
25959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25960 (eval $ac_link) 2>&5
25961 ac_status=$?
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); } &&
25964 { ac_try='test -s conftest$ac_exeext'
25965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966 (eval $ac_try) 2>&5
25967 ac_status=$?
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); }; }; then
25970 eval "$as_ac_var=yes"
25971else
25972 echo "$as_me: failed program was:" >&5
25973sed 's/^/| /' conftest.$ac_ext >&5
25974
25975eval "$as_ac_var=no"
25976fi
25977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25978fi
25979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25980echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25981if test `eval echo '${'$as_ac_var'}'` = yes; then
25982 cat >>confdefs.h <<_ACEOF
25983#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25984_ACEOF
d74f4b5a 25985 WCSLEN_FOUND=1
7a30264c
VZ
25986fi
25987done
9d8deca0 25988
8284b0c5 25989
d74f4b5a 25990 if test "$WCSLEN_FOUND" = 0; then
7a30264c 25991 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
25992 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
25993echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
25994if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
25995 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 25996else
e6cc62c6 25997 ac_check_lib_save_LIBS=$LIBS
7a30264c 25998LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
25999cat >conftest.$ac_ext <<_ACEOF
26000#line $LINENO "configure"
26001/* confdefs.h. */
26002_ACEOF
26003cat confdefs.h >>conftest.$ac_ext
26004cat >>conftest.$ac_ext <<_ACEOF
26005/* end confdefs.h. */
26006
4f14bcd8 26007/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26008#ifdef __cplusplus
26009extern "C"
26010#endif
4f14bcd8 26011/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26012 builtin and then its argument prototype would still apply. */
26013char wcslen ();
26014int
26015main ()
26016{
26017wcslen ();
26018 ;
26019 return 0;
26020}
26021_ACEOF
26022rm -f conftest.$ac_objext conftest$ac_exeext
26023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26024 (eval $ac_link) 2>&5
26025 ac_status=$?
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); } &&
26028 { ac_try='test -s conftest$ac_exeext'
26029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26030 (eval $ac_try) 2>&5
26031 ac_status=$?
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); }; }; then
26034 ac_cv_lib_msvcrt_wcslen=yes
26035else
26036 echo "$as_me: failed program was:" >&5
26037sed 's/^/| /' conftest.$ac_ext >&5
26038
26039ac_cv_lib_msvcrt_wcslen=no
26040fi
26041rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26042LIBS=$ac_check_lib_save_LIBS
26043fi
26044echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26045echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26046if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26047 WCHAR_OK=1
d29b553b 26048fi
698dcdb6 26049
7a30264c 26050 else
e6cc62c6
VS
26051 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26052echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26053if test "${ac_cv_lib_w_wcslen+set}" = set; then
26054 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26055else
e6cc62c6 26056 ac_check_lib_save_LIBS=$LIBS
7a30264c 26057LIBS="-lw $LIBS"
e6cc62c6
VS
26058cat >conftest.$ac_ext <<_ACEOF
26059#line $LINENO "configure"
26060/* confdefs.h. */
26061_ACEOF
26062cat confdefs.h >>conftest.$ac_ext
26063cat >>conftest.$ac_ext <<_ACEOF
26064/* end confdefs.h. */
26065
4f14bcd8 26066/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26067#ifdef __cplusplus
26068extern "C"
26069#endif
4f14bcd8 26070/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26071 builtin and then its argument prototype would still apply. */
26072char wcslen ();
26073int
26074main ()
26075{
26076wcslen ();
26077 ;
26078 return 0;
26079}
26080_ACEOF
26081rm -f conftest.$ac_objext conftest$ac_exeext
26082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26083 (eval $ac_link) 2>&5
26084 ac_status=$?
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); } &&
26087 { ac_try='test -s conftest$ac_exeext'
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26090 ac_status=$?
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; }; then
26093 ac_cv_lib_w_wcslen=yes
26094else
26095 echo "$as_me: failed program was:" >&5
26096sed 's/^/| /' conftest.$ac_ext >&5
26097
26098ac_cv_lib_w_wcslen=no
26099fi
26100rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26101LIBS=$ac_check_lib_save_LIBS
26102fi
26103echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26104echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26105if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26106
7a30264c 26107 WCHAR_LINK=" -lw"
d74f4b5a 26108 WCSLEN_FOUND=1
e6cc62c6 26109
4f14bcd8 26110fi
10f2d63a 26111
7a30264c 26112 fi
d29b553b 26113 fi
95c8801c 26114
d74f4b5a 26115 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26116 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26117#define HAVE_WCSLEN 1
e6cc62c6 26118_ACEOF
10f2d63a 26119
d74f4b5a 26120 fi
52127426 26121
e6cc62c6
VS
26122
26123for ac_func in wcsrtombs
eb4efbdc 26124do
e6cc62c6
VS
26125as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26126echo "$as_me:$LINENO: checking for $ac_func" >&5
26127echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26128if eval "test \"\${$as_ac_var+set}\" = set"; then
26129 echo $ECHO_N "(cached) $ECHO_C" >&6
26130else
26131 cat >conftest.$ac_ext <<_ACEOF
26132#line $LINENO "configure"
26133/* confdefs.h. */
26134_ACEOF
26135cat confdefs.h >>conftest.$ac_ext
26136cat >>conftest.$ac_ext <<_ACEOF
26137/* end confdefs.h. */
eb4efbdc 26138/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26139 which can conflict with char $ac_func (); below.
26140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26141 <limits.h> exists even on freestanding compilers. */
26142#ifdef __STDC__
26143# include <limits.h>
26144#else
26145# include <assert.h>
26146#endif
eb4efbdc 26147/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26148#ifdef __cplusplus
26149extern "C"
26150{
26151#endif
4f14bcd8 26152/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26153 builtin and then its argument prototype would still apply. */
26154char $ac_func ();
10f2d63a
VZ
26155/* The GNU C library defines this for functions which it implements
26156 to always fail with ENOSYS. Some functions are actually named
26157 something starting with __ and the normal name is an alias. */
247f5006 26158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26159choke me
26160#else
e6cc62c6
VS
26161char (*f) () = $ac_func;
26162#endif
26163#ifdef __cplusplus
26164}
10f2d63a
VZ
26165#endif
26166
e6cc62c6
VS
26167int
26168main ()
26169{
26170return f != $ac_func;
26171 ;
26172 return 0;
26173}
26174_ACEOF
26175rm -f conftest.$ac_objext conftest$ac_exeext
26176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26177 (eval $ac_link) 2>&5
26178 ac_status=$?
26179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); } &&
26181 { ac_try='test -s conftest$ac_exeext'
26182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26183 (eval $ac_try) 2>&5
26184 ac_status=$?
26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); }; }; then
26187 eval "$as_ac_var=yes"
26188else
26189 echo "$as_me: failed program was:" >&5
26190sed 's/^/| /' conftest.$ac_ext >&5
26191
26192eval "$as_ac_var=no"
26193fi
26194rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26195fi
26196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26197echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26198if test `eval echo '${'$as_ac_var'}'` = yes; then
26199 cat >>confdefs.h <<_ACEOF
26200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26201_ACEOF
270a909e 26202
4f14bcd8 26203fi
247f5006 26204done
1e487827 26205
af15babd 26206else
e6cc62c6
VS
26207 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26208echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26209fi
52127426 26210
8284b0c5 26211
e6cc62c6
VS
26212
26213ac_ext=cc
247f5006 26214ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26218
af15babd 26219
247f5006
VZ
26220
26221for ac_func in vsnprintf
26222do
e6cc62c6
VS
26223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26224echo "$as_me:$LINENO: checking for $ac_func" >&5
26225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26226if eval "test \"\${$as_ac_var+set}\" = set"; then
26227 echo $ECHO_N "(cached) $ECHO_C" >&6
26228else
26229 cat >conftest.$ac_ext <<_ACEOF
26230#line $LINENO "configure"
26231/* confdefs.h. */
26232_ACEOF
26233cat confdefs.h >>conftest.$ac_ext
26234cat >>conftest.$ac_ext <<_ACEOF
26235/* end confdefs.h. */
247f5006 26236/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26237 which can conflict with char $ac_func (); below.
26238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26239 <limits.h> exists even on freestanding compilers. */
26240#ifdef __STDC__
26241# include <limits.h>
26242#else
26243# include <assert.h>
26244#endif
247f5006
VZ
26245/* Override any gcc2 internal prototype to avoid an error. */
26246#ifdef __cplusplus
26247extern "C"
e6cc62c6 26248{
247f5006
VZ
26249#endif
26250/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26251 builtin and then its argument prototype would still apply. */
26252char $ac_func ();
247f5006
VZ
26253/* The GNU C library defines this for functions which it implements
26254 to always fail with ENOSYS. Some functions are actually named
26255 something starting with __ and the normal name is an alias. */
26256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26257choke me
26258#else
e6cc62c6
VS
26259char (*f) () = $ac_func;
26260#endif
26261#ifdef __cplusplus
26262}
247f5006 26263#endif
af15babd 26264
e6cc62c6
VS
26265int
26266main ()
26267{
26268return f != $ac_func;
26269 ;
26270 return 0;
26271}
26272_ACEOF
26273rm -f conftest.$ac_objext conftest$ac_exeext
26274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26275 (eval $ac_link) 2>&5
26276 ac_status=$?
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); } &&
26279 { ac_try='test -s conftest$ac_exeext'
26280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); }; }; then
26285 eval "$as_ac_var=yes"
26286else
26287 echo "$as_me: failed program was:" >&5
26288sed 's/^/| /' conftest.$ac_ext >&5
26289
26290eval "$as_ac_var=no"
26291fi
26292rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26293fi
26294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26295echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26296if test `eval echo '${'$as_ac_var'}'` = yes; then
26297 cat >>confdefs.h <<_ACEOF
26298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26299_ACEOF
52127426 26300
5c6fa7d2 26301fi
247f5006 26302done
8284b0c5 26303
4f14bcd8 26304
8d90d2f2 26305if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26306 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26307echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26308if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26309 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26310else
e6cc62c6
VS
26311
26312 cat >conftest.$ac_ext <<_ACEOF
26313#line $LINENO "configure"
26314/* confdefs.h. */
26315_ACEOF
26316cat confdefs.h >>conftest.$ac_ext
26317cat >>conftest.$ac_ext <<_ACEOF
26318/* end confdefs.h. */
8d90d2f2
VZ
26319
26320 #include <stdio.h>
26321 #include <stdarg.h>
e6cc62c6
VS
26322
26323int
26324main ()
26325{
8d90d2f2
VZ
26326
26327 char *buf;
26328 va_list ap;
26329 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26330
26331 ;
26332 return 0;
26333}
26334_ACEOF
26335rm -f conftest.$ac_objext
26336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26337 (eval $ac_compile) 2>&5
26338 ac_status=$?
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); } &&
26341 { ac_try='test -s conftest.$ac_objext'
26342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26343 (eval $ac_try) 2>&5
26344 ac_status=$?
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); }; }; then
8d90d2f2
VZ
26347 wx_cv_func_vsnprintf_decl=yes
26348else
e6cc62c6
VS
26349 echo "$as_me: failed program was:" >&5
26350sed 's/^/| /' conftest.$ac_ext >&5
26351
26352wx_cv_func_vsnprintf_decl=no
26353
8d90d2f2 26354fi
e6cc62c6
VS
26355rm -f conftest.$ac_objext conftest.$ac_ext
26356
8d90d2f2 26357
e6cc62c6
VS
26358fi
26359echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26360echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26361
26362 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26363 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26364#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26365_ACEOF
8d90d2f2
VZ
26366
26367 fi
26368fi
26369
247f5006 26370if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26371
26372
26373
26374for ac_func in fputwc wprintf vswprintf
d74f4b5a 26375do
e6cc62c6
VS
26376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26377echo "$as_me:$LINENO: checking for $ac_func" >&5
26378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26379if eval "test \"\${$as_ac_var+set}\" = set"; then
26380 echo $ECHO_N "(cached) $ECHO_C" >&6
26381else
26382 cat >conftest.$ac_ext <<_ACEOF
26383#line $LINENO "configure"
26384/* confdefs.h. */
26385_ACEOF
26386cat confdefs.h >>conftest.$ac_ext
26387cat >>conftest.$ac_ext <<_ACEOF
26388/* end confdefs.h. */
d74f4b5a 26389/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26390 which can conflict with char $ac_func (); below.
26391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26392 <limits.h> exists even on freestanding compilers. */
26393#ifdef __STDC__
26394# include <limits.h>
26395#else
26396# include <assert.h>
26397#endif
d74f4b5a 26398/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26399#ifdef __cplusplus
26400extern "C"
e6cc62c6 26401{
247f5006 26402#endif
d74f4b5a 26403/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26404 builtin and then its argument prototype would still apply. */
26405char $ac_func ();
d74f4b5a
VZ
26406/* The GNU C library defines this for functions which it implements
26407 to always fail with ENOSYS. Some functions are actually named
26408 something starting with __ and the normal name is an alias. */
26409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26410choke me
26411#else
e6cc62c6
VS
26412char (*f) () = $ac_func;
26413#endif
26414#ifdef __cplusplus
26415}
d74f4b5a
VZ
26416#endif
26417
e6cc62c6
VS
26418int
26419main ()
26420{
26421return f != $ac_func;
26422 ;
26423 return 0;
26424}
26425_ACEOF
26426rm -f conftest.$ac_objext conftest$ac_exeext
26427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26428 (eval $ac_link) 2>&5
26429 ac_status=$?
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); } &&
26432 { ac_try='test -s conftest$ac_exeext'
26433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26434 (eval $ac_try) 2>&5
26435 ac_status=$?
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); }; }; then
26438 eval "$as_ac_var=yes"
26439else
26440 echo "$as_me: failed program was:" >&5
26441sed 's/^/| /' conftest.$ac_ext >&5
26442
26443eval "$as_ac_var=no"
26444fi
26445rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26446fi
26447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26448echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26449if test `eval echo '${'$as_ac_var'}'` = yes; then
26450 cat >>confdefs.h <<_ACEOF
26451#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26452_ACEOF
d74f4b5a 26453
d74f4b5a
VZ
26454fi
26455done
26456
8d90d2f2 26457
e6cc62c6
VS
26458 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26459echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26460 cat >conftest.$ac_ext <<_ACEOF
26461#line $LINENO "configure"
26462/* confdefs.h. */
26463_ACEOF
26464cat confdefs.h >>conftest.$ac_ext
26465cat >>conftest.$ac_ext <<_ACEOF
26466/* end confdefs.h. */
79668cae 26467#include <wchar.h>
e6cc62c6
VS
26468int
26469main ()
26470{
79668cae 26471&_vsnwprintf;
e6cc62c6
VS
26472 ;
26473 return 0;
26474}
26475_ACEOF
26476rm -f conftest.$ac_objext
26477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26478 (eval $ac_compile) 2>&5
26479 ac_status=$?
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); } &&
26482 { ac_try='test -s conftest.$ac_objext'
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; }; then
26488 echo "$as_me:$LINENO: result: yes" >&5
26489echo "${ECHO_T}yes" >&6
26490 cat >>confdefs.h <<\_ACEOF
79668cae 26491#define HAVE__VSNWPRINTF 1
e6cc62c6 26492_ACEOF
79668cae
MB
26493
26494else
e6cc62c6
VS
26495 echo "$as_me: failed program was:" >&5
26496sed 's/^/| /' conftest.$ac_ext >&5
26497
26498echo "$as_me:$LINENO: result: no" >&5
26499echo "${ECHO_T}no" >&6
79668cae 26500fi
e6cc62c6 26501rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26502fi
26503
247f5006
VZ
26504ac_ext=c
26505ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26508ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26509
26510
26511
26512
4f14bcd8 26513if test "$TOOLKIT" != "MSW"; then
af15babd 26514
8284b0c5
MB
26515
26516
e6cc62c6
VS
26517
26518ac_ext=cc
4f14bcd8 26519ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26523
52127426 26524
e6cc62c6
VS
26525
26526
26527# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26528if test "${with_libiconv_prefix+set}" = set; then
26529 withval="$with_libiconv_prefix"
e6cc62c6 26530
b040e242
VS
26531 for dir in `echo "$withval" | tr : ' '`; do
26532 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26533 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26534 done
b040e242 26535
e6cc62c6 26536fi;
b040e242 26537
e6cc62c6
VS
26538 echo "$as_me:$LINENO: checking for iconv" >&5
26539echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26540if test "${am_cv_func_iconv+set}" = set; then
26541 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26542else
e6cc62c6 26543
b040e242
VS
26544 am_cv_func_iconv="no, consider installing GNU libiconv"
26545 am_cv_lib_iconv=no
e6cc62c6
VS
26546 cat >conftest.$ac_ext <<_ACEOF
26547#line $LINENO "configure"
26548/* confdefs.h. */
26549_ACEOF
26550cat confdefs.h >>conftest.$ac_ext
26551cat >>conftest.$ac_ext <<_ACEOF
26552/* end confdefs.h. */
b040e242 26553#include <stdlib.h>
4f14bcd8 26554#include <iconv.h>
e6cc62c6
VS
26555int
26556main ()
26557{
b040e242
VS
26558iconv_t cd = iconv_open("","");
26559 iconv(cd,NULL,NULL,NULL,NULL);
26560 iconv_close(cd);
e6cc62c6
VS
26561 ;
26562 return 0;
26563}
26564_ACEOF
26565rm -f conftest.$ac_objext conftest$ac_exeext
26566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26567 (eval $ac_link) 2>&5
26568 ac_status=$?
26569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570 (exit $ac_status); } &&
26571 { ac_try='test -s conftest$ac_exeext'
26572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26573 (eval $ac_try) 2>&5
26574 ac_status=$?
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); }; }; then
b040e242 26577 am_cv_func_iconv=yes
af15babd 26578else
e6cc62c6
VS
26579 echo "$as_me: failed program was:" >&5
26580sed 's/^/| /' conftest.$ac_ext >&5
26581
b040e242 26582fi
e6cc62c6 26583rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26584 if test "$am_cv_func_iconv" != yes; then
26585 am_save_LIBS="$LIBS"
26586 LIBS="$LIBS -liconv"
e6cc62c6
VS
26587 cat >conftest.$ac_ext <<_ACEOF
26588#line $LINENO "configure"
26589/* confdefs.h. */
26590_ACEOF
26591cat confdefs.h >>conftest.$ac_ext
26592cat >>conftest.$ac_ext <<_ACEOF
26593/* end confdefs.h. */
b040e242
VS
26594#include <stdlib.h>
26595#include <iconv.h>
e6cc62c6
VS
26596int
26597main ()
26598{
b040e242
VS
26599iconv_t cd = iconv_open("","");
26600 iconv(cd,NULL,NULL,NULL,NULL);
26601 iconv_close(cd);
e6cc62c6
VS
26602 ;
26603 return 0;
26604}
26605_ACEOF
26606rm -f conftest.$ac_objext conftest$ac_exeext
26607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26608 (eval $ac_link) 2>&5
26609 ac_status=$?
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); } &&
26612 { ac_try='test -s conftest$ac_exeext'
26613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26614 (eval $ac_try) 2>&5
26615 ac_status=$?
26616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617 (exit $ac_status); }; }; then
b040e242
VS
26618 am_cv_lib_iconv=yes
26619 am_cv_func_iconv=yes
26620else
e6cc62c6
VS
26621 echo "$as_me: failed program was:" >&5
26622sed 's/^/| /' conftest.$ac_ext >&5
26623
af15babd 26624fi
e6cc62c6 26625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26626 LIBS="$am_save_LIBS"
26627 fi
247f5006 26628
e6cc62c6
VS
26629fi
26630echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26631echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26632 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26633
26634cat >>confdefs.h <<\_ACEOF
b040e242 26635#define HAVE_ICONV 1
e6cc62c6 26636_ACEOF
b040e242 26637
e6cc62c6
VS
26638 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26639echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26640if test "${wx_cv_func_iconv_const+set}" = set; then
26641 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26642else
e6cc62c6
VS
26643 cat >conftest.$ac_ext <<_ACEOF
26644#line $LINENO "configure"
26645/* confdefs.h. */
26646_ACEOF
26647cat confdefs.h >>conftest.$ac_ext
26648cat >>conftest.$ac_ext <<_ACEOF
26649/* end confdefs.h. */
b040e242
VS
26650
26651#include <stdlib.h>
26652#include <iconv.h>
26653extern
26654#ifdef __cplusplus
26655"C"
26656#endif
26657#if defined(__STDC__) || defined(__cplusplus)
26658size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26659#else
26660size_t iconv();
26661#endif
af15babd 26662
e6cc62c6
VS
26663int
26664main ()
26665{
26666
26667 ;
26668 return 0;
26669}
26670_ACEOF
26671rm -f conftest.$ac_objext
26672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26673 (eval $ac_compile) 2>&5
26674 ac_status=$?
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } &&
26677 { ac_try='test -s conftest.$ac_objext'
26678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679 (eval $ac_try) 2>&5
26680 ac_status=$?
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); }; }; then
b7043674 26683 wx_cv_func_iconv_const="no"
b040e242 26684else
e6cc62c6
VS
26685 echo "$as_me: failed program was:" >&5
26686sed 's/^/| /' conftest.$ac_ext >&5
26687
26688wx_cv_func_iconv_const="yes"
26689
247f5006 26690fi
e6cc62c6 26691rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26692
e6cc62c6
VS
26693fi
26694echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26695echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26696
26697 iconv_const=
1c405bb5 26698 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26699 iconv_const="const"
26700 fi
26701
e6cc62c6
VS
26702
26703cat >>confdefs.h <<_ACEOF
f09359cf 26704#define ICONV_CONST $iconv_const
e6cc62c6 26705_ACEOF
b040e242
VS
26706
26707 fi
26708 LIBICONV=
26709 if test "$am_cv_lib_iconv" = yes; then
26710 LIBICONV="-liconv"
26711 fi
e6cc62c6 26712
b040e242
VS
26713
26714LIBS="$LIBICONV $LIBS"
4f14bcd8 26715ac_ext=c
4f14bcd8 26716ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26719ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26720
5c6fa7d2 26721
8284b0c5 26722if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26723
26724for ac_func in sigaction
af15babd 26725do
e6cc62c6
VS
26726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26727echo "$as_me:$LINENO: checking for $ac_func" >&5
26728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26729if eval "test \"\${$as_ac_var+set}\" = set"; then
26730 echo $ECHO_N "(cached) $ECHO_C" >&6
26731else
26732 cat >conftest.$ac_ext <<_ACEOF
26733#line $LINENO "configure"
26734/* confdefs.h. */
26735_ACEOF
26736cat confdefs.h >>conftest.$ac_ext
26737cat >>conftest.$ac_ext <<_ACEOF
26738/* end confdefs.h. */
af15babd 26739/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26740 which can conflict with char $ac_func (); below.
26741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26742 <limits.h> exists even on freestanding compilers. */
26743#ifdef __STDC__
26744# include <limits.h>
26745#else
26746# include <assert.h>
26747#endif
af15babd 26748/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26749#ifdef __cplusplus
26750extern "C"
26751{
26752#endif
af15babd 26753/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26754 builtin and then its argument prototype would still apply. */
26755char $ac_func ();
af15babd
VZ
26756/* The GNU C library defines this for functions which it implements
26757 to always fail with ENOSYS. Some functions are actually named
26758 something starting with __ and the normal name is an alias. */
26759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26760choke me
26761#else
e6cc62c6
VS
26762char (*f) () = $ac_func;
26763#endif
26764#ifdef __cplusplus
26765}
af15babd
VZ
26766#endif
26767
e6cc62c6
VS
26768int
26769main ()
26770{
26771return f != $ac_func;
26772 ;
26773 return 0;
26774}
26775_ACEOF
26776rm -f conftest.$ac_objext conftest$ac_exeext
26777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26778 (eval $ac_link) 2>&5
26779 ac_status=$?
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); } &&
26782 { ac_try='test -s conftest$ac_exeext'
26783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784 (eval $ac_try) 2>&5
26785 ac_status=$?
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); }; }; then
26788 eval "$as_ac_var=yes"
26789else
26790 echo "$as_me: failed program was:" >&5
26791sed 's/^/| /' conftest.$ac_ext >&5
26792
26793eval "$as_ac_var=no"
26794fi
26795rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26796fi
26797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26799if test `eval echo '${'$as_ac_var'}'` = yes; then
26800 cat >>confdefs.h <<_ACEOF
26801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26802_ACEOF
7b4a847f 26803
4f14bcd8
GD
26804fi
26805done
26806
8284b0c5 26807
4f14bcd8 26808 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
26809 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26810echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
26811 wxUSE_ON_FATAL_EXCEPTION=no
26812 fi
26813
26814 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
26815
26816
26817 ac_ext=cc
5c6fa7d2 26818ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 26822
5c6fa7d2 26823
e6cc62c6
VS
26824 echo "$as_me:$LINENO: checking for sa_handler type" >&5
26825echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26826if test "${wx_cv_type_sa_handler+set}" = set; then
26827 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26828else
e6cc62c6
VS
26829
26830 cat >conftest.$ac_ext <<_ACEOF
26831#line $LINENO "configure"
26832/* confdefs.h. */
26833_ACEOF
26834cat confdefs.h >>conftest.$ac_ext
26835cat >>conftest.$ac_ext <<_ACEOF
26836/* end confdefs.h. */
4f14bcd8 26837#include <signal.h>
e6cc62c6
VS
26838int
26839main ()
26840{
4f14bcd8
GD
26841
26842 extern void testSigHandler(int);
26843
26844 struct sigaction sa;
26845 sa.sa_handler = testSigHandler;
e6cc62c6
VS
26846
26847 ;
26848 return 0;
26849}
26850_ACEOF
26851rm -f conftest.$ac_objext
26852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26853 (eval $ac_compile) 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); } &&
26857 { ac_try='test -s conftest.$ac_objext'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26860 ac_status=$?
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; }; then
26863
4f14bcd8 26864 wx_cv_type_sa_handler=int
e6cc62c6 26865
af15babd 26866else
e6cc62c6
VS
26867 echo "$as_me: failed program was:" >&5
26868sed 's/^/| /' conftest.$ac_ext >&5
26869
26870
4f14bcd8 26871 wx_cv_type_sa_handler=void
e6cc62c6 26872
247f5006 26873fi
e6cc62c6 26874rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26875
e6cc62c6
VS
26876fi
26877echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26878echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
26879
26880 ac_ext=c
4f14bcd8 26881ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26884ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 26885
8284b0c5 26886
e6cc62c6 26887 cat >>confdefs.h <<_ACEOF
4f14bcd8 26888#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 26889_ACEOF
af15babd 26890
4f14bcd8
GD
26891 fi
26892fi
af15babd 26893
e6cc62c6
VS
26894
26895
a1d22ad7 26896for ac_func in mkstemp mktemp
af15babd 26897do
e6cc62c6
VS
26898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26899echo "$as_me:$LINENO: checking for $ac_func" >&5
26900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26901if eval "test \"\${$as_ac_var+set}\" = set"; then
26902 echo $ECHO_N "(cached) $ECHO_C" >&6
26903else
26904 cat >conftest.$ac_ext <<_ACEOF
26905#line $LINENO "configure"
26906/* confdefs.h. */
26907_ACEOF
26908cat confdefs.h >>conftest.$ac_ext
26909cat >>conftest.$ac_ext <<_ACEOF
26910/* end confdefs.h. */
af15babd 26911/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26912 which can conflict with char $ac_func (); below.
26913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26914 <limits.h> exists even on freestanding compilers. */
26915#ifdef __STDC__
26916# include <limits.h>
26917#else
26918# include <assert.h>
26919#endif
af15babd 26920/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26921#ifdef __cplusplus
26922extern "C"
26923{
26924#endif
af15babd 26925/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26926 builtin and then its argument prototype would still apply. */
26927char $ac_func ();
af15babd
VZ
26928/* The GNU C library defines this for functions which it implements
26929 to always fail with ENOSYS. Some functions are actually named
26930 something starting with __ and the normal name is an alias. */
26931#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26932choke me
26933#else
e6cc62c6
VS
26934char (*f) () = $ac_func;
26935#endif
26936#ifdef __cplusplus
26937}
af15babd
VZ
26938#endif
26939
e6cc62c6
VS
26940int
26941main ()
26942{
26943return f != $ac_func;
26944 ;
26945 return 0;
26946}
26947_ACEOF
26948rm -f conftest.$ac_objext conftest$ac_exeext
26949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26950 (eval $ac_link) 2>&5
26951 ac_status=$?
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); } &&
26954 { ac_try='test -s conftest$ac_exeext'
26955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956 (eval $ac_try) 2>&5
26957 ac_status=$?
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; }; then
26960 eval "$as_ac_var=yes"
26961else
26962 echo "$as_me: failed program was:" >&5
26963sed 's/^/| /' conftest.$ac_ext >&5
26964
26965eval "$as_ac_var=no"
26966fi
26967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26968fi
26969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26971if test `eval echo '${'$as_ac_var'}'` = yes; then
26972 cat >>confdefs.h <<_ACEOF
26973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26974_ACEOF
ade35f11 26975 break
ade35f11
VZ
26976fi
26977done
26978
8284b0c5 26979
e6cc62c6
VS
26980echo "$as_me:$LINENO: checking for statfs" >&5
26981echo $ECHO_N "checking for statfs... $ECHO_C" >&6
26982if test "${wx_cv_func_statfs+set}" = set; then
26983 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 26984else
e6cc62c6
VS
26985 cat >conftest.$ac_ext <<_ACEOF
26986#line $LINENO "configure"
26987/* confdefs.h. */
26988_ACEOF
26989cat confdefs.h >>conftest.$ac_ext
26990cat >>conftest.$ac_ext <<_ACEOF
26991/* end confdefs.h. */
4f14bcd8
GD
26992
26993 #if defined(__BSD__)
26994 #include <sys/param.h>
26995 #include <sys/mount.h>
26996 #else
26997 #include <sys/vfs.h>
26998 #endif
e6cc62c6
VS
26999
27000int
27001main ()
27002{
4f14bcd8
GD
27003
27004 long l;
27005 struct statfs fs;
27006 statfs("/", &fs);
27007 l = fs.f_bsize;
27008 l += fs.f_blocks;
27009 l += fs.f_bavail;
e6cc62c6
VS
27010
27011 ;
27012 return 0;
27013}
27014_ACEOF
27015rm -f conftest.$ac_objext
27016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27017 (eval $ac_compile) 2>&5
27018 ac_status=$?
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); } &&
27021 { ac_try='test -s conftest.$ac_objext'
27022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; }; then
27027
4f14bcd8 27028 wx_cv_func_statfs=yes
e6cc62c6 27029
4f14bcd8 27030else
e6cc62c6
VS
27031 echo "$as_me: failed program was:" >&5
27032sed 's/^/| /' conftest.$ac_ext >&5
27033
27034
4f14bcd8 27035 wx_cv_func_statfs=no
e6cc62c6 27036
8284b0c5 27037
247f5006 27038fi
e6cc62c6 27039rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27040
e6cc62c6
VS
27041fi
27042echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27043echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27044
27045if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27046 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27047 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27048#define HAVE_STATFS 1
e6cc62c6 27049_ACEOF
4f14bcd8
GD
27050
27051else
e6cc62c6
VS
27052 echo "$as_me:$LINENO: checking for statvfs" >&5
27053echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27054if test "${wx_cv_func_statvfs+set}" = set; then
27055 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27056else
e6cc62c6
VS
27057 cat >conftest.$ac_ext <<_ACEOF
27058#line $LINENO "configure"
27059/* confdefs.h. */
27060_ACEOF
27061cat confdefs.h >>conftest.$ac_ext
27062cat >>conftest.$ac_ext <<_ACEOF
27063/* end confdefs.h. */
af15babd 27064
54ab82b3
VZ
27065 #include <stddef.h>
27066 #include <sys/statvfs.h>
e6cc62c6
VS
27067
27068int
27069main ()
27070{
af15babd 27071
54ab82b3 27072 statvfs("/", NULL);
e6cc62c6
VS
27073
27074 ;
27075 return 0;
27076}
27077_ACEOF
27078rm -f conftest.$ac_objext
27079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27080 (eval $ac_compile) 2>&5
27081 ac_status=$?
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); } &&
27084 { ac_try='test -s conftest.$ac_objext'
27085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086 (eval $ac_try) 2>&5
27087 ac_status=$?
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); }; }; then
54ab82b3 27090 wx_cv_func_statvfs=yes
af15babd 27091else
e6cc62c6
VS
27092 echo "$as_me: failed program was:" >&5
27093sed 's/^/| /' conftest.$ac_ext >&5
27094
27095wx_cv_func_statvfs=no
27096
247f5006 27097fi
e6cc62c6 27098rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27099
e6cc62c6
VS
27100fi
27101echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27102echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27103
4f14bcd8 27104 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27105
27106
27107 ac_ext=cc
54ab82b3 27108ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27112
27113
e6cc62c6
VS
27114 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27115echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27116if test "${wx_cv_type_statvfs_t+set}" = set; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27118else
e6cc62c6
VS
27119 cat >conftest.$ac_ext <<_ACEOF
27120#line $LINENO "configure"
27121/* confdefs.h. */
27122_ACEOF
27123cat confdefs.h >>conftest.$ac_ext
27124cat >>conftest.$ac_ext <<_ACEOF
27125/* end confdefs.h. */
54ab82b3
VZ
27126
27127 #include <sys/statvfs.h>
e6cc62c6
VS
27128
27129int
27130main ()
27131{
54ab82b3
VZ
27132
27133 long l;
27134 statvfs_t fs;
27135 statvfs("/", &fs);
27136 l = fs.f_bsize;
27137 l += fs.f_blocks;
27138 l += fs.f_bavail;
e6cc62c6
VS
27139
27140 ;
27141 return 0;
27142}
27143_ACEOF
27144rm -f conftest.$ac_objext
27145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27146 (eval $ac_compile) 2>&5
27147 ac_status=$?
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); } &&
27150 { ac_try='test -s conftest.$ac_objext'
27151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152 (eval $ac_try) 2>&5
27153 ac_status=$?
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); }; }; then
54ab82b3
VZ
27156 wx_cv_type_statvfs_t=statvfs_t
27157else
e6cc62c6
VS
27158 echo "$as_me: failed program was:" >&5
27159sed 's/^/| /' conftest.$ac_ext >&5
27160
27161
27162 cat >conftest.$ac_ext <<_ACEOF
27163#line $LINENO "configure"
27164/* confdefs.h. */
27165_ACEOF
27166cat confdefs.h >>conftest.$ac_ext
27167cat >>conftest.$ac_ext <<_ACEOF
27168/* end confdefs.h. */
54ab82b3
VZ
27169
27170 #include <sys/statvfs.h>
e6cc62c6
VS
27171
27172int
27173main ()
27174{
54ab82b3
VZ
27175
27176 long l;
65d8ef1e 27177 struct statvfs fs;
54ab82b3
VZ
27178 statvfs("/", &fs);
27179 l = fs.f_bsize;
27180 l += fs.f_blocks;
27181 l += fs.f_bavail;
e6cc62c6
VS
27182
27183 ;
27184 return 0;
27185}
27186_ACEOF
27187rm -f conftest.$ac_objext
27188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27189 (eval $ac_compile) 2>&5
27190 ac_status=$?
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); } &&
27193 { ac_try='test -s conftest.$ac_objext'
27194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27195 (eval $ac_try) 2>&5
27196 ac_status=$?
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; }; then
54ab82b3
VZ
27199 wx_cv_type_statvfs_t="struct statvfs"
27200else
e6cc62c6
VS
27201 echo "$as_me: failed program was:" >&5
27202sed 's/^/| /' conftest.$ac_ext >&5
27203
27204wx_cv_type_statvfs_t="unknown"
27205
54ab82b3 27206fi
e6cc62c6
VS
27207rm -f conftest.$ac_objext conftest.$ac_ext
27208
27209
54ab82b3 27210fi
e6cc62c6 27211rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27212
e6cc62c6
VS
27213fi
27214echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27215echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27216
27217 ac_ext=c
54ab82b3 27218ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27221ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27222
27223
27224 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27225 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27226#define HAVE_STATVFS 1
e6cc62c6 27227_ACEOF
af15babd 27228
54ab82b3 27229 fi
4f14bcd8 27230 else
54ab82b3 27231 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27232 fi
27233fi
af15babd 27234
54ab82b3 27235if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27236 cat >>confdefs.h <<_ACEOF
54ab82b3 27237#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27238_ACEOF
54ab82b3
VZ
27239
27240else
e6cc62c6
VS
27241 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27242echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27243fi
27244
4f14bcd8 27245if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27246
27247
27248for ac_func in fcntl flock
af15babd 27249do
e6cc62c6
VS
27250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27251echo "$as_me:$LINENO: checking for $ac_func" >&5
27252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27253if eval "test \"\${$as_ac_var+set}\" = set"; then
27254 echo $ECHO_N "(cached) $ECHO_C" >&6
27255else
27256 cat >conftest.$ac_ext <<_ACEOF
27257#line $LINENO "configure"
27258/* confdefs.h. */
27259_ACEOF
27260cat confdefs.h >>conftest.$ac_ext
27261cat >>conftest.$ac_ext <<_ACEOF
27262/* end confdefs.h. */
af15babd 27263/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27264 which can conflict with char $ac_func (); below.
27265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27266 <limits.h> exists even on freestanding compilers. */
27267#ifdef __STDC__
27268# include <limits.h>
27269#else
27270# include <assert.h>
27271#endif
af15babd 27272/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27273#ifdef __cplusplus
27274extern "C"
27275{
27276#endif
af15babd 27277/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27278 builtin and then its argument prototype would still apply. */
27279char $ac_func ();
af15babd
VZ
27280/* The GNU C library defines this for functions which it implements
27281 to always fail with ENOSYS. Some functions are actually named
27282 something starting with __ and the normal name is an alias. */
27283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27284choke me
27285#else
e6cc62c6
VS
27286char (*f) () = $ac_func;
27287#endif
27288#ifdef __cplusplus
27289}
af15babd
VZ
27290#endif
27291
e6cc62c6
VS
27292int
27293main ()
27294{
27295return f != $ac_func;
27296 ;
27297 return 0;
27298}
27299_ACEOF
27300rm -f conftest.$ac_objext conftest$ac_exeext
27301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27302 (eval $ac_link) 2>&5
27303 ac_status=$?
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); } &&
27306 { ac_try='test -s conftest$ac_exeext'
27307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308 (eval $ac_try) 2>&5
27309 ac_status=$?
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; }; then
27312 eval "$as_ac_var=yes"
27313else
27314 echo "$as_me: failed program was:" >&5
27315sed 's/^/| /' conftest.$ac_ext >&5
27316
27317eval "$as_ac_var=no"
27318fi
27319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27320fi
27321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27323if test `eval echo '${'$as_ac_var'}'` = yes; then
27324 cat >>confdefs.h <<_ACEOF
27325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27326_ACEOF
4f14bcd8 27327 break
af15babd
VZ
27328fi
27329done
27330
8284b0c5 27331
4f14bcd8 27332 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27333 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27334echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27335 wxUSE_SNGLINST_CHECKER=no
27336 fi
27337fi
af15babd 27338
e6cc62c6 27339
4f14bcd8 27340for ac_func in timegm
af15babd 27341do
e6cc62c6
VS
27342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27343echo "$as_me:$LINENO: checking for $ac_func" >&5
27344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27345if eval "test \"\${$as_ac_var+set}\" = set"; then
27346 echo $ECHO_N "(cached) $ECHO_C" >&6
27347else
27348 cat >conftest.$ac_ext <<_ACEOF
27349#line $LINENO "configure"
27350/* confdefs.h. */
27351_ACEOF
27352cat confdefs.h >>conftest.$ac_ext
27353cat >>conftest.$ac_ext <<_ACEOF
27354/* end confdefs.h. */
af15babd 27355/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27356 which can conflict with char $ac_func (); below.
27357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27358 <limits.h> exists even on freestanding compilers. */
27359#ifdef __STDC__
27360# include <limits.h>
27361#else
27362# include <assert.h>
27363#endif
af15babd 27364/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27365#ifdef __cplusplus
27366extern "C"
27367{
27368#endif
af15babd 27369/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27370 builtin and then its argument prototype would still apply. */
27371char $ac_func ();
af15babd
VZ
27372/* The GNU C library defines this for functions which it implements
27373 to always fail with ENOSYS. Some functions are actually named
27374 something starting with __ and the normal name is an alias. */
247f5006
VZ
27375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27376choke me
27377#else
e6cc62c6
VS
27378char (*f) () = $ac_func;
27379#endif
27380#ifdef __cplusplus
27381}
247f5006
VZ
27382#endif
27383
e6cc62c6
VS
27384int
27385main ()
27386{
27387return f != $ac_func;
27388 ;
27389 return 0;
27390}
27391_ACEOF
27392rm -f conftest.$ac_objext conftest$ac_exeext
27393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27394 (eval $ac_link) 2>&5
27395 ac_status=$?
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); } &&
27398 { ac_try='test -s conftest$ac_exeext'
27399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400 (eval $ac_try) 2>&5
27401 ac_status=$?
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); }; }; then
27404 eval "$as_ac_var=yes"
27405else
27406 echo "$as_me: failed program was:" >&5
27407sed 's/^/| /' conftest.$ac_ext >&5
27408
27409eval "$as_ac_var=no"
27410fi
27411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27412fi
27413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27414echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27415if test `eval echo '${'$as_ac_var'}'` = yes; then
27416 cat >>confdefs.h <<_ACEOF
27417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27418_ACEOF
703e0a69 27419
af15babd
VZ
27420fi
27421done
27422
8284b0c5 27423
e6cc62c6
VS
27424
27425
4f14bcd8 27426for ac_func in putenv setenv
10f2d63a 27427do
e6cc62c6
VS
27428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27429echo "$as_me:$LINENO: checking for $ac_func" >&5
27430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27431if eval "test \"\${$as_ac_var+set}\" = set"; then
27432 echo $ECHO_N "(cached) $ECHO_C" >&6
27433else
27434 cat >conftest.$ac_ext <<_ACEOF
27435#line $LINENO "configure"
27436/* confdefs.h. */
27437_ACEOF
27438cat confdefs.h >>conftest.$ac_ext
27439cat >>conftest.$ac_ext <<_ACEOF
27440/* end confdefs.h. */
af15babd 27441/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27442 which can conflict with char $ac_func (); below.
27443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27444 <limits.h> exists even on freestanding compilers. */
27445#ifdef __STDC__
27446# include <limits.h>
27447#else
27448# include <assert.h>
27449#endif
af15babd 27450/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27451#ifdef __cplusplus
27452extern "C"
27453{
27454#endif
af15babd 27455/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27456 builtin and then its argument prototype would still apply. */
27457char $ac_func ();
af15babd
VZ
27458/* The GNU C library defines this for functions which it implements
27459 to always fail with ENOSYS. Some functions are actually named
27460 something starting with __ and the normal name is an alias. */
27461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27462choke me
27463#else
e6cc62c6
VS
27464char (*f) () = $ac_func;
27465#endif
27466#ifdef __cplusplus
27467}
af15babd
VZ
27468#endif
27469
e6cc62c6
VS
27470int
27471main ()
27472{
27473return f != $ac_func;
27474 ;
27475 return 0;
27476}
27477_ACEOF
27478rm -f conftest.$ac_objext conftest$ac_exeext
27479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27480 (eval $ac_link) 2>&5
27481 ac_status=$?
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); } &&
27484 { ac_try='test -s conftest$ac_exeext'
27485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27486 (eval $ac_try) 2>&5
27487 ac_status=$?
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; }; then
27490 eval "$as_ac_var=yes"
27491else
27492 echo "$as_me: failed program was:" >&5
27493sed 's/^/| /' conftest.$ac_ext >&5
27494
27495eval "$as_ac_var=no"
27496fi
27497rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27498fi
27499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27500echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27501if test `eval echo '${'$as_ac_var'}'` = yes; then
27502 cat >>confdefs.h <<_ACEOF
27503#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27504_ACEOF
4f14bcd8 27505 break
af15babd 27506fi
af15babd
VZ
27507done
27508
8284b0c5 27509
4f14bcd8
GD
27510HAVE_SOME_SLEEP_FUNC=0
27511if test "$USE_BEOS" = 1; then
e6cc62c6 27512 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27513#define HAVE_SLEEP 1
e6cc62c6 27514_ACEOF
af15babd 27515
4f14bcd8 27516 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27517fi
27518
4f14bcd8 27519if test "$USE_DARWIN" = 1; then
e6cc62c6 27520 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27521#define HAVE_USLEEP 1
e6cc62c6 27522_ACEOF
10f2d63a 27523
4f14bcd8 27524 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27525fi
27526
4f14bcd8
GD
27527if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27528 POSIX4_LINK=
e6cc62c6
VS
27529
27530for ac_func in nanosleep
4f14bcd8 27531do
e6cc62c6
VS
27532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27533echo "$as_me:$LINENO: checking for $ac_func" >&5
27534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27535if eval "test \"\${$as_ac_var+set}\" = set"; then
27536 echo $ECHO_N "(cached) $ECHO_C" >&6
27537else
27538 cat >conftest.$ac_ext <<_ACEOF
27539#line $LINENO "configure"
27540/* confdefs.h. */
27541_ACEOF
27542cat confdefs.h >>conftest.$ac_ext
27543cat >>conftest.$ac_ext <<_ACEOF
27544/* end confdefs.h. */
4f14bcd8 27545/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27546 which can conflict with char $ac_func (); below.
27547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27548 <limits.h> exists even on freestanding compilers. */
27549#ifdef __STDC__
27550# include <limits.h>
27551#else
27552# include <assert.h>
27553#endif
10f2d63a 27554/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27555#ifdef __cplusplus
27556extern "C"
27557{
27558#endif
10f2d63a 27559/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27560 builtin and then its argument prototype would still apply. */
27561char $ac_func ();
4f14bcd8
GD
27562/* The GNU C library defines this for functions which it implements
27563 to always fail with ENOSYS. Some functions are actually named
27564 something starting with __ and the normal name is an alias. */
27565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27566choke me
27567#else
e6cc62c6
VS
27568char (*f) () = $ac_func;
27569#endif
27570#ifdef __cplusplus
27571}
4f14bcd8
GD
27572#endif
27573
e6cc62c6
VS
27574int
27575main ()
27576{
27577return f != $ac_func;
27578 ;
27579 return 0;
27580}
27581_ACEOF
27582rm -f conftest.$ac_objext conftest$ac_exeext
27583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27584 (eval $ac_link) 2>&5
27585 ac_status=$?
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); } &&
27588 { ac_try='test -s conftest$ac_exeext'
27589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590 (eval $ac_try) 2>&5
27591 ac_status=$?
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); }; }; then
27594 eval "$as_ac_var=yes"
27595else
27596 echo "$as_me: failed program was:" >&5
27597sed 's/^/| /' conftest.$ac_ext >&5
27598
27599eval "$as_ac_var=no"
27600fi
27601rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27602fi
27603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27604echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27605if test `eval echo '${'$as_ac_var'}'` = yes; then
27606 cat >>confdefs.h <<_ACEOF
27607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27608_ACEOF
27609 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27610#define HAVE_NANOSLEEP 1
e6cc62c6 27611_ACEOF
4f14bcd8 27612
10f2d63a 27613else
e6cc62c6
VS
27614
27615 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27616echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27617if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27618 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27619else
e6cc62c6 27620 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27621LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27622cat >conftest.$ac_ext <<_ACEOF
27623#line $LINENO "configure"
27624/* confdefs.h. */
27625_ACEOF
27626cat confdefs.h >>conftest.$ac_ext
27627cat >>conftest.$ac_ext <<_ACEOF
27628/* end confdefs.h. */
27629
10f2d63a 27630/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27631#ifdef __cplusplus
27632extern "C"
27633#endif
10f2d63a 27634/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27635 builtin and then its argument prototype would still apply. */
27636char nanosleep ();
27637int
27638main ()
27639{
27640nanosleep ();
27641 ;
27642 return 0;
27643}
27644_ACEOF
27645rm -f conftest.$ac_objext conftest$ac_exeext
27646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27647 (eval $ac_link) 2>&5
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); } &&
27651 { ac_try='test -s conftest$ac_exeext'
27652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653 (eval $ac_try) 2>&5
27654 ac_status=$?
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; }; then
27657 ac_cv_lib_posix4_nanosleep=yes
27658else
27659 echo "$as_me: failed program was:" >&5
27660sed 's/^/| /' conftest.$ac_ext >&5
27661
27662ac_cv_lib_posix4_nanosleep=no
27663fi
27664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27665LIBS=$ac_check_lib_save_LIBS
27666fi
27667echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27668echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27669if test $ac_cv_lib_posix4_nanosleep = yes; then
27670
27671 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27672#define HAVE_NANOSLEEP 1
e6cc62c6 27673_ACEOF
4f14bcd8 27674
3d63bc3a 27675 POSIX4_LINK=" -lposix4"
e6cc62c6 27676
10f2d63a 27677else
10f2d63a 27678
e6cc62c6
VS
27679
27680for ac_func in usleep
4f14bcd8 27681do
e6cc62c6
VS
27682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27683echo "$as_me:$LINENO: checking for $ac_func" >&5
27684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27685if eval "test \"\${$as_ac_var+set}\" = set"; then
27686 echo $ECHO_N "(cached) $ECHO_C" >&6
27687else
27688 cat >conftest.$ac_ext <<_ACEOF
27689#line $LINENO "configure"
27690/* confdefs.h. */
27691_ACEOF
27692cat confdefs.h >>conftest.$ac_ext
27693cat >>conftest.$ac_ext <<_ACEOF
27694/* end confdefs.h. */
4f14bcd8 27695/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27696 which can conflict with char $ac_func (); below.
27697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27698 <limits.h> exists even on freestanding compilers. */
27699#ifdef __STDC__
27700# include <limits.h>
27701#else
27702# include <assert.h>
27703#endif
4f14bcd8 27704/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27705#ifdef __cplusplus
27706extern "C"
27707{
27708#endif
4f14bcd8 27709/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27710 builtin and then its argument prototype would still apply. */
27711char $ac_func ();
4f14bcd8
GD
27712/* The GNU C library defines this for functions which it implements
27713 to always fail with ENOSYS. Some functions are actually named
27714 something starting with __ and the normal name is an alias. */
27715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27716choke me
27717#else
e6cc62c6
VS
27718char (*f) () = $ac_func;
27719#endif
27720#ifdef __cplusplus
27721}
4f14bcd8
GD
27722#endif
27723
e6cc62c6
VS
27724int
27725main ()
27726{
27727return f != $ac_func;
27728 ;
27729 return 0;
27730}
27731_ACEOF
27732rm -f conftest.$ac_objext conftest$ac_exeext
27733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27734 (eval $ac_link) 2>&5
27735 ac_status=$?
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); } &&
27738 { ac_try='test -s conftest$ac_exeext'
27739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27740 (eval $ac_try) 2>&5
27741 ac_status=$?
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); }; }; then
27744 eval "$as_ac_var=yes"
27745else
27746 echo "$as_me: failed program was:" >&5
27747sed 's/^/| /' conftest.$ac_ext >&5
27748
27749eval "$as_ac_var=no"
27750fi
27751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27752fi
27753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27755if test `eval echo '${'$as_ac_var'}'` = yes; then
27756 cat >>confdefs.h <<_ACEOF
27757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27758_ACEOF
27759 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27760#define HAVE_USLEEP 1
e6cc62c6 27761_ACEOF
4f14bcd8 27762
698dcdb6 27763else
e6cc62c6
VS
27764 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27765echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27766
10f2d63a 27767fi
4f14bcd8 27768done
10f2d63a 27769
e6cc62c6
VS
27770
27771
6232543b 27772fi
10f2d63a 27773
e6cc62c6
VS
27774
27775
1e487827 27776fi
4f14bcd8 27777done
703e0a69 27778
10f2d63a
VZ
27779fi
27780
e6cc62c6
VS
27781
27782
4f14bcd8 27783for ac_func in uname gethostname
70846f0a 27784do
e6cc62c6
VS
27785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27786echo "$as_me:$LINENO: checking for $ac_func" >&5
27787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27788if eval "test \"\${$as_ac_var+set}\" = set"; then
27789 echo $ECHO_N "(cached) $ECHO_C" >&6
27790else
27791 cat >conftest.$ac_ext <<_ACEOF
27792#line $LINENO "configure"
27793/* confdefs.h. */
27794_ACEOF
27795cat confdefs.h >>conftest.$ac_ext
27796cat >>conftest.$ac_ext <<_ACEOF
27797/* end confdefs.h. */
70846f0a 27798/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27799 which can conflict with char $ac_func (); below.
27800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27801 <limits.h> exists even on freestanding compilers. */
27802#ifdef __STDC__
27803# include <limits.h>
27804#else
27805# include <assert.h>
27806#endif
70846f0a 27807/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27808#ifdef __cplusplus
27809extern "C"
27810{
27811#endif
70846f0a 27812/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27813 builtin and then its argument prototype would still apply. */
27814char $ac_func ();
70846f0a
VZ
27815/* The GNU C library defines this for functions which it implements
27816 to always fail with ENOSYS. Some functions are actually named
27817 something starting with __ and the normal name is an alias. */
27818#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27819choke me
27820#else
e6cc62c6
VS
27821char (*f) () = $ac_func;
27822#endif
27823#ifdef __cplusplus
27824}
70846f0a
VZ
27825#endif
27826
e6cc62c6
VS
27827int
27828main ()
27829{
27830return f != $ac_func;
27831 ;
27832 return 0;
27833}
27834_ACEOF
27835rm -f conftest.$ac_objext conftest$ac_exeext
27836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27837 (eval $ac_link) 2>&5
27838 ac_status=$?
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); } &&
27841 { ac_try='test -s conftest$ac_exeext'
27842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27843 (eval $ac_try) 2>&5
27844 ac_status=$?
27845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846 (exit $ac_status); }; }; then
27847 eval "$as_ac_var=yes"
27848else
27849 echo "$as_me: failed program was:" >&5
27850sed 's/^/| /' conftest.$ac_ext >&5
27851
27852eval "$as_ac_var=no"
27853fi
27854rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27855fi
27856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27857echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27858if test `eval echo '${'$as_ac_var'}'` = yes; then
27859 cat >>confdefs.h <<_ACEOF
27860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27861_ACEOF
4f14bcd8 27862 break
70846f0a
VZ
27863fi
27864done
27865
8284b0c5
MB
27866
27867
e6cc62c6
VS
27868
27869ac_ext=cc
4f14bcd8 27870ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27874
8284b0c5 27875
4f14bcd8
GD
27876
27877for ac_func in strtok_r
10f2d63a 27878do
e6cc62c6
VS
27879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27880echo "$as_me:$LINENO: checking for $ac_func" >&5
27881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27882if eval "test \"\${$as_ac_var+set}\" = set"; then
27883 echo $ECHO_N "(cached) $ECHO_C" >&6
27884else
27885 cat >conftest.$ac_ext <<_ACEOF
27886#line $LINENO "configure"
27887/* confdefs.h. */
27888_ACEOF
27889cat confdefs.h >>conftest.$ac_ext
27890cat >>conftest.$ac_ext <<_ACEOF
27891/* end confdefs.h. */
4f14bcd8 27892/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27893 which can conflict with char $ac_func (); below.
27894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27895 <limits.h> exists even on freestanding compilers. */
27896#ifdef __STDC__
27897# include <limits.h>
27898#else
27899# include <assert.h>
27900#endif
4f14bcd8
GD
27901/* Override any gcc2 internal prototype to avoid an error. */
27902#ifdef __cplusplus
27903extern "C"
e6cc62c6 27904{
4f14bcd8
GD
27905#endif
27906/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27907 builtin and then its argument prototype would still apply. */
27908char $ac_func ();
4f14bcd8
GD
27909/* The GNU C library defines this for functions which it implements
27910 to always fail with ENOSYS. Some functions are actually named
27911 something starting with __ and the normal name is an alias. */
27912#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27913choke me
27914#else
e6cc62c6
VS
27915char (*f) () = $ac_func;
27916#endif
27917#ifdef __cplusplus
27918}
4f14bcd8
GD
27919#endif
27920
e6cc62c6
VS
27921int
27922main ()
27923{
27924return f != $ac_func;
27925 ;
27926 return 0;
27927}
27928_ACEOF
27929rm -f conftest.$ac_objext conftest$ac_exeext
27930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27931 (eval $ac_link) 2>&5
27932 ac_status=$?
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); } &&
27935 { ac_try='test -s conftest$ac_exeext'
27936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27937 (eval $ac_try) 2>&5
27938 ac_status=$?
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); }; }; then
27941 eval "$as_ac_var=yes"
27942else
27943 echo "$as_me: failed program was:" >&5
27944sed 's/^/| /' conftest.$ac_ext >&5
27945
27946eval "$as_ac_var=no"
27947fi
27948rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27949fi
27950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27952if test `eval echo '${'$as_ac_var'}'` = yes; then
27953 cat >>confdefs.h <<_ACEOF
27954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27955_ACEOF
4f14bcd8 27956
10f2d63a
VZ
27957fi
27958done
27959
8284b0c5 27960
4f14bcd8 27961ac_ext=c
4f14bcd8 27962ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27965ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27966
5c6fa7d2 27967
8284b0c5 27968INET_LINK=
e6cc62c6 27969
4f14bcd8
GD
27970for ac_func in inet_addr
27971do
e6cc62c6
VS
27972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27973echo "$as_me:$LINENO: checking for $ac_func" >&5
27974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27975if eval "test \"\${$as_ac_var+set}\" = set"; then
27976 echo $ECHO_N "(cached) $ECHO_C" >&6
27977else
27978 cat >conftest.$ac_ext <<_ACEOF
27979#line $LINENO "configure"
27980/* confdefs.h. */
27981_ACEOF
27982cat confdefs.h >>conftest.$ac_ext
27983cat >>conftest.$ac_ext <<_ACEOF
27984/* end confdefs.h. */
4f14bcd8 27985/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27986 which can conflict with char $ac_func (); below.
27987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27988 <limits.h> exists even on freestanding compilers. */
27989#ifdef __STDC__
27990# include <limits.h>
27991#else
27992# include <assert.h>
27993#endif
10f2d63a 27994/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27995#ifdef __cplusplus
27996extern "C"
27997{
27998#endif
10f2d63a 27999/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28000 builtin and then its argument prototype would still apply. */
28001char $ac_func ();
4f14bcd8
GD
28002/* The GNU C library defines this for functions which it implements
28003 to always fail with ENOSYS. Some functions are actually named
28004 something starting with __ and the normal name is an alias. */
28005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28006choke me
28007#else
e6cc62c6
VS
28008char (*f) () = $ac_func;
28009#endif
28010#ifdef __cplusplus
28011}
4f14bcd8
GD
28012#endif
28013
e6cc62c6
VS
28014int
28015main ()
28016{
28017return f != $ac_func;
28018 ;
28019 return 0;
28020}
28021_ACEOF
28022rm -f conftest.$ac_objext conftest$ac_exeext
28023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28024 (eval $ac_link) 2>&5
28025 ac_status=$?
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); } &&
28028 { ac_try='test -s conftest$ac_exeext'
28029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28030 (eval $ac_try) 2>&5
28031 ac_status=$?
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); }; }; then
28034 eval "$as_ac_var=yes"
28035else
28036 echo "$as_me: failed program was:" >&5
28037sed 's/^/| /' conftest.$ac_ext >&5
28038
28039eval "$as_ac_var=no"
28040fi
28041rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28042fi
28043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28045if test `eval echo '${'$as_ac_var'}'` = yes; then
28046 cat >>confdefs.h <<_ACEOF
28047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28048_ACEOF
28049 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28050#define HAVE_INET_ADDR 1
e6cc62c6 28051_ACEOF
10f2d63a
VZ
28052
28053else
e6cc62c6
VS
28054
28055 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28056echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28057if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28058 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28059else
e6cc62c6 28060 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28061LIBS="-lnsl $LIBS"
e6cc62c6
VS
28062cat >conftest.$ac_ext <<_ACEOF
28063#line $LINENO "configure"
28064/* confdefs.h. */
28065_ACEOF
28066cat confdefs.h >>conftest.$ac_ext
28067cat >>conftest.$ac_ext <<_ACEOF
28068/* end confdefs.h. */
28069
10f2d63a 28070/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28071#ifdef __cplusplus
28072extern "C"
28073#endif
10f2d63a 28074/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28075 builtin and then its argument prototype would still apply. */
28076char inet_addr ();
28077int
28078main ()
28079{
28080inet_addr ();
28081 ;
28082 return 0;
28083}
28084_ACEOF
28085rm -f conftest.$ac_objext conftest$ac_exeext
28086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28087 (eval $ac_link) 2>&5
28088 ac_status=$?
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); } &&
28091 { ac_try='test -s conftest$ac_exeext'
28092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28093 (eval $ac_try) 2>&5
28094 ac_status=$?
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); }; }; then
28097 ac_cv_lib_nsl_inet_addr=yes
28098else
28099 echo "$as_me: failed program was:" >&5
28100sed 's/^/| /' conftest.$ac_ext >&5
28101
28102ac_cv_lib_nsl_inet_addr=no
28103fi
28104rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28105LIBS=$ac_check_lib_save_LIBS
28106fi
28107echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28108echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28109if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28110 INET_LINK="nsl"
10f2d63a 28111else
e6cc62c6
VS
28112 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28113echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28114if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28115 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28116else
e6cc62c6 28117 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28118LIBS="-lresolv $LIBS"
e6cc62c6
VS
28119cat >conftest.$ac_ext <<_ACEOF
28120#line $LINENO "configure"
28121/* confdefs.h. */
28122_ACEOF
28123cat confdefs.h >>conftest.$ac_ext
28124cat >>conftest.$ac_ext <<_ACEOF
28125/* end confdefs.h. */
28126
5c6fa7d2 28127/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28128#ifdef __cplusplus
28129extern "C"
28130#endif
5c6fa7d2 28131/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28132 builtin and then its argument prototype would still apply. */
28133char inet_addr ();
28134int
28135main ()
28136{
28137inet_addr ();
28138 ;
28139 return 0;
28140}
28141_ACEOF
28142rm -f conftest.$ac_objext conftest$ac_exeext
28143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28144 (eval $ac_link) 2>&5
28145 ac_status=$?
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); } &&
28148 { ac_try='test -s conftest$ac_exeext'
28149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28150 (eval $ac_try) 2>&5
28151 ac_status=$?
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); }; }; then
28154 ac_cv_lib_resolv_inet_addr=yes
28155else
28156 echo "$as_me: failed program was:" >&5
28157sed 's/^/| /' conftest.$ac_ext >&5
28158
28159ac_cv_lib_resolv_inet_addr=no
28160fi
28161rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28162LIBS=$ac_check_lib_save_LIBS
28163fi
28164echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28165echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28166if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28167 INET_LINK="resolv"
698dcdb6 28168else
e6cc62c6
VS
28169 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28170echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28171if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28172 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28173else
e6cc62c6 28174 ac_check_lib_save_LIBS=$LIBS
3c011993 28175LIBS="-lsocket $LIBS"
e6cc62c6
VS
28176cat >conftest.$ac_ext <<_ACEOF
28177#line $LINENO "configure"
28178/* confdefs.h. */
28179_ACEOF
28180cat confdefs.h >>conftest.$ac_ext
28181cat >>conftest.$ac_ext <<_ACEOF
28182/* end confdefs.h. */
28183
3c011993 28184/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28185#ifdef __cplusplus
28186extern "C"
28187#endif
3c011993 28188/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28189 builtin and then its argument prototype would still apply. */
28190char inet_addr ();
28191int
28192main ()
28193{
28194inet_addr ();
28195 ;
28196 return 0;
28197}
28198_ACEOF
28199rm -f conftest.$ac_objext conftest$ac_exeext
28200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28201 (eval $ac_link) 2>&5
28202 ac_status=$?
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); } &&
28205 { ac_try='test -s conftest$ac_exeext'
28206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28207 (eval $ac_try) 2>&5
28208 ac_status=$?
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; }; then
28211 ac_cv_lib_socket_inet_addr=yes
28212else
28213 echo "$as_me: failed program was:" >&5
28214sed 's/^/| /' conftest.$ac_ext >&5
28215
28216ac_cv_lib_socket_inet_addr=no
28217fi
28218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28219LIBS=$ac_check_lib_save_LIBS
28220fi
28221echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28222echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28223if test $ac_cv_lib_socket_inet_addr = yes; then
28224 INET_LINK="socket"
4f14bcd8 28225
8284b0c5 28226fi
e6cc62c6 28227
698dcdb6 28228
7b4a847f 28229fi
e6cc62c6
VS
28230
28231
a0b9e27f 28232fi
579d8138 28233
e6cc62c6
VS
28234
28235
5c6fa7d2 28236fi
e6cc62c6
VS
28237done
28238
28239
28240
28241for ac_func in inet_aton
28242do
28243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28244echo "$as_me:$LINENO: checking for $ac_func" >&5
28245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28246if eval "test \"\${$as_ac_var+set}\" = set"; then
28247 echo $ECHO_N "(cached) $ECHO_C" >&6
28248else
28249 cat >conftest.$ac_ext <<_ACEOF
28250#line $LINENO "configure"
28251/* confdefs.h. */
28252_ACEOF
28253cat confdefs.h >>conftest.$ac_ext
28254cat >>conftest.$ac_ext <<_ACEOF
28255/* end confdefs.h. */
28256/* System header to define __stub macros and hopefully few prototypes,
28257 which can conflict with char $ac_func (); below.
28258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28259 <limits.h> exists even on freestanding compilers. */
28260#ifdef __STDC__
28261# include <limits.h>
28262#else
28263# include <assert.h>
28264#endif
28265/* Override any gcc2 internal prototype to avoid an error. */
28266#ifdef __cplusplus
28267extern "C"
28268{
28269#endif
28270/* We use char because int might match the return type of a gcc2
28271 builtin and then its argument prototype would still apply. */
28272char $ac_func ();
28273/* The GNU C library defines this for functions which it implements
28274 to always fail with ENOSYS. Some functions are actually named
28275 something starting with __ and the normal name is an alias. */
28276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28277choke me
28278#else
28279char (*f) () = $ac_func;
28280#endif
28281#ifdef __cplusplus
28282}
28283#endif
28284
28285int
28286main ()
28287{
28288return f != $ac_func;
28289 ;
28290 return 0;
28291}
28292_ACEOF
28293rm -f conftest.$ac_objext conftest$ac_exeext
28294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28295 (eval $ac_link) 2>&5
28296 ac_status=$?
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); } &&
28299 { ac_try='test -s conftest$ac_exeext'
28300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301 (eval $ac_try) 2>&5
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; }; then
28305 eval "$as_ac_var=yes"
28306else
28307 echo "$as_me: failed program was:" >&5
28308sed 's/^/| /' conftest.$ac_ext >&5
28309
28310eval "$as_ac_var=no"
28311fi
28312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28313fi
28314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28315echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28316if test `eval echo '${'$as_ac_var'}'` = yes; then
28317 cat >>confdefs.h <<_ACEOF
28318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28319_ACEOF
28320 cat >>confdefs.h <<\_ACEOF
28321#define HAVE_INET_ATON 1
28322_ACEOF
28323
28324else
28325
28326 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28327echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28328echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28329if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28330 echo $ECHO_N "(cached) $ECHO_C" >&6
28331else
28332 ac_check_lib_save_LIBS=$LIBS
28333LIBS="-l$INET_LINK $LIBS"
28334cat >conftest.$ac_ext <<_ACEOF
28335#line $LINENO "configure"
28336/* confdefs.h. */
28337_ACEOF
28338cat confdefs.h >>conftest.$ac_ext
28339cat >>conftest.$ac_ext <<_ACEOF
28340/* end confdefs.h. */
28341
28342/* Override any gcc2 internal prototype to avoid an error. */
28343#ifdef __cplusplus
28344extern "C"
28345#endif
28346/* We use char because int might match the return type of a gcc2
28347 builtin and then its argument prototype would still apply. */
28348char inet_aton ();
28349int
28350main ()
28351{
28352inet_aton ();
28353 ;
28354 return 0;
28355}
28356_ACEOF
28357rm -f conftest.$ac_objext conftest$ac_exeext
28358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28359 (eval $ac_link) 2>&5
28360 ac_status=$?
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); } &&
28363 { ac_try='test -s conftest$ac_exeext'
28364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 eval "$as_ac_Lib=yes"
28370else
28371 echo "$as_me: failed program was:" >&5
28372sed 's/^/| /' conftest.$ac_ext >&5
28373
28374eval "$as_ac_Lib=no"
28375fi
28376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28377LIBS=$ac_check_lib_save_LIBS
28378fi
28379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28380echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28381if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28382 cat >>confdefs.h <<\_ACEOF
28383#define HAVE_INET_ATON 1
28384_ACEOF
52127426 28385
a0b9e27f 28386fi
247f5006 28387
8284b0c5 28388
698dcdb6 28389fi
4f14bcd8
GD
28390done
28391
8284b0c5 28392
e6cc62c6
VS
28393if test "x$INET_LINK" != "x"; then
28394 cat >>confdefs.h <<\_ACEOF
28395#define HAVE_INET_ADDR 1
28396_ACEOF
28397
28398 INET_LINK=" -l$INET_LINK"
28399fi
28400
28401fi
a0b9e27f 28402
a0b9e27f 28403
4f14bcd8 28404
e6cc62c6
VS
28405ESD_LINK=
28406if test "${ac_cv_header_esd_h+set}" = set; then
28407 echo "$as_me:$LINENO: checking for esd.h" >&5
28408echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28409if test "${ac_cv_header_esd_h+set}" = set; then
28410 echo $ECHO_N "(cached) $ECHO_C" >&6
28411fi
28412echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28413echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28414else
28415 # Is the header compilable?
28416echo "$as_me:$LINENO: checking esd.h usability" >&5
28417echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6
28418cat >conftest.$ac_ext <<_ACEOF
28419#line $LINENO "configure"
28420/* confdefs.h. */
28421_ACEOF
28422cat confdefs.h >>conftest.$ac_ext
28423cat >>conftest.$ac_ext <<_ACEOF
28424/* end confdefs.h. */
28425$ac_includes_default
28426#include <esd.h>
28427_ACEOF
28428rm -f conftest.$ac_objext
28429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28430 (eval $ac_compile) 2>&5
28431 ac_status=$?
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); } &&
28434 { ac_try='test -s conftest.$ac_objext'
28435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436 (eval $ac_try) 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; }; then
28440 ac_header_compiler=yes
28441else
28442 echo "$as_me: failed program was:" >&5
28443sed 's/^/| /' conftest.$ac_ext >&5
28444
28445ac_header_compiler=no
28446fi
28447rm -f conftest.$ac_objext conftest.$ac_ext
28448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28449echo "${ECHO_T}$ac_header_compiler" >&6
28450
28451# Is the header present?
28452echo "$as_me:$LINENO: checking esd.h presence" >&5
28453echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6
28454cat >conftest.$ac_ext <<_ACEOF
28455#line $LINENO "configure"
28456/* confdefs.h. */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h. */
28461#include <esd.h>
28462_ACEOF
28463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28465 ac_status=$?
28466 grep -v '^ *+' conftest.er1 >conftest.err
28467 rm -f conftest.er1
28468 cat conftest.err >&5
28469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470 (exit $ac_status); } >/dev/null; then
28471 if test -s conftest.err; then
28472 ac_cpp_err=$ac_c_preproc_warn_flag
28473 else
28474 ac_cpp_err=
28475 fi
a0b9e27f 28476else
e6cc62c6
VS
28477 ac_cpp_err=yes
28478fi
28479if test -z "$ac_cpp_err"; then
28480 ac_header_preproc=yes
28481else
28482 echo "$as_me: failed program was:" >&5
28483sed 's/^/| /' conftest.$ac_ext >&5
28484
28485 ac_header_preproc=no
28486fi
28487rm -f conftest.err conftest.$ac_ext
28488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28489echo "${ECHO_T}$ac_header_preproc" >&6
28490
28491# So? What about this header?
28492case $ac_header_compiler:$ac_header_preproc in
28493 yes:no )
28494 { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5
28495echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28496 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28497echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28498 (
28499 cat <<\_ASBOX
28500## ------------------------------------ ##
28501## Report this to bug-autoconf@gnu.org. ##
28502## ------------------------------------ ##
28503_ASBOX
28504 ) |
28505 sed "s/^/$as_me: WARNING: /" >&2
28506 ;;
28507 no:yes )
28508 { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5
28509echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;}
28510 { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5
28511echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;}
28512 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28513echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28514 (
28515 cat <<\_ASBOX
28516## ------------------------------------ ##
28517## Report this to bug-autoconf@gnu.org. ##
28518## ------------------------------------ ##
28519_ASBOX
28520 ) |
28521 sed "s/^/$as_me: WARNING: /" >&2
28522 ;;
28523esac
28524echo "$as_me:$LINENO: checking for esd.h" >&5
28525echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28526if test "${ac_cv_header_esd_h+set}" = set; then
28527 echo $ECHO_N "(cached) $ECHO_C" >&6
28528else
28529 ac_cv_header_esd_h=$ac_header_preproc
a0b9e27f 28530fi
e6cc62c6
VS
28531echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28532echo "${ECHO_T}$ac_cv_header_esd_h" >&6
a0b9e27f 28533
e6cc62c6
VS
28534fi
28535if test $ac_cv_header_esd_h = yes; then
4f14bcd8 28536
e6cc62c6
VS
28537 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28538echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28539if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28540 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28541else
e6cc62c6
VS
28542 ac_check_lib_save_LIBS=$LIBS
28543LIBS="-lesd $LIBS"
28544cat >conftest.$ac_ext <<_ACEOF
28545#line $LINENO "configure"
28546/* confdefs.h. */
28547_ACEOF
28548cat confdefs.h >>conftest.$ac_ext
28549cat >>conftest.$ac_ext <<_ACEOF
28550/* end confdefs.h. */
28551
6232543b 28552/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28553#ifdef __cplusplus
28554extern "C"
28555#endif
6232543b 28556/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28557 builtin and then its argument prototype would still apply. */
28558char esd_close ();
28559int
28560main ()
28561{
28562esd_close ();
28563 ;
28564 return 0;
28565}
28566_ACEOF
28567rm -f conftest.$ac_objext conftest$ac_exeext
28568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28569 (eval $ac_link) 2>&5
28570 ac_status=$?
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } &&
28573 { ac_try='test -s conftest$ac_exeext'
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28576 ac_status=$?
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; }; then
28579 ac_cv_lib_esd_esd_close=yes
a0b9e27f 28580else
e6cc62c6
VS
28581 echo "$as_me: failed program was:" >&5
28582sed 's/^/| /' conftest.$ac_ext >&5
4f14bcd8 28583
e6cc62c6 28584ac_cv_lib_esd_esd_close=no
10f2d63a 28585fi
e6cc62c6
VS
28586rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28587LIBS=$ac_check_lib_save_LIBS
a0b9e27f 28588fi
e6cc62c6
VS
28589echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28590echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28591if test $ac_cv_lib_esd_esd_close = yes; then
247f5006 28592
e6cc62c6 28593 ESD_LINK="-lesd"
10f2d63a 28594
e6cc62c6 28595fi
8284b0c5 28596
4f14bcd8 28597
6232543b 28598fi
10f2d63a 28599
703e0a69 28600
8284b0c5 28601
e6cc62c6
VS
28602
28603
28604cat >confcache <<\_ACEOF
4f14bcd8
GD
28605# This file is a shell script that caches the results of configure
28606# tests run on this system so they can be shared between configure
e6cc62c6
VS
28607# scripts and configure runs, see configure's option --config-cache.
28608# It is not useful on other systems. If it contains results you don't
28609# want to keep, you may remove or edit it.
4f14bcd8 28610#
e6cc62c6
VS
28611# config.status only pays attention to the cache file if you give it
28612# the --recheck option to rerun configure.
4f14bcd8 28613#
e6cc62c6
VS
28614# `ac_cv_env_foo' variables (set or unset) will be overridden when
28615# loading this file, other *unset* `ac_cv_foo' will be assigned the
28616# following values.
28617
28618_ACEOF
28619
4f14bcd8
GD
28620# The following way of writing the cache mishandles newlines in values,
28621# but we know of no workaround that is simple, portable, and efficient.
28622# So, don't put newlines in cache variables' values.
28623# Ultrix sh set writes to stderr and can't be redirected directly,
28624# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28625{
28626 (set) 2>&1 |
28627 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28628 *ac_space=\ *)
28629 # `set' does not quote correctly, so add quotes (double-quote
28630 # substitution turns \\\\ into \\, and sed turns \\ into \).
28631 sed -n \
28632 "s/'/'\\\\''/g;
28633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28634 ;;
28635 *)
28636 # `set' quotes correctly as required by POSIX, so do not add quotes.
28637 sed -n \
28638 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28639 ;;
28640 esac;
28641} |
28642 sed '
28643 t clear
28644 : clear
28645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28646 t end
28647 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28648 : end' >>confcache
28649if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28650 if test -w $cache_file; then
e6cc62c6
VS
28651 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28652 cat confcache >$cache_file
f6bcfd97 28653 else
4f14bcd8 28654 echo "not updating unwritable cache $cache_file"
f6bcfd97 28655 fi
4f14bcd8
GD
28656fi
28657rm -f confcache
f6bcfd97 28658
8284b0c5 28659
009fead0 28660CPP_MT_FLAG=
4f14bcd8
GD
28661if test "$TOOLKIT" != "MSW"; then
28662
e6cc62c6 28663
7274f1c7 28664 THREADS_LINK=
009fead0 28665 THREADS_CFLAGS=
7274f1c7
RL
28666
28667 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28668 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28669 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28670echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28671 wxUSE_THREADS="no"
28672 fi
4f14bcd8 28673 fi
4f14bcd8 28674
7274f1c7 28675 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28676
28677
009fead0
VZ
28678 THREAD_OPTS="-pthread"
28679 case "${host}" in
28680 *-*-solaris2* | *-*-sunos4* )
28681 if test "x$GCC" = "xyes"; then
126be6b4 28682 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28683 else
28684 THREAD_OPTS="-mt $THREAD_OPTS"
28685 fi
28686 ;;
28687 *-*-freebsd*)
28688 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28689 ;;
17234b26
MB
28690 *-*-darwin* | *-*-cygwin* )
28691 THREAD_OPTS=""
4101db81 28692 ;;
8f4a9a10 28693 *-*-aix*)
009fead0
VZ
28694 THREAD_OPTS="pthreads"
28695 ;;
4f5a7f74
VZ
28696 *-hp-hpux* )
28697 if test "x$GCC" != "xyes"; then
28698 THREAD_OPTS=""
28699 fi
89e3b3e4
VZ
28700 ;;
28701
28702 *-*-irix* )
28703 if test "x$GCC" = "xyes"; then
28704 THREAD_OPTS=""
28705 fi
28706 ;;
28707
28708 *-*-*UnixWare*)
28709 if test "x$GCC" != "xyes"; then
28710 THREAD_OPTS="-Ethread"
28711 fi
28712 ;;
009fead0 28713 esac
4f14bcd8 28714
02a1dfba 28715 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 28716
009fead0
VZ
28717 THREADS_OK=no
28718 for flag in $THREAD_OPTS; do
28719 case $flag in
28720 none)
e6cc62c6
VS
28721 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28722echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 28723 ;;
698dcdb6 28724
009fead0 28725 -*)
e6cc62c6
VS
28726 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28727echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
28728 THREADS_CFLAGS="$flag"
28729 ;;
698dcdb6 28730
009fead0 28731 *)
e6cc62c6
VS
28732 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28733echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
28734 THREADS_LINK="-l$flag"
28735 ;;
28736 esac
10f2d63a 28737
009fead0
VZ
28738 save_LIBS="$LIBS"
28739 save_CFLAGS="$CFLAGS"
28740 LIBS="$THREADS_LINK $LIBS"
04727afd 28741 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 28742
e6cc62c6
VS
28743 cat >conftest.$ac_ext <<_ACEOF
28744#line $LINENO "configure"
28745/* confdefs.h. */
28746_ACEOF
28747cat confdefs.h >>conftest.$ac_ext
28748cat >>conftest.$ac_ext <<_ACEOF
28749/* end confdefs.h. */
009fead0 28750#include <pthread.h>
e6cc62c6
VS
28751int
28752main ()
28753{
009fead0 28754pthread_create(0,0,0,0);
e6cc62c6
VS
28755 ;
28756 return 0;
28757}
28758_ACEOF
28759rm -f conftest.$ac_objext conftest$ac_exeext
28760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28761 (eval $ac_link) 2>&5
28762 ac_status=$?
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); } &&
28765 { ac_try='test -s conftest$ac_exeext'
28766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767 (eval $ac_try) 2>&5
28768 ac_status=$?
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); }; }; then
009fead0 28771 THREADS_OK=yes
10f2d63a 28772else
e6cc62c6
VS
28773 echo "$as_me: failed program was:" >&5
28774sed 's/^/| /' conftest.$ac_ext >&5
28775
6232543b 28776fi
e6cc62c6 28777rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 28778
009fead0
VZ
28779 LIBS="$save_LIBS"
28780 CFLAGS="$save_CFLAGS"
d9b9876f 28781
e6cc62c6
VS
28782 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28783echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
28784 if test "x$THREADS_OK" = "xyes"; then
28785 break;
28786 fi
d9b9876f 28787
009fead0
VZ
28788 THREADS_LINK=""
28789 THREADS_CFLAGS=""
28790 done
4f14bcd8 28791
009fead0
VZ
28792 if test "x$THREADS_OK" != "xyes"; then
28793 wxUSE_THREADS=no
e6cc62c6
VS
28794 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28795echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 28796 else
db82f09e
VZ
28797 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28798 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 28799
e6cc62c6
VS
28800 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28801echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
28802 flag=no
28803 case "${host}" in
2b5f62a0
VZ
28804 *-aix*)
28805 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28806 flag="-D_THREAD_SAFE"
28807 ;;
28808 *-freebsd*)
009fead0
VZ
28809 flag="-D_THREAD_SAFE"
28810 ;;
06313569
GD
28811 *-hp-hpux* )
28812 flag="-D_REENTRANT"
4f5a7f74
VZ
28813 if test "x$GCC" != "xyes"; then
28814 flag="$flag -D_RWSTD_MULTI_THREAD"
28815 fi
06313569 28816 ;;
009fead0
VZ
28817 *solaris* | alpha*-osf*)
28818 flag="-D_REENTRANT"
28819 ;;
28820 esac
e6cc62c6
VS
28821 echo "$as_me:$LINENO: result: ${flag}" >&5
28822echo "${ECHO_T}${flag}" >&6
009fead0 28823 if test "x$flag" != xno; then
04727afd 28824 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
28825 fi
28826
009fead0 28827 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 28828 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
28829 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28830 fi
28831 fi
4f14bcd8 28832 fi
4f14bcd8 28833
7274f1c7 28834 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28835
28836for ac_func in thr_setconcurrency
4f14bcd8 28837do
e6cc62c6
VS
28838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28839echo "$as_me:$LINENO: checking for $ac_func" >&5
28840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28841if eval "test \"\${$as_ac_var+set}\" = set"; then
28842 echo $ECHO_N "(cached) $ECHO_C" >&6
28843else
28844 cat >conftest.$ac_ext <<_ACEOF
28845#line $LINENO "configure"
28846/* confdefs.h. */
28847_ACEOF
28848cat confdefs.h >>conftest.$ac_ext
28849cat >>conftest.$ac_ext <<_ACEOF
28850/* end confdefs.h. */
4f14bcd8 28851/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28852 which can conflict with char $ac_func (); below.
28853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28854 <limits.h> exists even on freestanding compilers. */
28855#ifdef __STDC__
28856# include <limits.h>
28857#else
28858# include <assert.h>
28859#endif
4f14bcd8 28860/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28861#ifdef __cplusplus
28862extern "C"
28863{
28864#endif
4f14bcd8 28865/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28866 builtin and then its argument prototype would still apply. */
28867char $ac_func ();
4f14bcd8
GD
28868/* The GNU C library defines this for functions which it implements
28869 to always fail with ENOSYS. Some functions are actually named
28870 something starting with __ and the normal name is an alias. */
28871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28872choke me
28873#else
e6cc62c6
VS
28874char (*f) () = $ac_func;
28875#endif
28876#ifdef __cplusplus
28877}
4f14bcd8
GD
28878#endif
28879
e6cc62c6
VS
28880int
28881main ()
28882{
28883return f != $ac_func;
28884 ;
28885 return 0;
28886}
28887_ACEOF
28888rm -f conftest.$ac_objext conftest$ac_exeext
28889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28890 (eval $ac_link) 2>&5
28891 ac_status=$?
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); } &&
28894 { ac_try='test -s conftest$ac_exeext'
28895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28896 (eval $ac_try) 2>&5
28897 ac_status=$?
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; }; then
28900 eval "$as_ac_var=yes"
28901else
28902 echo "$as_me: failed program was:" >&5
28903sed 's/^/| /' conftest.$ac_ext >&5
28904
28905eval "$as_ac_var=no"
28906fi
28907rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28908fi
28909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28911if test `eval echo '${'$as_ac_var'}'` = yes; then
28912 cat >>confdefs.h <<_ACEOF
28913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28914_ACEOF
698dcdb6 28915
10f2d63a 28916fi
4f14bcd8 28917done
10f2d63a 28918
8284b0c5 28919
e6cc62c6
VS
28920
28921for ac_header in sched.h
4f14bcd8 28922do
e6cc62c6
VS
28923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28924if eval "test \"\${$as_ac_Header+set}\" = set"; then
28925 echo "$as_me:$LINENO: checking for $ac_header" >&5
28926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28927if eval "test \"\${$as_ac_Header+set}\" = set"; then
28928 echo $ECHO_N "(cached) $ECHO_C" >&6
28929fi
28930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28932else
28933 # Is the header compilable?
28934echo "$as_me:$LINENO: checking $ac_header usability" >&5
28935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28936cat >conftest.$ac_ext <<_ACEOF
28937#line $LINENO "configure"
28938/* confdefs.h. */
28939_ACEOF
28940cat confdefs.h >>conftest.$ac_ext
28941cat >>conftest.$ac_ext <<_ACEOF
28942/* end confdefs.h. */
28943$ac_includes_default
28944#include <$ac_header>
28945_ACEOF
28946rm -f conftest.$ac_objext
28947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28948 (eval $ac_compile) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); } &&
28952 { ac_try='test -s conftest.$ac_objext'
28953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954 (eval $ac_try) 2>&5
28955 ac_status=$?
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); }; }; then
28958 ac_header_compiler=yes
28959else
28960 echo "$as_me: failed program was:" >&5
28961sed 's/^/| /' conftest.$ac_ext >&5
28962
28963ac_header_compiler=no
28964fi
28965rm -f conftest.$ac_objext conftest.$ac_ext
28966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28967echo "${ECHO_T}$ac_header_compiler" >&6
28968
28969# Is the header present?
28970echo "$as_me:$LINENO: checking $ac_header presence" >&5
28971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28972cat >conftest.$ac_ext <<_ACEOF
28973#line $LINENO "configure"
28974/* confdefs.h. */
28975_ACEOF
28976cat confdefs.h >>conftest.$ac_ext
28977cat >>conftest.$ac_ext <<_ACEOF
28978/* end confdefs.h. */
28979#include <$ac_header>
28980_ACEOF
28981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28983 ac_status=$?
28984 grep -v '^ *+' conftest.er1 >conftest.err
28985 rm -f conftest.er1
28986 cat conftest.err >&5
28987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28988 (exit $ac_status); } >/dev/null; then
28989 if test -s conftest.err; then
28990 ac_cpp_err=$ac_c_preproc_warn_flag
28991 else
28992 ac_cpp_err=
28993 fi
28994else
28995 ac_cpp_err=yes
28996fi
28997if test -z "$ac_cpp_err"; then
28998 ac_header_preproc=yes
28999else
29000 echo "$as_me: failed program was:" >&5
29001sed 's/^/| /' conftest.$ac_ext >&5
29002
29003 ac_header_preproc=no
29004fi
29005rm -f conftest.err conftest.$ac_ext
29006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29007echo "${ECHO_T}$ac_header_preproc" >&6
29008
29009# So? What about this header?
29010case $ac_header_compiler:$ac_header_preproc in
29011 yes:no )
29012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29016 (
29017 cat <<\_ASBOX
29018## ------------------------------------ ##
29019## Report this to bug-autoconf@gnu.org. ##
29020## ------------------------------------ ##
29021_ASBOX
29022 ) |
29023 sed "s/^/$as_me: WARNING: /" >&2
29024 ;;
29025 no:yes )
29026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29032 (
29033 cat <<\_ASBOX
29034## ------------------------------------ ##
29035## Report this to bug-autoconf@gnu.org. ##
29036## ------------------------------------ ##
29037_ASBOX
29038 ) |
29039 sed "s/^/$as_me: WARNING: /" >&2
29040 ;;
29041esac
29042echo "$as_me:$LINENO: checking for $ac_header" >&5
29043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29044if eval "test \"\${$as_ac_Header+set}\" = set"; then
29045 echo $ECHO_N "(cached) $ECHO_C" >&6
29046else
29047 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29048fi
e6cc62c6
VS
29049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29051
10f2d63a 29052fi
e6cc62c6
VS
29053if test `eval echo '${'$as_ac_Header'}'` = yes; then
29054 cat >>confdefs.h <<_ACEOF
29055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29056_ACEOF
29057
f6bcfd97 29058fi
e6cc62c6 29059
4f14bcd8 29060done
f6bcfd97 29061
009fead0 29062 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29063 echo "$as_me:$LINENO: checking for sched_yield" >&5
29064echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29065if test "${ac_cv_func_sched_yield+set}" = set; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29067else
29068 cat >conftest.$ac_ext <<_ACEOF
29069#line $LINENO "configure"
29070/* confdefs.h. */
29071_ACEOF
29072cat confdefs.h >>conftest.$ac_ext
29073cat >>conftest.$ac_ext <<_ACEOF
29074/* end confdefs.h. */
009fead0 29075/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29076 which can conflict with char sched_yield (); below.
29077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29078 <limits.h> exists even on freestanding compilers. */
29079#ifdef __STDC__
29080# include <limits.h>
29081#else
29082# include <assert.h>
29083#endif
4f14bcd8 29084/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29085#ifdef __cplusplus
29086extern "C"
29087{
29088#endif
4f14bcd8 29089/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29090 builtin and then its argument prototype would still apply. */
29091char sched_yield ();
009fead0
VZ
29092/* The GNU C library defines this for functions which it implements
29093 to always fail with ENOSYS. Some functions are actually named
29094 something starting with __ and the normal name is an alias. */
29095#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29096choke me
29097#else
e6cc62c6
VS
29098char (*f) () = sched_yield;
29099#endif
29100#ifdef __cplusplus
29101}
009fead0
VZ
29102#endif
29103
e6cc62c6
VS
29104int
29105main ()
29106{
29107return f != sched_yield;
29108 ;
29109 return 0;
29110}
29111_ACEOF
29112rm -f conftest.$ac_objext conftest$ac_exeext
29113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29114 (eval $ac_link) 2>&5
29115 ac_status=$?
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); } &&
29118 { ac_try='test -s conftest$ac_exeext'
29119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29120 (eval $ac_try) 2>&5
29121 ac_status=$?
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); }; }; then
29124 ac_cv_func_sched_yield=yes
29125else
29126 echo "$as_me: failed program was:" >&5
29127sed 's/^/| /' conftest.$ac_ext >&5
29128
29129ac_cv_func_sched_yield=no
29130fi
29131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29132fi
29133echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29134echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29135if test $ac_cv_func_sched_yield = yes; then
29136 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29137#define HAVE_SCHED_YIELD 1
e6cc62c6 29138_ACEOF
10f2d63a 29139
4f14bcd8 29140else
009fead0 29141
e6cc62c6
VS
29142 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29143echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29144if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29146else
e6cc62c6 29147 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29148LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29149cat >conftest.$ac_ext <<_ACEOF
29150#line $LINENO "configure"
29151/* confdefs.h. */
29152_ACEOF
29153cat confdefs.h >>conftest.$ac_ext
29154cat >>conftest.$ac_ext <<_ACEOF
29155/* end confdefs.h. */
29156
4f14bcd8 29157/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29158#ifdef __cplusplus
29159extern "C"
29160#endif
4f14bcd8 29161/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29162 builtin and then its argument prototype would still apply. */
29163char sched_yield ();
29164int
29165main ()
29166{
29167sched_yield ();
29168 ;
29169 return 0;
29170}
29171_ACEOF
29172rm -f conftest.$ac_objext conftest$ac_exeext
29173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29174 (eval $ac_link) 2>&5
29175 ac_status=$?
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); } &&
29178 { ac_try='test -s conftest$ac_exeext'
29179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29180 (eval $ac_try) 2>&5
29181 ac_status=$?
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); }; }; then
29184 ac_cv_lib_posix4_sched_yield=yes
29185else
29186 echo "$as_me: failed program was:" >&5
29187sed 's/^/| /' conftest.$ac_ext >&5
29188
29189ac_cv_lib_posix4_sched_yield=no
29190fi
29191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29192LIBS=$ac_check_lib_save_LIBS
29193fi
29194echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29195echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29196if test $ac_cv_lib_posix4_sched_yield = yes; then
29197 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29198#define HAVE_SCHED_YIELD 1
e6cc62c6 29199_ACEOF
3d63bc3a 29200 POSIX4_LINK=" -lposix4"
4f14bcd8 29201else
e6cc62c6
VS
29202 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29203echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29204
54276ccf
VZ
29205fi
29206
e6cc62c6
VS
29207
29208
4f14bcd8 29209fi
698dcdb6 29210
009fead0 29211 fi
10f2d63a 29212
7274f1c7 29213 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29214 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29215echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29216if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29218else
29219 cat >conftest.$ac_ext <<_ACEOF
29220#line $LINENO "configure"
29221/* confdefs.h. */
29222_ACEOF
29223cat confdefs.h >>conftest.$ac_ext
29224cat >>conftest.$ac_ext <<_ACEOF
29225/* end confdefs.h. */
009fead0 29226/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29227 which can conflict with char pthread_attr_getschedpolicy (); below.
29228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29229 <limits.h> exists even on freestanding compilers. */
29230#ifdef __STDC__
29231# include <limits.h>
29232#else
29233# include <assert.h>
29234#endif
4f14bcd8 29235/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29236#ifdef __cplusplus
29237extern "C"
29238{
29239#endif
4f14bcd8 29240/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29241 builtin and then its argument prototype would still apply. */
29242char pthread_attr_getschedpolicy ();
009fead0
VZ
29243/* The GNU C library defines this for functions which it implements
29244 to always fail with ENOSYS. Some functions are actually named
29245 something starting with __ and the normal name is an alias. */
29246#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29247choke me
29248#else
e6cc62c6
VS
29249char (*f) () = pthread_attr_getschedpolicy;
29250#endif
29251#ifdef __cplusplus
29252}
009fead0
VZ
29253#endif
29254
e6cc62c6
VS
29255int
29256main ()
29257{
29258return f != pthread_attr_getschedpolicy;
29259 ;
29260 return 0;
29261}
29262_ACEOF
29263rm -f conftest.$ac_objext conftest$ac_exeext
29264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29265 (eval $ac_link) 2>&5
29266 ac_status=$?
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); } &&
29269 { ac_try='test -s conftest$ac_exeext'
29270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29272 ac_status=$?
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 ac_cv_func_pthread_attr_getschedpolicy=yes
29276else
29277 echo "$as_me: failed program was:" >&5
29278sed 's/^/| /' conftest.$ac_ext >&5
29279
29280ac_cv_func_pthread_attr_getschedpolicy=no
29281fi
29282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29283fi
29284echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29285echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29286if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29287 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29288echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29289if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29290 echo $ECHO_N "(cached) $ECHO_C" >&6
29291else
29292 cat >conftest.$ac_ext <<_ACEOF
29293#line $LINENO "configure"
29294/* confdefs.h. */
29295_ACEOF
29296cat confdefs.h >>conftest.$ac_ext
29297cat >>conftest.$ac_ext <<_ACEOF
29298/* end confdefs.h. */
a0b9e27f 29299/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29300 which can conflict with char pthread_attr_setschedparam (); below.
29301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29302 <limits.h> exists even on freestanding compilers. */
29303#ifdef __STDC__
29304# include <limits.h>
29305#else
29306# include <assert.h>
29307#endif
422107f9 29308/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29309#ifdef __cplusplus
29310extern "C"
29311{
29312#endif
422107f9 29313/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29314 builtin and then its argument prototype would still apply. */
29315char pthread_attr_setschedparam ();
009fead0
VZ
29316/* The GNU C library defines this for functions which it implements
29317 to always fail with ENOSYS. Some functions are actually named
29318 something starting with __ and the normal name is an alias. */
29319#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29320choke me
29321#else
e6cc62c6
VS
29322char (*f) () = pthread_attr_setschedparam;
29323#endif
29324#ifdef __cplusplus
29325}
009fead0
VZ
29326#endif
29327
e6cc62c6
VS
29328int
29329main ()
29330{
29331return f != pthread_attr_setschedparam;
29332 ;
29333 return 0;
29334}
29335_ACEOF
29336rm -f conftest.$ac_objext conftest$ac_exeext
29337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29338 (eval $ac_link) 2>&5
29339 ac_status=$?
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); } &&
29342 { ac_try='test -s conftest$ac_exeext'
29343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344 (eval $ac_try) 2>&5
29345 ac_status=$?
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
29348 ac_cv_func_pthread_attr_setschedparam=yes
29349else
29350 echo "$as_me: failed program was:" >&5
29351sed 's/^/| /' conftest.$ac_ext >&5
29352
29353ac_cv_func_pthread_attr_setschedparam=no
29354fi
29355rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29356fi
29357echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29358echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29359if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29360 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29361echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29362if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29363 echo $ECHO_N "(cached) $ECHO_C" >&6
29364else
29365 cat >conftest.$ac_ext <<_ACEOF
29366#line $LINENO "configure"
29367/* confdefs.h. */
29368_ACEOF
29369cat confdefs.h >>conftest.$ac_ext
29370cat >>conftest.$ac_ext <<_ACEOF
29371/* end confdefs.h. */
ef33c576 29372/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29373 which can conflict with char sched_get_priority_max (); below.
29374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29375 <limits.h> exists even on freestanding compilers. */
29376#ifdef __STDC__
29377# include <limits.h>
29378#else
29379# include <assert.h>
29380#endif
4f14bcd8 29381/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29382#ifdef __cplusplus
29383extern "C"
29384{
29385#endif
4f14bcd8 29386/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29387 builtin and then its argument prototype would still apply. */
29388char sched_get_priority_max ();
009fead0
VZ
29389/* The GNU C library defines this for functions which it implements
29390 to always fail with ENOSYS. Some functions are actually named
29391 something starting with __ and the normal name is an alias. */
29392#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29393choke me
29394#else
e6cc62c6
VS
29395char (*f) () = sched_get_priority_max;
29396#endif
29397#ifdef __cplusplus
29398}
009fead0
VZ
29399#endif
29400
e6cc62c6
VS
29401int
29402main ()
29403{
29404return f != sched_get_priority_max;
29405 ;
29406 return 0;
29407}
29408_ACEOF
29409rm -f conftest.$ac_objext conftest$ac_exeext
29410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29411 (eval $ac_link) 2>&5
29412 ac_status=$?
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); } &&
29415 { ac_try='test -s conftest$ac_exeext'
29416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417 (eval $ac_try) 2>&5
29418 ac_status=$?
29419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420 (exit $ac_status); }; }; then
29421 ac_cv_func_sched_get_priority_max=yes
29422else
29423 echo "$as_me: failed program was:" >&5
29424sed 's/^/| /' conftest.$ac_ext >&5
29425
29426ac_cv_func_sched_get_priority_max=no
29427fi
29428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29429fi
29430echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29431echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29432if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29433 HAVE_PRIOR_FUNCS=1
29434else
e6cc62c6
VS
29435 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29436echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29437if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29438 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29439else
e6cc62c6 29440 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29441LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29442cat >conftest.$ac_ext <<_ACEOF
29443#line $LINENO "configure"
29444/* confdefs.h. */
29445_ACEOF
29446cat confdefs.h >>conftest.$ac_ext
29447cat >>conftest.$ac_ext <<_ACEOF
29448/* end confdefs.h. */
29449
422107f9 29450/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29451#ifdef __cplusplus
29452extern "C"
29453#endif
422107f9 29454/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29455 builtin and then its argument prototype would still apply. */
29456char sched_get_priority_max ();
29457int
29458main ()
29459{
29460sched_get_priority_max ();
29461 ;
29462 return 0;
29463}
29464_ACEOF
29465rm -f conftest.$ac_objext conftest$ac_exeext
29466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29467 (eval $ac_link) 2>&5
29468 ac_status=$?
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); } &&
29471 { ac_try='test -s conftest$ac_exeext'
29472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29473 (eval $ac_try) 2>&5
29474 ac_status=$?
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); }; }; then
29477 ac_cv_lib_posix4_sched_get_priority_max=yes
29478else
29479 echo "$as_me: failed program was:" >&5
29480sed 's/^/| /' conftest.$ac_ext >&5
29481
29482ac_cv_lib_posix4_sched_get_priority_max=no
29483fi
29484rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29485LIBS=$ac_check_lib_save_LIBS
29486fi
29487echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29488echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29489if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29490
7274f1c7
RL
29491 HAVE_PRIOR_FUNCS=1
29492 POSIX4_LINK=" -lposix4"
e6cc62c6 29493
4f14bcd8 29494fi
463abc64 29495
e6cc62c6 29496
328a083c 29497fi
463abc64 29498
e6cc62c6 29499
7b4a847f 29500fi
579d8138 29501
e6cc62c6 29502
5c6fa7d2 29503fi
52127426 29504
8284b0c5 29505
7274f1c7 29506 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29507 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29508#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29509_ACEOF
463abc64 29510
7274f1c7 29511 else
e6cc62c6
VS
29512 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29513echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29514 fi
463abc64 29515
e6cc62c6
VS
29516 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29517echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29518if test "${ac_cv_func_pthread_cancel+set}" = set; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
29520else
29521 cat >conftest.$ac_ext <<_ACEOF
29522#line $LINENO "configure"
29523/* confdefs.h. */
29524_ACEOF
29525cat confdefs.h >>conftest.$ac_ext
29526cat >>conftest.$ac_ext <<_ACEOF
29527/* end confdefs.h. */
009fead0 29528/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29529 which can conflict with char pthread_cancel (); below.
29530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29531 <limits.h> exists even on freestanding compilers. */
29532#ifdef __STDC__
29533# include <limits.h>
29534#else
29535# include <assert.h>
29536#endif
422107f9 29537/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29538#ifdef __cplusplus
29539extern "C"
29540{
29541#endif
422107f9 29542/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29543 builtin and then its argument prototype would still apply. */
29544char pthread_cancel ();
009fead0
VZ
29545/* The GNU C library defines this for functions which it implements
29546 to always fail with ENOSYS. Some functions are actually named
29547 something starting with __ and the normal name is an alias. */
29548#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29549choke me
29550#else
e6cc62c6
VS
29551char (*f) () = pthread_cancel;
29552#endif
29553#ifdef __cplusplus
29554}
009fead0
VZ
29555#endif
29556
e6cc62c6
VS
29557int
29558main ()
29559{
29560return f != pthread_cancel;
29561 ;
29562 return 0;
29563}
29564_ACEOF
29565rm -f conftest.$ac_objext conftest$ac_exeext
29566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29567 (eval $ac_link) 2>&5
29568 ac_status=$?
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); } &&
29571 { ac_try='test -s conftest$ac_exeext'
29572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29573 (eval $ac_try) 2>&5
29574 ac_status=$?
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; }; then
29577 ac_cv_func_pthread_cancel=yes
29578else
29579 echo "$as_me: failed program was:" >&5
29580sed 's/^/| /' conftest.$ac_ext >&5
29581
29582ac_cv_func_pthread_cancel=no
29583fi
29584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29585fi
29586echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29587echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29588if test $ac_cv_func_pthread_cancel = yes; then
29589 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29590#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29591_ACEOF
4f14bcd8 29592
698dcdb6 29593else
e6cc62c6
VS
29594 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29595echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29596fi
29597
5c6fa7d2 29598
e6cc62c6
VS
29599 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29600echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29601if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29602 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29603else
e6cc62c6
VS
29604
29605 cat >conftest.$ac_ext <<_ACEOF
29606#line $LINENO "configure"
29607/* confdefs.h. */
29608_ACEOF
29609cat confdefs.h >>conftest.$ac_ext
29610cat >>conftest.$ac_ext <<_ACEOF
29611/* end confdefs.h. */
4f14bcd8 29612#include <pthread.h>
e6cc62c6
VS
29613int
29614main ()
29615{
4f14bcd8 29616
7274f1c7
RL
29617 pthread_cleanup_push(NULL, NULL);
29618 pthread_cleanup_pop(0);
e6cc62c6
VS
29619
29620 ;
29621 return 0;
29622}
29623_ACEOF
29624rm -f conftest.$ac_objext
29625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29626 (eval $ac_compile) 2>&5
29627 ac_status=$?
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); } &&
29630 { ac_try='test -s conftest.$ac_objext'
29631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29632 (eval $ac_try) 2>&5
29633 ac_status=$?
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; }; then
29636
7274f1c7 29637 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29638
4f14bcd8 29639else
e6cc62c6
VS
29640 echo "$as_me: failed program was:" >&5
29641sed 's/^/| /' conftest.$ac_ext >&5
29642
29643
7274f1c7 29644 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29645
247f5006 29646fi
e6cc62c6 29647rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29648
e6cc62c6
VS
29649fi
29650echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29651echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29652
7274f1c7 29653 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29654 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29655#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29656_ACEOF
c7a2bf27 29657
7274f1c7 29658 fi
4f14bcd8 29659
e6cc62c6
VS
29660
29661 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29662echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29663if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29664 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29665else
e6cc62c6
VS
29666
29667 cat >conftest.$ac_ext <<_ACEOF
29668#line $LINENO "configure"
29669/* confdefs.h. */
29670_ACEOF
29671cat confdefs.h >>conftest.$ac_ext
29672cat >>conftest.$ac_ext <<_ACEOF
29673/* end confdefs.h. */
4f14bcd8 29674#include <pthread.h>
e6cc62c6
VS
29675int
29676main ()
29677{
4f14bcd8 29678
7274f1c7
RL
29679 pthread_mutexattr_t attr;
29680 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29681
29682 ;
29683 return 0;
29684}
29685_ACEOF
29686rm -f conftest.$ac_objext
29687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29688 (eval $ac_compile) 2>&5
29689 ac_status=$?
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); } &&
29692 { ac_try='test -s conftest.$ac_objext'
29693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29694 (eval $ac_try) 2>&5
29695 ac_status=$?
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); }; }; then
29698
7274f1c7 29699 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29700
3fed1840 29701else
e6cc62c6
VS
29702 echo "$as_me: failed program was:" >&5
29703sed 's/^/| /' conftest.$ac_ext >&5
29704
29705
7274f1c7 29706 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29707
29708
247f5006 29709fi
e6cc62c6 29710rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29711
e6cc62c6
VS
29712fi
29713echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29714echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29715
7274f1c7 29716 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29717 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29718#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29719_ACEOF
4f14bcd8 29720
7274f1c7 29721 else
e6cc62c6
VS
29722 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29723echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29724if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29726else
29727
29728 cat >conftest.$ac_ext <<_ACEOF
29729#line $LINENO "configure"
29730/* confdefs.h. */
29731_ACEOF
29732cat confdefs.h >>conftest.$ac_ext
29733cat >>conftest.$ac_ext <<_ACEOF
29734/* end confdefs.h. */
4f14bcd8 29735#include <pthread.h>
e6cc62c6
VS
29736int
29737main ()
29738{
4f14bcd8 29739
7274f1c7 29740 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29741
29742 ;
29743 return 0;
29744}
29745_ACEOF
29746rm -f conftest.$ac_objext
29747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29748 (eval $ac_compile) 2>&5
29749 ac_status=$?
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); } &&
29752 { ac_try='test -s conftest.$ac_objext'
29753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29754 (eval $ac_try) 2>&5
29755 ac_status=$?
29756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757 (exit $ac_status); }; }; then
29758
7274f1c7 29759 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 29760
698dcdb6 29761else
e6cc62c6
VS
29762 echo "$as_me: failed program was:" >&5
29763sed 's/^/| /' conftest.$ac_ext >&5
29764
29765
7274f1c7 29766 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
29767
29768
247f5006 29769fi
e6cc62c6 29770rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29771
e6cc62c6
VS
29772fi
29773echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29774echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 29775 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 29776 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29777#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 29778_ACEOF
3fed1840 29779
7274f1c7 29780 else
e6cc62c6
VS
29781 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29782echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
29783 fi
29784 fi
7274f1c7 29785 fi
3fed1840 29786
a0b9e27f
MB
29787else
29788 if test "$wxUSE_THREADS" = "yes" ; then
29789 case "${host}" in
29790 *-*-mingw32* )
e6cc62c6
VS
29791 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29792echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29793if test "${wx_cv_cflags_mthread+set}" = set; then
29794 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 29795else
e6cc62c6 29796
ca8e52b3
VZ
29797 CFLAGS_OLD="$CFLAGS"
29798 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
29799 cat >conftest.$ac_ext <<_ACEOF
29800#line $LINENO "configure"
29801/* confdefs.h. */
29802_ACEOF
29803cat confdefs.h >>conftest.$ac_ext
29804cat >>conftest.$ac_ext <<_ACEOF
29805/* end confdefs.h. */
29806
29807int
29808main ()
29809{
ca8e52b3 29810
e6cc62c6
VS
29811 ;
29812 return 0;
29813}
29814_ACEOF
29815rm -f conftest.$ac_objext
29816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29817 (eval $ac_compile) 2>&5
29818 ac_status=$?
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } &&
29821 { ac_try='test -s conftest.$ac_objext'
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29824 ac_status=$?
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; }; then
ca8e52b3
VZ
29827 wx_cv_cflags_mthread=yes
29828else
e6cc62c6
VS
29829 echo "$as_me: failed program was:" >&5
29830sed 's/^/| /' conftest.$ac_ext >&5
29831
29832wx_cv_cflags_mthread=no
29833
ca8e52b3 29834fi
e6cc62c6
VS
29835rm -f conftest.$ac_objext conftest.$ac_ext
29836
ca8e52b3 29837
e6cc62c6
VS
29838fi
29839echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29840echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
29841
29842 if test "$wx_cv_cflags_mthread" = "yes"; then
29843 CXXFLAGS="$CXXFLAGS -mthreads"
29844 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29845 LDFLAGS="$LDFLAGS -mthreads"
29846 else
29847 CFLAGS="$CFLAGS_OLD"
29848 fi
a0b9e27f
MB
29849 ;;
29850 esac
29851 fi
4f14bcd8
GD
29852fi
29853
29854if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 29855 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29856#define wxUSE_THREADS 1
e6cc62c6 29857_ACEOF
7b6058cd 29858
8284b0c5 29859
4f14bcd8 29860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 29861else
4f14bcd8 29862 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
29863 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29864echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
29865 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29866 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
29867 echo "$as_me:$LINENO: result: yes" >&5
29868echo "${ECHO_T}yes" >&6
4f14bcd8 29869 else
e6cc62c6
VS
29870 echo "$as_me:$LINENO: result: no" >&5
29871echo "${ECHO_T}no" >&6
4f14bcd8
GD
29872 fi
29873 fi
29874fi
29875
29876if test "$WXGTK20" = 1 ; then
e6cc62c6 29877 cat >>confdefs.h <<_ACEOF
4f14bcd8 29878#define __WXGTK20__ $WXGTK20
e6cc62c6 29879_ACEOF
4f14bcd8
GD
29880
29881 WXGTK12=1
10f2d63a 29882fi
4f14bcd8
GD
29883
29884if test "$WXGTK12" = 1 ; then
e6cc62c6 29885 cat >>confdefs.h <<_ACEOF
4f14bcd8 29886#define __WXGTK12__ $WXGTK12
e6cc62c6 29887_ACEOF
4f14bcd8 29888
10f2d63a 29889fi
698dcdb6 29890
4f14bcd8 29891if test "$WXGTK127" = 1 ; then
e6cc62c6 29892 cat >>confdefs.h <<_ACEOF
4f14bcd8 29893#define __WXGTK127__ $WXGTK127
e6cc62c6 29894_ACEOF
4f14bcd8 29895
698dcdb6 29896fi
10f2d63a 29897
4f14bcd8
GD
29898WXDEBUG=
29899
29900if test "$wxUSE_DEBUG_INFO" = "yes" ; then
29901 WXDEBUG="-g"
29902 wxUSE_OPTIMISE=no
698dcdb6 29903fi
4f14bcd8
GD
29904
29905if test "$wxUSE_DEBUG_GDB" = "yes" ; then
29906 wxUSE_DEBUG_INFO=yes
29907 WXDEBUG="-ggdb"
10f2d63a
VZ
29908fi
29909
4f14bcd8 29910if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 29911 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29912#define WXDEBUG 1
e6cc62c6 29913_ACEOF
4f14bcd8
GD
29914
29915 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 29916else
4f14bcd8
GD
29917 if test "$wxUSE_GTK" = 1 ; then
29918 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
29919 fi
29920fi
29921
29922if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 29923 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29924#define wxUSE_MEMORY_TRACING 1
e6cc62c6 29925_ACEOF
4f14bcd8 29926
e6cc62c6 29927 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29928#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 29929_ACEOF
4f14bcd8 29930
e6cc62c6 29931 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29932#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 29933_ACEOF
4f14bcd8
GD
29934
29935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
29936fi
29937
29938if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 29939 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
29940fi
29941
29942PROFILE=
29943if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 29944 PROFILE=" -pg"
10f2d63a
VZ
29945fi
29946
009fead0
VZ
29947CODE_GEN_FLAGS=
29948CODE_GEN_FLAGS_CXX=
88e30f2b 29949if test "$GCC" = "yes" ; then
4f14bcd8
GD
29950 if test "$wxUSE_NO_RTTI" = "yes" ; then
29951 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 29952 fi
4f14bcd8
GD
29953 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
29954 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
29955 fi
29956 if test "$wxUSE_PERMISSIVE" = "yes" ; then
29957 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
29958 fi
1d1b75ac 29959
2b5f62a0 29960 case "${host}" in
1d1b75ac
VZ
29961 powerpc*-*-aix* )
29962 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
29963 ;;
2b5f62a0
VZ
29964 *-hppa* )
29965 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
29966 ;;
1d1b75ac 29967 esac
4f14bcd8
GD
29968fi
29969
af7b5345 29970OPTIMISE=
4f14bcd8 29971if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
29972 if test "$GCC" = yes ; then
29973 OPTIMISE="-O0"
29974 fi
4f14bcd8
GD
29975else
29976 if test "$GCC" = yes ; then
29977 OPTIMISE="-O2"
af7b5345
VZ
29978
29979 case "${host}" in
4f14bcd8
GD
29980 i586-*-*|i686-*-* )
29981 OPTIMISE="${OPTIMISE} "
29982 ;;
29983 esac
29984 else
29985 OPTIMISE="-O"
29986 fi
29987fi
29988
8d90d2f2 29989
4f14bcd8 29990if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
e6cc62c6 29991 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29992#define WXWIN_COMPATIBILITY_2 1
e6cc62c6 29993_ACEOF
4f14bcd8 29994
8284b0c5 29995
4f14bcd8
GD
29996 WXWIN_COMPATIBILITY_2_2="yes"
29997fi
29998
65d8ef1e 29999if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30000 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30001#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30002_ACEOF
4f14bcd8 30003
8d90d2f2
VZ
30004
30005 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30006fi
30007
65d8ef1e 30008if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30009 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30010#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30011_ACEOF
65d8ef1e
VS
30012
30013fi
30014
8284b0c5 30015
10f2d63a 30016if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30017 cat >>confdefs.h <<\_ACEOF
10f2d63a 30018#define wxUSE_GUI 1
e6cc62c6 30019_ACEOF
10f2d63a 30020
8284b0c5 30021
10f2d63a 30022 else
e6cc62c6 30023 cat >>confdefs.h <<\_ACEOF
10f2d63a 30024#define wxUSE_NOGUI 1
e6cc62c6 30025_ACEOF
10f2d63a
VZ
30026
30027fi
30028
8284b0c5 30029
10f2d63a 30030if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30031 cat >>confdefs.h <<\_ACEOF
10f2d63a 30032#define wxUSE_UNIX 1
e6cc62c6 30033_ACEOF
10f2d63a
VZ
30034
30035fi
30036
8284b0c5 30037
df5168c4
MB
30038if test "$wxUSE_STL" = "yes"; then
30039 cat >>confdefs.h <<\_ACEOF
30040#define wxUSE_STL 1
30041_ACEOF
30042
30043fi
30044
10f2d63a 30045if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30046 cat >>confdefs.h <<\_ACEOF
10f2d63a 30047#define wxUSE_APPLE_IEEE 1
e6cc62c6 30048_ACEOF
10f2d63a
VZ
30049
30050fi
30051
1e6feb95 30052if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30053 cat >>confdefs.h <<\_ACEOF
1e6feb95 30054#define wxUSE_TIMER 1
e6cc62c6 30055_ACEOF
1e6feb95
VZ
30056
30057fi
30058
10f2d63a 30059if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30060 cat >>confdefs.h <<\_ACEOF
10f2d63a 30061#define wxUSE_WAVE 1
e6cc62c6 30062_ACEOF
10f2d63a
VZ
30063
30064fi
30065
1e6feb95 30066if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30067 cat >>confdefs.h <<\_ACEOF
1e6feb95 30068#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30069_ACEOF
1e6feb95
VZ
30070
30071fi
30072
30073if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30074 cat >>confdefs.h <<\_ACEOF
1e6feb95 30075#define wxUSE_STOPWATCH 1
e6cc62c6 30076_ACEOF
1e6feb95
VZ
30077
30078fi
30079
30080if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30081 cat >>confdefs.h <<\_ACEOF
1e6feb95 30082#define wxUSE_DATETIME 1
e6cc62c6 30083_ACEOF
1e6feb95
VZ
30084
30085fi
30086
10f2d63a 30087if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30088 cat >>confdefs.h <<\_ACEOF
10f2d63a 30089#define wxUSE_FILE 1
e6cc62c6 30090_ACEOF
10f2d63a
VZ
30091
30092fi
30093
1e6feb95 30094if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30095 cat >>confdefs.h <<\_ACEOF
1e6feb95 30096#define wxUSE_FFILE 1
e6cc62c6 30097_ACEOF
1e6feb95
VZ
30098
30099fi
30100
24528b0c 30101if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30102 cat >>confdefs.h <<\_ACEOF
24528b0c 30103#define wxUSE_FILESYSTEM 1
e6cc62c6 30104_ACEOF
24528b0c
VS
30105
30106fi
30107
10f2d63a 30108if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30109 cat >>confdefs.h <<\_ACEOF
10f2d63a 30110#define wxUSE_FS_ZIP 1
e6cc62c6 30111_ACEOF
10f2d63a
VZ
30112
30113fi
30114
30115if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30116 cat >>confdefs.h <<\_ACEOF
10f2d63a 30117#define wxUSE_ZIPSTREAM 1
e6cc62c6 30118_ACEOF
10f2d63a
VZ
30119
30120fi
30121
eb4efbdc 30122if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30123 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30124#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30125_ACEOF
eb4efbdc
VZ
30126
30127fi
30128
4f3c5f06 30129if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30130 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30131#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30132_ACEOF
4f3c5f06
VZ
30133
30134fi
30135
10f2d63a 30136if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30137 cat >>confdefs.h <<\_ACEOF
10f2d63a 30138#define wxUSE_BUSYINFO 1
e6cc62c6 30139_ACEOF
10f2d63a
VZ
30140
30141fi
30142
30143if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30144 cat >>confdefs.h <<\_ACEOF
10f2d63a 30145#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30146_ACEOF
10f2d63a
VZ
30147
30148fi
30149
a3a584a7 30150if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30151 cat >>confdefs.h <<\_ACEOF
a3a584a7 30152#define wxUSE_TEXTBUFFER 1
e6cc62c6 30153_ACEOF
a3a584a7
VZ
30154
30155fi
30156
10f2d63a 30157if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30158 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30159 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30160echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30161 else
e6cc62c6 30162 cat >>confdefs.h <<\_ACEOF
10f2d63a 30163#define wxUSE_TEXTFILE 1
e6cc62c6 30164_ACEOF
10f2d63a
VZ
30165
30166 fi
30167fi
30168
30169if test "$wxUSE_CONFIG" = "yes" ; then
30170 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30171 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30172echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30173 else
e6cc62c6 30174 cat >>confdefs.h <<\_ACEOF
10f2d63a 30175#define wxUSE_CONFIG 1
e6cc62c6 30176_ACEOF
10f2d63a
VZ
30177
30178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30179 fi
30180fi
30181
30182if test "$wxUSE_INTL" = "yes" ; then
30183 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30184 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30185echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30186 else
e6cc62c6 30187 cat >>confdefs.h <<\_ACEOF
10f2d63a 30188#define wxUSE_INTL 1
e6cc62c6 30189_ACEOF
10f2d63a
VZ
30190
30191 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30192 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30193 fi
30194fi
30195
30196if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30197 cat >>confdefs.h <<\_ACEOF
10f2d63a 30198#define wxUSE_LOG 1
e6cc62c6 30199_ACEOF
10f2d63a 30200
8284b0c5 30201
d73be714 30202 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30203 cat >>confdefs.h <<\_ACEOF
d73be714 30204#define wxUSE_LOGGUI 1
e6cc62c6 30205_ACEOF
d73be714
VZ
30206
30207 fi
30208
30209 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30210 cat >>confdefs.h <<\_ACEOF
d73be714 30211#define wxUSE_LOGWINDOW 1
e6cc62c6 30212_ACEOF
69d27ff7
MB
30213
30214 fi
30215
30216 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30217 cat >>confdefs.h <<\_ACEOF
69d27ff7 30218#define wxUSE_LOG_DIALOG 1
e6cc62c6 30219_ACEOF
d73be714
VZ
30220
30221 fi
10f2d63a
VZ
30222fi
30223
30224if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30225 cat >>confdefs.h <<\_ACEOF
10f2d63a 30226#define wxUSE_LONGLONG 1
e6cc62c6 30227_ACEOF
10f2d63a
VZ
30228
30229fi
30230
e8f65ba6 30231if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30232 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30233#define wxUSE_GEOMETRY 1
e6cc62c6 30234_ACEOF
e8f65ba6
RR
30235
30236fi
30237
10f2d63a 30238if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30239 cat >>confdefs.h <<\_ACEOF
10f2d63a 30240#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30241_ACEOF
10f2d63a 30242
70f7a477 30243 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30244fi
30245
30246if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30247 cat >>confdefs.h <<\_ACEOF
10f2d63a 30248#define wxUSE_STREAMS 1
e6cc62c6 30249_ACEOF
10f2d63a
VZ
30250
30251fi
30252
5c6fa7d2 30253
8284b0c5 30254if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30255
30256for ac_func in strptime
83307f33 30257do
e6cc62c6
VS
30258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30259echo "$as_me:$LINENO: checking for $ac_func" >&5
30260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30261if eval "test \"\${$as_ac_var+set}\" = set"; then
30262 echo $ECHO_N "(cached) $ECHO_C" >&6
30263else
30264 cat >conftest.$ac_ext <<_ACEOF
30265#line $LINENO "configure"
30266/* confdefs.h. */
30267_ACEOF
30268cat confdefs.h >>conftest.$ac_ext
30269cat >>conftest.$ac_ext <<_ACEOF
30270/* end confdefs.h. */
83307f33 30271/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30272 which can conflict with char $ac_func (); below.
30273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30274 <limits.h> exists even on freestanding compilers. */
30275#ifdef __STDC__
30276# include <limits.h>
30277#else
30278# include <assert.h>
30279#endif
83307f33 30280/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30281#ifdef __cplusplus
30282extern "C"
30283{
30284#endif
83307f33 30285/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30286 builtin and then its argument prototype would still apply. */
30287char $ac_func ();
83307f33
VZ
30288/* The GNU C library defines this for functions which it implements
30289 to always fail with ENOSYS. Some functions are actually named
30290 something starting with __ and the normal name is an alias. */
30291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30292choke me
30293#else
e6cc62c6
VS
30294char (*f) () = $ac_func;
30295#endif
30296#ifdef __cplusplus
30297}
83307f33
VZ
30298#endif
30299
e6cc62c6
VS
30300int
30301main ()
30302{
30303return f != $ac_func;
30304 ;
30305 return 0;
30306}
30307_ACEOF
30308rm -f conftest.$ac_objext conftest$ac_exeext
30309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30310 (eval $ac_link) 2>&5
30311 ac_status=$?
30312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313 (exit $ac_status); } &&
30314 { ac_try='test -s conftest$ac_exeext'
30315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30316 (eval $ac_try) 2>&5
30317 ac_status=$?
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); }; }; then
30320 eval "$as_ac_var=yes"
30321else
30322 echo "$as_me: failed program was:" >&5
30323sed 's/^/| /' conftest.$ac_ext >&5
30324
30325eval "$as_ac_var=no"
30326fi
30327rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30328fi
30329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30331if test `eval echo '${'$as_ac_var'}'` = yes; then
30332 cat >>confdefs.h <<_ACEOF
30333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30334_ACEOF
83307f33 30335
83307f33
VZ
30336fi
30337done
30338
5c6fa7d2 30339
e6cc62c6
VS
30340 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30341echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30342if test "${wx_cv_var_timezone+set}" = set; then
30343 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30344else
e6cc62c6
VS
30345
30346 cat >conftest.$ac_ext <<_ACEOF
30347#line $LINENO "configure"
30348/* confdefs.h. */
30349_ACEOF
30350cat confdefs.h >>conftest.$ac_ext
30351cat >>conftest.$ac_ext <<_ACEOF
30352/* end confdefs.h. */
360d6699 30353
b4085ce6 30354 #include <time.h>
e6cc62c6
VS
30355
30356int
30357main ()
30358{
360d6699
VZ
30359
30360 int tz;
4f11a343 30361 tz = timezone;
e6cc62c6
VS
30362
30363 ;
30364 return 0;
30365}
30366_ACEOF
30367rm -f conftest.$ac_objext
30368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30369 (eval $ac_compile) 2>&5
30370 ac_status=$?
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); } &&
30373 { ac_try='test -s conftest.$ac_objext'
30374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30375 (eval $ac_try) 2>&5
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; }; then
30379
4f11a343 30380 wx_cv_var_timezone=timezone
e6cc62c6 30381
360d6699 30382else
e6cc62c6
VS
30383 echo "$as_me: failed program was:" >&5
30384sed 's/^/| /' conftest.$ac_ext >&5
30385
30386
30387 cat >conftest.$ac_ext <<_ACEOF
30388#line $LINENO "configure"
30389/* confdefs.h. */
30390_ACEOF
30391cat confdefs.h >>conftest.$ac_ext
30392cat >>conftest.$ac_ext <<_ACEOF
30393/* end confdefs.h. */
360d6699 30394
b4085ce6 30395 #include <time.h>
e6cc62c6
VS
30396
30397int
30398main ()
30399{
360d6699
VZ
30400
30401 int tz;
30402 tz = _timezone;
e6cc62c6
VS
30403
30404 ;
30405 return 0;
30406}
30407_ACEOF
30408rm -f conftest.$ac_objext
30409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30410 (eval $ac_compile) 2>&5
30411 ac_status=$?
30412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30413 (exit $ac_status); } &&
30414 { ac_try='test -s conftest.$ac_objext'
30415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30416 (eval $ac_try) 2>&5
30417 ac_status=$?
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); }; }; then
30420
360d6699 30421 wx_cv_var_timezone=_timezone
e6cc62c6 30422
5357c8e8 30423else
e6cc62c6
VS
30424 echo "$as_me: failed program was:" >&5
30425sed 's/^/| /' conftest.$ac_ext >&5
30426
30427
30428 cat >conftest.$ac_ext <<_ACEOF
30429#line $LINENO "configure"
30430/* confdefs.h. */
30431_ACEOF
30432cat confdefs.h >>conftest.$ac_ext
30433cat >>conftest.$ac_ext <<_ACEOF
30434/* end confdefs.h. */
5357c8e8 30435
b4085ce6 30436 #include <time.h>
e6cc62c6
VS
30437
30438int
30439main ()
30440{
5357c8e8
VZ
30441
30442 int tz;
4f11a343 30443 tz = __timezone;
e6cc62c6
VS
30444
30445 ;
30446 return 0;
30447}
30448_ACEOF
30449rm -f conftest.$ac_objext
30450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30451 (eval $ac_compile) 2>&5
30452 ac_status=$?
30453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454 (exit $ac_status); } &&
30455 { ac_try='test -s conftest.$ac_objext'
30456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30457 (eval $ac_try) 2>&5
30458 ac_status=$?
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; }; then
30461
4f11a343 30462 wx_cv_var_timezone=__timezone
e6cc62c6 30463
360d6699 30464else
e6cc62c6
VS
30465 echo "$as_me: failed program was:" >&5
30466sed 's/^/| /' conftest.$ac_ext >&5
30467
30468
f9bc1684 30469 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30470 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30471echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30472 fi
e6cc62c6
VS
30473
30474
7b4a847f 30475fi
e6cc62c6
VS
30476rm -f conftest.$ac_objext conftest.$ac_ext
30477
30478
5c6fa7d2 30479fi
e6cc62c6
VS
30480rm -f conftest.$ac_objext conftest.$ac_ext
30481
30482
247f5006 30483fi
e6cc62c6 30484rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30485
e6cc62c6
VS
30486
30487fi
30488echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30489echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30490
f9bc1684 30491 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30492 cat >>confdefs.h <<_ACEOF
360d6699 30493#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30494_ACEOF
360d6699 30495
f9bc1684 30496 fi
698dcdb6 30497
e6cc62c6
VS
30498
30499for ac_func in localtime
afc31813 30500do
e6cc62c6
VS
30501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30502echo "$as_me:$LINENO: checking for $ac_func" >&5
30503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30504if eval "test \"\${$as_ac_var+set}\" = set"; then
30505 echo $ECHO_N "(cached) $ECHO_C" >&6
30506else
30507 cat >conftest.$ac_ext <<_ACEOF
30508#line $LINENO "configure"
30509/* confdefs.h. */
30510_ACEOF
30511cat confdefs.h >>conftest.$ac_ext
30512cat >>conftest.$ac_ext <<_ACEOF
30513/* end confdefs.h. */
afc31813 30514/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30515 which can conflict with char $ac_func (); below.
30516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30517 <limits.h> exists even on freestanding compilers. */
30518#ifdef __STDC__
30519# include <limits.h>
30520#else
30521# include <assert.h>
30522#endif
afc31813 30523/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30524#ifdef __cplusplus
30525extern "C"
30526{
30527#endif
afc31813 30528/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30529 builtin and then its argument prototype would still apply. */
30530char $ac_func ();
afc31813
VZ
30531/* The GNU C library defines this for functions which it implements
30532 to always fail with ENOSYS. Some functions are actually named
30533 something starting with __ and the normal name is an alias. */
30534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30535choke me
30536#else
e6cc62c6
VS
30537char (*f) () = $ac_func;
30538#endif
30539#ifdef __cplusplus
30540}
afc31813
VZ
30541#endif
30542
e6cc62c6
VS
30543int
30544main ()
30545{
30546return f != $ac_func;
30547 ;
30548 return 0;
30549}
30550_ACEOF
30551rm -f conftest.$ac_objext conftest$ac_exeext
30552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30553 (eval $ac_link) 2>&5
30554 ac_status=$?
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); } &&
30557 { ac_try='test -s conftest$ac_exeext'
30558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30559 (eval $ac_try) 2>&5
30560 ac_status=$?
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); }; }; then
30563 eval "$as_ac_var=yes"
30564else
30565 echo "$as_me: failed program was:" >&5
30566sed 's/^/| /' conftest.$ac_ext >&5
30567
30568eval "$as_ac_var=no"
30569fi
30570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30571fi
30572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30574if test `eval echo '${'$as_ac_var'}'` = yes; then
30575 cat >>confdefs.h <<_ACEOF
30576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30577_ACEOF
afc31813 30578
afc31813
VZ
30579fi
30580done
30581
5c6fa7d2 30582
8284b0c5 30583 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30584 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30585echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30586if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30587 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30588else
e6cc62c6
VS
30589
30590 cat >conftest.$ac_ext <<_ACEOF
30591#line $LINENO "configure"
30592/* confdefs.h. */
30593_ACEOF
30594cat confdefs.h >>conftest.$ac_ext
30595cat >>conftest.$ac_ext <<_ACEOF
30596/* end confdefs.h. */
0470b1e6 30597
b4085ce6 30598 #include <time.h>
e6cc62c6
VS
30599
30600int
30601main ()
30602{
0470b1e6
VZ
30603
30604 struct tm tm;
30605 tm.tm_gmtoff++;
e6cc62c6
VS
30606
30607 ;
30608 return 0;
30609}
30610_ACEOF
30611rm -f conftest.$ac_objext
30612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30613 (eval $ac_compile) 2>&5
30614 ac_status=$?
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); } &&
30617 { ac_try='test -s conftest.$ac_objext'
30618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30619 (eval $ac_try) 2>&5
30620 ac_status=$?
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); }; }; then
30623
f03a98d8 30624 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30625
0470b1e6 30626else
e6cc62c6
VS
30627 echo "$as_me: failed program was:" >&5
30628sed 's/^/| /' conftest.$ac_ext >&5
30629
30630wx_cv_struct_tm_has_gmtoff=no
30631
247f5006 30632fi
e6cc62c6 30633rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30634
e6cc62c6
VS
30635fi
30636echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30637echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30638 fi
30639
30640 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30641 cat >>confdefs.h <<\_ACEOF
6232543b 30642#define WX_GMTOFF_IN_TM 1
e6cc62c6 30643_ACEOF
0470b1e6 30644
3fcdd07b
VZ
30645 fi
30646
e6cc62c6
VS
30647
30648
30649for ac_func in gettimeofday ftime
3fcdd07b 30650do
e6cc62c6
VS
30651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30652echo "$as_me:$LINENO: checking for $ac_func" >&5
30653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30654if eval "test \"\${$as_ac_var+set}\" = set"; then
30655 echo $ECHO_N "(cached) $ECHO_C" >&6
30656else
30657 cat >conftest.$ac_ext <<_ACEOF
30658#line $LINENO "configure"
30659/* confdefs.h. */
30660_ACEOF
30661cat confdefs.h >>conftest.$ac_ext
30662cat >>conftest.$ac_ext <<_ACEOF
30663/* end confdefs.h. */
3fcdd07b 30664/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30665 which can conflict with char $ac_func (); below.
30666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30667 <limits.h> exists even on freestanding compilers. */
30668#ifdef __STDC__
30669# include <limits.h>
30670#else
30671# include <assert.h>
30672#endif
3fcdd07b 30673/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30674#ifdef __cplusplus
30675extern "C"
30676{
30677#endif
3fcdd07b 30678/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30679 builtin and then its argument prototype would still apply. */
30680char $ac_func ();
3fcdd07b
VZ
30681/* The GNU C library defines this for functions which it implements
30682 to always fail with ENOSYS. Some functions are actually named
30683 something starting with __ and the normal name is an alias. */
30684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30685choke me
30686#else
e6cc62c6
VS
30687char (*f) () = $ac_func;
30688#endif
30689#ifdef __cplusplus
30690}
3fcdd07b
VZ
30691#endif
30692
e6cc62c6
VS
30693int
30694main ()
30695{
30696return f != $ac_func;
30697 ;
30698 return 0;
30699}
30700_ACEOF
30701rm -f conftest.$ac_objext conftest$ac_exeext
30702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30703 (eval $ac_link) 2>&5
30704 ac_status=$?
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); } &&
30707 { ac_try='test -s conftest$ac_exeext'
30708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30709 (eval $ac_try) 2>&5
30710 ac_status=$?
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); }; }; then
30713 eval "$as_ac_var=yes"
30714else
30715 echo "$as_me: failed program was:" >&5
30716sed 's/^/| /' conftest.$ac_ext >&5
30717
30718eval "$as_ac_var=no"
30719fi
30720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30721fi
30722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30724if test `eval echo '${'$as_ac_var'}'` = yes; then
30725 cat >>confdefs.h <<_ACEOF
30726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30727_ACEOF
3fcdd07b 30728 break
3fcdd07b
VZ
30729fi
30730done
30731
698dcdb6 30732
8284b0c5 30733 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30734 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30735echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30736if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30737 echo $ECHO_N "(cached) $ECHO_C" >&6
30738else
30739
30740
30741
30742 ac_ext=cc
5c6fa7d2 30743ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 30747
8284b0c5 30748
e6cc62c6
VS
30749 cat >conftest.$ac_ext <<_ACEOF
30750#line $LINENO "configure"
30751/* confdefs.h. */
30752_ACEOF
30753cat confdefs.h >>conftest.$ac_ext
30754cat >>conftest.$ac_ext <<_ACEOF
30755/* end confdefs.h. */
afc31813
VZ
30756
30757 #include <sys/time.h>
30758 #include <unistd.h>
e6cc62c6
VS
30759
30760int
30761main ()
30762{
afc31813
VZ
30763
30764 struct timeval tv;
776862b4 30765 gettimeofday(&tv, NULL);
e6cc62c6
VS
30766
30767 ;
30768 return 0;
30769}
30770_ACEOF
30771rm -f conftest.$ac_objext
30772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30773 (eval $ac_compile) 2>&5
30774 ac_status=$?
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); } &&
30777 { ac_try='test -s conftest.$ac_objext'
30778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30779 (eval $ac_try) 2>&5
30780 ac_status=$?
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); }; }; then
afc31813 30783 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 30784else
e6cc62c6
VS
30785 echo "$as_me: failed program was:" >&5
30786sed 's/^/| /' conftest.$ac_ext >&5
30787
30788cat >conftest.$ac_ext <<_ACEOF
30789#line $LINENO "configure"
30790/* confdefs.h. */
30791_ACEOF
30792cat confdefs.h >>conftest.$ac_ext
30793cat >>conftest.$ac_ext <<_ACEOF
30794/* end confdefs.h. */
afc31813
VZ
30795
30796 #include <sys/time.h>
30797 #include <unistd.h>
e6cc62c6
VS
30798
30799int
30800main ()
30801{
afc31813
VZ
30802
30803 struct timeval tv;
30804 gettimeofday(&tv);
e6cc62c6
VS
30805
30806 ;
30807 return 0;
30808}
30809_ACEOF
30810rm -f conftest.$ac_objext
30811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30812 (eval $ac_compile) 2>&5
30813 ac_status=$?
30814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); } &&
30816 { ac_try='test -s conftest.$ac_objext'
30817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30818 (eval $ac_try) 2>&5
30819 ac_status=$?
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); }; }; then
afc31813 30822 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 30823else
e6cc62c6
VS
30824 echo "$as_me: failed program was:" >&5
30825sed 's/^/| /' conftest.$ac_ext >&5
30826
30827
30828 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30829echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 30830 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
30831
30832
10f2d63a 30833fi
e6cc62c6
VS
30834rm -f conftest.$ac_objext conftest.$ac_ext
30835
10f2d63a 30836fi
e6cc62c6 30837rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 30838 ac_ext=c
10f2d63a 30839ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30842ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 30843
a0b9e27f 30844
e6cc62c6
VS
30845fi
30846echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30847echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 30848
afc31813 30849 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 30850 cat >>confdefs.h <<\_ACEOF
afc31813 30851#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 30852_ACEOF
afc31813
VZ
30853
30854 fi
30855 fi
30856
afc31813
VZ
30857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30858fi
30859
8284b0c5 30860
52127426 30861if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 30862 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
30863 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30864echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
30865 wxUSE_SOCKETS="no"
30866 fi
3879ecda
VZ
30867 if test "$wxUSE_COCOA" = "1"; then
30868 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
30869echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
30870 wxUSE_SOCKETS="no"
30871 fi
0feee163 30872fi
b089607b 30873
0feee163
VZ
30874if test "$wxUSE_SOCKETS" = "yes"; then
30875 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30876 echo "$as_me:$LINENO: checking for socket" >&5
30877echo $ECHO_N "checking for socket... $ECHO_C" >&6
30878if test "${ac_cv_func_socket+set}" = set; then
30879 echo $ECHO_N "(cached) $ECHO_C" >&6
30880else
30881 cat >conftest.$ac_ext <<_ACEOF
30882#line $LINENO "configure"
30883/* confdefs.h. */
30884_ACEOF
30885cat confdefs.h >>conftest.$ac_ext
30886cat >>conftest.$ac_ext <<_ACEOF
30887/* end confdefs.h. */
c63c7106 30888/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30889 which can conflict with char socket (); below.
30890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30891 <limits.h> exists even on freestanding compilers. */
30892#ifdef __STDC__
30893# include <limits.h>
30894#else
30895# include <assert.h>
30896#endif
c63c7106 30897/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30898#ifdef __cplusplus
30899extern "C"
30900{
30901#endif
c63c7106 30902/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30903 builtin and then its argument prototype would still apply. */
30904char socket ();
c63c7106
VZ
30905/* The GNU C library defines this for functions which it implements
30906 to always fail with ENOSYS. Some functions are actually named
30907 something starting with __ and the normal name is an alias. */
30908#if defined (__stub_socket) || defined (__stub___socket)
30909choke me
30910#else
e6cc62c6
VS
30911char (*f) () = socket;
30912#endif
30913#ifdef __cplusplus
30914}
c63c7106
VZ
30915#endif
30916
e6cc62c6
VS
30917int
30918main ()
30919{
30920return f != socket;
30921 ;
30922 return 0;
30923}
30924_ACEOF
30925rm -f conftest.$ac_objext conftest$ac_exeext
30926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30927 (eval $ac_link) 2>&5
30928 ac_status=$?
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); } &&
30931 { ac_try='test -s conftest$ac_exeext'
30932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30933 (eval $ac_try) 2>&5
30934 ac_status=$?
30935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936 (exit $ac_status); }; }; then
30937 ac_cv_func_socket=yes
30938else
30939 echo "$as_me: failed program was:" >&5
30940sed 's/^/| /' conftest.$ac_ext >&5
30941
30942ac_cv_func_socket=no
30943fi
30944rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30945fi
30946echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
30947echo "${ECHO_T}$ac_cv_func_socket" >&6
30948if test $ac_cv_func_socket = yes; then
c63c7106
VZ
30949 :
30950else
e6cc62c6
VS
30951 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
30952echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
30953if test "${ac_cv_lib_socket_socket+set}" = set; then
30954 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 30955else
e6cc62c6 30956 ac_check_lib_save_LIBS=$LIBS
c63c7106 30957LIBS="-lsocket $LIBS"
e6cc62c6
VS
30958cat >conftest.$ac_ext <<_ACEOF
30959#line $LINENO "configure"
30960/* confdefs.h. */
30961_ACEOF
30962cat confdefs.h >>conftest.$ac_ext
30963cat >>conftest.$ac_ext <<_ACEOF
30964/* end confdefs.h. */
30965
c63c7106 30966/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30967#ifdef __cplusplus
30968extern "C"
30969#endif
c63c7106 30970/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30971 builtin and then its argument prototype would still apply. */
30972char socket ();
30973int
30974main ()
30975{
30976socket ();
30977 ;
30978 return 0;
30979}
30980_ACEOF
30981rm -f conftest.$ac_objext conftest$ac_exeext
30982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30983 (eval $ac_link) 2>&5
30984 ac_status=$?
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); } &&
30987 { ac_try='test -s conftest$ac_exeext'
30988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30989 (eval $ac_try) 2>&5
30990 ac_status=$?
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; }; then
30993 ac_cv_lib_socket_socket=yes
30994else
30995 echo "$as_me: failed program was:" >&5
30996sed 's/^/| /' conftest.$ac_ext >&5
30997
30998ac_cv_lib_socket_socket=no
30999fi
31000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31001LIBS=$ac_check_lib_save_LIBS
31002fi
31003echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31004echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31005if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
31006 if test "$INET_LINK" != " -lsocket"; then
31007 INET_LINK="$INET_LINK -lsocket"
31008 fi
c63c7106 31009else
afc31813 31010
e6cc62c6
VS
31011 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
31012echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 31013 wxUSE_SOCKETS=no
e6cc62c6
VS
31014
31015
6232543b 31016fi
b089607b 31017
e6cc62c6 31018
1e487827 31019fi
afc31813 31020
3a922bb4 31021 fi
0feee163 31022fi
51a9faba 31023
0feee163
VZ
31024if test "$wxUSE_SOCKETS" = "yes" ; then
31025 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31026 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31027echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31028if test "${wx_cv_type_getsockname3+set}" = set; then
31029 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31030else
e6cc62c6
VS
31031
31032 cat >conftest.$ac_ext <<_ACEOF
31033#line $LINENO "configure"
31034/* confdefs.h. */
31035_ACEOF
31036cat confdefs.h >>conftest.$ac_ext
31037cat >>conftest.$ac_ext <<_ACEOF
31038/* end confdefs.h. */
51a9faba 31039
3a922bb4
RL
31040 #include <sys/types.h>
31041 #include <sys/socket.h>
e6cc62c6
VS
31042
31043int
31044main ()
31045{
51a9faba 31046
3a922bb4
RL
31047 socklen_t len;
31048 getsockname(0, 0, &len);
e6cc62c6
VS
31049
31050 ;
31051 return 0;
31052}
31053_ACEOF
31054rm -f conftest.$ac_objext
31055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31056 (eval $ac_compile) 2>&5
31057 ac_status=$?
31058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059 (exit $ac_status); } &&
31060 { ac_try='test -s conftest.$ac_objext'
31061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31062 (eval $ac_try) 2>&5
31063 ac_status=$?
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); }; }; then
51a9faba 31066 wx_cv_type_getsockname3=socklen_t
afc31813 31067else
e6cc62c6
VS
31068 echo "$as_me: failed program was:" >&5
31069sed 's/^/| /' conftest.$ac_ext >&5
31070
31071
9711d31e
GD
31072 CFLAGS_OLD="$CFLAGS"
31073 if test "$GCC" = yes ; then
31074 CFLAGS="$CFLAGS -Werror"
31075 fi
31076
e6cc62c6
VS
31077 cat >conftest.$ac_ext <<_ACEOF
31078#line $LINENO "configure"
31079/* confdefs.h. */
31080_ACEOF
31081cat confdefs.h >>conftest.$ac_ext
31082cat >>conftest.$ac_ext <<_ACEOF
31083/* end confdefs.h. */
51a9faba 31084
9711d31e
GD
31085 #include <sys/types.h>
31086 #include <sys/socket.h>
e6cc62c6
VS
31087
31088int
31089main ()
31090{
51a9faba 31091
9711d31e
GD
31092 size_t len;
31093 getsockname(0, 0, &len);
e6cc62c6
VS
31094
31095 ;
31096 return 0;
31097}
31098_ACEOF
31099rm -f conftest.$ac_objext
31100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31101 (eval $ac_compile) 2>&5
31102 ac_status=$?
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); } &&
31105 { ac_try='test -s conftest.$ac_objext'
31106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31107 (eval $ac_try) 2>&5
31108 ac_status=$?
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); }; }; then
51a9faba 31111 wx_cv_type_getsockname3=size_t
afc31813 31112else
e6cc62c6
VS
31113 echo "$as_me: failed program was:" >&5
31114sed 's/^/| /' conftest.$ac_ext >&5
31115
31116cat >conftest.$ac_ext <<_ACEOF
31117#line $LINENO "configure"
31118/* confdefs.h. */
31119_ACEOF
31120cat confdefs.h >>conftest.$ac_ext
31121cat >>conftest.$ac_ext <<_ACEOF
31122/* end confdefs.h. */
51a9faba 31123
9711d31e
GD
31124 #include <sys/types.h>
31125 #include <sys/socket.h>
e6cc62c6
VS
31126
31127int
31128main ()
31129{
51a9faba 31130
9711d31e
GD
31131 int len;
31132 getsockname(0, 0, &len);
e6cc62c6
VS
31133
31134 ;
31135 return 0;
31136}
31137_ACEOF
31138rm -f conftest.$ac_objext
31139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31140 (eval $ac_compile) 2>&5
31141 ac_status=$?
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } &&
31144 { ac_try='test -s conftest.$ac_objext'
31145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31146 (eval $ac_try) 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; }; then
51a9faba 31150 wx_cv_type_getsockname3=int
afc31813 31151else
e6cc62c6
VS
31152 echo "$as_me: failed program was:" >&5
31153sed 's/^/| /' conftest.$ac_ext >&5
31154
31155wx_cv_type_getsockname3=unknown
31156
afc31813 31157fi
e6cc62c6
VS
31158rm -f conftest.$ac_objext conftest.$ac_ext
31159
afc31813 31160fi
e6cc62c6 31161rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31162
31163 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31164
31165
247f5006 31166fi
e6cc62c6 31167rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31168
e6cc62c6
VS
31169fi
31170echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31171echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31172
3a922bb4
RL
31173 if test "$wx_cv_type_getsockname3" = "unknown"; then
31174 wxUSE_SOCKETS=no
e6cc62c6
VS
31175 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31176echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31177 else
e6cc62c6 31178 cat >>confdefs.h <<_ACEOF
51a9faba 31179#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31180_ACEOF
51a9faba 31181
3a922bb4 31182 fi
51a9faba
VZ
31183 fi
31184fi
afc31813 31185
51a9faba 31186if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31187 cat >>confdefs.h <<\_ACEOF
afc31813 31188#define wxUSE_SOCKETS 1
e6cc62c6 31189_ACEOF
afc31813 31190
70f7a477 31191 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31192fi
31193
3879ecda
VZ
31194if test "$wxUSE_PROTOCOL" = "yes"; then
31195 if test "$wxUSE_SOCKETS" != "yes"; then
31196 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31197echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31198 wxUSE_PROTOCOL=no
31199 fi
31200fi
31201
31202if test "$wxUSE_PROTOCOL" = "yes"; then
31203 cat >>confdefs.h <<\_ACEOF
31204#define wxUSE_PROTOCOL 1
31205_ACEOF
31206
31207
31208 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31209 cat >>confdefs.h <<\_ACEOF
31210#define wxUSE_PROTOCOL_HTTP 1
31211_ACEOF
31212
31213 fi
31214 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31215 cat >>confdefs.h <<\_ACEOF
31216#define wxUSE_PROTOCOL_FTP 1
31217_ACEOF
31218
31219 fi
31220 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31221 cat >>confdefs.h <<\_ACEOF
31222#define wxUSE_PROTOCOL_FILE 1
31223_ACEOF
31224
31225 fi
31226else
31227 if test "$wxUSE_FS_INET" = "yes"; then
31228 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31229echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31230 wxUSE_FS_INET="no"
31231 fi
31232fi
31233
31234if test "$wxUSE_URL" = "yes"; then
31235 if test "$wxUSE_PROTOCOL" != "yes"; then
31236 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31237echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31238 wxUSE_URL=no
31239 fi
31240 if test "$wxUSE_URL" = "yes"; then
31241 cat >>confdefs.h <<\_ACEOF
31242#define wxUSE_URL 1
31243_ACEOF
31244
31245 fi
31246fi
31247
31248if test "$wxUSE_FS_INET" = "yes"; then
31249 cat >>confdefs.h <<\_ACEOF
31250#define wxUSE_FS_INET 1
31251_ACEOF
31252
31253fi
31254
8284b0c5 31255
dc3d889d
VZ
31256if test "$wxUSE_GUI" = "yes"; then
31257
ac0c4cc3 31258 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31259 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31260echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
31261 wxUSE_JOYSTICK=no
31262 fi
31263 if test "$TOOLKIT" = "MOTIF"; then
e6cc62c6
VS
31264 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5
31265echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
156b2523 31266 wxUSE_JOYSTICK=no
f79bd02d
JS
31267 fi
31268 if test "$TOOLKIT" = "X11"; then
e6cc62c6
VS
31269 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5
31270echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
f79bd02d 31271 wxUSE_JOYSTICK=no
156b2523
GD
31272 fi
31273
3a922bb4
RL
31274 if test "$TOOLKIT" != "MSW"; then
31275 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31276
31277for ac_header in linux/joystick.h
10f2d63a 31278do
e6cc62c6
VS
31279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31280if eval "test \"\${$as_ac_Header+set}\" = set"; then
31281 echo "$as_me:$LINENO: checking for $ac_header" >&5
31282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31283if eval "test \"\${$as_ac_Header+set}\" = set"; then
31284 echo $ECHO_N "(cached) $ECHO_C" >&6
31285fi
31286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31288else
31289 # Is the header compilable?
31290echo "$as_me:$LINENO: checking $ac_header usability" >&5
31291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31292cat >conftest.$ac_ext <<_ACEOF
31293#line $LINENO "configure"
31294/* confdefs.h. */
31295_ACEOF
31296cat confdefs.h >>conftest.$ac_ext
31297cat >>conftest.$ac_ext <<_ACEOF
31298/* end confdefs.h. */
31299$ac_includes_default
31300#include <$ac_header>
31301_ACEOF
31302rm -f conftest.$ac_objext
31303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31304 (eval $ac_compile) 2>&5
31305 ac_status=$?
31306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307 (exit $ac_status); } &&
31308 { ac_try='test -s conftest.$ac_objext'
31309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31310 (eval $ac_try) 2>&5
31311 ac_status=$?
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); }; }; then
31314 ac_header_compiler=yes
31315else
31316 echo "$as_me: failed program was:" >&5
31317sed 's/^/| /' conftest.$ac_ext >&5
31318
31319ac_header_compiler=no
31320fi
31321rm -f conftest.$ac_objext conftest.$ac_ext
31322echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31323echo "${ECHO_T}$ac_header_compiler" >&6
31324
31325# Is the header present?
31326echo "$as_me:$LINENO: checking $ac_header presence" >&5
31327echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31328cat >conftest.$ac_ext <<_ACEOF
31329#line $LINENO "configure"
31330/* confdefs.h. */
31331_ACEOF
31332cat confdefs.h >>conftest.$ac_ext
31333cat >>conftest.$ac_ext <<_ACEOF
31334/* end confdefs.h. */
31335#include <$ac_header>
31336_ACEOF
31337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31339 ac_status=$?
31340 grep -v '^ *+' conftest.er1 >conftest.err
31341 rm -f conftest.er1
31342 cat conftest.err >&5
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); } >/dev/null; then
31345 if test -s conftest.err; then
31346 ac_cpp_err=$ac_c_preproc_warn_flag
31347 else
31348 ac_cpp_err=
31349 fi
31350else
31351 ac_cpp_err=yes
31352fi
31353if test -z "$ac_cpp_err"; then
31354 ac_header_preproc=yes
31355else
31356 echo "$as_me: failed program was:" >&5
31357sed 's/^/| /' conftest.$ac_ext >&5
31358
31359 ac_header_preproc=no
31360fi
31361rm -f conftest.err conftest.$ac_ext
31362echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31363echo "${ECHO_T}$ac_header_preproc" >&6
31364
31365# So? What about this header?
31366case $ac_header_compiler:$ac_header_preproc in
31367 yes:no )
31368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31369echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31372 (
31373 cat <<\_ASBOX
31374## ------------------------------------ ##
31375## Report this to bug-autoconf@gnu.org. ##
31376## ------------------------------------ ##
31377_ASBOX
31378 ) |
31379 sed "s/^/$as_me: WARNING: /" >&2
31380 ;;
31381 no:yes )
31382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31383echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31385echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31388 (
31389 cat <<\_ASBOX
31390## ------------------------------------ ##
31391## Report this to bug-autoconf@gnu.org. ##
31392## ------------------------------------ ##
31393_ASBOX
31394 ) |
31395 sed "s/^/$as_me: WARNING: /" >&2
31396 ;;
31397esac
31398echo "$as_me:$LINENO: checking for $ac_header" >&5
31399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31400if eval "test \"\${$as_ac_Header+set}\" = set"; then
31401 echo $ECHO_N "(cached) $ECHO_C" >&6
31402else
31403 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31404fi
e6cc62c6
VS
31405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31407
10f2d63a 31408fi
e6cc62c6
VS
31409if test `eval echo '${'$as_ac_Header'}'` = yes; then
31410 cat >>confdefs.h <<_ACEOF
31411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31412_ACEOF
31413
247f5006 31414fi
e6cc62c6 31415
10f2d63a
VZ
31416done
31417
3a922bb4
RL
31418 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31419 wxUSE_JOYSTICK=no
e6cc62c6
VS
31420 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31421echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31422 fi
31423 fi
31424 fi
b089607b 31425
3a922bb4 31426 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31427 cat >>confdefs.h <<\_ACEOF
10f2d63a 31428#define wxUSE_JOYSTICK 1
e6cc62c6 31429_ACEOF
10f2d63a 31430
3a922bb4
RL
31431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31432 fi
dc3d889d
VZ
31433fi
31434
8284b0c5 31435
b089607b
VZ
31436if test "$TOOLKIT" != "MSW"; then
31437
3a922bb4
RL
31438 HAVE_DL_FUNCS=0
31439 HAVE_SHL_FUNCS=0
0b9ab0bd 31440 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31441 if test "$USE_DARWIN" = 1; then
31442 HAVE_DL_FUNCS=1
31443 else
e6cc62c6
VS
31444
31445for ac_func in dlopen
10f2d63a 31446do
e6cc62c6
VS
31447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31448echo "$as_me:$LINENO: checking for $ac_func" >&5
31449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31450if eval "test \"\${$as_ac_var+set}\" = set"; then
31451 echo $ECHO_N "(cached) $ECHO_C" >&6
31452else
31453 cat >conftest.$ac_ext <<_ACEOF
31454#line $LINENO "configure"
31455/* confdefs.h. */
31456_ACEOF
31457cat confdefs.h >>conftest.$ac_ext
31458cat >>conftest.$ac_ext <<_ACEOF
31459/* end confdefs.h. */
10f2d63a 31460/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31461 which can conflict with char $ac_func (); below.
31462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31463 <limits.h> exists even on freestanding compilers. */
31464#ifdef __STDC__
31465# include <limits.h>
31466#else
31467# include <assert.h>
31468#endif
10f2d63a 31469/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31470#ifdef __cplusplus
31471extern "C"
31472{
31473#endif
10f2d63a 31474/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31475 builtin and then its argument prototype would still apply. */
31476char $ac_func ();
10f2d63a
VZ
31477/* The GNU C library defines this for functions which it implements
31478 to always fail with ENOSYS. Some functions are actually named
31479 something starting with __ and the normal name is an alias. */
31480#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31481choke me
31482#else
e6cc62c6
VS
31483char (*f) () = $ac_func;
31484#endif
31485#ifdef __cplusplus
31486}
10f2d63a
VZ
31487#endif
31488
e6cc62c6
VS
31489int
31490main ()
31491{
31492return f != $ac_func;
31493 ;
31494 return 0;
31495}
31496_ACEOF
31497rm -f conftest.$ac_objext conftest$ac_exeext
31498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31499 (eval $ac_link) 2>&5
31500 ac_status=$?
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); } &&
31503 { ac_try='test -s conftest$ac_exeext'
31504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31505 (eval $ac_try) 2>&5
31506 ac_status=$?
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; }; then
31509 eval "$as_ac_var=yes"
31510else
31511 echo "$as_me: failed program was:" >&5
31512sed 's/^/| /' conftest.$ac_ext >&5
31513
31514eval "$as_ac_var=no"
31515fi
31516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31517fi
31518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31520if test `eval echo '${'$as_ac_var'}'` = yes; then
31521 cat >>confdefs.h <<_ACEOF
31522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31523_ACEOF
31524
31525 cat >>confdefs.h <<\_ACEOF
10f2d63a 31526#define HAVE_DLOPEN 1
e6cc62c6 31527_ACEOF
10f2d63a 31528
3a922bb4 31529 HAVE_DL_FUNCS=1
e6cc62c6 31530
10f2d63a 31531else
e6cc62c6
VS
31532
31533 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31534echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31535if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31536 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31537else
e6cc62c6 31538 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31539LIBS="-ldl $LIBS"
e6cc62c6
VS
31540cat >conftest.$ac_ext <<_ACEOF
31541#line $LINENO "configure"
31542/* confdefs.h. */
31543_ACEOF
31544cat confdefs.h >>conftest.$ac_ext
31545cat >>conftest.$ac_ext <<_ACEOF
31546/* end confdefs.h. */
31547
10f2d63a 31548/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31549#ifdef __cplusplus
31550extern "C"
31551#endif
10f2d63a 31552/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31553 builtin and then its argument prototype would still apply. */
31554char dlopen ();
31555int
31556main ()
31557{
31558dlopen ();
31559 ;
31560 return 0;
31561}
31562_ACEOF
31563rm -f conftest.$ac_objext conftest$ac_exeext
31564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31565 (eval $ac_link) 2>&5
31566 ac_status=$?
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); } &&
31569 { ac_try='test -s conftest$ac_exeext'
31570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31571 (eval $ac_try) 2>&5
31572 ac_status=$?
31573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574 (exit $ac_status); }; }; then
31575 ac_cv_lib_dl_dlopen=yes
31576else
31577 echo "$as_me: failed program was:" >&5
31578sed 's/^/| /' conftest.$ac_ext >&5
31579
31580ac_cv_lib_dl_dlopen=no
31581fi
31582rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31583LIBS=$ac_check_lib_save_LIBS
31584fi
31585echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31586echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31587if test $ac_cv_lib_dl_dlopen = yes; then
31588
31589 cat >>confdefs.h <<\_ACEOF
10f2d63a 31590#define HAVE_DLOPEN 1
e6cc62c6 31591_ACEOF
10f2d63a 31592
3a922bb4 31593 HAVE_DL_FUNCS=1
3d63bc3a 31594 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31595
10f2d63a 31596else
10f2d63a 31597
e6cc62c6
VS
31598
31599for ac_func in shl_load
10f2d63a 31600do
e6cc62c6
VS
31601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31602echo "$as_me:$LINENO: checking for $ac_func" >&5
31603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31604if eval "test \"\${$as_ac_var+set}\" = set"; then
31605 echo $ECHO_N "(cached) $ECHO_C" >&6
31606else
31607 cat >conftest.$ac_ext <<_ACEOF
31608#line $LINENO "configure"
31609/* confdefs.h. */
31610_ACEOF
31611cat confdefs.h >>conftest.$ac_ext
31612cat >>conftest.$ac_ext <<_ACEOF
31613/* end confdefs.h. */
10f2d63a 31614/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31615 which can conflict with char $ac_func (); below.
31616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31617 <limits.h> exists even on freestanding compilers. */
31618#ifdef __STDC__
31619# include <limits.h>
31620#else
31621# include <assert.h>
31622#endif
10f2d63a 31623/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31624#ifdef __cplusplus
31625extern "C"
31626{
31627#endif
10f2d63a 31628/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31629 builtin and then its argument prototype would still apply. */
31630char $ac_func ();
10f2d63a
VZ
31631/* The GNU C library defines this for functions which it implements
31632 to always fail with ENOSYS. Some functions are actually named
31633 something starting with __ and the normal name is an alias. */
31634#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31635choke me
31636#else
e6cc62c6
VS
31637char (*f) () = $ac_func;
31638#endif
31639#ifdef __cplusplus
31640}
10f2d63a
VZ
31641#endif
31642
e6cc62c6
VS
31643int
31644main ()
31645{
31646return f != $ac_func;
31647 ;
31648 return 0;
31649}
31650_ACEOF
31651rm -f conftest.$ac_objext conftest$ac_exeext
31652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31653 (eval $ac_link) 2>&5
31654 ac_status=$?
31655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); } &&
31657 { ac_try='test -s conftest$ac_exeext'
31658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31659 (eval $ac_try) 2>&5
31660 ac_status=$?
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); }; }; then
31663 eval "$as_ac_var=yes"
31664else
31665 echo "$as_me: failed program was:" >&5
31666sed 's/^/| /' conftest.$ac_ext >&5
31667
31668eval "$as_ac_var=no"
31669fi
31670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31671fi
31672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31673echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31674if test `eval echo '${'$as_ac_var'}'` = yes; then
31675 cat >>confdefs.h <<_ACEOF
31676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31677_ACEOF
31678
31679 cat >>confdefs.h <<\_ACEOF
10f2d63a 31680#define HAVE_SHL_LOAD 1
e6cc62c6 31681_ACEOF
10f2d63a 31682
3a922bb4 31683 HAVE_SHL_FUNCS=1
e6cc62c6 31684
10f2d63a 31685else
e6cc62c6
VS
31686
31687 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31688echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31689if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31690 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31691else
e6cc62c6 31692 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31693LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31694cat >conftest.$ac_ext <<_ACEOF
31695#line $LINENO "configure"
31696/* confdefs.h. */
31697_ACEOF
31698cat confdefs.h >>conftest.$ac_ext
31699cat >>conftest.$ac_ext <<_ACEOF
31700/* end confdefs.h. */
31701
8284b0c5 31702/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31703#ifdef __cplusplus
31704extern "C"
31705#endif
f6bcfd97 31706/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31707 builtin and then its argument prototype would still apply. */
31708char dld ();
31709int
31710main ()
31711{
31712dld ();
31713 ;
31714 return 0;
31715}
31716_ACEOF
31717rm -f conftest.$ac_objext conftest$ac_exeext
31718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31719 (eval $ac_link) 2>&5
31720 ac_status=$?
31721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); } &&
31723 { ac_try='test -s conftest$ac_exeext'
31724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31725 (eval $ac_try) 2>&5
31726 ac_status=$?
31727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728 (exit $ac_status); }; }; then
31729 ac_cv_lib_shl_load_dld=yes
31730else
31731 echo "$as_me: failed program was:" >&5
31732sed 's/^/| /' conftest.$ac_ext >&5
31733
31734ac_cv_lib_shl_load_dld=no
31735fi
31736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31737LIBS=$ac_check_lib_save_LIBS
31738fi
31739echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31740echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31741if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31742
3a922bb4 31743 HAVE_SHL_FUNCS=1
3d63bc3a 31744 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31745
f6bcfd97
BP
31746fi
31747
e6cc62c6 31748
10f2d63a
VZ
31749fi
31750done
31751
e6cc62c6 31752
10f2d63a
VZ
31753fi
31754
e6cc62c6 31755
10f2d63a
VZ
31756fi
31757done
31758
5c6fa7d2 31759
8284b0c5 31760 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
31761
31762for ac_func in dlerror
f6bcfd97 31763do
e6cc62c6
VS
31764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31765echo "$as_me:$LINENO: checking for $ac_func" >&5
31766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31767if eval "test \"\${$as_ac_var+set}\" = set"; then
31768 echo $ECHO_N "(cached) $ECHO_C" >&6
31769else
31770 cat >conftest.$ac_ext <<_ACEOF
31771#line $LINENO "configure"
31772/* confdefs.h. */
31773_ACEOF
31774cat confdefs.h >>conftest.$ac_ext
31775cat >>conftest.$ac_ext <<_ACEOF
31776/* end confdefs.h. */
f6bcfd97 31777/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31778 which can conflict with char $ac_func (); below.
31779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31780 <limits.h> exists even on freestanding compilers. */
31781#ifdef __STDC__
31782# include <limits.h>
31783#else
31784# include <assert.h>
31785#endif
f6bcfd97 31786/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31787#ifdef __cplusplus
31788extern "C"
31789{
31790#endif
f6bcfd97 31791/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31792 builtin and then its argument prototype would still apply. */
31793char $ac_func ();
f6bcfd97
BP
31794/* The GNU C library defines this for functions which it implements
31795 to always fail with ENOSYS. Some functions are actually named
31796 something starting with __ and the normal name is an alias. */
31797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31798choke me
31799#else
e6cc62c6
VS
31800char (*f) () = $ac_func;
31801#endif
31802#ifdef __cplusplus
31803}
f6bcfd97
BP
31804#endif
31805
e6cc62c6
VS
31806int
31807main ()
31808{
31809return f != $ac_func;
31810 ;
31811 return 0;
31812}
31813_ACEOF
31814rm -f conftest.$ac_objext conftest$ac_exeext
31815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31816 (eval $ac_link) 2>&5
31817 ac_status=$?
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); } &&
31820 { ac_try='test -s conftest$ac_exeext'
31821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31822 (eval $ac_try) 2>&5
31823 ac_status=$?
31824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825 (exit $ac_status); }; }; then
31826 eval "$as_ac_var=yes"
31827else
31828 echo "$as_me: failed program was:" >&5
31829sed 's/^/| /' conftest.$ac_ext >&5
31830
31831eval "$as_ac_var=no"
31832fi
31833rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31834fi
31835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31836echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31837if test `eval echo '${'$as_ac_var'}'` = yes; then
31838 cat >>confdefs.h <<_ACEOF
31839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31840_ACEOF
31841 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31842#define HAVE_DLERROR 1
e6cc62c6 31843_ACEOF
f6bcfd97
BP
31844
31845else
e6cc62c6
VS
31846 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31847echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31848if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31849 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31850else
e6cc62c6 31851 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31852LIBS="-ldl $LIBS"
e6cc62c6
VS
31853cat >conftest.$ac_ext <<_ACEOF
31854#line $LINENO "configure"
31855/* confdefs.h. */
31856_ACEOF
31857cat confdefs.h >>conftest.$ac_ext
31858cat >>conftest.$ac_ext <<_ACEOF
31859/* end confdefs.h. */
31860
f6bcfd97 31861/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31862#ifdef __cplusplus
31863extern "C"
31864#endif
f6bcfd97 31865/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31866 builtin and then its argument prototype would still apply. */
31867char dlerror ();
31868int
31869main ()
31870{
31871dlerror ();
31872 ;
31873 return 0;
31874}
31875_ACEOF
31876rm -f conftest.$ac_objext conftest$ac_exeext
31877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31878 (eval $ac_link) 2>&5
31879 ac_status=$?
31880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881 (exit $ac_status); } &&
31882 { ac_try='test -s conftest$ac_exeext'
31883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31884 (eval $ac_try) 2>&5
31885 ac_status=$?
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); }; }; then
31888 ac_cv_lib_dl_dlerror=yes
31889else
31890 echo "$as_me: failed program was:" >&5
31891sed 's/^/| /' conftest.$ac_ext >&5
31892
31893ac_cv_lib_dl_dlerror=no
31894fi
31895rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31896LIBS=$ac_check_lib_save_LIBS
31897fi
31898echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31899echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31900if test $ac_cv_lib_dl_dlerror = yes; then
31901 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31902#define HAVE_DLERROR 1
e6cc62c6 31903_ACEOF
f6bcfd97 31904
f6bcfd97
BP
31905fi
31906
31907fi
31908done
31909
3a922bb4
RL
31910 fi
31911 fi
f6bcfd97 31912
3a922bb4
RL
31913 if test "$HAVE_DL_FUNCS" = 0; then
31914 if test "$HAVE_SHL_FUNCS" = 0; then
31915 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
31916 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31917echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 31918 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
31919 wxUSE_DYNLIB_CLASS=no
31920 else
e6cc62c6
VS
31921 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31922echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
31923 fi
31924 fi
10f2d63a
VZ
31925 fi
31926 fi
31927fi
31928
0b9ab0bd 31929if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 31930 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 31931#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 31932_ACEOF
0b9ab0bd
RL
31933
31934elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 31935 cat >>confdefs.h <<\_ACEOF
10f2d63a 31936#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 31937_ACEOF
10f2d63a
VZ
31938
31939fi
31940
8284b0c5 31941
1e6feb95 31942if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 31943 cat >>confdefs.h <<\_ACEOF
1e6feb95 31944#define wxUSE_FONTMAP 1
e6cc62c6 31945_ACEOF
1e6feb95
VZ
31946
31947fi
31948
10f2d63a 31949if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 31950 cat >>confdefs.h <<\_ACEOF
10f2d63a 31951#define wxUSE_UNICODE 1
e6cc62c6 31952_ACEOF
10f2d63a 31953
8284b0c5 31954
bbc3925a
VS
31955 if test "$wxUSE_MSW" != 1; then
31956 wxUSE_UNICODE_MSLU=no
31957 fi
a72a4bfa
VS
31958
31959 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
31960 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
31961echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
31962if test "${ac_cv_lib_unicows_main+set}" = set; then
31963 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 31964else
e6cc62c6 31965 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 31966LIBS="-lunicows $LIBS"
e6cc62c6
VS
31967cat >conftest.$ac_ext <<_ACEOF
31968#line $LINENO "configure"
31969/* confdefs.h. */
31970_ACEOF
31971cat confdefs.h >>conftest.$ac_ext
31972cat >>conftest.$ac_ext <<_ACEOF
31973/* end confdefs.h. */
a72a4bfa 31974
8284b0c5 31975
e6cc62c6
VS
31976int
31977main ()
31978{
31979main ();
31980 ;
31981 return 0;
31982}
31983_ACEOF
31984rm -f conftest.$ac_objext conftest$ac_exeext
31985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31986 (eval $ac_link) 2>&5
31987 ac_status=$?
31988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989 (exit $ac_status); } &&
31990 { ac_try='test -s conftest$ac_exeext'
31991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31992 (eval $ac_try) 2>&5
31993 ac_status=$?
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); }; }; then
31996 ac_cv_lib_unicows_main=yes
31997else
31998 echo "$as_me: failed program was:" >&5
31999sed 's/^/| /' conftest.$ac_ext >&5
32000
32001ac_cv_lib_unicows_main=no
32002fi
32003rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32004LIBS=$ac_check_lib_save_LIBS
32005fi
32006echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32007echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32008if test $ac_cv_lib_unicows_main = yes; then
32009
32010 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32011#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32012_ACEOF
32013
a72a4bfa 32014
a72a4bfa 32015else
a72a4bfa 32016
e6cc62c6
VS
32017 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32018 Applications will only run on Windows NT/2000/XP!" >&5
32019echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32020 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32021 wxUSE_UNICODE_MSLU=no
e6cc62c6 32022
a72a4bfa
VS
32023fi
32024
32025 fi
10f2d63a
VZ
32026fi
32027
10f2d63a 32028if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32029 cat >>confdefs.h <<\_ACEOF
10f2d63a 32030#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32031_ACEOF
10f2d63a
VZ
32032
32033fi
32034
8284b0c5 32035
10f2d63a 32036if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32037 cat >>confdefs.h <<\_ACEOF
10f2d63a 32038#define wxUSE_POSTSCRIPT 1
e6cc62c6 32039_ACEOF
10f2d63a
VZ
32040
32041fi
32042
e6cc62c6 32043cat >>confdefs.h <<\_ACEOF
10f2d63a 32044#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32045_ACEOF
10f2d63a 32046
8284b0c5 32047
e6cc62c6 32048cat >>confdefs.h <<\_ACEOF
10f2d63a 32049#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32050_ACEOF
10f2d63a 32051
8284b0c5
MB
32052
32053
10f2d63a 32054if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32055 cat >>confdefs.h <<\_ACEOF
10f2d63a 32056#define wxUSE_CONSTRAINTS 1
e6cc62c6 32057_ACEOF
10f2d63a
VZ
32058
32059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32060fi
32061
3879ecda 32062if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32063 cat >>confdefs.h <<\_ACEOF
10f2d63a 32064#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32065_ACEOF
10f2d63a 32066
1772d20c 32067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32068fi
32069
32070if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32071 cat >>confdefs.h <<\_ACEOF
10f2d63a 32072#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32073_ACEOF
10f2d63a
VZ
32074
32075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32076 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32078 fi
32079fi
32080
32081if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32082 cat >>confdefs.h <<\_ACEOF
10f2d63a 32083#define wxUSE_HELP 1
e6cc62c6 32084_ACEOF
10f2d63a
VZ
32085
32086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32087
77e13408 32088 if test "$wxUSE_MSW" = 1; then
031d8228 32089 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32090 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32091#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32092_ACEOF
29fd3c0c 32093
3e44f09d 32094 fi
3379ed37 32095 fi
031d8228
VS
32096
32097 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32098 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32099 cat >>confdefs.h <<\_ACEOF
031d8228 32100#define wxUSE_WXHTML_HELP 1
e6cc62c6 32101_ACEOF
031d8228
VS
32102
32103 else
e6cc62c6
VS
32104 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32105echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32106 wxUSE_WXHTML_HELP=no
32107 fi
32108 fi
10f2d63a
VZ
32109fi
32110
32111if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32112 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32113 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32114echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32115 else
e6cc62c6 32116 cat >>confdefs.h <<\_ACEOF
10f2d63a 32117#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32118_ACEOF
10f2d63a
VZ
32119
32120 fi
32121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32122fi
32123
e6cc62c6
VS
32124if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32125 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32126echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32127 { (exit 1); exit 1; }; }
32128fi
32129
32130
32131if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32132 -o "$wxUSE_CLIPBOARD" = "yes" \
32133 -o "$wxUSE_OLE" = "yes" \
32134 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32135
32136for ac_header in ole2.h
32137do
32138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32139if eval "test \"\${$as_ac_Header+set}\" = set"; then
32140 echo "$as_me:$LINENO: checking for $ac_header" >&5
32141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32142if eval "test \"\${$as_ac_Header+set}\" = set"; then
32143 echo $ECHO_N "(cached) $ECHO_C" >&6
32144fi
32145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32147else
32148 # Is the header compilable?
32149echo "$as_me:$LINENO: checking $ac_header usability" >&5
32150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32151cat >conftest.$ac_ext <<_ACEOF
32152#line $LINENO "configure"
32153/* confdefs.h. */
32154_ACEOF
32155cat confdefs.h >>conftest.$ac_ext
32156cat >>conftest.$ac_ext <<_ACEOF
32157/* end confdefs.h. */
32158$ac_includes_default
32159#include <$ac_header>
32160_ACEOF
32161rm -f conftest.$ac_objext
32162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32163 (eval $ac_compile) 2>&5
32164 ac_status=$?
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); } &&
32167 { ac_try='test -s conftest.$ac_objext'
32168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169 (eval $ac_try) 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; }; then
32173 ac_header_compiler=yes
32174else
32175 echo "$as_me: failed program was:" >&5
32176sed 's/^/| /' conftest.$ac_ext >&5
32177
32178ac_header_compiler=no
32179fi
32180rm -f conftest.$ac_objext conftest.$ac_ext
32181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32182echo "${ECHO_T}$ac_header_compiler" >&6
32183
32184# Is the header present?
32185echo "$as_me:$LINENO: checking $ac_header presence" >&5
32186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32187cat >conftest.$ac_ext <<_ACEOF
32188#line $LINENO "configure"
32189/* confdefs.h. */
32190_ACEOF
32191cat confdefs.h >>conftest.$ac_ext
32192cat >>conftest.$ac_ext <<_ACEOF
32193/* end confdefs.h. */
32194#include <$ac_header>
32195_ACEOF
32196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32198 ac_status=$?
32199 grep -v '^ *+' conftest.er1 >conftest.err
32200 rm -f conftest.er1
32201 cat conftest.err >&5
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); } >/dev/null; then
32204 if test -s conftest.err; then
32205 ac_cpp_err=$ac_c_preproc_warn_flag
32206 else
32207 ac_cpp_err=
32208 fi
32209else
32210 ac_cpp_err=yes
32211fi
32212if test -z "$ac_cpp_err"; then
32213 ac_header_preproc=yes
32214else
32215 echo "$as_me: failed program was:" >&5
32216sed 's/^/| /' conftest.$ac_ext >&5
32217
32218 ac_header_preproc=no
32219fi
32220rm -f conftest.err conftest.$ac_ext
32221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32222echo "${ECHO_T}$ac_header_preproc" >&6
32223
32224# So? What about this header?
32225case $ac_header_compiler:$ac_header_preproc in
32226 yes:no )
32227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32231 (
32232 cat <<\_ASBOX
32233## ------------------------------------ ##
32234## Report this to bug-autoconf@gnu.org. ##
32235## ------------------------------------ ##
32236_ASBOX
32237 ) |
32238 sed "s/^/$as_me: WARNING: /" >&2
32239 ;;
32240 no:yes )
32241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32246echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32247 (
32248 cat <<\_ASBOX
32249## ------------------------------------ ##
32250## Report this to bug-autoconf@gnu.org. ##
32251## ------------------------------------ ##
32252_ASBOX
32253 ) |
32254 sed "s/^/$as_me: WARNING: /" >&2
32255 ;;
32256esac
32257echo "$as_me:$LINENO: checking for $ac_header" >&5
32258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32259if eval "test \"\${$as_ac_Header+set}\" = set"; then
32260 echo $ECHO_N "(cached) $ECHO_C" >&6
32261else
32262 eval "$as_ac_Header=$ac_header_preproc"
32263fi
32264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32266
10f2d63a 32267fi
e6cc62c6
VS
32268if test `eval echo '${'$as_ac_Header'}'` = yes; then
32269 cat >>confdefs.h <<_ACEOF
32270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32271_ACEOF
10f2d63a 32272
10f2d63a 32273fi
e6cc62c6 32274
10f2d63a
VZ
32275done
32276
8284b0c5 32277
2b9bdf71
VZ
32278 if test "$ac_cv_header_ole2_h" = "yes" ; then
32279 if test "$GCC" = yes ; then
8284b0c5
MB
32280
32281
e6cc62c6
VS
32282 ac_ext=cc
32283ac_cpp='$CXXCPP $CPPFLAGS'
32284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32287
32288
32289 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32290echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32291 cat >conftest.$ac_ext <<_ACEOF
32292#line $LINENO "configure"
32293/* confdefs.h. */
32294_ACEOF
32295cat confdefs.h >>conftest.$ac_ext
32296cat >>conftest.$ac_ext <<_ACEOF
32297/* end confdefs.h. */
8284b0c5
MB
32298#include <windows.h>
32299 #include <ole2.h>
e6cc62c6
VS
32300int
32301main ()
32302{
8284b0c5 32303
e6cc62c6
VS
32304 ;
32305 return 0;
32306}
32307_ACEOF
32308rm -f conftest.$ac_objext
32309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32310 (eval $ac_compile) 2>&5
32311 ac_status=$?
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); } &&
32314 { ac_try='test -s conftest.$ac_objext'
32315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32316 (eval $ac_try) 2>&5
32317 ac_status=$?
32318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); }; }; then
32320 echo "$as_me:$LINENO: result: no" >&5
32321echo "${ECHO_T}no" >&6
32322else
32323 echo "$as_me: failed program was:" >&5
32324sed 's/^/| /' conftest.$ac_ext >&5
32325
32326echo "$as_me:$LINENO: result: yes" >&5
32327echo "${ECHO_T}yes" >&6
8284b0c5
MB
32328 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32329fi
e6cc62c6 32330rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32331 ac_ext=c
8284b0c5 32332ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32335ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32336
2b9bdf71 32337 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32338 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32339 cat >>confdefs.h <<\_ACEOF
4f11a343 32340#define wxUSE_OLE 1
e6cc62c6 32341_ACEOF
4f11a343 32342
8284b0c5 32343
2b9bdf71
VZ
32344 fi
32345
e6cc62c6 32346 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32347#define wxUSE_DATAOBJ 1
e6cc62c6 32348_ACEOF
2b9bdf71
VZ
32349
32350 else
e6cc62c6
VS
32351 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32352echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32353
32354 wxUSE_CLIPBOARD=no
32355 wxUSE_DRAG_AND_DROP=no
32356 wxUSE_DATAOBJ=no
3bce6687
JS
32357 wxUSE_OLE=no
32358 fi
32359
32360 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32361 cat >>confdefs.h <<\_ACEOF
3bce6687 32362#define wxUSE_METAFILE 1
e6cc62c6 32363_ACEOF
3bce6687
JS
32364
32365
e6cc62c6 32366 cat >>confdefs.h <<\_ACEOF
3bce6687 32367#define wxUSE_ENH_METAFILE 1
e6cc62c6 32368_ACEOF
3bce6687
JS
32369
32370 fi
32371fi
32372
2b9bdf71
VZ
32373if test "$wxUSE_IPC" = "yes"; then
32374 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32375 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32376echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32377 fi
32378
e6cc62c6 32379 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32380#define wxUSE_IPC 1
e6cc62c6 32381_ACEOF
2b9bdf71
VZ
32382
32383fi
32384
32385if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32386 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32387 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32388echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32389 wxUSE_CLIPBOARD=no
32390 fi
32391
32392 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32393 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32394#define wxUSE_CLIPBOARD 1
e6cc62c6 32395_ACEOF
2b9bdf71 32396
8284b0c5 32397
e6cc62c6 32398 cat >>confdefs.h <<\_ACEOF
673f4220 32399#define wxUSE_DATAOBJ 1
e6cc62c6 32400_ACEOF
673f4220 32401
6c657b52 32402 fi
2b9bdf71
VZ
32403fi
32404
32405if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32406 if test "$wxUSE_GTK" = 1; then
32407 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32408 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32409echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32410 wxUSE_DRAG_AND_DROP=no
32411 fi
32412 fi
32413
2b9bdf71 32414 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32415 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32416echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32417 wxUSE_DRAG_AND_DROP=no
32418 fi
32419
f79bd02d 32420 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32421 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32422echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32423 wxUSE_DRAG_AND_DROP=no
32424 fi
32425
6c657b52 32426 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32427 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32428echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32429 wxUSE_DRAG_AND_DROP=no
32430 fi
32431
10f2d63a 32432 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32433 cat >>confdefs.h <<\_ACEOF
10f2d63a 32434#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32435_ACEOF
10f2d63a
VZ
32436
32437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32438 fi
32439
32440fi
32441
32442if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32443 cat >>confdefs.h <<\_ACEOF
10f2d63a 32444#define wxUSE_SPLINES 1
e6cc62c6 32445_ACEOF
10f2d63a
VZ
32446
32447fi
32448
8284b0c5 32449
1e6feb95
VZ
32450USES_CONTROLS=0
32451if test "$wxUSE_CONTROLS" = "yes"; then
32452 USES_CONTROLS=1
32453fi
32454
10f2d63a 32455if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32456 cat >>confdefs.h <<\_ACEOF
10f2d63a 32457#define wxUSE_ACCEL 1
e6cc62c6 32458_ACEOF
10f2d63a 32459
1e6feb95
VZ
32460 USES_CONTROLS=1
32461fi
32462
32463if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32464 cat >>confdefs.h <<\_ACEOF
1e6feb95 32465#define wxUSE_BUTTON 1
e6cc62c6 32466_ACEOF
1e6feb95
VZ
32467
32468 USES_CONTROLS=1
32469fi
32470
32471if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32472 cat >>confdefs.h <<\_ACEOF
1e6feb95 32473#define wxUSE_BMPBUTTON 1
e6cc62c6 32474_ACEOF
1e6feb95
VZ
32475
32476 USES_CONTROLS=1
32477fi
32478
32479if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32480 cat >>confdefs.h <<\_ACEOF
1e6feb95 32481#define wxUSE_CALENDARCTRL 1
e6cc62c6 32482_ACEOF
1e6feb95
VZ
32483
32484 USES_CONTROLS=1
32485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32486fi
32487
32488if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32489 cat >>confdefs.h <<\_ACEOF
10f2d63a 32490#define wxUSE_CARET 1
e6cc62c6 32491_ACEOF
10f2d63a 32492
1e6feb95 32493 USES_CONTROLS=1
10f2d63a
VZ
32494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32495fi
32496
32497if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32498 cat >>confdefs.h <<\_ACEOF
10f2d63a 32499#define wxUSE_COMBOBOX 1
e6cc62c6 32500_ACEOF
10f2d63a 32501
1e6feb95 32502 USES_CONTROLS=1
10f2d63a
VZ
32503fi
32504
32505if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32506 cat >>confdefs.h <<\_ACEOF
10f2d63a 32507#define wxUSE_CHOICE 1
e6cc62c6 32508_ACEOF
10f2d63a 32509
1e6feb95 32510 USES_CONTROLS=1
10f2d63a
VZ
32511fi
32512
32513if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32514 cat >>confdefs.h <<\_ACEOF
10f2d63a 32515#define wxUSE_CHECKBOX 1
e6cc62c6 32516_ACEOF
10f2d63a 32517
1e6feb95 32518 USES_CONTROLS=1
10f2d63a
VZ
32519fi
32520
32521if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32522 cat >>confdefs.h <<\_ACEOF
10f2d63a 32523#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32524_ACEOF
10f2d63a 32525
1e6feb95 32526 USES_CONTROLS=1
10f2d63a
VZ
32527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32528fi
32529
da494b40 32530if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32531 cat >>confdefs.h <<\_ACEOF
da494b40 32532#define wxUSE_DISPLAY 1
e6cc62c6 32533_ACEOF
da494b40
MB
32534
32535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32536fi
32537
10f2d63a 32538if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32539 cat >>confdefs.h <<\_ACEOF
10f2d63a 32540#define wxUSE_GAUGE 1
e6cc62c6 32541_ACEOF
10f2d63a 32542
1e6feb95 32543 USES_CONTROLS=1
10f2d63a
VZ
32544fi
32545
d6a55c4b 32546if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32547 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32548#define wxUSE_GRID 1
e6cc62c6 32549_ACEOF
10f2d63a 32550
1e6feb95 32551 USES_CONTROLS=1
d6a55c4b 32552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32553fi
32554
32555if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32556 cat >>confdefs.h <<\_ACEOF
10f2d63a 32557#define wxUSE_IMAGLIST 1
e6cc62c6 32558_ACEOF
10f2d63a
VZ
32559
32560fi
32561
32562if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32563 cat >>confdefs.h <<\_ACEOF
10f2d63a 32564#define wxUSE_LISTBOX 1
e6cc62c6 32565_ACEOF
10f2d63a 32566
1e6feb95 32567 USES_CONTROLS=1
10f2d63a
VZ
32568fi
32569
32570if test "$wxUSE_LISTCTRL" = "yes"; then
32571 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32572 cat >>confdefs.h <<\_ACEOF
10f2d63a 32573#define wxUSE_LISTCTRL 1
e6cc62c6 32574_ACEOF
10f2d63a 32575
1e6feb95 32576 USES_CONTROLS=1
10f2d63a
VZ
32577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32578 else
e6cc62c6
VS
32579 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32580echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32581 fi
32582fi
32583
32584if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32585 cat >>confdefs.h <<\_ACEOF
10f2d63a 32586#define wxUSE_NOTEBOOK 1
e6cc62c6 32587_ACEOF
10f2d63a 32588
1e6feb95 32589 USES_CONTROLS=1
10f2d63a
VZ
32590 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32591fi
32592
24176f2c 32593
10f2d63a 32594if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32595 cat >>confdefs.h <<\_ACEOF
10f2d63a 32596#define wxUSE_RADIOBOX 1
e6cc62c6 32597_ACEOF
10f2d63a 32598
1e6feb95 32599 USES_CONTROLS=1
10f2d63a
VZ
32600fi
32601
32602if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32603 cat >>confdefs.h <<\_ACEOF
10f2d63a 32604#define wxUSE_RADIOBTN 1
e6cc62c6 32605_ACEOF
10f2d63a 32606
1e6feb95 32607 USES_CONTROLS=1
10f2d63a
VZ
32608fi
32609
32610if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32611 cat >>confdefs.h <<\_ACEOF
10f2d63a 32612#define wxUSE_SASH 1
e6cc62c6 32613_ACEOF
10f2d63a
VZ
32614
32615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32616fi
32617
32618if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32619 cat >>confdefs.h <<\_ACEOF
10f2d63a 32620#define wxUSE_SCROLLBAR 1
e6cc62c6 32621_ACEOF
10f2d63a 32622
1e6feb95 32623 USES_CONTROLS=1
741a9306 32624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32625fi
32626
32627if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32628 cat >>confdefs.h <<\_ACEOF
10f2d63a 32629#define wxUSE_SLIDER 1
e6cc62c6 32630_ACEOF
10f2d63a 32631
1e6feb95 32632 USES_CONTROLS=1
10f2d63a
VZ
32633fi
32634
32635if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32636 cat >>confdefs.h <<\_ACEOF
10f2d63a 32637#define wxUSE_SPINBTN 1
e6cc62c6 32638_ACEOF
10f2d63a 32639
1e6feb95 32640 USES_CONTROLS=1
10f2d63a
VZ
32641fi
32642
56cfaa52 32643if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32644 cat >>confdefs.h <<\_ACEOF
56cfaa52 32645#define wxUSE_SPINCTRL 1
e6cc62c6 32646_ACEOF
56cfaa52 32647
1e6feb95 32648 USES_CONTROLS=1
56cfaa52
RR
32649fi
32650
10f2d63a 32651if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32652 cat >>confdefs.h <<\_ACEOF
10f2d63a 32653#define wxUSE_SPLITTER 1
e6cc62c6 32654_ACEOF
10f2d63a
VZ
32655
32656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32657fi
32658
32659if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32660 cat >>confdefs.h <<\_ACEOF
10f2d63a 32661#define wxUSE_STATBMP 1
e6cc62c6 32662_ACEOF
10f2d63a 32663
1e6feb95 32664 USES_CONTROLS=1
10f2d63a
VZ
32665fi
32666
32667if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32668 cat >>confdefs.h <<\_ACEOF
10f2d63a 32669#define wxUSE_STATBOX 1
e6cc62c6 32670_ACEOF
10f2d63a 32671
1e6feb95
VZ
32672 USES_CONTROLS=1
32673fi
32674
32675if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32676 cat >>confdefs.h <<\_ACEOF
1e6feb95 32677#define wxUSE_STATTEXT 1
e6cc62c6 32678_ACEOF
1e6feb95
VZ
32679
32680 USES_CONTROLS=1
10f2d63a
VZ
32681fi
32682
32683if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32684 cat >>confdefs.h <<\_ACEOF
10f2d63a 32685#define wxUSE_STATLINE 1
e6cc62c6 32686_ACEOF
10f2d63a 32687
89e6bf6d 32688 USES_CONTROLS=1
10f2d63a
VZ
32689fi
32690
32691if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32692 cat >>confdefs.h <<\_ACEOF
10f2d63a 32693#define wxUSE_STATUSBAR 1
e6cc62c6 32694_ACEOF
10f2d63a 32695
1e6feb95 32696 USES_CONTROLS=1
698dcdb6 32697
2286341c 32698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32699fi
32700
32701if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32702 cat >>confdefs.h <<\_ACEOF
10f2d63a 32703#define wxUSE_TAB_DIALOG 1
e6cc62c6 32704_ACEOF
10f2d63a
VZ
32705
32706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32707fi
32708
1e6feb95 32709if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32710 cat >>confdefs.h <<\_ACEOF
1e6feb95 32711#define wxUSE_TEXTCTRL 1
e6cc62c6 32712_ACEOF
1e6feb95
VZ
32713
32714 USES_CONTROLS=1
32715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32716fi
32717
1db8dc4a 32718if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32719 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32720 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32721echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32722 wxUSE_TOGGLEBTN=no
32723 fi
32724 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32725 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32726echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32727 wxUSE_TOGGLEBTN=no
32728 fi
32729
32730 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32731 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32732#define wxUSE_TOGGLEBTN 1
e6cc62c6 32733_ACEOF
1db8dc4a 32734
1e6feb95 32735 USES_CONTROLS=1
a45d7ab7 32736 fi
1db8dc4a
VZ
32737fi
32738
360d6699 32739if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32740 cat >>confdefs.h <<\_ACEOF
360d6699 32741#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32742_ACEOF
360d6699
VZ
32743
32744 wxUSE_TOOLBAR="yes"
1e6feb95 32745 USES_CONTROLS=1
360d6699
VZ
32746fi
32747
10f2d63a 32748if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 32749 cat >>confdefs.h <<\_ACEOF
10f2d63a 32750#define wxUSE_TOOLBAR 1
e6cc62c6 32751_ACEOF
10f2d63a 32752
1e6feb95 32753 USES_CONTROLS=1
698dcdb6 32754
360d6699
VZ
32755 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32756 wxUSE_TOOLBAR_NATIVE="yes"
32757 fi
32758
1e6feb95 32759 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 32760 cat >>confdefs.h <<\_ACEOF
360d6699 32761#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 32762_ACEOF
360d6699 32763
1e6feb95
VZ
32764 USES_CONTROLS=1
32765 fi
32766
32767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
32768fi
32769
10f2d63a
VZ
32770if test "$wxUSE_TOOLTIPS" = "yes"; then
32771 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32772 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32773echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 32774 else
89e6bf6d 32775 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32776 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32777echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 32778 else
e6cc62c6 32779 cat >>confdefs.h <<\_ACEOF
10f2d63a 32780#define wxUSE_TOOLTIPS 1
e6cc62c6 32781_ACEOF
10f2d63a
VZ
32782
32783 fi
32784 fi
32785fi
32786
32787if test "$wxUSE_TREECTRL" = "yes"; then
32788 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32789 cat >>confdefs.h <<\_ACEOF
10f2d63a 32790#define wxUSE_TREECTRL 1
e6cc62c6 32791_ACEOF
10f2d63a 32792
1e6feb95 32793 USES_CONTROLS=1
10f2d63a
VZ
32794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32795 else
e6cc62c6
VS
32796 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32797echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32798 fi
32799fi
32800
9f41d601 32801if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 32802 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32803 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32804echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 32805 else
485cf710 32806 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32807 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32808echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 32809 else
3c011993 32810 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32811 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32812echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32813 else
e6cc62c6 32814 cat >>confdefs.h <<\_ACEOF
9f41d601 32815#define wxUSE_POPUPWIN 1
e6cc62c6 32816_ACEOF
9f41d601 32817
8284b0c5 32818
3c011993
VZ
32819 USES_CONTROLS=1
32820 fi
485cf710 32821 fi
6abe4b65 32822 fi
9f41d601
RR
32823fi
32824
dd964dcc 32825if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 32826 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32827 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32828echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32829 else
e6cc62c6 32830 cat >>confdefs.h <<\_ACEOF
dd964dcc 32831#define wxUSE_TIPWINDOW 1
e6cc62c6 32832_ACEOF
dd964dcc 32833
3c011993 32834 fi
dd964dcc
VZ
32835fi
32836
1e6feb95 32837if test "$USES_CONTROLS" = 1; then
e6cc62c6 32838 cat >>confdefs.h <<\_ACEOF
1e6feb95 32839#define wxUSE_CONTROLS 1
e6cc62c6 32840_ACEOF
10f2d63a 32841
10f2d63a
VZ
32842fi
32843
8284b0c5 32844
1e6feb95 32845
24fd6d87 32846if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 32847 cat >>confdefs.h <<\_ACEOF
24fd6d87 32848#define wxUSE_DRAGIMAGE 1
e6cc62c6 32849_ACEOF
24fd6d87
VZ
32850
32851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32852fi
32853
7bb2947d 32854if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 32855 cat >>confdefs.h <<\_ACEOF
7bb2947d 32856#define wxUSE_ACCESSIBILITY 1
e6cc62c6 32857_ACEOF
7bb2947d
MB
32858
32859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32860fi
32861
1e6feb95 32862if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 32863 cat >>confdefs.h <<\_ACEOF
1e6feb95 32864#define wxUSE_MENUS 1
e6cc62c6 32865_ACEOF
10f2d63a 32866
1e6feb95 32867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
32868fi
32869
1e6feb95 32870if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32871 cat >>confdefs.h <<\_ACEOF
1e6feb95 32872#define wxUSE_METAFILE 1
e6cc62c6 32873_ACEOF
10f2d63a 32874
10f2d63a
VZ
32875fi
32876
1e6feb95 32877if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 32878 cat >>confdefs.h <<\_ACEOF
1e6feb95 32879#define wxUSE_MIMETYPE 1
e6cc62c6 32880_ACEOF
10f2d63a 32881
10f2d63a
VZ
32882fi
32883
3e44f09d 32884if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 32885 cat >>confdefs.h <<\_ACEOF
3e44f09d 32886#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 32887_ACEOF
3e44f09d 32888
321d2b14
VZ
32889if test "$TOOLKIT" = "MSW"; then
32890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
32891fi
32892
3e44f09d
VZ
32893fi
32894
10f2d63a 32895if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 32896 cat >>confdefs.h <<\_ACEOF
10f2d63a 32897#define wxUSE_MINIFRAME 1
e6cc62c6 32898_ACEOF
10f2d63a
VZ
32899
32900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
32901fi
32902
4d264332 32903USE_HTML=0
10f2d63a 32904if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32905 cat >>confdefs.h <<\_ACEOF
10f2d63a 32906#define wxUSE_HTML 1
e6cc62c6 32907_ACEOF
10f2d63a 32908
4d264332 32909 USE_HTML=1
c74dc163 32910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
10f2d63a
VZ
32911fi
32912
32913if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 32914 cat >>confdefs.h <<\_ACEOF
1e487827 32915#define wxUSE_VALIDATORS 1
e6cc62c6 32916_ACEOF
703e0a69 32917
698dcdb6
VZ
32918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
32919fi
32920
edae8572 32921if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 32922 cat >>confdefs.h <<\_ACEOF
edae8572 32923#define wxUSE_PALETTE 1
e6cc62c6 32924_ACEOF
edae8572
VZ
32925
32926fi
32927
698dcdb6 32928if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 32929 cat >>confdefs.h <<\_ACEOF
698dcdb6 32930#define wxUSE_IMAGE 1
e6cc62c6 32931_ACEOF
698dcdb6
VZ
32932
32933fi
32934
32935if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 32936 cat >>confdefs.h <<\_ACEOF
698dcdb6 32937#define wxUSE_GIF 1
e6cc62c6 32938_ACEOF
698dcdb6
VZ
32939
32940fi
32941
32942if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 32943 cat >>confdefs.h <<\_ACEOF
698dcdb6 32944#define wxUSE_PCX 1
e6cc62c6 32945_ACEOF
698dcdb6
VZ
32946
32947fi
32948
4b6b4dfc 32949if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 32950 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 32951#define wxUSE_IFF 1
e6cc62c6 32952_ACEOF
4b6b4dfc
RR
32953
32954fi
32955
698dcdb6 32956if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 32957 cat >>confdefs.h <<\_ACEOF
698dcdb6 32958#define wxUSE_PNM 1
e6cc62c6 32959_ACEOF
698dcdb6
VZ
32960
32961fi
32962
32963if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 32964 cat >>confdefs.h <<\_ACEOF
698dcdb6 32965#define wxUSE_XPM 1
e6cc62c6 32966_ACEOF
698dcdb6
VZ
32967
32968fi
32969
658974ae 32970if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 32971 cat >>confdefs.h <<\_ACEOF
658974ae 32972#define wxUSE_ICO_CUR 1
e6cc62c6 32973_ACEOF
658974ae
VS
32974
32975fi
32976
a72a4bfa
VS
32977if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
32978 LIBS=" -lunicows $LIBS"
32979fi
32980
8284b0c5 32981
1e6feb95 32982if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 32983 cat >>confdefs.h <<\_ACEOF
1e6feb95 32984#define wxUSE_CHOICEDLG 1
e6cc62c6 32985_ACEOF
1e6feb95
VZ
32986
32987fi
32988
32989if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 32990 cat >>confdefs.h <<\_ACEOF
1e6feb95 32991#define wxUSE_COLOURDLG 1
e6cc62c6 32992_ACEOF
1e6feb95
VZ
32993
32994fi
32995
32996if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 32997 cat >>confdefs.h <<\_ACEOF
1e6feb95 32998#define wxUSE_FILEDLG 1
e6cc62c6 32999_ACEOF
1e6feb95
VZ
33000
33001fi
33002
8db37e06 33003if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33004 cat >>confdefs.h <<\_ACEOF
8db37e06 33005#define wxUSE_FINDREPLDLG 1
e6cc62c6 33006_ACEOF
8db37e06
VZ
33007
33008fi
33009
1e6feb95 33010if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33011 cat >>confdefs.h <<\_ACEOF
1e6feb95 33012#define wxUSE_FONTDLG 1
e6cc62c6 33013_ACEOF
1e6feb95
VZ
33014
33015fi
33016
33017if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33018 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33019 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33020echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33021 else
e6cc62c6 33022 cat >>confdefs.h <<\_ACEOF
1e6feb95 33023#define wxUSE_DIRDLG 1
e6cc62c6 33024_ACEOF
1e6feb95 33025
1e6feb95
VZ
33026 fi
33027fi
33028
33029if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33030 cat >>confdefs.h <<\_ACEOF
1e6feb95 33031#define wxUSE_MSGDLG 1
e6cc62c6 33032_ACEOF
1e6feb95
VZ
33033
33034fi
33035
33036if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33037 cat >>confdefs.h <<\_ACEOF
1e6feb95 33038#define wxUSE_NUMBERDLG 1
e6cc62c6 33039_ACEOF
1e6feb95
VZ
33040
33041fi
33042
33043if test "$wxUSE_PROGRESSDLG" = "yes"; then
33044 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33045 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33046echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33047 else
e6cc62c6 33048 cat >>confdefs.h <<\_ACEOF
1e6feb95 33049#define wxUSE_PROGRESSDLG 1
e6cc62c6 33050_ACEOF
1e6feb95
VZ
33051
33052 fi
33053fi
33054
cbca9943 33055if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33056 cat >>confdefs.h <<\_ACEOF
cbca9943 33057#define wxUSE_SPLASH 1
e6cc62c6 33058_ACEOF
cbca9943
VZ
33059
33060fi
33061
1e6feb95
VZ
33062if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33063 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33064 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33065echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33066 else
e6cc62c6 33067 cat >>confdefs.h <<\_ACEOF
1e6feb95 33068#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33069_ACEOF
1e6feb95 33070
7b4a847f
RR
33071 fi
33072fi
579d8138 33073
8284b0c5 33074if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33075 cat >>confdefs.h <<\_ACEOF
8284b0c5 33076#define wxUSE_TEXTDLG 1
e6cc62c6 33077_ACEOF
8284b0c5
MB
33078
33079fi
33080
33081if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33082 cat >>confdefs.h <<\_ACEOF
8284b0c5 33083#define wxUSE_WIZARDDLG 1
e6cc62c6 33084_ACEOF
8284b0c5
MB
33085
33086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33087fi
33088
33089
33090if test "$cross_compiling" = "yes"; then
33091 OSINFO="\"$host\""
33092else
33093 OSINFO=`uname -s -r -m`
33094 OSINFO="\"$OSINFO\""
33095fi
33096
e6cc62c6 33097cat >>confdefs.h <<_ACEOF
8284b0c5 33098#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33099_ACEOF
8284b0c5
MB
33100
33101
33102
33103if test "x$prefix" != "xNONE"; then
33104 wxPREFIX=$prefix
33105else
33106 wxPREFIX=$ac_default_prefix
33107fi
33108
e6cc62c6 33109cat >>confdefs.h <<_ACEOF
8284b0c5 33110#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33111_ACEOF
8284b0c5
MB
33112
33113
e6cc62c6 33114top_builddir_wxconfig=`pwd`
52c71b80 33115
8284b0c5
MB
33116
33117
33118
33119if test "$wxUSE_MAC" = 1 ; then
33120 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33121fi
ac0c4cc3
DE
33122if test "$wxUSE_COCOA" = 1 ; then
33123 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33124fi
8284b0c5
MB
33125
33126
2b5f62a0
VZ
33127LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33128
33129have_cos=0
33130have_floor=0
e6cc62c6 33131
2b5f62a0
VZ
33132for ac_func in cos
33133do
e6cc62c6
VS
33134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33135echo "$as_me:$LINENO: checking for $ac_func" >&5
33136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33137if eval "test \"\${$as_ac_var+set}\" = set"; then
33138 echo $ECHO_N "(cached) $ECHO_C" >&6
33139else
33140 cat >conftest.$ac_ext <<_ACEOF
33141#line $LINENO "configure"
33142/* confdefs.h. */
33143_ACEOF
33144cat confdefs.h >>conftest.$ac_ext
33145cat >>conftest.$ac_ext <<_ACEOF
33146/* end confdefs.h. */
2b5f62a0 33147/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33148 which can conflict with char $ac_func (); below.
33149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33150 <limits.h> exists even on freestanding compilers. */
33151#ifdef __STDC__
33152# include <limits.h>
33153#else
33154# include <assert.h>
33155#endif
2b5f62a0 33156/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33157#ifdef __cplusplus
33158extern "C"
33159{
33160#endif
2b5f62a0 33161/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33162 builtin and then its argument prototype would still apply. */
33163char $ac_func ();
2b5f62a0
VZ
33164/* The GNU C library defines this for functions which it implements
33165 to always fail with ENOSYS. Some functions are actually named
33166 something starting with __ and the normal name is an alias. */
33167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33168choke me
33169#else
e6cc62c6
VS
33170char (*f) () = $ac_func;
33171#endif
33172#ifdef __cplusplus
33173}
2b5f62a0
VZ
33174#endif
33175
e6cc62c6
VS
33176int
33177main ()
33178{
33179return f != $ac_func;
33180 ;
33181 return 0;
33182}
33183_ACEOF
33184rm -f conftest.$ac_objext conftest$ac_exeext
33185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33186 (eval $ac_link) 2>&5
33187 ac_status=$?
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); } &&
33190 { ac_try='test -s conftest$ac_exeext'
33191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33192 (eval $ac_try) 2>&5
33193 ac_status=$?
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); }; }; then
33196 eval "$as_ac_var=yes"
33197else
33198 echo "$as_me: failed program was:" >&5
33199sed 's/^/| /' conftest.$ac_ext >&5
33200
33201eval "$as_ac_var=no"
33202fi
33203rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33204fi
33205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33206echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33207if test `eval echo '${'$as_ac_var'}'` = yes; then
33208 cat >>confdefs.h <<_ACEOF
33209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33210_ACEOF
2b5f62a0 33211 have_cos=1
2b5f62a0
VZ
33212fi
33213done
33214
e6cc62c6 33215
2b5f62a0
VZ
33216for ac_func in floor
33217do
e6cc62c6
VS
33218as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33219echo "$as_me:$LINENO: checking for $ac_func" >&5
33220echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33221if eval "test \"\${$as_ac_var+set}\" = set"; then
33222 echo $ECHO_N "(cached) $ECHO_C" >&6
33223else
33224 cat >conftest.$ac_ext <<_ACEOF
33225#line $LINENO "configure"
33226/* confdefs.h. */
33227_ACEOF
33228cat confdefs.h >>conftest.$ac_ext
33229cat >>conftest.$ac_ext <<_ACEOF
33230/* end confdefs.h. */
2b5f62a0 33231/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33232 which can conflict with char $ac_func (); below.
33233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33234 <limits.h> exists even on freestanding compilers. */
33235#ifdef __STDC__
33236# include <limits.h>
33237#else
33238# include <assert.h>
33239#endif
2b5f62a0 33240/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33241#ifdef __cplusplus
33242extern "C"
33243{
33244#endif
2b5f62a0 33245/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33246 builtin and then its argument prototype would still apply. */
33247char $ac_func ();
2b5f62a0
VZ
33248/* The GNU C library defines this for functions which it implements
33249 to always fail with ENOSYS. Some functions are actually named
33250 something starting with __ and the normal name is an alias. */
33251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33252choke me
33253#else
e6cc62c6
VS
33254char (*f) () = $ac_func;
33255#endif
33256#ifdef __cplusplus
33257}
2b5f62a0
VZ
33258#endif
33259
e6cc62c6
VS
33260int
33261main ()
33262{
33263return f != $ac_func;
33264 ;
33265 return 0;
33266}
33267_ACEOF
33268rm -f conftest.$ac_objext conftest$ac_exeext
33269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33270 (eval $ac_link) 2>&5
33271 ac_status=$?
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); } &&
33274 { ac_try='test -s conftest$ac_exeext'
33275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33276 (eval $ac_try) 2>&5
33277 ac_status=$?
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); }; }; then
33280 eval "$as_ac_var=yes"
33281else
33282 echo "$as_me: failed program was:" >&5
33283sed 's/^/| /' conftest.$ac_ext >&5
33284
33285eval "$as_ac_var=no"
33286fi
33287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33288fi
33289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33290echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33291if test `eval echo '${'$as_ac_var'}'` = yes; then
33292 cat >>confdefs.h <<_ACEOF
33293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33294_ACEOF
2b5f62a0 33295 have_floor=1
2b5f62a0
VZ
33296fi
33297done
33298
e6cc62c6
VS
33299echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33300echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33301if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33302 echo "$as_me:$LINENO: result: yes" >&5
33303echo "${ECHO_T}yes" >&6
2b5f62a0 33304else
e6cc62c6
VS
33305 echo "$as_me:$LINENO: result: no" >&5
33306echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33307 LIBS="$LIBS -lm"
33308 # use different functions to avoid configure caching
33309 have_sin=0
33310 have_ceil=0
e6cc62c6
VS
33311
33312for ac_func in sin
2b5f62a0 33313do
e6cc62c6
VS
33314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33315echo "$as_me:$LINENO: checking for $ac_func" >&5
33316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33317if eval "test \"\${$as_ac_var+set}\" = set"; then
33318 echo $ECHO_N "(cached) $ECHO_C" >&6
33319else
33320 cat >conftest.$ac_ext <<_ACEOF
33321#line $LINENO "configure"
33322/* confdefs.h. */
33323_ACEOF
33324cat confdefs.h >>conftest.$ac_ext
33325cat >>conftest.$ac_ext <<_ACEOF
33326/* end confdefs.h. */
2b5f62a0 33327/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33328 which can conflict with char $ac_func (); below.
33329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33330 <limits.h> exists even on freestanding compilers. */
33331#ifdef __STDC__
33332# include <limits.h>
33333#else
33334# include <assert.h>
33335#endif
2b5f62a0 33336/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33337#ifdef __cplusplus
33338extern "C"
33339{
33340#endif
2b5f62a0 33341/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33342 builtin and then its argument prototype would still apply. */
33343char $ac_func ();
2b5f62a0
VZ
33344/* The GNU C library defines this for functions which it implements
33345 to always fail with ENOSYS. Some functions are actually named
33346 something starting with __ and the normal name is an alias. */
33347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33348choke me
33349#else
e6cc62c6
VS
33350char (*f) () = $ac_func;
33351#endif
33352#ifdef __cplusplus
33353}
2b5f62a0
VZ
33354#endif
33355
e6cc62c6
VS
33356int
33357main ()
33358{
33359return f != $ac_func;
33360 ;
33361 return 0;
33362}
33363_ACEOF
33364rm -f conftest.$ac_objext conftest$ac_exeext
33365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33366 (eval $ac_link) 2>&5
33367 ac_status=$?
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); } &&
33370 { ac_try='test -s conftest$ac_exeext'
33371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33372 (eval $ac_try) 2>&5
33373 ac_status=$?
33374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375 (exit $ac_status); }; }; then
33376 eval "$as_ac_var=yes"
33377else
33378 echo "$as_me: failed program was:" >&5
33379sed 's/^/| /' conftest.$ac_ext >&5
33380
33381eval "$as_ac_var=no"
33382fi
33383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33384fi
33385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33387if test `eval echo '${'$as_ac_var'}'` = yes; then
33388 cat >>confdefs.h <<_ACEOF
33389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33390_ACEOF
2b5f62a0 33391 have_sin=1
2b5f62a0
VZ
33392fi
33393done
33394
e6cc62c6
VS
33395
33396for ac_func in ceil
2b5f62a0 33397do
e6cc62c6
VS
33398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33399echo "$as_me:$LINENO: checking for $ac_func" >&5
33400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33401if eval "test \"\${$as_ac_var+set}\" = set"; then
33402 echo $ECHO_N "(cached) $ECHO_C" >&6
33403else
33404 cat >conftest.$ac_ext <<_ACEOF
33405#line $LINENO "configure"
33406/* confdefs.h. */
33407_ACEOF
33408cat confdefs.h >>conftest.$ac_ext
33409cat >>conftest.$ac_ext <<_ACEOF
33410/* end confdefs.h. */
2b5f62a0 33411/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33412 which can conflict with char $ac_func (); below.
33413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33414 <limits.h> exists even on freestanding compilers. */
33415#ifdef __STDC__
33416# include <limits.h>
33417#else
33418# include <assert.h>
33419#endif
2b5f62a0 33420/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33421#ifdef __cplusplus
33422extern "C"
33423{
33424#endif
2b5f62a0 33425/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33426 builtin and then its argument prototype would still apply. */
33427char $ac_func ();
2b5f62a0
VZ
33428/* The GNU C library defines this for functions which it implements
33429 to always fail with ENOSYS. Some functions are actually named
33430 something starting with __ and the normal name is an alias. */
33431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33432choke me
33433#else
e6cc62c6
VS
33434char (*f) () = $ac_func;
33435#endif
33436#ifdef __cplusplus
33437}
2b5f62a0
VZ
33438#endif
33439
e6cc62c6
VS
33440int
33441main ()
33442{
33443return f != $ac_func;
33444 ;
33445 return 0;
33446}
33447_ACEOF
33448rm -f conftest.$ac_objext conftest$ac_exeext
33449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33450 (eval $ac_link) 2>&5
33451 ac_status=$?
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); } &&
33454 { ac_try='test -s conftest$ac_exeext'
33455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456 (eval $ac_try) 2>&5
33457 ac_status=$?
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); }; }; then
33460 eval "$as_ac_var=yes"
33461else
33462 echo "$as_me: failed program was:" >&5
33463sed 's/^/| /' conftest.$ac_ext >&5
33464
33465eval "$as_ac_var=no"
33466fi
33467rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33468fi
33469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33471if test `eval echo '${'$as_ac_var'}'` = yes; then
33472 cat >>confdefs.h <<_ACEOF
33473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33474_ACEOF
2b5f62a0 33475 have_ceil=1
2b5f62a0
VZ
33476fi
33477done
33478
e6cc62c6
VS
33479 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33480echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33481 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33482 echo "$as_me:$LINENO: result: yes" >&5
33483echo "${ECHO_T}yes" >&6
2b5f62a0 33484 else
e6cc62c6
VS
33485 echo "$as_me:$LINENO: result: no" >&5
33486echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33487 # not sure we should warn the user, crash, etc.
33488 fi
33489fi
8284b0c5
MB
33490
33491if test "$wxUSE_GUI" = "yes"; then
33492
e6cc62c6 33493
8284b0c5
MB
33494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33495 drawing dynamic erase event exec font image \
1542ea39 33496 minimal propsize rotate shaped widgets"
b625909c
VS
33497
33498 if test "$wxUSE_MONOLITHIC" != "yes"; then
33499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33500 fi
8284b0c5
MB
33501else
33502 SAMPLES_SUBDIRS="console"
33503fi
33504
33505
e6cc62c6 33506INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33507-I\${top_srcdir}/include \
33508$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33509$TOOLKIT_INCLUDE"
33510
fddeb06b
VS
33511if test "$GXX" = yes ; then
33512 CXXWARNINGS="-Wall"
33513 fi
33514
33515EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33516
95318f7d 33517CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33518CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33519CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33520
33521
fddeb06b 33522LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33523EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33524EXTRALIBS_XML="$EXPAT_LINK"
c74dc163
VS
33525if test "$wxUSE_GUI" = "yes"; then
33526 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33527fi
34b08d2c
VS
33528if test "$wxUSE_OPENGL" = "yes"; then
33529 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33530fi
fddeb06b
VS
33531
33532LDFLAGS="$LDFLAGS $PROFILE"
33533
8284b0c5
MB
33534if test "$wxUSE_GTK" = 1; then
33535 WXCONFIG_INCLUDE=
33536else
33537 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33538fi
33539
fe0895cf
VS
33540if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33541 WXUNIV=1
33542else
33543 WXUNIV=0
8284b0c5
MB
33544fi
33545
8284b0c5
MB
33546
33547
33548
33549
33550
33551
33552
672abd7a 33553
9747f85d
VS
33554if test $wxUSE_MONOLITHIC = "yes" ; then
33555 MONOLITHIC=1
33556else
33557 MONOLITHIC=0
33558fi
8284b0c5 33559
8ee2dd05
VS
33560VENDOR="custom"
33561OFFICIAL_BUILD=0
33562
33563
33564
8284b0c5
MB
33565
33566
33567
33568
33569
33570
c74dc163 33571
34b08d2c 33572
672abd7a 33573
fe0895cf 33574TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33575
33576
33577
33578
33579
ea66c762 33580
fe0895cf 33581 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33582
33583 if test -n "$ac_tool_prefix"; then
33584 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33585set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33586echo "$as_me:$LINENO: checking for $ac_word" >&5
33587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33588if test "${ac_cv_prog_RANLIB+set}" = set; then
33589 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33590else
fe0895cf
VS
33591 if test -n "$RANLIB"; then
33592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33593else
e6cc62c6
VS
33594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33595for as_dir in $PATH
33596do
33597 IFS=$as_save_IFS
33598 test -z "$as_dir" && as_dir=.
33599 for ac_exec_ext in '' $ac_executable_extensions; do
33600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33601 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33603 break 2
33604 fi
33605done
33606done
33607
10f2d63a 33608fi
10f2d63a 33609fi
e6cc62c6 33610RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33611if test -n "$RANLIB"; then
e6cc62c6
VS
33612 echo "$as_me:$LINENO: result: $RANLIB" >&5
33613echo "${ECHO_T}$RANLIB" >&6
33614else
33615 echo "$as_me:$LINENO: result: no" >&5
33616echo "${ECHO_T}no" >&6
33617fi
33618
33619fi
33620if test -z "$ac_cv_prog_RANLIB"; then
33621 ac_ct_RANLIB=$RANLIB
33622 # Extract the first word of "ranlib", so it can be a program name with args.
33623set dummy ranlib; ac_word=$2
33624echo "$as_me:$LINENO: checking for $ac_word" >&5
33625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33626if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33627 echo $ECHO_N "(cached) $ECHO_C" >&6
33628else
33629 if test -n "$ac_ct_RANLIB"; then
33630 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33631else
33632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33633for as_dir in $PATH
33634do
33635 IFS=$as_save_IFS
33636 test -z "$as_dir" && as_dir=.
33637 for ac_exec_ext in '' $ac_executable_extensions; do
33638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33639 ac_cv_prog_ac_ct_RANLIB="ranlib"
33640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33641 break 2
33642 fi
33643done
33644done
33645
33646 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33647fi
33648fi
33649ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33650if test -n "$ac_ct_RANLIB"; then
33651 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33652echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33653else
e6cc62c6
VS
33654 echo "$as_me:$LINENO: result: no" >&5
33655echo "${ECHO_T}no" >&6
33656fi
33657
33658 RANLIB=$ac_ct_RANLIB
33659else
33660 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33661fi
665bbe97 33662
fe0895cf
VS
33663 # Find a good install program. We prefer a C program (faster),
33664# so one script is as good as another. But avoid the broken or
33665# incompatible versions:
33666# SysV /etc/install, /usr/sbin/install
33667# SunOS /usr/etc/install
33668# IRIX /sbin/install
33669# AIX /bin/install
e6cc62c6 33670# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
33671# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33672# AFS /usr/afsws/bin/install, which mishandles nonexistent args
33673# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33674# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
33675echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33676echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 33677if test -z "$INSTALL"; then
e6cc62c6
VS
33678if test "${ac_cv_path_install+set}" = set; then
33679 echo $ECHO_N "(cached) $ECHO_C" >&6
33680else
33681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33682for as_dir in $PATH
33683do
33684 IFS=$as_save_IFS
33685 test -z "$as_dir" && as_dir=.
33686 # Account for people who put trailing slashes in PATH elements.
33687case $as_dir/ in
33688 ./ | .// | /cC/* | \
33689 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33690 /usr/ucb/* ) ;;
33691 *)
33692 # OSF1 and SCO ODT 3.0 have their own names for install.
33693 # Don't use installbsd from OSF since it installs stuff as root
33694 # by default.
33695 for ac_prog in ginstall scoinst install; do
33696 for ac_exec_ext in '' $ac_executable_extensions; do
33697 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33698 if test $ac_prog = install &&
33699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33700 # AIX install. It has an incompatible calling convention.
33701 :
33702 elif test $ac_prog = install &&
33703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33704 # program-specific install script used by HP pwplus--don't use.
33705 :
33706 else
33707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33708 break 3
33709 fi
33710 fi
fe0895cf 33711 done
e6cc62c6
VS
33712 done
33713 ;;
33714esac
33715done
33716
fe0895cf
VS
33717
33718fi
33719 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 33720 INSTALL=$ac_cv_path_install
fe0895cf
VS
33721 else
33722 # As a last resort, use the slow shell script. We don't cache a
33723 # path for INSTALL within a source directory, because that will
33724 # break other packages using the cache if that directory is
33725 # removed, or if the path is relative.
e6cc62c6 33726 INSTALL=$ac_install_sh
fe0895cf
VS
33727 fi
33728fi
e6cc62c6
VS
33729echo "$as_me:$LINENO: result: $INSTALL" >&5
33730echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
33731
33732# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33733# It thinks the first close brace ends the variable substitution.
33734test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33735
e6cc62c6 33736test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
33737
33738test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33739
e6cc62c6
VS
33740 echo "$as_me:$LINENO: checking whether ln -s works" >&5
33741echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33742LN_S=$as_ln_s
33743if test "$LN_S" = "ln -s"; then
33744 echo "$as_me:$LINENO: result: yes" >&5
33745echo "${ECHO_T}yes" >&6
fe0895cf 33746else
e6cc62c6
VS
33747 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33748echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
33749fi
33750
33751
e6cc62c6
VS
33752 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33753echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33754set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33755if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33756 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33757else
e6cc62c6 33758 cat >conftest.make <<\_ACEOF
fe0895cf 33759all:
e6cc62c6
VS
33760 @echo 'ac_maketemp="$(MAKE)"'
33761_ACEOF
fe0895cf 33762# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 33763eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
33764if test -n "$ac_maketemp"; then
33765 eval ac_cv_prog_make_${ac_make}_set=yes
33766else
33767 eval ac_cv_prog_make_${ac_make}_set=no
33768fi
e6cc62c6 33769rm -f conftest.make
fe0895cf
VS
33770fi
33771if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
33772 echo "$as_me:$LINENO: result: yes" >&5
33773echo "${ECHO_T}yes" >&6
fe0895cf
VS
33774 SET_MAKE=
33775else
e6cc62c6
VS
33776 echo "$as_me:$LINENO: result: no" >&5
33777echo "${ECHO_T}no" >&6
fe0895cf
VS
33778 SET_MAKE="MAKE=${MAKE-make}"
33779fi
33780
e6cc62c6
VS
33781
33782
fe0895cf
VS
33783 if test "$build" != "$host" ; then
33784 AR=$host_alias-ar
33785 STRIP=$host_alias-strip
33786 else
33787 # Extract the first word of "ar", so it can be a program name with args.
33788set dummy ar; ac_word=$2
e6cc62c6
VS
33789echo "$as_me:$LINENO: checking for $ac_word" >&5
33790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33791if test "${ac_cv_prog_AR+set}" = set; then
33792 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33793else
33794 if test -n "$AR"; then
33795 ac_cv_prog_AR="$AR" # Let the user override the test.
33796else
e6cc62c6
VS
33797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33798for as_dir in $PATH
33799do
33800 IFS=$as_save_IFS
33801 test -z "$as_dir" && as_dir=.
33802 for ac_exec_ext in '' $ac_executable_extensions; do
33803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33804 ac_cv_prog_AR="ar"
33805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33806 break 2
33807 fi
33808done
33809done
33810
fe0895cf
VS
33811 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
33812fi
33813fi
e6cc62c6 33814AR=$ac_cv_prog_AR
fe0895cf 33815if test -n "$AR"; then
e6cc62c6
VS
33816 echo "$as_me:$LINENO: result: $AR" >&5
33817echo "${ECHO_T}$AR" >&6
fe0895cf 33818else
e6cc62c6
VS
33819 echo "$as_me:$LINENO: result: no" >&5
33820echo "${ECHO_T}no" >&6
fe0895cf
VS
33821fi
33822
33823 # Extract the first word of "strip", so it can be a program name with args.
33824set dummy strip; ac_word=$2
e6cc62c6
VS
33825echo "$as_me:$LINENO: checking for $ac_word" >&5
33826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33827if test "${ac_cv_prog_STRIP+set}" = set; then
33828 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33829else
33830 if test -n "$STRIP"; then
33831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33832else
e6cc62c6
VS
33833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33834for as_dir in $PATH
33835do
33836 IFS=$as_save_IFS
33837 test -z "$as_dir" && as_dir=.
33838 for ac_exec_ext in '' $ac_executable_extensions; do
33839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33840 ac_cv_prog_STRIP="strip"
33841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33842 break 2
33843 fi
33844done
33845done
33846
fe0895cf
VS
33847 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
33848fi
33849fi
e6cc62c6 33850STRIP=$ac_cv_prog_STRIP
fe0895cf 33851if test -n "$STRIP"; then
e6cc62c6
VS
33852 echo "$as_me:$LINENO: result: $STRIP" >&5
33853echo "${ECHO_T}$STRIP" >&6
fe0895cf 33854else
e6cc62c6
VS
33855 echo "$as_me:$LINENO: result: no" >&5
33856echo "${ECHO_T}no" >&6
fe0895cf
VS
33857fi
33858
33859 fi
33860
33861 case ${host} in
33862 *-hp-hpux* )
33863 INSTALL_DIR="mkdir"
33864 ;;
33865 *) INSTALL_DIR="$INSTALL -d"
33866 ;;
33867 esac
e6cc62c6 33868
fe0895cf 33869
6b9d41a5
VS
33870 LDFLAGS_GUI=
33871 case ${host} in
33872 *-*-cygwin* | *-*-mingw32* )
33873 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
33874 esac
33875
33876
fe0895cf 33877 fi
e6cc62c6
VS
33878
33879 echo "$as_me:$LINENO: checking if make is GNU make" >&5
33880echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 33881if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 33882 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33883else
e6cc62c6 33884
fe0895cf
VS
33885 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
33886 egrep -s GNU > /dev/null); then
33887 bakefile_cv_prog_makeisgnu="yes"
33888 else
33889 bakefile_cv_prog_makeisgnu="no"
33890 fi
fe0895cf 33891
e6cc62c6 33892fi
49b0a3aa
VS
33893echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
33894echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
33895
33896 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
33897 IF_GNU_MAKE=""
33898 else
33899 IF_GNU_MAKE="#"
33900 fi
fe0895cf 33901
e6cc62c6
VS
33902
33903
fe0895cf
VS
33904 PLATFORM_UNIX=0
33905 PLATFORM_WIN32=0
33906 PLATFORM_MSDOS=0
33907 PLATFORM_MAC=0
33908 PLATFORM_MACOSX=0
e6cc62c6 33909
fe0895cf
VS
33910 case "${host}" in
33911 *-*-cygwin* | *-*-mingw32* )
33912 PLATFORM_WIN32=1
33913 ;;
33914 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33915 PLATFORM_MSDOS=1
33916 ;;
33917 powerpc-*-darwin* )
33918 PLATFORM_MAC=1
33919 PLATFORM_MACOSX=1
33920 ;;
33921 * )
33922 PLATFORM_UNIX=1
33923 ;;
33924 esac
33925
fe0895cf 33926
e6cc62c6
VS
33927
33928
33929
33930
33931
33932
fe0895cf
VS
33933 SO_SUFFIX="so"
33934 EXEEXT=""
33935 DLLPREFIX=lib
e6cc62c6 33936
fe0895cf
VS
33937 case "${host}" in
33938 *-hp-hpux* )
33939 SO_SUFFIX="sl"
33940 ;;
33941 *-*-aix* )
33942 SO_SUFFIX="a"
33943 ;;
33944 *-*-cygwin* | *-*-mingw32* )
33945 SO_SUFFIX="dll"
33946 EXEEXT=".exe"
33947 DLLPREFIX=""
33948 ;;
33949 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33950 EXEEXT=".exe"
33951 DLLPREFIX=""
33952 ;;
33953 powerpc-*-darwin* )
33954 SO_SUFFIX="dylib"
33955 ;;
33956 esac
33957
fe0895cf 33958
e6cc62c6
VS
33959
33960
33961
33962
fe0895cf
VS
33963 SHARED_LD_CC="\$(CC) -shared -o"
33964 SHARED_LD_CXX="\$(CXX) -shared -o"
33965
33966 if test "x$GCC" = "xyes"; then
33967 PIC_FLAG="-fPIC"
33968 fi
33969
33970 case "${host}" in
33971 *-hp-hpux* )
33972 if test "x$GCC" = "xyes"; then
33973 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
33974 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
33975 else
33976 LDFLAGS="$LDFLAGS -L/usr/lib"
33977
33978 SHARED_LD_CC="${CC} -b -o"
33979 SHARED_LD_CXX="${CXX} -b -o"
33980 PIC_FLAG="+Z"
33981 fi
33982 ;;
33983
33984 *-*-linux* )
33985 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
33986 echo "$as_me:$LINENO: checking for Intel compiler" >&5
33987echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
33988if test "${bakefile_cv_prog_icc+set}" = set; then
33989 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33990else
fe0895cf 33991
e6cc62c6
VS
33992 cat >conftest.$ac_ext <<_ACEOF
33993#line $LINENO "configure"
33994/* confdefs.h. */
33995_ACEOF
33996cat confdefs.h >>conftest.$ac_ext
33997cat >>conftest.$ac_ext <<_ACEOF
33998/* end confdefs.h. */
33999
34000int
34001main ()
34002{
fe0895cf
VS
34003
34004 #ifndef __INTEL_COMPILER
34005 #error Not icc
34006 #endif
e6cc62c6
VS
34007
34008 ;
34009 return 0;
34010}
34011_ACEOF
34012rm -f conftest.$ac_objext
34013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34014 (eval $ac_compile) 2>&5
34015 ac_status=$?
34016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017 (exit $ac_status); } &&
34018 { ac_try='test -s conftest.$ac_objext'
34019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020 (eval $ac_try) 2>&5
34021 ac_status=$?
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); }; }; then
fe0895cf
VS
34024 bakefile_cv_prog_icc=yes
34025else
e6cc62c6
VS
34026 echo "$as_me: failed program was:" >&5
34027sed 's/^/| /' conftest.$ac_ext >&5
34028
34029bakefile_cv_prog_icc=no
34030
fe0895cf 34031fi
e6cc62c6 34032rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34033
e6cc62c6
VS
34034fi
34035echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34036echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34037 if test "$bakefile_cv_prog_icc" = "yes"; then
34038 PIC_FLAG="-KPIC"
34039 fi
34040 fi
34041 ;;
34042
34043 *-*-solaris2* )
34044 if test "x$GCC" != xyes ; then
34045 SHARED_LD_CC="${CC} -G -o"
34046 SHARED_LD_CXX="${CXX} -G -o"
34047 PIC_FLAG="-KPIC"
34048 fi
34049 ;;
34050
34051 *-*-darwin* )
34052 CFLAGS="$CFLAGS -fno-common"
34053 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34054
34055
fe0895cf
VS
34056 cat <<EOF >shared-ld-sh
34057#!/bin/sh
34058#-----------------------------------------------------------------------------
34059#-- Name: distrib/mac/shared-ld-sh
34060#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34061#-- Author: Gilles Depeyrot
34062#-- Copyright: (c) 2002 Gilles Depeyrot
34063#-- Licence: any use permitted
34064#-----------------------------------------------------------------------------
34065
34066verbose=0
34067args=""
34068objects=""
34069
34070while test \${#} -gt 0; do
34071 case \${1} in
34072
34073 -v)
34074 verbose=1
34075 ;;
34076
34077 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34078 # collect these options and values
34079 args="\${args} \${1} \${2}"
34080 shift
34081 ;;
34082
34083 -l*|-L*|-flat_namespace)
34084 # collect these options
34085 args="\${args} \${1}"
34086 ;;
34087
34088 -dynamiclib)
34089 # skip these options
34090 ;;
34091
34092 -*)
34093 echo "shared-ld: unhandled option '\${1}'"
34094 exit 1
34095 ;;
34096
4d264332 34097 *.o | *.a | *.dylib)
fe0895cf
VS
34098 # collect object files
34099 objects="\${objects} \${1}"
34100 ;;
34101
34102 *)
34103 echo "shared-ld: unhandled argument '\${1}'"
34104 exit 1
34105 ;;
34106
34107 esac
34108 shift
34109done
34110
34111#
34112# Link one module containing all the others
34113#
34114if test \${verbose} = 1; then
34115 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34116fi
34117c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34118status=\$?
34119if test \${status} != 0; then
34120 exit \${status}
34121fi
34122
34123#
34124# Link the shared library from the single module created
34125#
34126if test \${verbose} = 1; then
34127 echo "cc -dynamiclib master.\$\$.o \${args}"
34128fi
34129c++ -dynamiclib master.\$\$.o \${args}
34130status=\$?
34131if test \${status} != 0; then
34132 exit \${status}
34133fi
34134
34135#
34136# Remove intermediate module
34137#
34138rm -f master.\$\$.o
34139
34140exit 0
34141EOF
34142 chmod +x shared-ld-sh
34143
34144 SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
34145 SHARED_LD_CXX="$SHARED_LD_CC"
34146 PIC_FLAG="-dynamic -fPIC"
34147 ;;
34148
34149 *-*-aix* )
34150 if test "x$GCC" != "xyes"; then
34151 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34152set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34153echo "$as_me:$LINENO: checking for $ac_word" >&5
34154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34155if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34157else
34158 if test -n "$AIX_CXX_LD"; then
34159 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34160else
e6cc62c6
VS
34161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34162for as_dir in $PATH
34163do
34164 IFS=$as_save_IFS
34165 test -z "$as_dir" && as_dir=.
34166 for ac_exec_ext in '' $ac_executable_extensions; do
34167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34168 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34170 break 2
34171 fi
34172done
34173done
34174
fe0895cf
VS
34175 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34176fi
34177fi
e6cc62c6 34178AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34179if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34180 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34181echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34182else
e6cc62c6
VS
34183 echo "$as_me:$LINENO: result: no" >&5
34184echo "${ECHO_T}no" >&6
fe0895cf
VS
34185fi
34186
34187 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34188 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34189 fi
34190 ;;
34191
34192 *-*-beos* )
34193 SHARED_LD_CC="${LD} -shared -o"
34194 SHARED_LD_CXX="${LD} -shared -o"
34195 ;;
34196
34197 *-*-irix* )
34198 if test "x$GCC" != "xyes"; then
34199 PIC_FLAG="-KPIC"
34200 fi
34201 ;;
e6cc62c6 34202
fe0895cf
VS
34203 *-*-cygwin* | *-*-mingw32* )
34204 PIC_FLAG=""
34205 ;;
e6cc62c6 34206
fe0895cf
VS
34207 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34208 *-*-sunos4* | \
34209 *-*-osf* | \
34210 *-*-dgux5* | \
34211 *-*-sysv5* )
34212 ;;
34213
34214 *)
e6cc62c6
VS
34215 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34216echo "$as_me: error: unknown system type $host." >&2;}
34217 { (exit 1); exit 1; }; }
fe0895cf
VS
34218 esac
34219
fe0895cf 34220
e6cc62c6
VS
34221
34222
34223
34224
fe0895cf
VS
34225 USE_SOVERSION=0
34226 USE_SOVERLINUX=0
34227 USE_SOVERSOLARIS=0
34228 USE_SOSYMLINKS=0
34229 USE_MACVERSION=0
34230 SONAME_FLAG=
34231
34232 case "${host}" in
34233 *-*-linux* )
34234 SONAME_FLAG="-Wl,-soname,"
34235 USE_SOVERSION=1
34236 USE_SOVERLINUX=1
34237 USE_SOSYMLINKS=1
34238 ;;
34239
34240 *-*-solaris2* )
34241 SONAME_FLAG="-h "
34242 USE_SOVERSION=1
34243 USE_SOVERSOLARIS=1
34244 USE_SOSYMLINKS=1
34245 ;;
34246
34247 *-*-darwin* )
34248 USE_MACVERSION=1
34249 USE_SOVERSION=1
34250 USE_SOSYMLINKS=1
e6cc62c6 34251 ;;
fe0895cf
VS
34252 esac
34253
fe0895cf 34254
e6cc62c6
VS
34255
34256
34257
34258
34259
34260
34261
49b0a3aa
VS
34262 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34263echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34264 DEPS_TRACKING=0
34265
fe0895cf 34266 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34267 DEPSMODE=gcc
34268 DEPS_TRACKING=1
3e5c3c83
VS
34269 case "${host}" in
34270 powerpc-*-darwin* )
34271 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34272 ;;
34273 * )
34274 DEPSFLAG_GCC="-MMD"
34275 ;;
34276 esac
49b0a3aa
VS
34277 echo "$as_me:$LINENO: result: gcc" >&5
34278echo "${ECHO_T}gcc" >&6
34279 else
34280 echo "$as_me:$LINENO: result: none" >&5
34281echo "${ECHO_T}none" >&6
34282 fi
34283
34284 if test $DEPS_TRACKING = 1 ; then
34285 cat <<EOF >bk-deps
34286#!/bin/sh
34287
34288# This script is part of Bakefile (http://bakefile.sf.net) autoconf script.
34289# It is used to track C/C++ files dependencies in portable way.
34290#
34291# Permission is given to use this file in any way.
34292
34293DEPSMODE=$DEPSMODE
34294DEPSDIR=.deps
3e5c3c83 34295DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34296
34297mkdir -p \$DEPSDIR
34298
34299if test \$DEPSMODE = gcc ; then
3e5c3c83 34300 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34301 status=\${?}
34302 if test \${status} != 0 ; then
34303 exit \${status}
34304 fi
34305 # move created file to the location we want it in:
34306 while test \${#} -gt 0; do
34307 case "\${1}" in
34308 -o )
34309 shift
34310 objfile=\${1}
34311 ;;
34312 -* )
34313 ;;
34314 * )
34315 srcfile=\${1}
34316 ;;
34317 esac
34318 shift
34319 done
34320 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34321 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34322 if test -f \$depfile ; then
34323 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34324 rm -f \$depfile
34325 else
34326 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34327 if test -f \$depfile ; then
4c8b7f4b 34328 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34329 rm -f \$depfile
34330 fi
34331 fi
49b0a3aa
VS
34332 exit 0
34333else
34334 \${*}
34335 exit \${?}
34336fi
34337EOF
34338 chmod +x bk-deps
fe0895cf 34339 fi
fe0895cf 34340
e6cc62c6
VS
34341
34342
34343
fe0895cf
VS
34344 RESCOMP=
34345 SETFILE=
34346
e6cc62c6 34347 case ${host} in
fe0895cf
VS
34348 *-*-cygwin* | *-*-mingw32* )
34349 if test "$build" != "$host" ; then
34350 RESCOMP=$host_alias-windres
34351 else
34352 # Extract the first word of "windres", so it can be a program name with args.
34353set dummy windres; ac_word=$2
e6cc62c6
VS
34354echo "$as_me:$LINENO: checking for $ac_word" >&5
34355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34356if test "${ac_cv_prog_RESCOMP+set}" = set; then
34357 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34358else
34359 if test -n "$RESCOMP"; then
34360 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34361else
e6cc62c6
VS
34362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34363for as_dir in $PATH
34364do
34365 IFS=$as_save_IFS
34366 test -z "$as_dir" && as_dir=.
34367 for ac_exec_ext in '' $ac_executable_extensions; do
34368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34369 ac_cv_prog_RESCOMP="windres"
34370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34371 break 2
34372 fi
34373done
34374done
34375
fe0895cf
VS
34376 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34377fi
34378fi
e6cc62c6 34379RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34380if test -n "$RESCOMP"; then
e6cc62c6
VS
34381 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34382echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34383else
e6cc62c6
VS
34384 echo "$as_me:$LINENO: result: no" >&5
34385echo "${ECHO_T}no" >&6
fe0895cf
VS
34386fi
34387
34388 fi
34389 ;;
e6cc62c6 34390
fe0895cf
VS
34391 *-*-darwin* )
34392 # Extract the first word of "Rez", so it can be a program name with args.
34393set dummy Rez; ac_word=$2
e6cc62c6
VS
34394echo "$as_me:$LINENO: checking for $ac_word" >&5
34395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34396if test "${ac_cv_prog_RESCOMP+set}" = set; then
34397 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34398else
34399 if test -n "$RESCOMP"; then
34400 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34401else
e6cc62c6
VS
34402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34403for as_dir in $PATH
34404do
34405 IFS=$as_save_IFS
34406 test -z "$as_dir" && as_dir=.
34407 for ac_exec_ext in '' $ac_executable_extensions; do
34408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34409 ac_cv_prog_RESCOMP="Rez"
34410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34411 break 2
34412 fi
34413done
34414done
34415
fe0895cf
VS
34416 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34417fi
34418fi
e6cc62c6 34419RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34420if test -n "$RESCOMP"; then
e6cc62c6
VS
34421 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34422echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34423else
e6cc62c6
VS
34424 echo "$as_me:$LINENO: result: no" >&5
34425echo "${ECHO_T}no" >&6
fe0895cf
VS
34426fi
34427
34428 # Extract the first word of "SetFile", so it can be a program name with args.
34429set dummy SetFile; ac_word=$2
e6cc62c6
VS
34430echo "$as_me:$LINENO: checking for $ac_word" >&5
34431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34432if test "${ac_cv_prog_SETFILE+set}" = set; then
34433 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34434else
34435 if test -n "$SETFILE"; then
34436 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34437else
e6cc62c6
VS
34438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34439for as_dir in $PATH
34440do
34441 IFS=$as_save_IFS
34442 test -z "$as_dir" && as_dir=.
34443 for ac_exec_ext in '' $ac_executable_extensions; do
34444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34445 ac_cv_prog_SETFILE="SetFile"
34446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34447 break 2
34448 fi
34449done
34450done
34451
fe0895cf
VS
34452 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34453fi
34454fi
e6cc62c6 34455SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34456if test -n "$SETFILE"; then
e6cc62c6
VS
34457 echo "$as_me:$LINENO: result: $SETFILE" >&5
34458echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34459else
e6cc62c6
VS
34460 echo "$as_me:$LINENO: result: no" >&5
34461echo "${ECHO_T}no" >&6
fe0895cf
VS
34462fi
34463
34464 ;;
34465 esac
34466
fe0895cf
VS
34467
34468
e6cc62c6
VS
34469
34470
34471
34472
d78c94f2 34473 COND_BUILD_DEBUG="#"
6f628073 34474 if test "x$BUILD" = "xdebug" ; then
d78c94f2 34475 COND_BUILD_DEBUG=""
6f628073
VS
34476 fi
34477
d78c94f2 34478 COND_BUILD_RELEASE="#"
6f628073 34479 if test "x$BUILD" = "xrelease" ; then
d78c94f2 34480 COND_BUILD_RELEASE=""
6b9d41a5
VS
34481 fi
34482
f95cd8fa
VS
34483 COND_DEPS_TRACKING_0="#"
34484 if test "x$DEPS_TRACKING" = "x0" ; then
34485 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
34486 fi
34487
8ee2dd05
VS
34488 COND_DEPS_TRACKING_1="#"
34489 if test "x$DEPS_TRACKING" = "x1" ; then
34490 COND_DEPS_TRACKING_1=""
34491 fi
34492
6f628073
VS
34493 COND_MONOLITHIC_0="#"
34494 if test "x$MONOLITHIC" = "x0" ; then
34495 COND_MONOLITHIC_0=""
6b9d41a5
VS
34496 fi
34497
6f628073
VS
34498 COND_MONOLITHIC_0_SHARED_0="#"
34499 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
34500 COND_MONOLITHIC_0_SHARED_0=""
34501 fi
34502
34503 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
34504 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
34505 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 34506 fi
e6cc62c6 34507
250700e4
RD
34508 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
34509 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
34510 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
34511 fi
34512
8ee2dd05
VS
34513 COND_MONOLITHIC_0_SHARED_1="#"
34514 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
34515 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 34516 fi
e6cc62c6 34517
6f628073
VS
34518 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
34519 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
34520 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
34521 fi
34522
250700e4
RD
34523 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
34524 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
34525 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
34526 fi
34527
3af038c0
VS
34528 COND_MONOLITHIC_1="#"
34529 if test "x$MONOLITHIC" = "x1" ; then
34530 COND_MONOLITHIC_1=""
34531 fi
34532
6f628073
VS
34533 COND_MONOLITHIC_1_SHARED_0="#"
34534 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
34535 COND_MONOLITHIC_1_SHARED_0=""
34536 fi
34537
34538 COND_MONOLITHIC_1_SHARED_1="#"
34539 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
34540 COND_MONOLITHIC_1_SHARED_1=""
34541 fi
34542
3af038c0
VS
34543 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
34544 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
34545 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
34546 fi
34547
34548 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
34549 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
34550 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
34551 fi
34552
6f628073
VS
34553 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
34554 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
34555 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
34556 fi
34557
3af038c0
VS
34558 COND_PLATFORM_MACOSX_1="#"
34559 if test "x$PLATFORM_MACOSX" = "x1" ; then
34560 COND_PLATFORM_MACOSX_1=""
34561 fi
34562
250700e4
RD
34563 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
34564 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
34565 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
34566 fi
34567
34568 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
34569 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
34570 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
34571 fi
34572
34573 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
34574 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
34575 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
34576 fi
34577
8ee2dd05
VS
34578 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
34579 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
34580 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
34581 fi
34582
3af038c0
VS
34583 COND_PLATFORM_UNIX_1="#"
34584 if test "x$PLATFORM_UNIX" = "x1" ; then
34585 COND_PLATFORM_UNIX_1=""
34586 fi
34587
34588 COND_PLATFORM_WIN32_0="#"
34589 if test "x$PLATFORM_WIN32" = "x0" ; then
34590 COND_PLATFORM_WIN32_0=""
34591 fi
34592
34593 COND_PLATFORM_WIN32_1="#"
34594 if test "x$PLATFORM_WIN32" = "x1" ; then
34595 COND_PLATFORM_WIN32_1=""
34596 fi
34597
250700e4
RD
34598 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
34599 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34600 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
34601 fi
34602
34603 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
34604 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34605 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
34606 fi
34607
6f628073
VS
34608 COND_TOOLKIT_COCOA="#"
34609 if test "x$TOOLKIT" = "xCOCOA" ; then
34610 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
34611 fi
34612
6f628073
VS
34613 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
34614 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34615 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34616 fi
34617
6f628073
VS
34618 COND_TOOLKIT_GTK="#"
34619 if test "x$TOOLKIT" = "xGTK" ; then
34620 COND_TOOLKIT_GTK=""
f95cd8fa
VS
34621 fi
34622
6f628073
VS
34623 COND_TOOLKIT_GTK_USE_GUI_1="#"
34624 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
34625 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
34626 fi
34627
6f628073
VS
34628 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
34629 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34630 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34631 fi
34632
6f628073
VS
34633 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="#"
34634 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34635 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1=""
8ee2dd05
VS
34636 fi
34637
3af038c0
VS
34638 COND_TOOLKIT_MAC="#"
34639 if test "x$TOOLKIT" = "xMAC" ; then
34640 COND_TOOLKIT_MAC=""
34641 fi
34642
6f628073
VS
34643 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
34644 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34645 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34646 fi
34647
6f628073
VS
34648 COND_TOOLKIT_MGL="#"
34649 if test "x$TOOLKIT" = "xMGL" ; then
34650 COND_TOOLKIT_MGL=""
8ee2dd05
VS
34651 fi
34652
6f628073
VS
34653 COND_TOOLKIT_MGL_USE_GUI_1="#"
34654 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
34655 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
34656 fi
34657
6f628073
VS
34658 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="#"
34659 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34660 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1=""
8ee2dd05
VS
34661 fi
34662
6f628073
VS
34663 COND_TOOLKIT_MOTIF="#"
34664 if test "x$TOOLKIT" = "xMOTIF" ; then
34665 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
34666 fi
34667
6f628073
VS
34668 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
34669 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
34670 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 34671 fi
e6cc62c6 34672
6f628073
VS
34673 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
34674 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34675 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34676 fi
34677
6f628073
VS
34678 COND_TOOLKIT_MSW="#"
34679 if test "x$TOOLKIT" = "xMSW" ; then
34680 COND_TOOLKIT_MSW=""
8ee2dd05
VS
34681 fi
34682
6f628073
VS
34683 COND_TOOLKIT_MSW_USE_GUI_1="#"
34684 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
34685 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 34686 fi
e6cc62c6 34687
6f628073
VS
34688 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
34689 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34690 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 34691 fi
e6cc62c6 34692
6f628073
VS
34693 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="#"
34694 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34695 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1=""
f95cd8fa
VS
34696 fi
34697
6f628073
VS
34698 COND_TOOLKIT_OS2="#"
34699 if test "x$TOOLKIT" = "xOS2" ; then
34700 COND_TOOLKIT_OS2=""
9747f85d
VS
34701 fi
34702
6f628073
VS
34703 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
34704 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34705 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
f95cd8fa
VS
34706 fi
34707
6f628073
VS
34708 COND_TOOLKIT_X11="#"
34709 if test "x$TOOLKIT" = "xX11" ; then
34710 COND_TOOLKIT_X11=""
9747f85d
VS
34711 fi
34712
6f628073
VS
34713 COND_TOOLKIT_X11_USE_GUI_1="#"
34714 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
34715 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
34716 fi
34717
8ee2dd05
VS
34718 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="#"
34719 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34720 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1=""
f95cd8fa
VS
34721 fi
34722
3af038c0
VS
34723 COND_UNICODE_1="#"
34724 if test "x$UNICODE" = "x1" ; then
34725 COND_UNICODE_1=""
34726 fi
34727
34728 COND_USE_GUI_0="#"
34729 if test "x$USE_GUI" = "x0" ; then
34730 COND_USE_GUI_0=""
34731 fi
34732
34733 COND_USE_GUI_1="#"
34734 if test "x$USE_GUI" = "x1" ; then
34735 COND_USE_GUI_1=""
34736 fi
34737
e6cc62c6 34738 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
34739 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34740 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 34741 fi
e6cc62c6
VS
34742
34743 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
34744 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34745 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
34746 fi
34747
6f628073
VS
34748 COND_USE_SOSYMLINKS_1="#"
34749 if test "x$USE_SOSYMLINKS" = "x1" ; then
34750 COND_USE_SOSYMLINKS_1=""
b625909c
VS
34751 fi
34752
6f628073
VS
34753 COND_USE_SOVERLINUX_1="#"
34754 if test "x$USE_SOVERLINUX" = "x1" ; then
34755 COND_USE_SOVERLINUX_1=""
b625909c
VS
34756 fi
34757
6f628073
VS
34758 COND_USE_SOVERSION_0="#"
34759 if test "x$USE_SOVERSION" = "x0" ; then
34760 COND_USE_SOVERSION_0=""
fddeb06b 34761 fi
fe0895cf 34762
6f628073
VS
34763 COND_USE_SOVERSOLARIS_1="#"
34764 if test "x$USE_SOVERSOLARIS" = "x1" ; then
34765 COND_USE_SOVERSOLARIS_1=""
fddeb06b 34766 fi
fe0895cf 34767
3af038c0
VS
34768 COND_WXUNIV_1="#"
34769 if test "x$WXUNIV" = "x1" ; then
34770 COND_WXUNIV_1=""
34771 fi
34772
02980527
VS
34773 COND_WXUSE_LIBJPEG_BUILTIN="#"
34774 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
34775 COND_WXUSE_LIBJPEG_BUILTIN=""
34776 fi
34777
34778 COND_WXUSE_LIBPNG_BUILTIN="#"
34779 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
34780 COND_WXUSE_LIBPNG_BUILTIN=""
34781 fi
34782
34783 COND_WXUSE_LIBTIFF_BUILTIN="#"
34784 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34785 COND_WXUSE_LIBTIFF_BUILTIN=""
34786 fi
34787
34788 COND_WXUSE_ODBC_BUILTIN="#"
34789 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
34790 COND_WXUSE_ODBC_BUILTIN=""
34791 fi
34792
34793 COND_WXUSE_REGEX_BUILTIN="#"
34794 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
34795 COND_WXUSE_REGEX_BUILTIN=""
34796 fi
34797
34798 COND_WXUSE_ZLIB_BUILTIN="#"
34799 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
34800 COND_WXUSE_ZLIB_BUILTIN=""
34801 fi
34802
1772d20c
VZ
34803 COND_PLATFORM_MAC_1="#"
34804 if test "x$PLATFORM_MAC" = "x1" ; then
34805 COND_PLATFORM_MAC_1=""
34806 fi
34807
34808 COND_SHARED_1="#"
34809 if test "x$SHARED" = "x1" ; then
34810 COND_SHARED_1=""
34811 fi
34812
34813 COND_SHARED_0="#"
34814 if test "x$SHARED" = "x0" ; then
34815 COND_SHARED_0=""
34816 fi
34817
672abd7a
VS
34818 COND_WXUSE_EXPAT_BUILTIN="#"
34819 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
34820 COND_WXUSE_EXPAT_BUILTIN=""
34821 fi
34822
fe0895cf 34823
fe0895cf 34824
fe0895cf 34825
fe0895cf
VS
34826
34827
fddeb06b 34828SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
fe0895cf 34923
f0290fca
VS
34924
34925
e6cc62c6
VS
34926
34927
34928
34929echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34930echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34931set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34932if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34933 echo $ECHO_N "(cached) $ECHO_C" >&6
34934else
34935 cat >conftest.make <<\_ACEOF
34936all:
34937 @echo 'ac_maketemp="$(MAKE)"'
34938_ACEOF
34939# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34940eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34941if test -n "$ac_maketemp"; then
34942 eval ac_cv_prog_make_${ac_make}_set=yes
34943else
34944 eval ac_cv_prog_make_${ac_make}_set=no
34945fi
34946rm -f conftest.make
34947fi
34948if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34949 echo "$as_me:$LINENO: result: yes" >&5
34950echo "${ECHO_T}yes" >&6
34951 SET_MAKE=
34952else
34953 echo "$as_me:$LINENO: result: no" >&5
34954echo "${ECHO_T}no" >&6
34955 SET_MAKE="MAKE=${MAKE-make}"
34956fi
34957
34958
34959if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
34960 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
34961fi
34962
34963 ac_config_headers="$ac_config_headers setup.h"
34964
34965
81345eef 34966 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
34967
34968
34969 ac_config_commands="$ac_config_commands default"
34970
34971
9de9b8f0 34972
6c3e36af
VZ
34973if test "$wxUSE_GUI" = "yes"; then
34974 SUBDIRS="samples demos utils contrib"
34975else SUBDIRS="samples utils"
34976fi
e6cc62c6 34977
166263e6 34978for subdir in `echo $SUBDIRS`; do
9747f85d 34979 if test -d ${srcdir}/${subdir} ; then
6c3e36af 34980 if test "$wxUSE_GUI" = "yes"; then
166263e6
VZ
34981 if test ${subdir} = "samples"; then
34982 for sample in `echo $SAMPLES_SUBDIRS`; do
34983 if test -d $srcdir/samples/$sample; then
34984 makefiles="samples/$sample/Makefile.in $makefiles"
34985 fi
34986 done
34987 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
34988 fi
6c3e36af
VZ
34989 else if test ${subdir} = "samples"; then
34990 makefiles="samples/console/Makefile.in"
34991 else makefiles="utils/HelpGen/Makefile.in \
34992 utils/HelpGen/src/Makefile.in \
34993 utils/makegen/Makefile.in"
34994 fi
34995 fi
34996
9747f85d
VS
34997 for mkin in $makefiles ; do
34998 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
34999 ac_config_files="$ac_config_files $mk"
e6cc62c6 35000
9747f85d
VS
35001 done
35002 fi
35003done
e6cc62c6 35004
9de9b8f0 35005
e6cc62c6
VS
35006cat >confcache <<\_ACEOF
35007# This file is a shell script that caches the results of configure
35008# tests run on this system so they can be shared between configure
35009# scripts and configure runs, see configure's option --config-cache.
35010# It is not useful on other systems. If it contains results you don't
35011# want to keep, you may remove or edit it.
35012#
35013# config.status only pays attention to the cache file if you give it
35014# the --recheck option to rerun configure.
35015#
35016# `ac_cv_env_foo' variables (set or unset) will be overridden when
35017# loading this file, other *unset* `ac_cv_foo' will be assigned the
35018# following values.
35019
35020_ACEOF
35021
35022# The following way of writing the cache mishandles newlines in values,
35023# but we know of no workaround that is simple, portable, and efficient.
35024# So, don't put newlines in cache variables' values.
35025# Ultrix sh set writes to stderr and can't be redirected directly,
35026# and sets the high bit in the cache file unless we assign to the vars.
35027{
35028 (set) 2>&1 |
35029 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35030 *ac_space=\ *)
35031 # `set' does not quote correctly, so add quotes (double-quote
35032 # substitution turns \\\\ into \\, and sed turns \\ into \).
35033 sed -n \
35034 "s/'/'\\\\''/g;
35035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35036 ;;
35037 *)
35038 # `set' quotes correctly as required by POSIX, so do not add quotes.
35039 sed -n \
35040 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35041 ;;
35042 esac;
35043} |
35044 sed '
35045 t clear
35046 : clear
35047 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35048 t end
35049 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35050 : end' >>confcache
35051if diff $cache_file confcache >/dev/null 2>&1; then :; else
35052 if test -w $cache_file; then
35053 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35054 cat confcache >$cache_file
35055 else
35056 echo "not updating unwritable cache $cache_file"
35057 fi
35058fi
35059rm -f confcache
35060
35061test "x$prefix" = xNONE && prefix=$ac_default_prefix
35062# Let make expand exec_prefix.
35063test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35064
35065# VPATH may cause trouble with some makes, so we remove $(srcdir),
35066# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35067# trailing colons and then remove the whole line if VPATH becomes empty
35068# (actually we leave an empty line to preserve line numbers).
35069if test "x$srcdir" = x.; then
35070 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35071s/:*\$(srcdir):*/:/;
35072s/:*\${srcdir}:*/:/;
35073s/:*@srcdir@:*/:/;
35074s/^\([^=]*=[ ]*\):*/\1/;
35075s/:*$//;
35076s/^[^=]*=[ ]*$//;
35077}'
35078fi
35079
35080DEFS=-DHAVE_CONFIG_H
35081
35082ac_libobjs=
35083ac_ltlibobjs=
35084for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35085 # 1. Remove the extension, and $U if already installed.
35086 ac_i=`echo "$ac_i" |
35087 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35088 # 2. Add them.
35089 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35090 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35091done
35092LIBOBJS=$ac_libobjs
35093
35094LTLIBOBJS=$ac_ltlibobjs
35095
35096
35097
35098: ${CONFIG_STATUS=./config.status}
35099ac_clean_files_save=$ac_clean_files
35100ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35101{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35102echo "$as_me: creating $CONFIG_STATUS" >&6;}
35103cat >$CONFIG_STATUS <<_ACEOF
35104#! $SHELL
35105# Generated by $as_me.
35106# Run this file to recreate the current configuration.
35107# Compiler output produced by configure, useful for debugging
35108# configure, is in config.log if it exists.
35109
35110debug=false
35111ac_cs_recheck=false
35112ac_cs_silent=false
35113SHELL=\${CONFIG_SHELL-$SHELL}
35114_ACEOF
35115
35116cat >>$CONFIG_STATUS <<\_ACEOF
35117## --------------------- ##
35118## M4sh Initialization. ##
35119## --------------------- ##
35120
35121# Be Bourne compatible
35122if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35123 emulate sh
35124 NULLCMD=:
35125 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35126 # is contrary to our usage. Disable this feature.
35127 alias -g '${1+"$@"}'='"$@"'
35128elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35129 set -o posix
35130fi
35131
35132# Support unset when possible.
35133if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35134 as_unset=unset
35135else
35136 as_unset=false
35137fi
35138
35139
35140# Work around bugs in pre-3.0 UWIN ksh.
35141$as_unset ENV MAIL MAILPATH
35142PS1='$ '
35143PS2='> '
35144PS4='+ '
35145
35146# NLS nuisances.
35147for as_var in \
35148 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35149 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35150 LC_TELEPHONE LC_TIME
35151do
35152 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35153 eval $as_var=C; export $as_var
35154 else
35155 $as_unset $as_var
35156 fi
35157done
35158
35159# Required to use basename.
35160if expr a : '\(a\)' >/dev/null 2>&1; then
35161 as_expr=expr
35162else
35163 as_expr=false
35164fi
35165
35166if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35167 as_basename=basename
35168else
35169 as_basename=false
35170fi
35171
35172
35173# Name of the executable.
35174as_me=`$as_basename "$0" ||
35175$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35176 X"$0" : 'X\(//\)$' \| \
35177 X"$0" : 'X\(/\)$' \| \
35178 . : '\(.\)' 2>/dev/null ||
35179echo X/"$0" |
35180 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35181 /^X\/\(\/\/\)$/{ s//\1/; q; }
35182 /^X\/\(\/\).*/{ s//\1/; q; }
35183 s/.*/./; q'`
35184
35185
35186# PATH needs CR, and LINENO needs CR and PATH.
35187# Avoid depending upon Character Ranges.
35188as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35189as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35190as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35191as_cr_digits='0123456789'
35192as_cr_alnum=$as_cr_Letters$as_cr_digits
35193
35194# The user is always right.
35195if test "${PATH_SEPARATOR+set}" != set; then
35196 echo "#! /bin/sh" >conf$$.sh
35197 echo "exit 0" >>conf$$.sh
35198 chmod +x conf$$.sh
35199 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35200 PATH_SEPARATOR=';'
35201 else
35202 PATH_SEPARATOR=:
35203 fi
35204 rm -f conf$$.sh
35205fi
35206
35207
35208 as_lineno_1=$LINENO
35209 as_lineno_2=$LINENO
35210 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35211 test "x$as_lineno_1" != "x$as_lineno_2" &&
35212 test "x$as_lineno_3" = "x$as_lineno_2" || {
35213 # Find who we are. Look in the path if we contain no path at all
35214 # relative or not.
35215 case $0 in
35216 *[\\/]* ) as_myself=$0 ;;
35217 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35218for as_dir in $PATH
35219do
35220 IFS=$as_save_IFS
35221 test -z "$as_dir" && as_dir=.
35222 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35223done
35224
35225 ;;
35226 esac
35227 # We did not find ourselves, most probably we were run as `sh COMMAND'
35228 # in which case we are not to be found in the path.
35229 if test "x$as_myself" = x; then
35230 as_myself=$0
35231 fi
35232 if test ! -f "$as_myself"; then
35233 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35234echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35235 { (exit 1); exit 1; }; }
35236 fi
35237 case $CONFIG_SHELL in
35238 '')
35239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35240for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35241do
35242 IFS=$as_save_IFS
35243 test -z "$as_dir" && as_dir=.
35244 for as_base in sh bash ksh sh5; do
35245 case $as_dir in
35246 /*)
35247 if ("$as_dir/$as_base" -c '
35248 as_lineno_1=$LINENO
35249 as_lineno_2=$LINENO
35250 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35251 test "x$as_lineno_1" != "x$as_lineno_2" &&
35252 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
35253 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35254 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35255 CONFIG_SHELL=$as_dir/$as_base
35256 export CONFIG_SHELL
35257 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35258 fi;;
35259 esac
35260 done
35261done
35262;;
35263 esac
35264
35265 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35266 # uniformly replaced by the line number. The first 'sed' inserts a
35267 # line-number line before each line; the second 'sed' does the real
35268 # work. The second script uses 'N' to pair each line-number line
35269 # with the numbered line, and appends trailing '-' during
35270 # substitution so that $LINENO is not a special case at line end.
35271 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35272 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35273 sed '=' <$as_myself |
35274 sed '
35275 N
35276 s,$,-,
35277 : loop
35278 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35279 t loop
35280 s,-$,,
35281 s,^['$as_cr_digits']*\n,,
35282 ' >$as_me.lineno &&
35283 chmod +x $as_me.lineno ||
35284 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35285echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35286 { (exit 1); exit 1; }; }
35287
35288 # Don't try to exec as it changes $[0], causing all sort of problems
35289 # (the dirname of $[0] is not the place where we might find the
35290 # original and so on. Autoconf is especially sensible to this).
35291 . ./$as_me.lineno
35292 # Exit status is that of the last command.
35293 exit
35294}
35295
35296
35297case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35298 *c*,-n*) ECHO_N= ECHO_C='
35299' ECHO_T=' ' ;;
35300 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35301 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
35302esac
35303
35304if expr a : '\(a\)' >/dev/null 2>&1; then
35305 as_expr=expr
35306else
35307 as_expr=false
35308fi
35309
35310rm -f conf$$ conf$$.exe conf$$.file
35311echo >conf$$.file
35312if ln -s conf$$.file conf$$ 2>/dev/null; then
35313 # We could just check for DJGPP; but this test a) works b) is more generic
35314 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35315 if test -f conf$$.exe; then
35316 # Don't use ln at all; we don't have any links
35317 as_ln_s='cp -p'
35318 else
35319 as_ln_s='ln -s'
35320 fi
35321elif ln conf$$.file conf$$ 2>/dev/null; then
35322 as_ln_s=ln
35323else
35324 as_ln_s='cp -p'
35325fi
35326rm -f conf$$ conf$$.exe conf$$.file
35327
35328if mkdir -p . 2>/dev/null; then
35329 as_mkdir_p=:
35330else
35331 as_mkdir_p=false
35332fi
35333
35334as_executable_p="test -f"
35335
35336# Sed expression to map a string onto a valid CPP name.
35337as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35338
35339# Sed expression to map a string onto a valid variable name.
35340as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35341
35342
35343# IFS
35344# We need space, tab and new line, in precisely that order.
35345as_nl='
35346'
35347IFS=" $as_nl"
35348
35349# CDPATH.
35350$as_unset CDPATH
35351
35352exec 6>&1
35353
35354# Open the log real soon, to keep \$[0] and so on meaningful, and to
35355# report actual input values of CONFIG_FILES etc. instead of their
35356# values after options handling. Logging --version etc. is OK.
35357exec 5>>config.log
35358{
35359 echo
35360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35361## Running $as_me. ##
35362_ASBOX
35363} >&5
35364cat >&5 <<_CSEOF
35365
35366This file was extended by wxWindows $as_me 2.5.0, which was
35367generated by GNU Autoconf 2.57. Invocation command line was
35368
35369 CONFIG_FILES = $CONFIG_FILES
35370 CONFIG_HEADERS = $CONFIG_HEADERS
35371 CONFIG_LINKS = $CONFIG_LINKS
35372 CONFIG_COMMANDS = $CONFIG_COMMANDS
35373 $ $0 $@
35374
35375_CSEOF
35376echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35377echo >&5
35378_ACEOF
35379
35380# Files that config.status was made for.
35381if test -n "$ac_config_files"; then
35382 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35383fi
35384
35385if test -n "$ac_config_headers"; then
35386 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35387fi
35388
35389if test -n "$ac_config_links"; then
35390 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35391fi
35392
35393if test -n "$ac_config_commands"; then
35394 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35395fi
35396
35397cat >>$CONFIG_STATUS <<\_ACEOF
35398
35399ac_cs_usage="\
35400\`$as_me' instantiates files from templates according to the
35401current configuration.
35402
35403Usage: $0 [OPTIONS] [FILE]...
35404
35405 -h, --help print this help, then exit
35406 -V, --version print version number, then exit
35407 -q, --quiet do not print progress messages
35408 -d, --debug don't remove temporary files
35409 --recheck update $as_me by reconfiguring in the same conditions
35410 --file=FILE[:TEMPLATE]
35411 instantiate the configuration file FILE
35412 --header=FILE[:TEMPLATE]
35413 instantiate the configuration header FILE
35414
35415Configuration files:
35416$config_files
35417
35418Configuration headers:
35419$config_headers
35420
35421Configuration commands:
35422$config_commands
35423
35424Report bugs to <bug-autoconf@gnu.org>."
35425_ACEOF
35426
35427cat >>$CONFIG_STATUS <<_ACEOF
35428ac_cs_version="\\
35429wxWindows config.status 2.5.0
35430configured by $0, generated by GNU Autoconf 2.57,
35431 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35432
35433Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35434Free Software Foundation, Inc.
35435This config.status script is free software; the Free Software Foundation
35436gives unlimited permission to copy, distribute and modify it."
35437srcdir=$srcdir
35438INSTALL="$INSTALL"
35439_ACEOF
35440
35441cat >>$CONFIG_STATUS <<\_ACEOF
35442# If no file are specified by the user, then we need to provide default
35443# value. By we need to know if files were specified by the user.
35444ac_need_defaults=:
35445while test $# != 0
35446do
35447 case $1 in
35448 --*=*)
35449 ac_option=`expr "x$1" : 'x\([^=]*\)='`
35450 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35451 ac_shift=:
35452 ;;
35453 -*)
35454 ac_option=$1
35455 ac_optarg=$2
35456 ac_shift=shift
35457 ;;
35458 *) # This is not an option, so the user has probably given explicit
35459 # arguments.
35460 ac_option=$1
35461 ac_need_defaults=false;;
35462 esac
35463
35464 case $ac_option in
35465 # Handling of the options.
35466_ACEOF
35467cat >>$CONFIG_STATUS <<\_ACEOF
35468 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35469 ac_cs_recheck=: ;;
35470 --version | --vers* | -V )
35471 echo "$ac_cs_version"; exit 0 ;;
35472 --he | --h)
35473 # Conflict between --help and --header
35474 { { echo "$as_me:$LINENO: error: ambiguous option: $1
35475Try \`$0 --help' for more information." >&5
35476echo "$as_me: error: ambiguous option: $1
35477Try \`$0 --help' for more information." >&2;}
35478 { (exit 1); exit 1; }; };;
35479 --help | --hel | -h )
35480 echo "$ac_cs_usage"; exit 0 ;;
35481 --debug | --d* | -d )
35482 debug=: ;;
35483 --file | --fil | --fi | --f )
35484 $ac_shift
35485 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35486 ac_need_defaults=false;;
35487 --header | --heade | --head | --hea )
35488 $ac_shift
35489 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35490 ac_need_defaults=false;;
35491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35492 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35493 ac_cs_silent=: ;;
35494
35495 # This is an error.
35496 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35497Try \`$0 --help' for more information." >&5
35498echo "$as_me: error: unrecognized option: $1
35499Try \`$0 --help' for more information." >&2;}
35500 { (exit 1); exit 1; }; } ;;
35501
35502 *) ac_config_targets="$ac_config_targets $1" ;;
35503
35504 esac
35505 shift
35506done
35507
35508ac_configure_extra_args=
35509
35510if $ac_cs_silent; then
35511 exec 6>/dev/null
35512 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
35513fi
35514
e6cc62c6
VS
35515_ACEOF
35516cat >>$CONFIG_STATUS <<_ACEOF
35517if \$ac_cs_recheck; then
35518 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35519 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
35520fi
35521
e6cc62c6 35522_ACEOF
fe0895cf 35523
e6cc62c6 35524cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 35525#
e6cc62c6 35526# INIT-COMMANDS section.
10f2d63a 35527#
10f2d63a 35528
a0b9e27f 35529
e6cc62c6
VS
35530 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35531 LN_S="${LN_S}"
10f2d63a 35532
10f2d63a 35533
10f2d63a 35534
e6cc62c6 35535_ACEOF
8284b0c5 35536
52127426 35537
247f5006 35538
e6cc62c6
VS
35539cat >>$CONFIG_STATUS <<\_ACEOF
35540for ac_config_target in $ac_config_targets
247f5006 35541do
e6cc62c6
VS
35542 case "$ac_config_target" in
35543 # Handling of arguments.
81345eef
VZ
35544 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35545 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35546 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 35547 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
35548 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35549 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35550 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35551echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35552 { (exit 1); exit 1; }; };;
247f5006
VZ
35553 esac
35554done
35555
e6cc62c6
VS
35556# If the user did not use the arguments to specify the items to instantiate,
35557# then the envvar interface is used. Set only those that are not.
35558# We use the long form for the default assignment because of an extremely
35559# bizarre bug on SunOS 4.1.3.
35560if $ac_need_defaults; then
35561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35564fi
35565
35566# Have a temporary directory for convenience. Make it in the build tree
35567# simply because there is no reason to put it here, and in addition,
35568# creating and moving files from /tmp can sometimes cause problems.
35569# Create a temporary directory, and hook for its removal unless debugging.
35570$debug ||
35571{
35572 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35573 trap '{ (exit 1); exit 1; }' 1 2 13 15
35574}
247f5006 35575
e6cc62c6 35576# Create a (secure) tmp directory for tmp files.
247f5006 35577
e6cc62c6
VS
35578{
35579 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35580 test -n "$tmp" && test -d "$tmp"
35581} ||
35582{
35583 tmp=./confstat$$-$RANDOM
35584 (umask 077 && mkdir $tmp)
35585} ||
35586{
35587 echo "$me: cannot create a temporary directory in ." >&2
35588 { (exit 1); exit 1; }
35589}
35590
35591_ACEOF
35592
35593cat >>$CONFIG_STATUS <<_ACEOF
35594
35595#
35596# CONFIG_FILES section.
35597#
247f5006 35598
e6cc62c6
VS
35599# No need to generate the scripts if there are no CONFIG_FILES.
35600# This happens for instance when ./config.status config.h
35601if test -n "\$CONFIG_FILES"; then
35602 # Protect against being on the right side of a sed subst in config.status.
35603 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35604 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35605s,@SHELL@,$SHELL,;t t
35606s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35607s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35608s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35609s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35610s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35611s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35612s,@exec_prefix@,$exec_prefix,;t t
35613s,@prefix@,$prefix,;t t
35614s,@program_transform_name@,$program_transform_name,;t t
35615s,@bindir@,$bindir,;t t
35616s,@sbindir@,$sbindir,;t t
35617s,@libexecdir@,$libexecdir,;t t
35618s,@datadir@,$datadir,;t t
35619s,@sysconfdir@,$sysconfdir,;t t
35620s,@sharedstatedir@,$sharedstatedir,;t t
35621s,@localstatedir@,$localstatedir,;t t
35622s,@libdir@,$libdir,;t t
35623s,@includedir@,$includedir,;t t
35624s,@oldincludedir@,$oldincludedir,;t t
35625s,@infodir@,$infodir,;t t
35626s,@mandir@,$mandir,;t t
35627s,@build_alias@,$build_alias,;t t
35628s,@host_alias@,$host_alias,;t t
35629s,@target_alias@,$target_alias,;t t
35630s,@DEFS@,$DEFS,;t t
35631s,@ECHO_C@,$ECHO_C,;t t
35632s,@ECHO_N@,$ECHO_N,;t t
35633s,@ECHO_T@,$ECHO_T,;t t
35634s,@LIBS@,$LIBS,;t t
35635s,@build@,$build,;t t
35636s,@build_cpu@,$build_cpu,;t t
35637s,@build_vendor@,$build_vendor,;t t
35638s,@build_os@,$build_os,;t t
35639s,@host@,$host,;t t
35640s,@host_cpu@,$host_cpu,;t t
35641s,@host_vendor@,$host_vendor,;t t
35642s,@host_os@,$host_os,;t t
35643s,@target@,$target,;t t
35644s,@target_cpu@,$target_cpu,;t t
35645s,@target_vendor@,$target_vendor,;t t
35646s,@target_os@,$target_os,;t t
35647s,@CC@,$CC,;t t
35648s,@CFLAGS@,$CFLAGS,;t t
35649s,@LDFLAGS@,$LDFLAGS,;t t
35650s,@CPPFLAGS@,$CPPFLAGS,;t t
35651s,@ac_ct_CC@,$ac_ct_CC,;t t
35652s,@EXEEXT@,$EXEEXT,;t t
35653s,@OBJEXT@,$OBJEXT,;t t
35654s,@CPP@,$CPP,;t t
35655s,@EGREP@,$EGREP,;t t
35656s,@CXX@,$CXX,;t t
35657s,@CXXFLAGS@,$CXXFLAGS,;t t
35658s,@ac_ct_CXX@,$ac_ct_CXX,;t t
35659s,@RANLIB@,$RANLIB,;t t
35660s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35661s,@AR@,$AR,;t t
35662s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35663s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35664s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35665s,@STRIP@,$STRIP,;t t
35666s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
35667s,@YACC@,$YACC,;t t
35668s,@LEX@,$LEX,;t t
35669s,@LEXLIB@,$LEXLIB,;t t
35670s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35671s,@LN_S@,$LN_S,;t t
35672s,@CXXCPP@,$CXXCPP,;t t
672abd7a 35673s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
35674s,@PKG_CONFIG@,$PKG_CONFIG,;t t
35675s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
35676s,@GTK_LIBS@,$GTK_LIBS,;t t
35677s,@GTK_CONFIG@,$GTK_CONFIG,;t t
35678s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
35679s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
35680s,@X_CFLAGS@,$X_CFLAGS,;t t
35681s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35682s,@X_LIBS@,$X_LIBS,;t t
35683s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35684s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
35685s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
35686s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
35687s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
35688s,@RESCOMP@,$RESCOMP,;t t
35689s,@DEREZ@,$DEREZ,;t t
35690s,@SETFILE@,$SETFILE,;t t
35691s,@LIBICONV@,$LIBICONV,;t t
35692s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
35693s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 35694s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
35695s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
35696s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
35697s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
35698s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
35699s,@VENDOR@,$VENDOR,;t t
35700s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
35701s,@WXUNIV@,$WXUNIV,;t t
35702s,@MONOLITHIC@,$MONOLITHIC,;t t
35703s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 35704s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
c74dc163 35705s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 35706s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
35707s,@UNICODE@,$UNICODE,;t t
35708s,@BUILD@,$BUILD,;t t
35709s,@SHARED@,$SHARED,;t t
35710s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
35711s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
35712s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
ea66c762 35713s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
35714s,@SET_MAKE@,$SET_MAKE,;t t
35715s,@MAKE_SET@,$MAKE_SET,;t t
35716s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 35717s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
35718s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
35719s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
35720s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
35721s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
35722s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
35723s,@SO_SUFFIX@,$SO_SUFFIX,;t t
35724s,@DLLPREFIX@,$DLLPREFIX,;t t
dc838d98 35725s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
35726s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
35727s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
35728s,@PIC_FLAG@,$PIC_FLAG,;t t
35729s,@USE_SOVERSION@,$USE_SOVERSION,;t t
35730s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
35731s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
35732s,@USE_MACVERSION@,$USE_MACVERSION,;t t
35733s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
35734s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 35735s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
d78c94f2
VS
35736s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
35737s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
f95cd8fa 35738s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 35739s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
6f628073 35740s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
35741s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
35742s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
250700e4 35743s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
8ee2dd05 35744s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 35745s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
250700e4 35746s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
3af038c0 35747s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
35748s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
35749s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
35750s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
35751s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 35752s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 35753s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
35754s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
35755s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
35756s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 35757s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
3af038c0
VS
35758s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
35759s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
35760s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
250700e4
RD
35761s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
35762s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
35763s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
35764s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
35765s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
35766s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05
VS
35767s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
35768s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1,;t t
3af038c0 35769s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
6f628073
VS
35770s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
35771s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
35772s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
35773s,@COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1,;t t
35774s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
35775s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
35776s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 35777s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
35778s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
35779s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 35780s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1,;t t
6f628073
VS
35781s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
35782s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
35783s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
35784s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
8ee2dd05 35785s,@COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1,;t t
3af038c0
VS
35786s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
35787s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
35788s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
35789s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
35790s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
6f628073
VS
35791s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
35792s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
35793s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
35794s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0
VS
35795s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
35796s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
35797s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
35798s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
35799s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
35800s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
35801s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
1772d20c
VZ
35802s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
35803s,@COND_SHARED_1@,$COND_SHARED_1,;t t
35804s,@COND_SHARED_0@,$COND_SHARED_0,;t t
672abd7a 35805s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
e6cc62c6
VS
35806s,@LEX_STEM@,$LEX_STEM,;t t
35807s,@PATH_IFS@,$PATH_IFS,;t t
35808s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
35809s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
35810s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
35811s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
35812s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
35813s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t
35814s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
35815s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
35816s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
35817s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
35818s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
35819s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
35820s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
35821s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
35822s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
35823s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
35824s,@WX_ALL@,$WX_ALL,;t t
35825s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
35826s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
35827s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
35828s,@STATIC_FLAG@,$STATIC_FLAG,;t t
35829s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
35830s,@USE_GUI@,$USE_GUI,;t t
35831s,@AFMINSTALL@,$AFMINSTALL,;t t
35832s,@WIN32INSTALL@,$WIN32INSTALL,;t t
35833s,@TOOLKIT@,$TOOLKIT,;t t
35834s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
35835s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
35836s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
35837s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
35838s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
35839s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
35840s,@cross_compiling@,$cross_compiling,;t t
35841s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
35842s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
35843s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
35844s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
35845s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
35846s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
35847s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
35848s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
35849s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
35850s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
35851s,@ALL_HEADERS@,$ALL_HEADERS,;t t
35852s,@ALL_SOURCES@,$ALL_SOURCES,;t t
35853s,@GUIDIST@,$GUIDIST,;t t
35854s,@PORT_FILES@,$PORT_FILES,;t t
35855s,@DISTDIR@,$DISTDIR,;t t
35856s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
35857s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
35858s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
35859s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
35860s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
35861s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
35862s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
35863s,@RESFLAGS@,$RESFLAGS,;t t
35864s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
35865s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
35866s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
35867s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
35868s,@LIBWXMACRES@,$LIBWXMACRES,;t t
35869s,@MACRESCOMP@,$MACRESCOMP,;t t
35870s,@MACSETFILE@,$MACSETFILE,;t t
35871s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
35872s,@GCC@,$GCC,;t t
35873s,@DLLTOOL@,$DLLTOOL,;t t
35874s,@AS@,$AS,;t t
35875s,@NM@,$NM,;t t
35876s,@LD@,$LD,;t t
35877s,@MAKEINFO@,$MAKEINFO,;t t
35878s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
35879s,@ESD_LINK@,$ESD_LINK,;t t
35880s,@LIBOBJS@,$LIBOBJS,;t t
35881s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
35882CEOF
35883
e6cc62c6
VS
35884_ACEOF
35885
35886 cat >>$CONFIG_STATUS <<\_ACEOF
35887 # Split the substitutions into bite-sized pieces for seds with
35888 # small command number limits, like on Digital OSF/1 and HP-UX.
35889 ac_max_sed_lines=48
35890 ac_sed_frag=1 # Number of current file.
35891 ac_beg=1 # First line for current file.
35892 ac_end=$ac_max_sed_lines # Line after last line for current file.
35893 ac_more_lines=:
35894 ac_sed_cmds=
35895 while $ac_more_lines; do
35896 if test $ac_beg -gt 1; then
35897 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 35898 else
e6cc62c6
VS
35899 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35900 fi
35901 if test ! -s $tmp/subs.frag; then
35902 ac_more_lines=false
35903 else
35904 # The purpose of the label and of the branching condition is to
35905 # speed up the sed processing (if there are no `@' at all, there
35906 # is no need to browse any of the substitutions).
35907 # These are the two extra sed commands mentioned above.
35908 (echo ':t
35909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35910 if test -z "$ac_sed_cmds"; then
35911 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35912 else
35913 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35914 fi
35915 ac_sed_frag=`expr $ac_sed_frag + 1`
35916 ac_beg=$ac_end
35917 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 35918 fi
e6cc62c6
VS
35919 done
35920 if test -z "$ac_sed_cmds"; then
35921 ac_sed_cmds=cat
10f2d63a 35922 fi
e6cc62c6 35923fi # test -n "$CONFIG_FILES"
10f2d63a 35924
e6cc62c6
VS
35925_ACEOF
35926cat >>$CONFIG_STATUS <<\_ACEOF
35927for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 35928 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
35929 case $ac_file in
35930 - | *:- | *:-:* ) # input from stdin
35931 cat >$tmp/stdin
35932 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35933 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35934 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35936 * ) ac_file_in=$ac_file.in ;;
10f2d63a 35937 esac
247f5006 35938
e6cc62c6
VS
35939 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35940 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35941$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35942 X"$ac_file" : 'X\(//\)[^/]' \| \
35943 X"$ac_file" : 'X\(//\)$' \| \
35944 X"$ac_file" : 'X\(/\)' \| \
35945 . : '\(.\)' 2>/dev/null ||
35946echo X"$ac_file" |
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 { if $as_mkdir_p; then
35953 mkdir -p "$ac_dir"
a0b9e27f 35954 else
e6cc62c6
VS
35955 as_dir="$ac_dir"
35956 as_dirs=
35957 while test ! -d "$as_dir"; do
35958 as_dirs="$as_dir $as_dirs"
35959 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35961 X"$as_dir" : 'X\(//\)[^/]' \| \
35962 X"$as_dir" : 'X\(//\)$' \| \
35963 X"$as_dir" : 'X\(/\)' \| \
35964 . : '\(.\)' 2>/dev/null ||
35965echo X"$as_dir" |
35966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35968 /^X\(\/\/\)$/{ s//\1/; q; }
35969 /^X\(\/\).*/{ s//\1/; q; }
35970 s/.*/./; q'`
35971 done
35972 test ! -n "$as_dirs" || mkdir $as_dirs
35973 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35974echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35975 { (exit 1); exit 1; }; }; }
35976
35977 ac_builddir=.
35978
35979if test "$ac_dir" != .; then
35980 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35981 # A "../" for each directory in $ac_dir_suffix.
35982 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35983else
35984 ac_dir_suffix= ac_top_builddir=
35985fi
247f5006 35986
e6cc62c6
VS
35987case $srcdir in
35988 .) # No --srcdir option. We are building in place.
35989 ac_srcdir=.
35990 if test -z "$ac_top_builddir"; then
35991 ac_top_srcdir=.
35992 else
35993 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35994 fi ;;
35995 [\\/]* | ?:[\\/]* ) # Absolute path.
35996 ac_srcdir=$srcdir$ac_dir_suffix;
35997 ac_top_srcdir=$srcdir ;;
247f5006 35998 *) # Relative path.
e6cc62c6
VS
35999 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36000 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36001esac
36002# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36003# absolute.
36004ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36005ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36006ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36007ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36008
247f5006 36009
e6cc62c6
VS
36010 case $INSTALL in
36011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36012 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36013 esac
247f5006 36014
e6cc62c6
VS
36015 if test x"$ac_file" != x-; then
36016 { echo "$as_me:$LINENO: creating $ac_file" >&5
36017echo "$as_me: creating $ac_file" >&6;}
36018 rm -f "$ac_file"
36019 fi
36020 # Let's still pretend it is `configure' which instantiates (i.e., don't
36021 # use $as_me), people would be surprised to read:
36022 # /* config.h. Generated by config.status. */
36023 if test x"$ac_file" = x-; then
36024 configure_input=
36025 else
36026 configure_input="$ac_file. "
36027 fi
36028 configure_input=$configure_input"Generated from `echo $ac_file_in |
36029 sed 's,.*/,,'` by configure."
36030
36031 # First look for the input files in the build tree, otherwise in the
36032 # src tree.
36033 ac_file_inputs=`IFS=:
36034 for f in $ac_file_in; do
36035 case $f in
36036 -) echo $tmp/stdin ;;
36037 [\\/$]*)
36038 # Absolute (can't be DOS-style, as IFS=:)
36039 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36040echo "$as_me: error: cannot find input file: $f" >&2;}
36041 { (exit 1); exit 1; }; }
36042 echo $f;;
36043 *) # Relative
36044 if test -f "$f"; then
36045 # Build tree
36046 echo $f
36047 elif test -f "$srcdir/$f"; then
36048 # Source tree
36049 echo $srcdir/$f
36050 else
36051 # /dev/null tree
36052 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36053echo "$as_me: error: cannot find input file: $f" >&2;}
36054 { (exit 1); exit 1; }; }
36055 fi;;
36056 esac
36057 done` || { (exit 1); exit 1; }
36058_ACEOF
36059cat >>$CONFIG_STATUS <<_ACEOF
36060 sed "$ac_vpsub
36061$extrasub
36062_ACEOF
36063cat >>$CONFIG_STATUS <<\_ACEOF
36064:t
36065/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36066s,@configure_input@,$configure_input,;t t
36067s,@srcdir@,$ac_srcdir,;t t
36068s,@abs_srcdir@,$ac_abs_srcdir,;t t
36069s,@top_srcdir@,$ac_top_srcdir,;t t
36070s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36071s,@builddir@,$ac_builddir,;t t
36072s,@abs_builddir@,$ac_abs_builddir,;t t
36073s,@top_builddir@,$ac_top_builddir,;t t
36074s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36075s,@INSTALL@,$ac_INSTALL,;t t
36076" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36077 rm -f $tmp/stdin
36078 if test x"$ac_file" != x-; then
36079 mv $tmp/out $ac_file
36080 else
36081 cat $tmp/out
36082 rm -f $tmp/out
36083 fi
36084
36085done
36086_ACEOF
36087cat >>$CONFIG_STATUS <<\_ACEOF
36088
36089#
36090# CONFIG_HEADER section.
36091#
10f2d63a
VZ
36092
36093# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36094# NAME is the cpp macro being defined and VALUE is the value it is being given.
36095#
36096# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36097ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36098ac_dB='[ ].*$,\1#\2'
36099ac_dC=' '
36100ac_dD=',;t'
36101# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36102ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36103ac_uB='$,\1#\2define\3'
10f2d63a 36104ac_uC=' '
e6cc62c6
VS
36105ac_uD=',;t'
36106
36107for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 36108 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36109 case $ac_file in
36110 - | *:- | *:-:* ) # input from stdin
36111 cat >$tmp/stdin
36112 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36113 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36114 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36115 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36116 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
36117 esac
36118
e6cc62c6
VS
36119 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36120echo "$as_me: creating $ac_file" >&6;}
36121
36122 # First look for the input files in the build tree, otherwise in the
36123 # src tree.
36124 ac_file_inputs=`IFS=:
36125 for f in $ac_file_in; do
36126 case $f in
36127 -) echo $tmp/stdin ;;
36128 [\\/$]*)
36129 # Absolute (can't be DOS-style, as IFS=:)
36130 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36131echo "$as_me: error: cannot find input file: $f" >&2;}
36132 { (exit 1); exit 1; }; }
36133 echo $f;;
36134 *) # Relative
36135 if test -f "$f"; then
36136 # Build tree
36137 echo $f
36138 elif test -f "$srcdir/$f"; then
36139 # Source tree
36140 echo $srcdir/$f
36141 else
36142 # /dev/null tree
36143 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36144echo "$as_me: error: cannot find input file: $f" >&2;}
36145 { (exit 1); exit 1; }; }
36146 fi;;
36147 esac
36148 done` || { (exit 1); exit 1; }
36149 # Remove the trailing spaces.
36150 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36151
36152_ACEOF
36153
36154# Transform confdefs.h into two sed scripts, `conftest.defines' and
36155# `conftest.undefs', that substitutes the proper values into
36156# config.h.in to produce config.h. The first handles `#define'
36157# templates, and the second `#undef' templates.
36158# And first: Protect against being on the right side of a sed subst in
36159# config.status. Protect against being in an unquoted here document
36160# in config.status.
36161rm -f conftest.defines conftest.undefs
36162# Using a here document instead of a string reduces the quoting nightmare.
36163# Putting comments in sed scripts is not portable.
36164#
36165# `end' is used to avoid that the second main sed command (meant for
36166# 0-ary CPP macros) applies to n-ary macro definitions.
36167# See the Autoconf documentation for `clear'.
36168cat >confdef2sed.sed <<\_ACEOF
36169s/[\\&,]/\\&/g
36170s,[\\$`],\\&,g
36171t clear
36172: clear
36173s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36174t end
36175s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36176: end
36177_ACEOF
36178# If some macros were called several times there might be several times
36179# the same #defines, which is useless. Nevertheless, we may not want to
36180# sort them, since we want the *last* AC-DEFINE to be honored.
36181uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36182sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36183rm -f confdef2sed.sed
10f2d63a
VZ
36184
36185# This sed command replaces #undef with comments. This is necessary, for
36186# example, in the case of _POSIX_SOURCE, which is predefined and required
36187# on some systems where configure will not decide to define it.
e6cc62c6
VS
36188cat >>conftest.undefs <<\_ACEOF
36189s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36190_ACEOF
36191
36192# Break up conftest.defines because some shells have a limit on the size
36193# of here documents, and old seds have small limits too (100 cmds).
36194echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36195echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36196echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36197echo ' :' >>$CONFIG_STATUS
36198rm -f conftest.tail
36199while grep . conftest.defines >/dev/null
36200do
36201 # Write a limited-size here document to $tmp/defines.sed.
36202 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36203 # Speed up: don't consider the non `#define' lines.
36204 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
36205 # Work around the forget-to-reset-the-flag bug.
36206 echo 't clr' >>$CONFIG_STATUS
36207 echo ': clr' >>$CONFIG_STATUS
36208 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36209 echo 'CEOF
36210 sed -f $tmp/defines.sed $tmp/in >$tmp/out
36211 rm -f $tmp/in
36212 mv $tmp/out $tmp/in
36213' >>$CONFIG_STATUS
36214 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36215 rm -f conftest.defines
36216 mv conftest.tail conftest.defines
36217done
36218rm -f conftest.defines
36219echo ' fi # grep' >>$CONFIG_STATUS
36220echo >>$CONFIG_STATUS
10f2d63a 36221
e6cc62c6
VS
36222# Break up conftest.undefs because some shells have a limit on the size
36223# of here documents, and old seds have small limits too (100 cmds).
36224echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 36225rm -f conftest.tail
e6cc62c6 36226while grep . conftest.undefs >/dev/null
10f2d63a 36227do
e6cc62c6
VS
36228 # Write a limited-size here document to $tmp/undefs.sed.
36229 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36230 # Speed up: don't consider the non `#undef'
36231 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
36232 # Work around the forget-to-reset-the-flag bug.
36233 echo 't clr' >>$CONFIG_STATUS
36234 echo ': clr' >>$CONFIG_STATUS
36235 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 36236 echo 'CEOF
e6cc62c6
VS
36237 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36238 rm -f $tmp/in
36239 mv $tmp/out $tmp/in
36240' >>$CONFIG_STATUS
36241 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36242 rm -f conftest.undefs
36243 mv conftest.tail conftest.undefs
10f2d63a 36244done
e6cc62c6
VS
36245rm -f conftest.undefs
36246
36247cat >>$CONFIG_STATUS <<\_ACEOF
36248 # Let's still pretend it is `configure' which instantiates (i.e., don't
36249 # use $as_me), people would be surprised to read:
36250 # /* config.h. Generated by config.status. */
36251 if test x"$ac_file" = x-; then
36252 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 36253 else
e6cc62c6 36254 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 36255 fi
e6cc62c6
VS
36256 cat $tmp/in >>$tmp/config.h
36257 rm -f $tmp/in
36258 if test x"$ac_file" != x-; then
36259 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36260 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36261echo "$as_me: $ac_file is unchanged" >&6;}
36262 else
36263 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36264$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36265 X"$ac_file" : 'X\(//\)[^/]' \| \
36266 X"$ac_file" : 'X\(//\)$' \| \
36267 X"$ac_file" : 'X\(/\)' \| \
36268 . : '\(.\)' 2>/dev/null ||
36269echo X"$ac_file" |
36270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36272 /^X\(\/\/\)$/{ s//\1/; q; }
36273 /^X\(\/\).*/{ s//\1/; q; }
36274 s/.*/./; q'`
36275 { if $as_mkdir_p; then
36276 mkdir -p "$ac_dir"
36277 else
36278 as_dir="$ac_dir"
36279 as_dirs=
36280 while test ! -d "$as_dir"; do
36281 as_dirs="$as_dir $as_dirs"
36282 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36283$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36284 X"$as_dir" : 'X\(//\)[^/]' \| \
36285 X"$as_dir" : 'X\(//\)$' \| \
36286 X"$as_dir" : 'X\(/\)' \| \
36287 . : '\(.\)' 2>/dev/null ||
36288echo X"$as_dir" |
36289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36291 /^X\(\/\/\)$/{ s//\1/; q; }
36292 /^X\(\/\).*/{ s//\1/; q; }
36293 s/.*/./; q'`
36294 done
36295 test ! -n "$as_dirs" || mkdir $as_dirs
36296 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36297echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36298 { (exit 1); exit 1; }; }; }
a0b9e27f 36299
e6cc62c6
VS
36300 rm -f $ac_file
36301 mv $tmp/config.h $ac_file
36302 fi
36303 else
36304 cat $tmp/config.h
36305 rm -f $tmp/config.h
36306 fi
36307done
36308_ACEOF
36309cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36310
e6cc62c6
VS
36311#
36312# CONFIG_COMMANDS section.
36313#
36314for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36315 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36316 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36317 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36318$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36319 X"$ac_dest" : 'X\(//\)[^/]' \| \
36320 X"$ac_dest" : 'X\(//\)$' \| \
36321 X"$ac_dest" : 'X\(/\)' \| \
36322 . : '\(.\)' 2>/dev/null ||
36323echo X"$ac_dest" |
36324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36326 /^X\(\/\/\)$/{ s//\1/; q; }
36327 /^X\(\/\).*/{ s//\1/; q; }
36328 s/.*/./; q'`
36329 ac_builddir=.
36330
36331if test "$ac_dir" != .; then
36332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36333 # A "../" for each directory in $ac_dir_suffix.
36334 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36335else
36336 ac_dir_suffix= ac_top_builddir=
36337fi
36338
36339case $srcdir in
36340 .) # No --srcdir option. We are building in place.
36341 ac_srcdir=.
36342 if test -z "$ac_top_builddir"; then
36343 ac_top_srcdir=.
36344 else
36345 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36346 fi ;;
36347 [\\/]* | ?:[\\/]* ) # Absolute path.
36348 ac_srcdir=$srcdir$ac_dir_suffix;
36349 ac_top_srcdir=$srcdir ;;
36350 *) # Relative path.
36351 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36352 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36353esac
36354# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36355# absolute.
36356ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36357ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36358ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36359ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36360
36361
36362 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36363echo "$as_me: executing $ac_dest commands" >&6;}
36364 case $ac_dest in
36365 default )
652d930d 36366 if test ! -h wx-config; then
991a5759 36367 chmod +x wx-config
3a922bb4
RL
36368 mv wx-config wx${TOOLCHAIN_NAME}-config
36369 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 36370 fi
665bbe97 36371
00cf1208
RR
36372 if test ! -d lib; then
36373 mkdir lib
36374 fi
36375 if test ! -d lib/wx; then
36376 mkdir lib/wx
36377 fi
36378 if test ! -d lib/wx/include; then
36379 mkdir lib/wx/include
36380 fi
3a922bb4
RL
36381 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36382 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 36383 fi
3a922bb4
RL
36384 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36385 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
36386 fi
36387 if test -f setup.h; then
3a922bb4 36388 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 36389 fi
e6cc62c6
VS
36390 ;;
36391 esac
36392done
36393_ACEOF
2224580a 36394
e6cc62c6 36395cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 36396
e6cc62c6
VS
36397{ (exit 0); exit 0; }
36398_ACEOF
36399chmod +x $CONFIG_STATUS
36400ac_clean_files=$ac_clean_files_save
36401
36402
36403# configure is writing to config.log, and then calls config.status.
36404# config.status does its own redirection, appending to config.log.
36405# Unfortunately, on DOS this fails, as config.log is still kept open
36406# by configure, so config.status won't be able to write to it; its
36407# output is simply discarded. So we exec the FD to /dev/null,
36408# effectively closing config.log, so it can be properly (re)opened and
36409# appended to by config.status. When coming back to configure, we
36410# need to make the FD available again.
36411if test "$no_create" != yes; then
36412 ac_cs_success=:
36413 ac_config_status_args=
36414 test "$silent" = yes &&
36415 ac_config_status_args="$ac_config_status_args --quiet"
36416 exec 5>/dev/null
36417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36418 exec 5>>config.log
36419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36420 # would make configure fail if this is the last instruction.
36421 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
36422fi
36423
672abd7a
VS
36424#
36425# CONFIG_SUBDIRS section.
36426#
36427if test "$no_recursion" != yes; then
36428
36429 # Remove --cache-file and --srcdir arguments so they do not pile up.
36430 ac_sub_configure_args=
36431 ac_prev=
36432 for ac_arg in $ac_configure_args; do
36433 if test -n "$ac_prev"; then
36434 ac_prev=
36435 continue
36436 fi
36437 case $ac_arg in
36438 -cache-file | --cache-file | --cache-fil | --cache-fi \
36439 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36440 ac_prev=cache_file ;;
36441 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36442 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36443 | --c=*)
36444 ;;
36445 --config-cache | -C)
36446 ;;
36447 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36448 ac_prev=srcdir ;;
36449 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36450 ;;
36451 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36452 ac_prev=prefix ;;
36453 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36454 ;;
36455 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
36456 esac
36457 done
36458
36459 # Always prepend --prefix to ensure using the same prefix
36460 # in subdir configurations.
36461 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
36462
36463 ac_popdir=`pwd`
36464 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36465
36466 # Do not complain, so a configure script can configure whichever
36467 # parts of a large source tree are present.
36468 test -d $srcdir/$ac_dir || continue
36469
36470 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
36471echo "$as_me: configuring in $ac_dir" >&6;}
36472 { if $as_mkdir_p; then
36473 mkdir -p "$ac_dir"
36474 else
36475 as_dir="$ac_dir"
36476 as_dirs=
36477 while test ! -d "$as_dir"; do
36478 as_dirs="$as_dir $as_dirs"
36479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36481 X"$as_dir" : 'X\(//\)[^/]' \| \
36482 X"$as_dir" : 'X\(//\)$' \| \
36483 X"$as_dir" : 'X\(/\)' \| \
36484 . : '\(.\)' 2>/dev/null ||
36485echo X"$as_dir" |
36486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36488 /^X\(\/\/\)$/{ s//\1/; q; }
36489 /^X\(\/\).*/{ s//\1/; q; }
36490 s/.*/./; q'`
36491 done
36492 test ! -n "$as_dirs" || mkdir $as_dirs
36493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36494echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36495 { (exit 1); exit 1; }; }; }
36496
36497 ac_builddir=.
36498
36499if test "$ac_dir" != .; then
36500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36501 # A "../" for each directory in $ac_dir_suffix.
36502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36503else
36504 ac_dir_suffix= ac_top_builddir=
36505fi
36506
36507case $srcdir in
36508 .) # No --srcdir option. We are building in place.
36509 ac_srcdir=.
36510 if test -z "$ac_top_builddir"; then
36511 ac_top_srcdir=.
36512 else
36513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36514 fi ;;
36515 [\\/]* | ?:[\\/]* ) # Absolute path.
36516 ac_srcdir=$srcdir$ac_dir_suffix;
36517 ac_top_srcdir=$srcdir ;;
36518 *) # Relative path.
36519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36521esac
36522# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36523# absolute.
36524ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36525ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36526ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36527ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36528
36529
36530 cd $ac_dir
36531
36532 # Check for guested configure; otherwise get Cygnus style configure.
36533 if test -f $ac_srcdir/configure.gnu; then
36534 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
36535 elif test -f $ac_srcdir/configure; then
36536 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
36537 elif test -f $ac_srcdir/configure.in; then
36538 ac_sub_configure=$ac_configure
36539 else
36540 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36541echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36542 ac_sub_configure=
36543 fi
36544
36545 # The recursion is here.
36546 if test -n "$ac_sub_configure"; then
36547 # Make the cache file name correct relative to the subdirectory.
36548 case $cache_file in
36549 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36550 *) # Relative path.
36551 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
36552 esac
36553
36554 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36555echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36556 # The eval makes quoting arguments work.
36557 eval $ac_sub_configure $ac_sub_configure_args \
36558 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
36559 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36560echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36561 { (exit 1); exit 1; }; }
36562 fi
36563
36564 cd $ac_popdir
36565 done
36566fi
36567
8284b0c5 36568
2b5f62a0
VZ
36569echo
36570echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36571echo ""
36572echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 36573echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
36574
36575echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
36576echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
36577echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
36578
0c98a14e
GD
36579echo " What level of wxWindows compatibility should be enabled?"
36580echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
36581echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
36582echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 36583
2b5f62a0
VZ
36584echo " Which libraries should wxWindows use?"
36585echo " jpeg ${wxUSE_LIBJPEG-none}"
36586echo " png ${wxUSE_LIBPNG-none}"
36587echo " regex ${wxUSE_REGEX}"
36588echo " tiff ${wxUSE_LIBTIFF-none}"
36589echo " zlib ${wxUSE_ZLIB}"
fd3d7534 36590echo " odbc ${wxUSE_ODBC}"
5f0b6dff 36591echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
36592
36593echo ""
36594