]> git.saurik.com Git - wxWidgets.git/blame - configure
ODBC is part of wxBase now
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
e6cc62c6
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.0.
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
fe0895cf 9# Free Software Foundation, Inc.
e6cc62c6
VS
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
fe0895cf 15
e6cc62c6
VS
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
fe0895cf 26
e6cc62c6
VS
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 as_mkdir_p=false
225fi
fe0895cf 226
e6cc62c6 227as_executable_p="test -f"
fe0895cf 228
e6cc62c6
VS
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6
VS
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
fe0895cf
VS
234
235
e6cc62c6
VS
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
fe0895cf 241
e6cc62c6
VS
242# CDPATH.
243$as_unset CDPATH
fe0895cf
VS
244
245
e6cc62c6
VS
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 250
e6cc62c6 251exec 6>&1
fe0895cf 252
a0b9e27f 253#
e6cc62c6
VS
254# Initializations.
255#
a0b9e27f 256ac_default_prefix=/usr/local
e6cc62c6
VS
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
272PACKAGE_VERSION='2.5.0'
273PACKAGE_STRING='wxWindows 2.5.0'
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
672abd7a 314ac_subdirs_all="$ac_subdirs_all src/expat"
ffef10f6 315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX SO_SUFFIX_MODULE DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_OS2 COND_TOOLKIT_OS2_USE_GUI_1 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 316ac_subst_files=''
10f2d63a
VZ
317
318# Initialize some variables set by options.
e6cc62c6
VS
319ac_init_help=
320ac_init_version=false
10f2d63a
VZ
321# The variables have the same names as the options, with
322# dashes changed to underlines.
e6cc62c6 323cache_file=/dev/null
10f2d63a 324exec_prefix=NONE
10f2d63a 325no_create=
10f2d63a
VZ
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
10f2d63a
VZ
334verbose=
335x_includes=NONE
336x_libraries=NONE
e6cc62c6
VS
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
10f2d63a
VZ
356ac_prev=
357for ac_option
358do
10f2d63a
VZ
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
e6cc62c6 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
e6cc62c6 370 case $ac_option in
10f2d63a
VZ
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 375 bindir=$ac_optarg ;;
10f2d63a
VZ
376
377 -build | --build | --buil | --bui | --bu)
e6cc62c6 378 ac_prev=build_alias ;;
10f2d63a 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 380 build_alias=$ac_optarg ;;
10f2d63a
VZ
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
10f2d63a
VZ
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
e6cc62c6 396 datadir=$ac_optarg ;;
10f2d63a
VZ
397
398 -disable-* | --disable-*)
e6cc62c6 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 400 # Reject names that are not valid shell variable names.
e6cc62c6
VS
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
406
407 -enable-* | --enable-*)
e6cc62c6 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 409 # Reject names that are not valid shell variable names.
e6cc62c6
VS
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
416 *) ac_optarg=yes ;;
417 esac
e6cc62c6 418 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
e6cc62c6 427 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
e6cc62c6
VS
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
10f2d63a
VZ
439
440 -host | --host | --hos | --ho)
e6cc62c6 441 ac_prev=host_alias ;;
10f2d63a 442 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 443 host_alias=$ac_optarg ;;
10f2d63a
VZ
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 450 includedir=$ac_optarg ;;
10f2d63a
VZ
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 455 infodir=$ac_optarg ;;
10f2d63a
VZ
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 460 libdir=$ac_optarg ;;
10f2d63a
VZ
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 467 libexecdir=$ac_optarg ;;
10f2d63a
VZ
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 476 localstatedir=$ac_optarg ;;
10f2d63a
VZ
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 481 mandir=$ac_optarg ;;
10f2d63a
VZ
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 488 | --no-cr | --no-c | -n)
10f2d63a
VZ
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 502 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 507 prefix=$ac_optarg ;;
10f2d63a
VZ
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 514 program_prefix=$ac_optarg ;;
10f2d63a
VZ
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 521 program_suffix=$ac_optarg ;;
10f2d63a
VZ
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 538 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
e6cc62c6 548 sbindir=$ac_optarg ;;
10f2d63a
VZ
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
e6cc62c6 559 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
e6cc62c6 564 site=$ac_optarg ;;
10f2d63a
VZ
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 569 srcdir=$ac_optarg ;;
10f2d63a
VZ
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 576 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 579 ac_prev=target_alias ;;
10f2d63a 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 581 target_alias=$ac_optarg ;;
10f2d63a
VZ
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
e6cc62c6
VS
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
10f2d63a
VZ
588
589 -with-* | --with-*)
e6cc62c6 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 591 # Reject names that are not valid shell variable names.
e6cc62c6
VS
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
10f2d63a 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
598 *) ac_optarg=yes ;;
599 esac
e6cc62c6 600 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
601
602 -without-* | --without-*)
e6cc62c6 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 604 # Reject names that are not valid shell variable names.
e6cc62c6
VS
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
10f2d63a
VZ
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 620 x_includes=$ac_optarg ;;
10f2d63a
VZ
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 627 x_libraries=$ac_optarg ;;
10f2d63a 628
e6cc62c6
VS
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
10f2d63a
VZ
632 ;;
633
e6cc62c6
VS
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
10f2d63a 644 *)
e6cc62c6
VS
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
e6cc62c6
VS
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
a0b9e27f 659fi
a0b9e27f 660
e6cc62c6
VS
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
8284b0c5 671
e6cc62c6
VS
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 675do
e6cc62c6
VS
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
10f2d63a
VZ
681 esac
682done
683
e6cc62c6
VS
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
247f5006 701
e6cc62c6
VS
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
10f2d63a 706
10f2d63a
VZ
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
e6cc62c6
VS
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
10f2d63a
VZ
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
10f2d63a 735 else
e6cc62c6
VS
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
10f2d63a
VZ
738 fi
739fi
e6cc62c6
VS
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 788
e6cc62c6
VS
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
796\`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
10f2d63a 797
e6cc62c6 798Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 799
e6cc62c6
VS
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 802
e6cc62c6
VS
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
821 [$ac_default_prefix]
822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 [PREFIX]
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
862 short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
9747f85d 870 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
871 --enable-universal use wxWindows GUI controls instead of native ones
872 --enable-nanox use NanoX
873 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
874 --enable-shared create shared library code
e6cc62c6
VS
875 --enable-optimise create optimised code
876 --enable-debug same as debug_flag and debug_info
df5168c4 877 --enable-stl use STL for containers
e6cc62c6
VS
878 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
879 --enable-debug_info create code with debugging information
880 --enable-debug_gdb create code with extra GDB debugging information
881 --enable-debug_cntxt use wxDebugContext
882 --enable-mem_tracing create code with memory tracing
883 --enable-profile create code with profiling information
884 --enable-no_rtti create code without RTTI information
885 --enable-no_exceptions create code without C++ exceptions handling
886 --enable-permissive compile code disregarding strict ANSI
887 --enable-no_deps create code without dependency information
888 --enable-compat20 enable wxWindows 2.0 compatibility
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
899 --enable-ole use OLE classes
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
902 --enable-cmdline use wxCmdLineParser class
903 --enable-datetime use wxDateTime class
904 --enable-stopwatch use wxStopWatch class
905 --enable-dialupman use dialup network classes
906 --enable-apple_ieee use the Apple IEEE codec
907 --enable-timer use wxTimer class
908 --enable-wave use wxWave class
909 --enable-fraction use wxFraction class
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-longlong use wxLongLong class
913 --enable-geometry use geometry class
914 --enable-log use logging system
915 --enable-streams use wxStream etc classes
916 --enable-file use wxFile classes
917 --enable-ffile use wxFFile classes
918 --enable-textbuf use wxTextBuffer class
919 --enable-textfile use wxTextFile class
920 --enable-fontmap use font encodings conversion classes
921 --enable-unicode compile wxString with Unicode support
922 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
923 --enable-wxprintfv use wxWindows implementation of vprintf()
924 --enable-std_iostreams use standard C++ stream classes
925 --enable-filesystem use virtual file systems classes
926 --enable-fs_inet use virtual HTTP/FTP filesystems
927 --enable-fs_zip use virtual ZIP filesystems
928 --enable-zipstream use wxZipInputStream
929 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
930 --enable-snglinst use wxSingleInstanceChecker class
931 --enable-mimetype use wxMimeTypesManager
932 --enable-sysoptions use wxSystemOptions
933 --enable-url use wxURL class
934 --enable-protocol use wxProtocol class
935 --enable-protocol-http HTTP support in wxProtocol
936 --enable-protocol-ftp FTP support in wxProtocol
937 --enable-protocol-file FILE support in wxProtocol
938 --enable-threads use threads
939 --enable-docview use document view architecture
940 --enable-help use help subsystem
941 --enable-mshtmlhelp use MS HTML Help (win32)
942 --enable-html use wxHTML sub-library
943 --enable-htmlhelp use wxHTML-based help
944 --enable-constraints use layout-constraints system
945 --enable-printarch use printing architecture
946 --enable-mdi use multiple document interface architecture
947 --enable-loggui use standard GUI logger
948 --enable-logwin use wxLogWindow
949 --enable-logdialog use wxLogDialog
950 --enable-postscript use wxPostscriptDC device context (default for gtk+)
951 --enable-prologio not available; see contrib
952 --enable-resources not available; see contrib
953 --enable-clipboard use wxClipboard class
954 --enable-dnd use Drag'n'Drop classes
955 --enable-metafile use win32 metafiles
956 --enable-controls use all usual controls
957 --enable-accel use accelerators
958 --enable-button use wxButton class
959 --enable-bmpbutton use wxBitmapButton class
960 --enable-calendar use wxCalendarCtrl class
961 --enable-caret use wxCaret class
962 --enable-checkbox use wxCheckBox class
963 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
964 --enable-choice use wxChoice class
965 --enable-combobox use wxComboBox class
966 --enable-display use wxDisplay class
967 --enable-gauge use wxGauge class
968 --enable-grid use wxGrid class
969 --enable-imaglist use wxImageList class
970 --enable-listbox use wxListBox class
971 --enable-listctrl use wxListCtrl class
972 --enable-notebook use wxNotebook class
973 --enable-radiobox use wxRadioBox class
974 --enable-radiobtn use wxRadioButton class
975 --enable-sash use wxSashWindow class
976 --enable-scrollbar use wxScrollBar class and scrollable windows
977 --enable-slider use wxSlider class
978 --enable-spinbtn use wxSpinButton class
979 --enable-spinctrl use wxSpinCtrl class
980 --enable-splitter use wxSplitterWindow class
981 --enable-statbmp use wxStaticBitmap class
982 --enable-statbox use wxStaticBox class
983 --enable-statline use wxStaticLine class
984 --enable-stattext use wxStaticText class
985 --enable-statusbar use wxStatusBar class
986 --enable-tabdialog use wxTabControl class
987 --enable-textctrl use wxTextCtrl class
988 --enable-togglebtn use wxToggleButton class
989 --enable-toolbar use wxToolBar class
990 --enable-tbarnative use native wxToolBar class
991 --enable-tbarsmpl use wxToolBarSimple class
992 --enable-treectrl use wxTreeCtrl class
993 --enable-tipwindow use wxTipWindow class
994 --enable-popupwin use wxPopUpWindow class
995 --enable-commondlg use all common dialogs
996 --enable-choicedlg use wxChoiceDialog
997 --enable-coldlg use wxColourDialog
998 --enable-filedlg use wxFileDialog
999 --enable-finddlg use wxFindReplaceDialog
1000 --enable-fontdlg use wxFontDialog
1001 --enable-dirdlg use wxDirDialog
1002 --enable-msgdlg use wxMessageDialog
1003 --enable-numberdlg use wxNumberEntryDialog
1004 --enable-splash use wxSplashScreen
1005 --enable-textdlg use wxTextDialog
1006 --enable-tipdlg use startup tips
1007 --enable-progressdlg use wxProgressDialog
1008 --enable-wizarddlg use wxWizard
1009 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1010 --enable-miniframe use wxMiniFrame class
1011 --enable-tooltips use wxToolTip class
1012 --enable-splines use spline drawing code
1013 --enable-validators use wxValidator and derived classes
1014 --enable-busyinfo use wxBusyInfo
1015 --enable-joystick use wxJoystick (Linux only)
1016 --enable-metafiles use wxMetaFile (Windows only)
1017 --enable-dragimage use wxDragImage
1018 --enable-accessibility enable accessibility support
1019 --enable-palette use wxPalette class
1020 --enable-image use wxImage class
1021 --enable-gif use gif images (GIF file format)
1022 --enable-pcx use pcx images (PCX file format)
1023 --enable-iff use iff images (IFF file format)
1024 --enable-pnm use pnm images (PNM file format)
1025 --enable-xpm use xpm images (XPM file format)
1026 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1027 --enable-official_build official build of wxWindows (win32 DLL only)
1028 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1029 --disable-largefile omit support for large files
1030 --disable-gtktest do not try to compile and run a test GTK+ program
1031 --disable-gtktest Do not try to compile and run a test GTK program
45842500 1032 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1033
1034Optional Packages:
1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1037 --with-gtk use GTK+
1038 --with-motif use Motif/Lesstif
1039 --with-mac use Mac OS X
1040 --with-cocoa use Cocoa
1041 --with-wine use Wine
1042 --with-msw use MS-Windows
1043 --with-pm use OS/2 Presentation Manager
1044 --with-mgl use SciTech MGL
1045 --with-microwin use MicroWindows
1046 --with-x11 use X11
1047 --with-libpng use libpng (PNG image format)
1048 --with-libjpeg use libjpeg (JPEG file format)
1049 --with-libtiff use libtiff (TIFF file format)
1050 --with-opengl use OpenGL (or Mesa)
1051 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1052 --with-regex enable support for wxRegEx class
1053 --with-zlib use zlib for LZW compression
1054 --with-odbc use the IODBC and wxODBC classes
672abd7a 1055 --with-expat enable XML support using expat parser
e6cc62c6
VS
1056 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1057 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1058 --with-x use the X Window System
1059 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1060
1061Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1068 CPP C preprocessor
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CXXCPP C++ preprocessor
1072
1073Use these variables to override the choices made by `configure' or to help
1074it to find libraries and programs with nonstandard names/locations.
1075
1076Report bugs to <wx-dev@lists.wxwindows.org>.
1077_ACEOF
1078fi
1079
1080if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1082 ac_popdir=`pwd`
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1085 ac_builddir=.
1086
1087if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091else
1092 ac_dir_suffix= ac_top_builddir=
1093fi
1094
1095case $srcdir in
1096 .) # No --srcdir option. We are building in place.
1097 ac_srcdir=.
1098 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=.
1100 else
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 fi ;;
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1106 *) # Relative path.
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109esac
1110# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1111# absolute.
1112ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1113ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1114ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1115ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1116
1117 cd $ac_dir
1118 # Check for guested configure; otherwise get Cygnus style configure.
1119 if test -f $ac_srcdir/configure.gnu; then
1120 echo
1121 $SHELL $ac_srcdir/configure.gnu --help=recursive
1122 elif test -f $ac_srcdir/configure; then
1123 echo
1124 $SHELL $ac_srcdir/configure --help=recursive
1125 elif test -f $ac_srcdir/configure.ac ||
1126 test -f $ac_srcdir/configure.in; then
1127 echo
1128 $ac_configure --help
1129 else
1130 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 fi
1132 cd $ac_popdir
1133 done
1134fi
8284b0c5 1135
e6cc62c6
VS
1136test -n "$ac_init_help" && exit 0
1137if $ac_init_version; then
1138 cat <<\_ACEOF
1139wxWindows configure 2.5.0
1140generated by GNU Autoconf 2.57
10f2d63a 1141
e6cc62c6
VS
1142Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1143Free Software Foundation, Inc.
1144This configure script is free software; the Free Software Foundation
1145gives unlimited permission to copy, distribute and modify it.
1146_ACEOF
1147 exit 0
7c66a493 1148fi
e6cc62c6
VS
1149exec 5>config.log
1150cat >&5 <<_ACEOF
1151This file contains any messages produced by compilers while
1152running configure, to aid debugging if configure makes a mistake.
1153
1154It was created by wxWindows $as_me 2.5.0, which was
1155generated by GNU Autoconf 2.57. Invocation command line was
1156
1157 $ $0 $@
1158
1159_ACEOF
1160{
1161cat <<_ASUNAME
1162## --------- ##
1163## Platform. ##
1164## --------- ##
1165
1166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170uname -v = `(uname -v) 2>/dev/null || echo unknown`
1171
1172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1174
1175/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1176/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1179/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1180/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1181/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1182
1183_ASUNAME
1184
1185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186for as_dir in $PATH
1187do
1188 IFS=$as_save_IFS
1189 test -z "$as_dir" && as_dir=.
1190 echo "PATH: $as_dir"
1191done
1192
1193} >&5
1194
1195cat >&5 <<_ACEOF
1196
1197
1198## ----------- ##
1199## Core tests. ##
1200## ----------- ##
1201
1202_ACEOF
1203
1204
1205# Keep a trace of the command line.
1206# Strip out --no-create and --no-recursion so they do not pile up.
1207# Strip out --silent because we don't want to record it for future runs.
1208# Also quote any args containing shell meta-characters.
1209# Make two passes to allow for proper duplicate-argument suppression.
1210ac_configure_args=
1211ac_configure_args0=
1212ac_configure_args1=
1213ac_sep=
1214ac_must_keep_next=false
1215for ac_pass in 1 2
1216do
1217 for ac_arg
1218 do
1219 case $ac_arg in
1220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 continue ;;
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226 esac
1227 case $ac_pass in
1228 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1229 2)
1230 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231 if test $ac_must_keep_next = true; then
1232 ac_must_keep_next=false # Got value, back to normal.
1233 else
1234 case $ac_arg in
1235 *=* | --config-cache | -C | -disable-* | --disable-* \
1236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238 | -with-* | --with-* | -without-* | --without-* | --x)
1239 case "$ac_configure_args0 " in
1240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241 esac
1242 ;;
1243 -* ) ac_must_keep_next=true ;;
1244 esac
1245 fi
1246 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247 # Get rid of the leading space.
1248 ac_sep=" "
1249 ;;
1250 esac
1251 done
1252done
1253$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1255
1256# When interrupted or exit'd, cleanup temporary files, and complete
1257# config.log. We remove comments because anyway the quotes in there
1258# would cause problems or look ugly.
1259# WARNING: Be sure not to use single quotes in there, as some shells,
1260# such as our DU 5.0 friend, will then `close' the trap.
1261trap 'exit_status=$?
1262 # Save into config.log some information that might help in debugging.
1263 {
1264 echo
1265
1266 cat <<\_ASBOX
1267## ---------------- ##
1268## Cache variables. ##
1269## ---------------- ##
1270_ASBOX
1271 echo
1272 # The following way of writing the cache mishandles newlines in values,
1273{
1274 (set) 2>&1 |
1275 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276 *ac_space=\ *)
1277 sed -n \
1278 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280 ;;
1281 *)
1282 sed -n \
1283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284 ;;
1285 esac;
1286}
1287 echo
1288
1289 cat <<\_ASBOX
1290## ----------------- ##
1291## Output variables. ##
1292## ----------------- ##
1293_ASBOX
1294 echo
1295 for ac_var in $ac_subst_vars
1296 do
1297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
1299 done | sort
1300 echo
1301
1302 if test -n "$ac_subst_files"; then
1303 cat <<\_ASBOX
1304## ------------- ##
1305## Output files. ##
1306## ------------- ##
1307_ASBOX
1308 echo
1309 for ac_var in $ac_subst_files
1310 do
1311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
1313 done | sort
1314 echo
1315 fi
1316
1317 if test -s confdefs.h; then
1318 cat <<\_ASBOX
1319## ----------- ##
1320## confdefs.h. ##
1321## ----------- ##
1322_ASBOX
1323 echo
1324 sed "/^$/d" confdefs.h | sort
1325 echo
1326 fi
1327 test "$ac_signal" != 0 &&
1328 echo "$as_me: caught signal $ac_signal"
1329 echo "$as_me: exit $exit_status"
1330 } >&5
1331 rm -f core core.* *.core &&
1332 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333 exit $exit_status
1334 ' 0
1335for ac_signal in 1 2 13 15; do
1336 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337done
1338ac_signal=0
1339
1340# confdefs.h avoids OS command line length limits that DEFS can exceed.
1341rm -rf conftest* confdefs.h
1342# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343echo >confdefs.h
1344
1345# Predefined preprocessor variables.
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_NAME "$PACKAGE_NAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_VERSION "$PACKAGE_VERSION"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_STRING "$PACKAGE_STRING"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369_ACEOF
1370
1371
1372# Let the site file select an alternate cache file if it wants to.
1373# Prefer explicitly selected file to automatically selected ones.
1374if test -z "$CONFIG_SITE"; then
1375 if test "x$prefix" != xNONE; then
1376 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377 else
1378 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379 fi
1380fi
1381for ac_site_file in $CONFIG_SITE; do
1382 if test -r "$ac_site_file"; then
1383 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384echo "$as_me: loading site script $ac_site_file" >&6;}
1385 sed 's/^/| /' "$ac_site_file" >&5
1386 . "$ac_site_file"
1387 fi
1388done
1389
1390if test -r "$cache_file"; then
1391 # Some versions of bash will fail to source /dev/null (special
1392 # files actually), so we avoid doing that.
1393 if test -f "$cache_file"; then
1394 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395echo "$as_me: loading cache $cache_file" >&6;}
1396 case $cache_file in
1397 [\\/]* | ?:[\\/]* ) . $cache_file;;
1398 *) . ./$cache_file;;
1399 esac
1400 fi
1401else
1402 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403echo "$as_me: creating cache $cache_file" >&6;}
1404 >$cache_file
1405fi
1406
1407# Check that the precious variables saved in the cache have kept the same
1408# value.
1409ac_cache_corrupted=false
1410for ac_var in `(set) 2>&1 |
1411 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413 eval ac_new_set=\$ac_env_${ac_var}_set
1414 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415 eval ac_new_val="\$ac_env_${ac_var}_value"
1416 case $ac_old_set,$ac_new_set in
1417 set,)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,set)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,);;
1426 *)
1427 if test "x$ac_old_val" != "x$ac_new_val"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1431echo "$as_me: former value: $ac_old_val" >&2;}
1432 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1433echo "$as_me: current value: $ac_new_val" >&2;}
1434 ac_cache_corrupted=:
1435 fi;;
1436 esac
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1439 case $ac_new_val in
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1443 esac
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 esac
1448 fi
1449done
1450if $ac_cache_corrupted; then
1451 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455 { (exit 1); exit 1; }; }
1456fi
1457
1458ac_ext=c
1459ac_cpp='$CPP $CPPFLAGS'
1460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
698dcdb6 1480
8284b0c5 1481
7c66a493 1482
a0b9e27f
MB
1483
1484
a0b9e27f 1485
a0b9e27f 1486
a0b9e27f 1487
a0b9e27f 1488
a0b9e27f 1489
a0b9e27f 1490
e6cc62c6
VS
1491
1492
1493ac_aux_dir=
1494for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1498 break
1499 elif test -f $ac_dir/install.sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1502 break
1503 elif test -f $ac_dir/shtool; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 break
1507 fi
1508done
1509if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1513fi
1514ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1517
1518# Make sure we can run config.sub.
1519$ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524echo "$as_me:$LINENO: checking build system type" >&5
1525echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529 ac_cv_build_alias=$build_alias
1530test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541fi
1542echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543echo "${ECHO_T}$ac_cv_build" >&6
1544build=$ac_cv_build
1545build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550echo "$as_me:$LINENO: checking host system type" >&5
1551echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 ac_cv_host_alias=$host_alias
1556test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563fi
1564echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565echo "${ECHO_T}$ac_cv_host" >&6
1566host=$ac_cv_host
1567host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572echo "$as_me:$LINENO: checking target system type" >&5
1573echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577 ac_cv_target_alias=$target_alias
1578test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587echo "${ECHO_T}$ac_cv_target" >&6
1588target=$ac_cv_target
1589target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594# The aliases save the names the user supplied, while $host etc.
1595# will get canonicalized.
1596test -n "$target_alias" &&
7c66a493
VZ
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1598 NONENONEs,x,x, &&
1599 program_prefix=${target_alias}-
8284b0c5
MB
1600
1601
a0b9e27f 1602
10f2d63a 1603WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1604WX_MINOR_VERSION_NUMBER=5
1605WX_RELEASE_NUMBER=0
10f2d63a 1606
10f2d63a 1607WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1608WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1609
978f1259
RL
1610WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1611
34bed6d9 1612WX_CURRENT=0
6426998c
RL
1613WX_REVISION=0
1614WX_AGE=0
1615
8284b0c5
MB
1616
1617
10f2d63a
VZ
1618USE_UNIX=1
1619USE_WIN32=0
f9bc1684 1620USE_DOS=0
b12915c1 1621USE_BEOS=0
1216f52d 1622USE_MAC=0
b12915c1 1623
10f2d63a 1624USE_AIX=
fe0895cf
VS
1625USE_BSD= USE_DARWIN= USE_FREEBSD=
1626USE_GNU= USE_HPUX=
89e3b3e4 1627USE_LINUX=
f6bcfd97 1628USE_NETBSD=
89e3b3e4 1629USE_OPENBSD=
fe0895cf
VS
1630USE_OSF= USE_SGI=
1631USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1632USE_ULTRIX=
89e3b3e4
VZ
1633USE_UNIXWARE=
1634
1635USE_ALPHA=
10f2d63a 1636
ab9b9eab
VZ
1637NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1638
ac0c4cc3 1639ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1640
ac0c4cc3 1641DEFAULT_wxUSE_COCOA=0
10f2d63a 1642DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1643DEFAULT_wxUSE_MAC=0
1644DEFAULT_wxUSE_MGL=0
1725144d 1645DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1646DEFAULT_wxUSE_MOTIF=0
1647DEFAULT_wxUSE_MSW=0
e07802fc 1648DEFAULT_wxUSE_PM=0
f79bd02d 1649DEFAULT_wxUSE_X11=0
10f2d63a 1650
ac0c4cc3 1651DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1652DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1653DEFAULT_DEFAULT_wxUSE_MAC=0
1654DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1655DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1656DEFAULT_DEFAULT_wxUSE_MOTIF=0
1657DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1658DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1659DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1660
d6a55c4b 1661PROGRAM_EXT=
3a922bb4 1662SO_SUFFIX=so
fe0895cf 1663SAMPLES_RPATH_FLAG=
0f1bc9c2 1664SAMPLES_RPATH_POSTLINK=
d6a55c4b 1665
10f2d63a
VZ
1666case "${host}" in
1667 *-hp-hpux* )
1668 USE_HPUX=1
1669 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1670 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1671 SO_SUFFIX=sl
e6cc62c6 1672 cat >>confdefs.h <<\_ACEOF
10f2d63a 1673#define __HPUX__ 1
e6cc62c6 1674_ACEOF
10f2d63a
VZ
1675
1676 ;;
1677 *-*-linux* )
1678 USE_LINUX=1
e6cc62c6 1679 cat >>confdefs.h <<\_ACEOF
10f2d63a 1680#define __LINUX__ 1
e6cc62c6 1681_ACEOF
10f2d63a
VZ
1682
1683 TMP=`uname -m`
1684 if test "x$TMP" = "xalpha"; then
1685 USE_ALPHA=1
e6cc62c6 1686 cat >>confdefs.h <<\_ACEOF
10f2d63a 1687#define __ALPHA__ 1
e6cc62c6 1688_ACEOF
fe0895cf
VS
1689
1690 fi
1691 DEFAULT_DEFAULT_wxUSE_GTK=1
1692 ;;
1693 *-*-gnu* )
1694 USE_GNU=1
e6cc62c6 1695 cat >>confdefs.h <<\_ACEOF
fe0895cf 1696#define __GNU__ 1
e6cc62c6 1697_ACEOF
fe0895cf
VS
1698
1699 TMP=`uname -m`
1700 if test "x$TMP" = "xalpha"; then
1701 USE_ALPHA=1
e6cc62c6 1702 cat >>confdefs.h <<\_ACEOF
fe0895cf 1703#define __ALPHA__ 1
e6cc62c6 1704_ACEOF
10f2d63a
VZ
1705
1706 fi
1707 DEFAULT_DEFAULT_wxUSE_GTK=1
1708 ;;
1709 *-*-irix5* | *-*-irix6* )
1710 USE_SGI=1
1711 USE_SVR4=1
e6cc62c6 1712 cat >>confdefs.h <<\_ACEOF
10f2d63a 1713#define __SGI__ 1
e6cc62c6 1714_ACEOF
10f2d63a 1715
e6cc62c6 1716 cat >>confdefs.h <<\_ACEOF
10f2d63a 1717#define __SVR4__ 1
e6cc62c6 1718_ACEOF
10f2d63a
VZ
1719
1720 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1721 ;;
1722 *-*-solaris2* )
1723 USE_SUN=1
1724 USE_SOLARIS=1
1725 USE_SVR4=1
e6cc62c6 1726 cat >>confdefs.h <<\_ACEOF
10f2d63a 1727#define __SUN__ 1
e6cc62c6 1728_ACEOF
10f2d63a 1729
e6cc62c6 1730 cat >>confdefs.h <<\_ACEOF
10f2d63a 1731#define __SOLARIS__ 1
e6cc62c6 1732_ACEOF
10f2d63a 1733
e6cc62c6 1734 cat >>confdefs.h <<\_ACEOF
10f2d63a 1735#define __SVR4__ 1
e6cc62c6 1736_ACEOF
10f2d63a
VZ
1737
1738 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1739 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1740 ;;
1741 *-*-sunos4* )
1742 USE_SUN=1
1743 USE_SUNOS=1
1744 USE_BSD=1
e6cc62c6 1745 cat >>confdefs.h <<\_ACEOF
10f2d63a 1746#define __SUN__ 1
e6cc62c6 1747_ACEOF
10f2d63a 1748
e6cc62c6 1749 cat >>confdefs.h <<\_ACEOF
10f2d63a 1750#define __SUNOS__ 1
e6cc62c6 1751_ACEOF
10f2d63a 1752
e6cc62c6 1753 cat >>confdefs.h <<\_ACEOF
10f2d63a 1754#define __BSD__ 1
e6cc62c6 1755_ACEOF
10f2d63a
VZ
1756
1757 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1758 ;;
f6bcfd97 1759 *-*-freebsd*)
10f2d63a
VZ
1760 USE_BSD=1
1761 USE_FREEBSD=1
e6cc62c6 1762 cat >>confdefs.h <<\_ACEOF
10f2d63a 1763#define __FREEBSD__ 1
e6cc62c6 1764_ACEOF
10f2d63a 1765
e6cc62c6 1766 cat >>confdefs.h <<\_ACEOF
10f2d63a 1767#define __BSD__ 1
e6cc62c6 1768_ACEOF
95c8801c
VS
1769
1770 DEFAULT_DEFAULT_wxUSE_GTK=1
1771 ;;
1772 *-*-openbsd*)
1773 USE_BSD=1
1774 USE_OPENBSD=1
e6cc62c6 1775 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1776#define __OPENBSD__ 1
e6cc62c6 1777_ACEOF
95c8801c 1778
e6cc62c6 1779 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1780#define __BSD__ 1
e6cc62c6 1781_ACEOF
f6bcfd97
BP
1782
1783 DEFAULT_DEFAULT_wxUSE_GTK=1
1784 ;;
1785 *-*-netbsd*)
1786 USE_BSD=1
1787 USE_NETBSD=1
e6cc62c6 1788 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1789#define __NETBSD__ 1
e6cc62c6 1790_ACEOF
f6bcfd97 1791
e6cc62c6 1792 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1793#define __BSD__ 1
e6cc62c6 1794_ACEOF
10f2d63a
VZ
1795
1796 DEFAULT_DEFAULT_wxUSE_GTK=1
1797 ;;
1798 *-*-osf* )
1799 USE_ALPHA=1
1800 USE_OSF=1
e6cc62c6 1801 cat >>confdefs.h <<\_ACEOF
10f2d63a 1802#define __ALPHA__ 1
e6cc62c6 1803_ACEOF
10f2d63a 1804
e6cc62c6 1805 cat >>confdefs.h <<\_ACEOF
10f2d63a 1806#define __OSF__ 1
e6cc62c6 1807_ACEOF
10f2d63a
VZ
1808
1809 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1810 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1811 ;;
1812 *-*-dgux5* )
1813 USE_ALPHA=1
1814 USE_SVR4=1
e6cc62c6 1815 cat >>confdefs.h <<\_ACEOF
10f2d63a 1816#define __ALPHA__ 1
e6cc62c6 1817_ACEOF
10f2d63a 1818
e6cc62c6 1819 cat >>confdefs.h <<\_ACEOF
10f2d63a 1820#define __SVR4__ 1
e6cc62c6 1821_ACEOF
10f2d63a
VZ
1822
1823 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1824 ;;
1825 *-*-sysv5* )
1826 USE_SYSV=1
1827 USE_SVR4=1
e6cc62c6 1828 cat >>confdefs.h <<\_ACEOF
10f2d63a 1829#define __SYSV__ 1
e6cc62c6 1830_ACEOF
10f2d63a 1831
e6cc62c6 1832 cat >>confdefs.h <<\_ACEOF
10f2d63a 1833#define __SVR4__ 1
e6cc62c6 1834_ACEOF
10f2d63a
VZ
1835
1836 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1837 ;;
1838 *-*-aix* )
1839 USE_AIX=1
1840 USE_SYSV=1
1841 USE_SVR4=1
2b5f62a0 1842 SO_SUFFIX=a
e6cc62c6 1843 cat >>confdefs.h <<\_ACEOF
10f2d63a 1844#define __AIX__ 1
e6cc62c6 1845_ACEOF
10f2d63a 1846
e6cc62c6 1847 cat >>confdefs.h <<\_ACEOF
10f2d63a 1848#define __SYSV__ 1
e6cc62c6 1849_ACEOF
10f2d63a 1850
e6cc62c6 1851 cat >>confdefs.h <<\_ACEOF
10f2d63a 1852#define __SVR4__ 1
e6cc62c6 1853_ACEOF
10f2d63a
VZ
1854
1855 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1856 ;;
1857
89e3b3e4
VZ
1858 *-*-*UnixWare*)
1859 USE_SYSV=1
1860 USE_SVR4=1
1861 USE_UNIXWARE=1
e6cc62c6 1862 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1863#define __UNIXWARE__ 1
e6cc62c6 1864_ACEOF
89e3b3e4
VZ
1865
1866 ;;
1867
1c8183e2 1868 *-*-cygwin* | *-*-mingw32* )
17234b26 1869 SO_SUFFIX=dll
cf27ef00 1870 PROGRAM_EXT=".exe"
7b7a7637 1871 RESCOMP=windres
10f2d63a
VZ
1872 DEFAULT_DEFAULT_wxUSE_MSW=1
1873 ;;
1874
f9bc1684
VS
1875 *-pc-msdosdjgpp )
1876 USE_UNIX=0
1877 USE_DOS=1
e6cc62c6 1878 cat >>confdefs.h <<\_ACEOF
f9bc1684 1879#define __DOS__ 1
e6cc62c6 1880_ACEOF
f9bc1684
VS
1881
1882 PROGRAM_EXT=".exe"
1883 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1884 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1885 ;;
1886
6fa882bd 1887 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1888 cat >>confdefs.h <<\_ACEOF
10f2d63a 1889#define __EMX__ 1
e6cc62c6 1890_ACEOF
10f2d63a 1891
cf27ef00 1892 PROGRAM_EXT=".exe"
e07802fc 1893 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1894 ;;
1895
d08b457b
GD
1896 powerpc-*-darwin* )
1897 USE_BSD=1
f11bdd03 1898 USE_DARWIN=1
3a922bb4 1899 SO_SUFFIX=dylib
e6cc62c6 1900 cat >>confdefs.h <<\_ACEOF
f11bdd03 1901#define __BSD__ 1
e6cc62c6 1902_ACEOF
b4085ce6 1903
e6cc62c6 1904 cat >>confdefs.h <<\_ACEOF
f11bdd03 1905#define __DARWIN__ 1
e6cc62c6 1906_ACEOF
d08b457b 1907
e6cc62c6 1908 cat >>confdefs.h <<\_ACEOF
d08b457b 1909#define __POWERPC__ 1
e6cc62c6 1910_ACEOF
82d43113 1911
e6cc62c6 1912 cat >>confdefs.h <<\_ACEOF
82d43113 1913#define TARGET_CARBON 1
e6cc62c6 1914_ACEOF
b4085ce6
GD
1915
1916 DEFAULT_DEFAULT_wxUSE_MAC=1
1917 ;;
1918
b12915c1
VZ
1919 *-*-beos* )
1920 USE_BEOS=1
e6cc62c6 1921 cat >>confdefs.h <<\_ACEOF
b12915c1 1922#define __BEOS__ 1
e6cc62c6 1923_ACEOF
b12915c1
VZ
1924
1925 ;;
1926
10f2d63a 1927 *)
e6cc62c6
VS
1928 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1929echo "$as_me: error: unknown system type ${host}." >&2;}
1930 { (exit 1); exit 1; }; }
10f2d63a
VZ
1931esac
1932
8284b0c5
MB
1933
1934
1935
1936 wx_arg_cache_file="configarg.cache"
1937 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1938 rm -f ${wx_arg_cache_file}.tmp
1939 touch ${wx_arg_cache_file}.tmp
1940 touch ${wx_arg_cache_file}
e6cc62c6 1941
10f2d63a
VZ
1942
1943DEBUG_CONFIGURE=0
1944if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1945 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1946 DEFAULT_wxUSE_STL=no
1e6feb95 1947
d8356fa3
VZ
1948 DEFAULT_wxUSE_NANOX=no
1949
10f2d63a
VZ
1950 DEFAULT_wxUSE_THREADS=yes
1951
1952 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1953 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1954 DEFAULT_wxUSE_PROFILE=no
1955 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1956 DEFAULT_wxUSE_NO_RTTI=no
1957 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1958 DEFAULT_wxUSE_PERMISSIVE=no
1959 DEFAULT_wxUSE_DEBUG_FLAG=yes
1960 DEFAULT_wxUSE_DEBUG_INFO=yes
1961 DEFAULT_wxUSE_DEBUG_GDB=yes
1962 DEFAULT_wxUSE_MEM_TRACING=no
1963 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1964 DEFAULT_wxUSE_DMALLOC=no
1965 DEFAULT_wxUSE_APPLE_IEEE=no
1966
1967 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1968 DEFAULT_wxUSE_LOGWINDOW=no
1969 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1970 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1971
1972 DEFAULT_wxUSE_GUI=yes
1e6feb95 1973 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1974
3e44f09d 1975 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
1976 DEFAULT_wxUSE_XML=no
1977 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
1978 DEFAULT_wxUSE_ZLIB=no
1979 DEFAULT_wxUSE_LIBPNG=no
1980 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1981 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1982 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1983 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1984
eb4efbdc 1985 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1986 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1987 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1988 DEFAULT_wxUSE_CMDLINE_PARSER=no
1989 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1990 DEFAULT_wxUSE_TIMER=no
1991 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1992 DEFAULT_wxUSE_FILE=no
1e6feb95 1993 DEFAULT_wxUSE_FFILE=no
a3a584a7 1994 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1995 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1996 DEFAULT_wxUSE_WAVE=no
1997 DEFAULT_wxUSE_INTL=no
1998 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1999 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2000 DEFAULT_wxUSE_STREAMS=no
2001 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2002 DEFAULT_wxUSE_OLE=no
2003 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2004 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2005 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2006 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2007 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2008 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2009 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2010
2011 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2012 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2013 DEFAULT_wxUSE_POSTSCRIPT=no
2014
10f2d63a
VZ
2015 DEFAULT_wxUSE_CLIPBOARD=no
2016 DEFAULT_wxUSE_TOOLTIPS=no
2017 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2018 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2019 DEFAULT_wxUSE_SPLINES=no
2020
2021 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2022 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2023 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2024
10f2d63a
VZ
2025 DEFAULT_wxUSE_RESOURCES=no
2026 DEFAULT_wxUSE_CONSTRAINTS=no
2027 DEFAULT_wxUSE_IPC=no
2028 DEFAULT_wxUSE_HELP=no
29fd3c0c 2029 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2030 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2031 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2032 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2033 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2034 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2035 DEFAULT_wxUSE_PROTOCOL=no
2036 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2037 DEFAULT_wxUSE_PROTOCOL_FTP=no
2038 DEFAULT_wxUSE_PROTOCOL_FILE=no
2039 DEFAULT_wxUSE_URL=no
3bd8fb5f 2040
10f2d63a 2041 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2042 DEFAULT_wxUSE_CHOICEDLG=no
2043 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2044 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2045 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2046 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2047 DEFAULT_wxUSE_FONTDLG=no
2048 DEFAULT_wxUSE_MSGDLG=no
2049 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2050 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2051 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2052 DEFAULT_wxUSE_STARTUP_TIPS=no
2053 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2054 DEFAULT_wxUSE_WIZARDDLG=no
2055
1e6feb95 2056 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2057 DEFAULT_wxUSE_MINIFRAME=no
2058 DEFAULT_wxUSE_HTML=no
24528b0c 2059 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2060 DEFAULT_wxUSE_FS_INET=no
2061 DEFAULT_wxUSE_FS_ZIP=no
2062 DEFAULT_wxUSE_BUSYINFO=no
2063 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2064 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2065
2066 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2067 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2068 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2069 DEFAULT_wxUSE_CALCTRL=no
2070 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2071 DEFAULT_wxUSE_CHECKBOX=no
2072 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2073 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2074 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2075 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2076 DEFAULT_wxUSE_GAUGE=no
2077 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2078 DEFAULT_wxUSE_IMAGLIST=no
2079 DEFAULT_wxUSE_LISTBOX=no
2080 DEFAULT_wxUSE_LISTCTRL=no
2081 DEFAULT_wxUSE_NOTEBOOK=no
2082 DEFAULT_wxUSE_RADIOBOX=no
2083 DEFAULT_wxUSE_RADIOBTN=no
2084 DEFAULT_wxUSE_SASH=no
2085 DEFAULT_wxUSE_SCROLLBAR=no
2086 DEFAULT_wxUSE_SLIDER=no
2087 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2088 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2089 DEFAULT_wxUSE_SPLITTER=no
2090 DEFAULT_wxUSE_STATBMP=no
2091 DEFAULT_wxUSE_STATBOX=no
2092 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2093 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2094 DEFAULT_wxUSE_STATUSBAR=yes
2095 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2096 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2097 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2098 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2099 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2100 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2101 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2102 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2103 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2104
2105 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2106 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2107 DEFAULT_wxUSE_WCSRTOMBS=no
2108
edae8572 2109 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2110 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2111 DEFAULT_wxUSE_GIF=no
2112 DEFAULT_wxUSE_PCX=no
2113 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2114 DEFAULT_wxUSE_IFF=no
0046ff7c 2115 DEFAULT_wxUSE_XPM=no
658974ae 2116 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2117 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2118
e9e0dc15 2119 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2120 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2121else
1e6feb95 2122 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2123 DEFAULT_wxUSE_STL=no
1e6feb95 2124
d8356fa3
VZ
2125 DEFAULT_wxUSE_NANOX=no
2126
10f2d63a
VZ
2127 DEFAULT_wxUSE_THREADS=yes
2128
2129 DEFAULT_wxUSE_SHARED=yes
2130 DEFAULT_wxUSE_OPTIMISE=yes
2131 DEFAULT_wxUSE_PROFILE=no
2132 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2133 DEFAULT_wxUSE_NO_RTTI=no
2134 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2135 DEFAULT_wxUSE_PERMISSIVE=no
2136 DEFAULT_wxUSE_DEBUG_FLAG=no
2137 DEFAULT_wxUSE_DEBUG_INFO=no
2138 DEFAULT_wxUSE_DEBUG_GDB=no
2139 DEFAULT_wxUSE_MEM_TRACING=no
2140 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2141 DEFAULT_wxUSE_DMALLOC=no
2142 DEFAULT_wxUSE_APPLE_IEEE=yes
2143
2144 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2145 DEFAULT_wxUSE_LOGWINDOW=yes
2146 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2147 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2148
2149 DEFAULT_wxUSE_GUI=yes
2150
831b3152 2151 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2152 DEFAULT_wxUSE_XML=yes
2153 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2154 DEFAULT_wxUSE_ZLIB=yes
2155 DEFAULT_wxUSE_LIBPNG=yes
2156 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2157 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2158 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2159 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2160
eb4efbdc 2161 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2162 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2163 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2164 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2165 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2166 DEFAULT_wxUSE_TIMER=yes
2167 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2168 DEFAULT_wxUSE_FILE=yes
1e6feb95 2169 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2170 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2171 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2172 DEFAULT_wxUSE_WAVE=no
2173 DEFAULT_wxUSE_INTL=yes
2174 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2175 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2176 DEFAULT_wxUSE_STREAMS=yes
2177 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2178 DEFAULT_wxUSE_OLE=yes
2179 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2180 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2181 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2182 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2183 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2184 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2185 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2186
2187 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2188 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2189 DEFAULT_wxUSE_POSTSCRIPT=yes
2190
10f2d63a
VZ
2191 DEFAULT_wxUSE_CLIPBOARD=yes
2192 DEFAULT_wxUSE_TOOLTIPS=yes
2193 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2194 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2195 DEFAULT_wxUSE_SPLINES=yes
2196
2197 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2198 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2199 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2200
2b5f62a0 2201 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2202 DEFAULT_wxUSE_CONSTRAINTS=yes
2203 DEFAULT_wxUSE_IPC=yes
2204 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2205 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2206 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2207 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2208 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2209 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2210 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2211 DEFAULT_wxUSE_PROTOCOL=yes
2212 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2213 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2214 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2215 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2216
2217 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2218 DEFAULT_wxUSE_CHOICEDLG=yes
2219 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2220 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2221 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2222 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2223 DEFAULT_wxUSE_FONTDLG=yes
2224 DEFAULT_wxUSE_MSGDLG=yes
2225 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2226 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2227 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2228 DEFAULT_wxUSE_STARTUP_TIPS=yes
2229 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2230 DEFAULT_wxUSE_WIZARDDLG=yes
2231
1e6feb95 2232 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2233 DEFAULT_wxUSE_MINIFRAME=yes
2234 DEFAULT_wxUSE_HTML=yes
24528b0c 2235 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2236 DEFAULT_wxUSE_FS_INET=yes
2237 DEFAULT_wxUSE_FS_ZIP=yes
2238 DEFAULT_wxUSE_BUSYINFO=yes
2239 DEFAULT_wxUSE_ZIPSTREAM=yes
2240 DEFAULT_wxUSE_VALIDATORS=yes
2241
2242 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2243 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2244 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2245 DEFAULT_wxUSE_CALCTRL=yes
2246 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2247 DEFAULT_wxUSE_CHECKBOX=yes
2248 DEFAULT_wxUSE_CHECKLST=yes
2249 DEFAULT_wxUSE_CHOICE=yes
2250 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2251 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2252 DEFAULT_wxUSE_GAUGE=yes
2253 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2254 DEFAULT_wxUSE_IMAGLIST=yes
2255 DEFAULT_wxUSE_LISTBOX=yes
2256 DEFAULT_wxUSE_LISTCTRL=yes
2257 DEFAULT_wxUSE_NOTEBOOK=yes
2258 DEFAULT_wxUSE_RADIOBOX=yes
2259 DEFAULT_wxUSE_RADIOBTN=yes
2260 DEFAULT_wxUSE_SASH=yes
2261 DEFAULT_wxUSE_SCROLLBAR=yes
2262 DEFAULT_wxUSE_SLIDER=yes
2263 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2264 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2265 DEFAULT_wxUSE_SPLITTER=yes
2266 DEFAULT_wxUSE_STATBMP=yes
2267 DEFAULT_wxUSE_STATBOX=yes
2268 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2269 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2270 DEFAULT_wxUSE_STATUSBAR=yes
2271 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2272 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2273 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2274 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2275 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2276 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2277 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2278 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2279 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2280
2281 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2282 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2283 DEFAULT_wxUSE_WCSRTOMBS=no
2284
edae8572 2285 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2286 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2287 DEFAULT_wxUSE_GIF=yes
2288 DEFAULT_wxUSE_PCX=yes
cc0e8480 2289 DEFAULT_wxUSE_IFF=no
10f2d63a 2290 DEFAULT_wxUSE_PNM=yes
0046ff7c 2291 DEFAULT_wxUSE_XPM=yes
658974ae 2292 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2293 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2294
e9e0dc15 2295 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2296 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2297fi
2298
8284b0c5
MB
2299
2300
10f2d63a 2301for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2302 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2303 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2304 has_toolkit_in_cache=1
2305 eval "DEFAULT_$LINE"
2306 eval "CACHE_$toolkit=1"
2307 fi
2308done
2309
8284b0c5
MB
2310
2311
5005acfe 2312 enablestring=
e6cc62c6
VS
2313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2314echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2315 no_cache=0
2316 # Check whether --enable-gui or --disable-gui was given.
2317if test "${enable_gui+set}" = set; then
2318 enableval="$enable_gui"
e6cc62c6 2319
10f2d63a
VZ
2320 if test "$enableval" = yes; then
2321 ac_cv_use_gui='wxUSE_GUI=yes'
2322 else
2323 ac_cv_use_gui='wxUSE_GUI=no'
2324 fi
e6cc62c6 2325
10f2d63a 2326else
e6cc62c6 2327
10f2d63a
VZ
2328 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2329 if test "x$LINE" != x ; then
2330 eval "DEFAULT_$LINE"
2331 else
2332 no_cache=1
2333 fi
2334
2335 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2336
e6cc62c6 2337fi;
10f2d63a
VZ
2338
2339 eval "$ac_cv_use_gui"
2340 if test "$no_cache" != 1; then
2341 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2342 fi
2343
2344 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2345 echo "$as_me:$LINENO: result: yes" >&5
2346echo "${ECHO_T}yes" >&6
10f2d63a 2347 else
e6cc62c6
VS
2348 echo "$as_me:$LINENO: result: no" >&5
2349echo "${ECHO_T}no" >&6
10f2d63a 2350 fi
e6cc62c6 2351
10f2d63a 2352
9747f85d
VS
2353 enablestring=
2354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2355echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2356 no_cache=0
2357 # Check whether --enable-monolithic or --disable-monolithic was given.
2358if test "${enable_monolithic+set}" = set; then
2359 enableval="$enable_monolithic"
2360
2361 if test "$enableval" = yes; then
2362 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2363 else
2364 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2365 fi
2366
2367else
2368
2369 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2370 if test "x$LINE" != x ; then
2371 eval "DEFAULT_$LINE"
2372 else
2373 no_cache=1
2374 fi
2375
2376 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2377
2378fi;
2379
2380 eval "$ac_cv_use_monolithic"
2381 if test "$no_cache" != 1; then
2382 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2383 fi
2384
2385 if test "$wxUSE_MONOLITHIC" = yes; then
2386 echo "$as_me:$LINENO: result: yes" >&5
2387echo "${ECHO_T}yes" >&6
2388 else
2389 echo "$as_me:$LINENO: result: no" >&5
2390echo "${ECHO_T}no" >&6
2391 fi
2392
2393
b12915c1 2394if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2395
8284b0c5 2396
5005acfe 2397 enablestring=
e6cc62c6
VS
2398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2399echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2400 no_cache=0
2401 # Check whether --enable-universal or --disable-universal was given.
2402if test "${enable_universal+set}" = set; then
2403 enableval="$enable_universal"
e6cc62c6 2404
1e6feb95
VZ
2405 if test "$enableval" = yes; then
2406 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2407 else
2408 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2409 fi
e6cc62c6 2410
1e6feb95 2411else
e6cc62c6 2412
1e6feb95
VZ
2413 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2414 if test "x$LINE" != x ; then
2415 eval "DEFAULT_$LINE"
2416 else
2417 no_cache=1
2418 fi
2419
2420 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2421
e6cc62c6 2422fi;
1e6feb95
VZ
2423
2424 eval "$ac_cv_use_universal"
2425 if test "$no_cache" != 1; then
2426 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2427 fi
2428
2429 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2430 echo "$as_me:$LINENO: result: yes" >&5
2431echo "${ECHO_T}yes" >&6
1e6feb95 2432 else
e6cc62c6
VS
2433 echo "$as_me:$LINENO: result: no" >&5
2434echo "${ECHO_T}no" >&6
1e6feb95 2435 fi
e6cc62c6
VS
2436
2437
10f2d63a
VZ
2438# Check whether --with-gtk or --without-gtk was given.
2439if test "${with_gtk+set}" = set; then
2440 withval="$with_gtk"
2441 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2442fi;
10f2d63a
VZ
2443
2444# Check whether --with-motif or --without-motif was given.
2445if test "${with_motif+set}" = set; then
2446 withval="$with_motif"
2447 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2448fi;
10f2d63a 2449
b4085ce6
GD
2450# Check whether --with-mac or --without-mac was given.
2451if test "${with_mac+set}" = set; then
2452 withval="$with_mac"
2453 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2454fi;
b4085ce6 2455
ac0c4cc3
DE
2456# Check whether --with-cocoa or --without-cocoa was given.
2457if test "${with_cocoa+set}" = set; then
2458 withval="$with_cocoa"
2459 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2460fi;
ac0c4cc3 2461
10f2d63a
VZ
2462# Check whether --with-wine or --without-wine was given.
2463if test "${with_wine+set}" = set; then
2464 withval="$with_wine"
89e6bf6d 2465 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2466fi;
10f2d63a 2467
77e13408
RL
2468# Check whether --with-msw or --without-msw was given.
2469if test "${with_msw+set}" = set; then
2470 withval="$with_msw"
b4efce5e 2471 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2472fi;
10f2d63a 2473
e07802fc
VZ
2474# Check whether --with-pm or --without-pm was given.
2475if test "${with_pm+set}" = set; then
2476 withval="$with_pm"
2477 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2478fi;
698dcdb6 2479
1e6feb95
VZ
2480# Check whether --with-mgl or --without-mgl was given.
2481if test "${with_mgl+set}" = set; then
2482 withval="$with_mgl"
6c657b52 2483 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2484fi;
1e6feb95 2485
1725144d
RR
2486# Check whether --with-microwin or --without-microwin was given.
2487if test "${with_microwin+set}" = set; then
2488 withval="$with_microwin"
2489 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2490fi;
1725144d 2491
f79bd02d
JS
2492# Check whether --with-x11 or --without-x11 was given.
2493if test "${with_x11+set}" = set; then
2494 withval="$with_x11"
3c011993 2495 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2496fi;
a0b9e27f 2497
5005acfe 2498 enablestring=
e6cc62c6
VS
2499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2500echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2501 no_cache=0
ba875e66
VZ
2502 # Check whether --enable-nanox or --disable-nanox was given.
2503if test "${enable_nanox+set}" = set; then
2504 enableval="$enable_nanox"
e6cc62c6 2505
d8356fa3 2506 if test "$enableval" = yes; then
ba875e66 2507 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2508 else
ba875e66 2509 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2510 fi
e6cc62c6 2511
d8356fa3 2512else
e6cc62c6 2513
d8356fa3
VZ
2514 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2515 if test "x$LINE" != x ; then
2516 eval "DEFAULT_$LINE"
2517 else
2518 no_cache=1
2519 fi
2520
ba875e66 2521 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2522
e6cc62c6 2523fi;
d8356fa3 2524
ba875e66 2525 eval "$ac_cv_use_nanox"
d8356fa3 2526 if test "$no_cache" != 1; then
ba875e66 2527 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2528 fi
2529
2530 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2531 echo "$as_me:$LINENO: result: yes" >&5
2532echo "${ECHO_T}yes" >&6
d8356fa3 2533 else
e6cc62c6
VS
2534 echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6
d8356fa3 2536 fi
e6cc62c6 2537
8284b0c5 2538
d74f4b5a 2539
5005acfe 2540 enablestring=
e6cc62c6
VS
2541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2542echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2543 no_cache=0
2544 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2545if test "${enable_gtk2+set}" = set; then
2546 enableval="$enable_gtk2"
e6cc62c6 2547
d74f4b5a
VZ
2548 if test "$enableval" = yes; then
2549 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2550 else
2551 ac_cv_use_gtk2='wxUSE_GTK2=no'
2552 fi
e6cc62c6 2553
10f2d63a 2554else
e6cc62c6 2555
d74f4b5a
VZ
2556 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2557 if test "x$LINE" != x ; then
2558 eval "DEFAULT_$LINE"
2559 else
2560 no_cache=1
2561 fi
2562
2563 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2564
e6cc62c6 2565fi;
328a083c 2566
d74f4b5a
VZ
2567 eval "$ac_cv_use_gtk2"
2568 if test "$no_cache" != 1; then
2569 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2570 fi
2571
2572 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2573 echo "$as_me:$LINENO: result: yes" >&5
2574echo "${ECHO_T}yes" >&6
d74f4b5a 2575 else
e6cc62c6
VS
2576 echo "$as_me:$LINENO: result: no" >&5
2577echo "${ECHO_T}no" >&6
d74f4b5a 2578 fi
d74f4b5a 2579
5c6fa7d2 2580
e6cc62c6
VS
2581
2582 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2583echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2584 no_cache=0
e6cc62c6
VS
2585
2586# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2587if test "${with_libpng+set}" = set; then
2588 withval="$with_libpng"
e6cc62c6 2589
10f2d63a 2590 if test "$withval" = yes; then
b12915c1 2591 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2592 elif test "$withval" = no; then
b12915c1 2593 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2594 elif test "$withval" = sys; then
2595 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2596 elif test "$withval" = builtin; then
2597 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2598 else
e6cc62c6
VS
2599 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2600echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2601 { (exit 1); exit 1; }; }
10f2d63a 2602 fi
e6cc62c6 2603
10f2d63a 2604else
e6cc62c6 2605
b12915c1 2606 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2607 if test "x$LINE" != x ; then
2608 eval "DEFAULT_$LINE"
2609 else
2610 no_cache=1
2611 fi
2612
b12915c1 2613 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2614
e6cc62c6 2615fi;
10f2d63a 2616
b12915c1 2617 eval "$ac_cv_use_libpng"
10f2d63a 2618 if test "$no_cache" != 1; then
b12915c1 2619 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2620 fi
2621
b12915c1 2622 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2623 echo "$as_me:$LINENO: result: yes" >&5
2624echo "${ECHO_T}yes" >&6
422107f9 2625 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2626 echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6
422107f9 2628 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2629 echo "$as_me:$LINENO: result: system version" >&5
2630echo "${ECHO_T}system version" >&6
4f14bcd8 2631 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2632 echo "$as_me:$LINENO: result: builtin version" >&5
2633echo "${ECHO_T}builtin version" >&6
422107f9 2634 else
e6cc62c6
VS
2635 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2636echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2637 { (exit 1); exit 1; }; }
10f2d63a 2638 fi
10f2d63a 2639
e6cc62c6
VS
2640
2641 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2642echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2643 no_cache=0
e6cc62c6
VS
2644
2645# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2646if test "${with_libjpeg+set}" = set; then
2647 withval="$with_libjpeg"
e6cc62c6 2648
10f2d63a 2649 if test "$withval" = yes; then
b12915c1 2650 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2651 elif test "$withval" = no; then
b12915c1 2652 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2653 elif test "$withval" = sys; then
2654 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2655 elif test "$withval" = builtin; then
2656 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2657 else
e6cc62c6
VS
2658 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2659echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2660 { (exit 1); exit 1; }; }
10f2d63a 2661 fi
e6cc62c6 2662
10f2d63a 2663else
e6cc62c6 2664
b12915c1 2665 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
b12915c1 2672 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2673
e6cc62c6 2674fi;
10f2d63a 2675
b12915c1 2676 eval "$ac_cv_use_libjpeg"
10f2d63a 2677 if test "$no_cache" != 1; then
b12915c1 2678 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2679 fi
2680
b12915c1 2681 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2682 echo "$as_me:$LINENO: result: yes" >&5
2683echo "${ECHO_T}yes" >&6
422107f9 2684 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2685 echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6
422107f9 2687 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2688 echo "$as_me:$LINENO: result: system version" >&5
2689echo "${ECHO_T}system version" >&6
4f14bcd8 2690 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2691 echo "$as_me:$LINENO: result: builtin version" >&5
2692echo "${ECHO_T}builtin version" >&6
422107f9 2693 else
e6cc62c6
VS
2694 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2695echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2696 { (exit 1); exit 1; }; }
10f2d63a 2697 fi
10f2d63a 2698
e6cc62c6
VS
2699
2700 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2701echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2702 no_cache=0
e6cc62c6
VS
2703
2704# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2705if test "${with_libtiff+set}" = set; then
2706 withval="$with_libtiff"
e6cc62c6 2707
10f2d63a 2708 if test "$withval" = yes; then
b12915c1 2709 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2710 elif test "$withval" = no; then
b12915c1 2711 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2712 elif test "$withval" = sys; then
2713 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2714 elif test "$withval" = builtin; then
2715 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2716 else
e6cc62c6
VS
2717 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2718echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2719 { (exit 1); exit 1; }; }
10f2d63a 2720 fi
e6cc62c6 2721
10f2d63a 2722else
e6cc62c6 2723
b12915c1 2724 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2725 if test "x$LINE" != x ; then
2726 eval "DEFAULT_$LINE"
2727 else
2728 no_cache=1
2729 fi
2730
b12915c1 2731 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2732
e6cc62c6 2733fi;
10f2d63a 2734
b12915c1 2735 eval "$ac_cv_use_libtiff"
10f2d63a 2736 if test "$no_cache" != 1; then
b12915c1 2737 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2738 fi
2739
b12915c1 2740 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2741 echo "$as_me:$LINENO: result: yes" >&5
2742echo "${ECHO_T}yes" >&6
0dcf9893 2743 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2744 echo "$as_me:$LINENO: result: no" >&5
2745echo "${ECHO_T}no" >&6
0dcf9893 2746 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2747 echo "$as_me:$LINENO: result: system version" >&5
2748echo "${ECHO_T}system version" >&6
4f14bcd8 2749 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2750 echo "$as_me:$LINENO: result: builtin version" >&5
2751echo "${ECHO_T}builtin version" >&6
0dcf9893 2752 else
e6cc62c6
VS
2753 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2754echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2755 { (exit 1); exit 1; }; }
10f2d63a 2756 fi
10f2d63a 2757
e6cc62c6
VS
2758
2759 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2760echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2761 no_cache=0
e6cc62c6
VS
2762
2763# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2764if test "${with_opengl+set}" = set; then
2765 withval="$with_opengl"
e6cc62c6 2766
10f2d63a 2767 if test "$withval" = yes; then
b12915c1 2768 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2769 else
b12915c1 2770 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2771 fi
e6cc62c6 2772
10f2d63a 2773else
e6cc62c6 2774
b12915c1 2775 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2776 if test "x$LINE" != x ; then
2777 eval "DEFAULT_$LINE"
2778 else
2779 no_cache=1
2780 fi
2781
b12915c1 2782 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2783
e6cc62c6 2784fi;
10f2d63a 2785
b12915c1 2786 eval "$ac_cv_use_opengl"
10f2d63a 2787 if test "$no_cache" != 1; then
b12915c1 2788 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2789 fi
2790
b12915c1 2791 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2792 echo "$as_me:$LINENO: result: yes" >&5
2793echo "${ECHO_T}yes" >&6
10f2d63a 2794 else
e6cc62c6
VS
2795 echo "$as_me:$LINENO: result: no" >&5
2796echo "${ECHO_T}no" >&6
10f2d63a 2797 fi
e6cc62c6 2798
10f2d63a 2799
b12915c1
VZ
2800fi
2801
5c6fa7d2 2802
e6cc62c6
VS
2803 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2804echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2805 no_cache=0
e6cc62c6
VS
2806
2807# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2808if test "${with_dmalloc+set}" = set; then
2809 withval="$with_dmalloc"
e6cc62c6 2810
c7a2bf27 2811 if test "$withval" = yes; then
b12915c1 2812 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2813 else
b12915c1 2814 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2815 fi
e6cc62c6 2816
c7a2bf27 2817else
e6cc62c6 2818
b12915c1 2819 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
b12915c1 2826 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2827
e6cc62c6 2828fi;
c7a2bf27 2829
b12915c1 2830 eval "$ac_cv_use_dmalloc"
c7a2bf27 2831 if test "$no_cache" != 1; then
b12915c1 2832 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2833 fi
2834
b12915c1 2835 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2836 echo "$as_me:$LINENO: result: yes" >&5
2837echo "${ECHO_T}yes" >&6
c7a2bf27 2838 else
e6cc62c6
VS
2839 echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6
c7a2bf27 2841 fi
c7a2bf27 2842
e6cc62c6
VS
2843
2844 echo "$as_me:$LINENO: checking for --with-regex" >&5
2845echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2846 no_cache=0
e6cc62c6
VS
2847
2848# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2849if test "${with_regex+set}" = set; then
2850 withval="$with_regex"
e6cc62c6 2851
3e44f09d
VZ
2852 if test "$withval" = yes; then
2853 ac_cv_use_regex='wxUSE_REGEX=yes'
2854 elif test "$withval" = no; then
2855 ac_cv_use_regex='wxUSE_REGEX=no'
2856 elif test "$withval" = sys; then
2857 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2858 elif test "$withval" = builtin; then
2859 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2860 else
e6cc62c6
VS
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2862echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
3e44f09d 2864 fi
e6cc62c6 2865
3e44f09d 2866else
e6cc62c6 2867
3e44f09d
VZ
2868 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2876
e6cc62c6 2877fi;
3e44f09d
VZ
2878
2879 eval "$ac_cv_use_regex"
2880 if test "$no_cache" != 1; then
2881 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2882 fi
2883
2884 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2885 echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
3e44f09d 2887 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2888 echo "$as_me:$LINENO: result: no" >&5
2889echo "${ECHO_T}no" >&6
3e44f09d 2890 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2891 echo "$as_me:$LINENO: result: system version" >&5
2892echo "${ECHO_T}system version" >&6
4f14bcd8 2893 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2894 echo "$as_me:$LINENO: result: builtin version" >&5
2895echo "${ECHO_T}builtin version" >&6
3e44f09d 2896 else
e6cc62c6
VS
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
3e44f09d 2900 fi
3e44f09d 2901
e6cc62c6
VS
2902
2903 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2904echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2905 no_cache=0
e6cc62c6
VS
2906
2907# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2908if test "${with_zlib+set}" = set; then
2909 withval="$with_zlib"
e6cc62c6 2910
10f2d63a 2911 if test "$withval" = yes; then
b12915c1 2912 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2913 elif test "$withval" = no; then
b12915c1 2914 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2915 elif test "$withval" = sys; then
2916 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2917 elif test "$withval" = builtin; then
2918 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2919 else
e6cc62c6
VS
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
10f2d63a 2923 fi
e6cc62c6 2924
10f2d63a 2925else
e6cc62c6 2926
b12915c1 2927 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2928 if test "x$LINE" != x ; then
2929 eval "DEFAULT_$LINE"
2930 else
2931 no_cache=1
2932 fi
2933
b12915c1 2934 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2935
e6cc62c6 2936fi;
10f2d63a 2937
b12915c1 2938 eval "$ac_cv_use_zlib"
10f2d63a 2939 if test "$no_cache" != 1; then
b12915c1 2940 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2941 fi
2942
b12915c1 2943 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2944 echo "$as_me:$LINENO: result: yes" >&5
2945echo "${ECHO_T}yes" >&6
422107f9 2946 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2947 echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
422107f9 2949 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2950 echo "$as_me:$LINENO: result: system version" >&5
2951echo "${ECHO_T}system version" >&6
4f14bcd8 2952 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2953 echo "$as_me:$LINENO: result: builtin version" >&5
2954echo "${ECHO_T}builtin version" >&6
422107f9 2955 else
e6cc62c6
VS
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
10f2d63a 2959 fi
10f2d63a 2960
e6cc62c6
VS
2961
2962 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2963echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2964 no_cache=0
e6cc62c6
VS
2965
2966# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2967if test "${with_odbc+set}" = set; then
2968 withval="$with_odbc"
e6cc62c6 2969
10f2d63a
VZ
2970 if test "$withval" = yes; then
2971 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2972 elif test "$withval" = no; then
10f2d63a 2973 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2974 elif test "$withval" = sys; then
2975 ac_cv_use_odbc='wxUSE_ODBC=sys'
2976 elif test "$withval" = builtin; then
2977 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2978 else
e6cc62c6
VS
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
10f2d63a 2982 fi
e6cc62c6 2983
10f2d63a 2984else
e6cc62c6 2985
10f2d63a
VZ
2986 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2994
e6cc62c6 2995fi;
10f2d63a
VZ
2996
2997 eval "$ac_cv_use_odbc"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3003 echo "$as_me:$LINENO: result: yes" >&5
3004echo "${ECHO_T}yes" >&6
8647bec6 3005 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3006 echo "$as_me:$LINENO: result: no" >&5
3007echo "${ECHO_T}no" >&6
8647bec6 3008 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3009 echo "$as_me:$LINENO: result: system version" >&5
3010echo "${ECHO_T}system version" >&6
8647bec6 3011 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3012 echo "$as_me:$LINENO: result: builtin version" >&5
3013echo "${ECHO_T}builtin version" >&6
8647bec6 3014 else
e6cc62c6
VS
3015 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3016echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3017 { (exit 1); exit 1; }; }
10f2d63a 3018 fi
e6cc62c6 3019
52127426 3020
672abd7a
VS
3021 echo "$as_me:$LINENO: checking for --with-expat" >&5
3022echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3023 no_cache=0
3024
3025# Check whether --with-expat or --without-expat was given.
3026if test "${with_expat+set}" = set; then
3027 withval="$with_expat"
3028
3029 if test "$withval" = yes; then
3030 ac_cv_use_expat='wxUSE_EXPAT=yes'
3031 elif test "$withval" = no; then
3032 ac_cv_use_expat='wxUSE_EXPAT=no'
3033 elif test "$withval" = sys; then
3034 ac_cv_use_expat='wxUSE_EXPAT=sys'
3035 elif test "$withval" = builtin; then
3036 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3037 else
3038 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3039echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3040 { (exit 1); exit 1; }; }
3041 fi
3042
3043else
3044
3045 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3046 if test "x$LINE" != x ; then
3047 eval "DEFAULT_$LINE"
3048 else
3049 no_cache=1
3050 fi
3051
3052 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3053
3054fi;
3055
3056 eval "$ac_cv_use_expat"
3057 if test "$no_cache" != 1; then
3058 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3059 fi
3060
3061 if test "$wxUSE_EXPAT" = yes; then
3062 echo "$as_me:$LINENO: result: yes" >&5
3063echo "${ECHO_T}yes" >&6
3064 elif test "$wxUSE_EXPAT" = no; then
3065 echo "$as_me:$LINENO: result: no" >&5
3066echo "${ECHO_T}no" >&6
3067 elif test "$wxUSE_EXPAT" = sys; then
3068 echo "$as_me:$LINENO: result: system version" >&5
3069echo "${ECHO_T}system version" >&6
3070 elif test "$wxUSE_EXPAT" = builtin; then
3071 echo "$as_me:$LINENO: result: builtin version" >&5
3072echo "${ECHO_T}builtin version" >&6
3073 else
3074 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3075echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3076 { (exit 1); exit 1; }; }
3077 fi
3078
3079
8284b0c5
MB
3080
3081
5005acfe 3082 enablestring=
e6cc62c6
VS
3083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3084echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3085 no_cache=0
3086 # Check whether --enable-shared or --disable-shared was given.
3087if test "${enable_shared+set}" = set; then
3088 enableval="$enable_shared"
e6cc62c6 3089
10f2d63a
VZ
3090 if test "$enableval" = yes; then
3091 ac_cv_use_shared='wxUSE_SHARED=yes'
3092 else
3093 ac_cv_use_shared='wxUSE_SHARED=no'
3094 fi
e6cc62c6 3095
10f2d63a 3096else
e6cc62c6 3097
10f2d63a
VZ
3098 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3106
e6cc62c6 3107fi;
10f2d63a
VZ
3108
3109 eval "$ac_cv_use_shared"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3115 echo "$as_me:$LINENO: result: yes" >&5
3116echo "${ECHO_T}yes" >&6
10f2d63a 3117 else
e6cc62c6
VS
3118 echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
10f2d63a 3120 fi
e6cc62c6 3121
10f2d63a 3122
5005acfe 3123 enablestring=
e6cc62c6
VS
3124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3125echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3126 no_cache=0
3127 # Check whether --enable-optimise or --disable-optimise was given.
3128if test "${enable_optimise+set}" = set; then
3129 enableval="$enable_optimise"
e6cc62c6 3130
10f2d63a
VZ
3131 if test "$enableval" = yes; then
3132 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3133 else
3134 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3135 fi
e6cc62c6 3136
10f2d63a 3137else
e6cc62c6 3138
10f2d63a
VZ
3139 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3140 if test "x$LINE" != x ; then
3141 eval "DEFAULT_$LINE"
3142 else
3143 no_cache=1
3144 fi
3145
3146 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3147
e6cc62c6 3148fi;
10f2d63a
VZ
3149
3150 eval "$ac_cv_use_optimise"
3151 if test "$no_cache" != 1; then
3152 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3153 fi
3154
3155 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3156 echo "$as_me:$LINENO: result: yes" >&5
3157echo "${ECHO_T}yes" >&6
10f2d63a 3158 else
e6cc62c6
VS
3159 echo "$as_me:$LINENO: result: no" >&5
3160echo "${ECHO_T}no" >&6
10f2d63a 3161 fi
e6cc62c6 3162
10f2d63a 3163
5005acfe 3164 enablestring=
e6cc62c6
VS
3165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3166echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3167 no_cache=0
3168 # Check whether --enable-debug or --disable-debug was given.
3169if test "${enable_debug+set}" = set; then
3170 enableval="$enable_debug"
e6cc62c6 3171
10f2d63a
VZ
3172 if test "$enableval" = yes; then
3173 ac_cv_use_debug='wxUSE_DEBUG=yes'
3174 else
3175 ac_cv_use_debug='wxUSE_DEBUG=no'
3176 fi
e6cc62c6 3177
10f2d63a 3178else
e6cc62c6 3179
10f2d63a
VZ
3180 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3188
e6cc62c6 3189fi;
10f2d63a
VZ
3190
3191 eval "$ac_cv_use_debug"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3197 echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
10f2d63a 3199 else
e6cc62c6
VS
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
10f2d63a 3202 fi
e6cc62c6 3203
52127426 3204
df5168c4
MB
3205 enablestring=
3206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3207echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3208 no_cache=0
3209 # Check whether --enable-stl or --disable-stl was given.
3210if test "${enable_stl+set}" = set; then
3211 enableval="$enable_stl"
3212
3213 if test "$enableval" = yes; then
3214 ac_cv_use_stl='wxUSE_STL=yes'
3215 else
3216 ac_cv_use_stl='wxUSE_STL=no'
3217 fi
3218
3219else
3220
3221 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3222 if test "x$LINE" != x ; then
3223 eval "DEFAULT_$LINE"
3224 else
3225 no_cache=1
3226 fi
3227
3228 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3229
3230fi;
3231
3232 eval "$ac_cv_use_stl"
3233 if test "$no_cache" != 1; then
3234 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3235 fi
3236
3237 if test "$wxUSE_STL" = yes; then
3238 echo "$as_me:$LINENO: result: yes" >&5
3239echo "${ECHO_T}yes" >&6
3240 else
3241 echo "$as_me:$LINENO: result: no" >&5
3242echo "${ECHO_T}no" >&6
3243 fi
3244
3245
10f2d63a
VZ
3246if test "$wxUSE_DEBUG" = "yes"; then
3247 DEFAULT_wxUSE_DEBUG_FLAG=yes
3248 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3249 BUILD=debug
10f2d63a
VZ
3250elif test "$wxUSE_DEBUG" = "no"; then
3251 DEFAULT_wxUSE_DEBUG_FLAG=no
3252 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3253 BUILD=release
10f2d63a
VZ
3254fi
3255
8284b0c5 3256
5005acfe 3257 enablestring=
e6cc62c6
VS
3258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3259echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3260 no_cache=0
3261 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3262if test "${enable_debug_flag+set}" = set; then
3263 enableval="$enable_debug_flag"
e6cc62c6 3264
10f2d63a
VZ
3265 if test "$enableval" = yes; then
3266 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3267 else
3268 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3269 fi
e6cc62c6 3270
10f2d63a 3271else
e6cc62c6 3272
10f2d63a
VZ
3273 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3274 if test "x$LINE" != x ; then
3275 eval "DEFAULT_$LINE"
3276 else
3277 no_cache=1
3278 fi
3279
3280 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3281
e6cc62c6 3282fi;
10f2d63a
VZ
3283
3284 eval "$ac_cv_use_debug_flag"
3285 if test "$no_cache" != 1; then
3286 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3287 fi
3288
3289 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3290 echo "$as_me:$LINENO: result: yes" >&5
3291echo "${ECHO_T}yes" >&6
10f2d63a 3292 else
e6cc62c6
VS
3293 echo "$as_me:$LINENO: result: no" >&5
3294echo "${ECHO_T}no" >&6
10f2d63a 3295 fi
e6cc62c6 3296
10f2d63a 3297
5005acfe 3298 enablestring=
e6cc62c6
VS
3299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3300echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3301 no_cache=0
3302 # Check whether --enable-debug_info or --disable-debug_info was given.
3303if test "${enable_debug_info+set}" = set; then
3304 enableval="$enable_debug_info"
e6cc62c6 3305
10f2d63a
VZ
3306 if test "$enableval" = yes; then
3307 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3308 else
3309 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3310 fi
e6cc62c6 3311
10f2d63a 3312else
e6cc62c6 3313
10f2d63a
VZ
3314 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3315 if test "x$LINE" != x ; then
3316 eval "DEFAULT_$LINE"
3317 else
3318 no_cache=1
3319 fi
3320
3321 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3322
e6cc62c6 3323fi;
10f2d63a
VZ
3324
3325 eval "$ac_cv_use_debug_info"
3326 if test "$no_cache" != 1; then
3327 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3328 fi
3329
3330 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3331 echo "$as_me:$LINENO: result: yes" >&5
3332echo "${ECHO_T}yes" >&6
10f2d63a 3333 else
e6cc62c6
VS
3334 echo "$as_me:$LINENO: result: no" >&5
3335echo "${ECHO_T}no" >&6
10f2d63a 3336 fi
e6cc62c6 3337
10f2d63a 3338
5005acfe 3339 enablestring=
e6cc62c6
VS
3340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3341echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3342 no_cache=0
3343 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3344if test "${enable_debug_gdb+set}" = set; then
3345 enableval="$enable_debug_gdb"
e6cc62c6 3346
10f2d63a
VZ
3347 if test "$enableval" = yes; then
3348 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3349 else
3350 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3351 fi
e6cc62c6 3352
10f2d63a 3353else
e6cc62c6 3354
10f2d63a
VZ
3355 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3356 if test "x$LINE" != x ; then
3357 eval "DEFAULT_$LINE"
3358 else
3359 no_cache=1
3360 fi
3361
3362 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3363
e6cc62c6 3364fi;
10f2d63a
VZ
3365
3366 eval "$ac_cv_use_debug_gdb"
3367 if test "$no_cache" != 1; then
3368 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3369 fi
3370
3371 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3372 echo "$as_me:$LINENO: result: yes" >&5
3373echo "${ECHO_T}yes" >&6
10f2d63a 3374 else
e6cc62c6
VS
3375 echo "$as_me:$LINENO: result: no" >&5
3376echo "${ECHO_T}no" >&6
10f2d63a 3377 fi
e6cc62c6 3378
10f2d63a 3379
5005acfe 3380 enablestring=
e6cc62c6
VS
3381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3382echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3383 no_cache=0
3384 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3385if test "${enable_debug_cntxt+set}" = set; then
3386 enableval="$enable_debug_cntxt"
e6cc62c6 3387
10f2d63a
VZ
3388 if test "$enableval" = yes; then
3389 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3390 else
3391 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3392 fi
e6cc62c6 3393
10f2d63a 3394else
e6cc62c6 3395
10f2d63a
VZ
3396 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3397 if test "x$LINE" != x ; then
3398 eval "DEFAULT_$LINE"
3399 else
3400 no_cache=1
3401 fi
3402
3403 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3404
e6cc62c6 3405fi;
10f2d63a
VZ
3406
3407 eval "$ac_cv_use_debug_cntxt"
3408 if test "$no_cache" != 1; then
3409 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3410 fi
3411
3412 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3413 echo "$as_me:$LINENO: result: yes" >&5
3414echo "${ECHO_T}yes" >&6
10f2d63a 3415 else
e6cc62c6
VS
3416 echo "$as_me:$LINENO: result: no" >&5
3417echo "${ECHO_T}no" >&6
10f2d63a 3418 fi
e6cc62c6 3419
10f2d63a 3420
5005acfe 3421 enablestring=
e6cc62c6
VS
3422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3423echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3424 no_cache=0
3425 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3426if test "${enable_mem_tracing+set}" = set; then
3427 enableval="$enable_mem_tracing"
e6cc62c6 3428
10f2d63a
VZ
3429 if test "$enableval" = yes; then
3430 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3431 else
3432 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3433 fi
e6cc62c6 3434
10f2d63a 3435else
e6cc62c6 3436
10f2d63a
VZ
3437 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3438 if test "x$LINE" != x ; then
3439 eval "DEFAULT_$LINE"
3440 else
3441 no_cache=1
3442 fi
3443
3444 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3445
e6cc62c6 3446fi;
10f2d63a
VZ
3447
3448 eval "$ac_cv_use_mem_tracing"
3449 if test "$no_cache" != 1; then
3450 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3451 fi
3452
3453 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3454 echo "$as_me:$LINENO: result: yes" >&5
3455echo "${ECHO_T}yes" >&6
10f2d63a 3456 else
e6cc62c6
VS
3457 echo "$as_me:$LINENO: result: no" >&5
3458echo "${ECHO_T}no" >&6
10f2d63a 3459 fi
e6cc62c6 3460
10f2d63a 3461
5005acfe 3462 enablestring=
e6cc62c6
VS
3463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3464echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3465 no_cache=0
3466 # Check whether --enable-profile or --disable-profile was given.
3467if test "${enable_profile+set}" = set; then
3468 enableval="$enable_profile"
e6cc62c6 3469
10f2d63a
VZ
3470 if test "$enableval" = yes; then
3471 ac_cv_use_profile='wxUSE_PROFILE=yes'
3472 else
3473 ac_cv_use_profile='wxUSE_PROFILE=no'
3474 fi
e6cc62c6 3475
10f2d63a 3476else
e6cc62c6 3477
10f2d63a
VZ
3478 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3486
e6cc62c6 3487fi;
10f2d63a
VZ
3488
3489 eval "$ac_cv_use_profile"
3490 if test "$no_cache" != 1; then
3491 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3492 fi
3493
3494 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3495 echo "$as_me:$LINENO: result: yes" >&5
3496echo "${ECHO_T}yes" >&6
10f2d63a 3497 else
e6cc62c6
VS
3498 echo "$as_me:$LINENO: result: no" >&5
3499echo "${ECHO_T}no" >&6
10f2d63a 3500 fi
e6cc62c6 3501
10f2d63a 3502
5005acfe 3503 enablestring=
e6cc62c6
VS
3504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3505echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3506 no_cache=0
3507 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3508if test "${enable_no_rtti+set}" = set; then
3509 enableval="$enable_no_rtti"
e6cc62c6 3510
10f2d63a
VZ
3511 if test "$enableval" = yes; then
3512 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3513 else
3514 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3515 fi
e6cc62c6 3516
10f2d63a 3517else
e6cc62c6 3518
10f2d63a
VZ
3519 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3520 if test "x$LINE" != x ; then
3521 eval "DEFAULT_$LINE"
3522 else
3523 no_cache=1
3524 fi
3525
3526 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3527
e6cc62c6 3528fi;
10f2d63a
VZ
3529
3530 eval "$ac_cv_use_no_rtti"
3531 if test "$no_cache" != 1; then
3532 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3533 fi
3534
3535 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3536 echo "$as_me:$LINENO: result: yes" >&5
3537echo "${ECHO_T}yes" >&6
10f2d63a 3538 else
e6cc62c6
VS
3539 echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6
10f2d63a 3541 fi
e6cc62c6 3542
10f2d63a 3543
5005acfe 3544 enablestring=
e6cc62c6
VS
3545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3546echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3547 no_cache=0
3548 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3549if test "${enable_no_exceptions+set}" = set; then
3550 enableval="$enable_no_exceptions"
e6cc62c6 3551
10f2d63a
VZ
3552 if test "$enableval" = yes; then
3553 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3554 else
3555 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3556 fi
e6cc62c6 3557
10f2d63a 3558else
e6cc62c6 3559
10f2d63a
VZ
3560 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3561 if test "x$LINE" != x ; then
3562 eval "DEFAULT_$LINE"
3563 else
3564 no_cache=1
3565 fi
3566
3567 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3568
e6cc62c6 3569fi;
10f2d63a
VZ
3570
3571 eval "$ac_cv_use_no_exceptions"
3572 if test "$no_cache" != 1; then
3573 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3574 fi
3575
3576 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3577 echo "$as_me:$LINENO: result: yes" >&5
3578echo "${ECHO_T}yes" >&6
10f2d63a 3579 else
e6cc62c6
VS
3580 echo "$as_me:$LINENO: result: no" >&5
3581echo "${ECHO_T}no" >&6
10f2d63a 3582 fi
e6cc62c6 3583
10f2d63a 3584
5005acfe 3585 enablestring=
e6cc62c6
VS
3586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3587echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3588 no_cache=0
3589 # Check whether --enable-permissive or --disable-permissive was given.
3590if test "${enable_permissive+set}" = set; then
3591 enableval="$enable_permissive"
e6cc62c6 3592
10f2d63a
VZ
3593 if test "$enableval" = yes; then
3594 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3595 else
3596 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3597 fi
e6cc62c6 3598
10f2d63a 3599else
e6cc62c6 3600
10f2d63a
VZ
3601 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3602 if test "x$LINE" != x ; then
3603 eval "DEFAULT_$LINE"
3604 else
3605 no_cache=1
3606 fi
3607
3608 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3609
e6cc62c6 3610fi;
10f2d63a
VZ
3611
3612 eval "$ac_cv_use_permissive"
3613 if test "$no_cache" != 1; then
3614 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3615 fi
3616
3617 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3618 echo "$as_me:$LINENO: result: yes" >&5
3619echo "${ECHO_T}yes" >&6
10f2d63a 3620 else
e6cc62c6
VS
3621 echo "$as_me:$LINENO: result: no" >&5
3622echo "${ECHO_T}no" >&6
10f2d63a 3623 fi
e6cc62c6 3624
10f2d63a 3625
5005acfe 3626 enablestring=
e6cc62c6
VS
3627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3628echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3629 no_cache=0
3630 # Check whether --enable-no_deps or --disable-no_deps was given.
3631if test "${enable_no_deps+set}" = set; then
3632 enableval="$enable_no_deps"
e6cc62c6 3633
10f2d63a
VZ
3634 if test "$enableval" = yes; then
3635 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3636 else
3637 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3638 fi
e6cc62c6 3639
10f2d63a 3640else
e6cc62c6 3641
10f2d63a
VZ
3642 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3650
e6cc62c6 3651fi;
10f2d63a
VZ
3652
3653 eval "$ac_cv_use_no_deps"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3659 echo "$as_me:$LINENO: result: yes" >&5
3660echo "${ECHO_T}yes" >&6
10f2d63a 3661 else
e6cc62c6
VS
3662 echo "$as_me:$LINENO: result: no" >&5
3663echo "${ECHO_T}no" >&6
10f2d63a 3664 fi
e6cc62c6 3665
52127426 3666
8284b0c5 3667
5005acfe 3668 enablestring=
e6cc62c6
VS
3669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3670echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
54276ccf
VZ
3671 no_cache=0
3672 # Check whether --enable-compat20 or --disable-compat20 was given.
3673if test "${enable_compat20+set}" = set; then
3674 enableval="$enable_compat20"
e6cc62c6 3675
54276ccf
VZ
3676 if test "$enableval" = yes; then
3677 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3678 else
3679 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3680 fi
e6cc62c6 3681
54276ccf 3682else
e6cc62c6 3683
54276ccf
VZ
3684 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
3691 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3692
e6cc62c6 3693fi;
54276ccf
VZ
3694
3695 eval "$ac_cv_use_compat20"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$WXWIN_COMPATIBILITY_2" = yes; then
e6cc62c6
VS
3701 echo "$as_me:$LINENO: result: yes" >&5
3702echo "${ECHO_T}yes" >&6
54276ccf 3703 else
e6cc62c6
VS
3704 echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
54276ccf 3706 fi
e6cc62c6 3707
54276ccf 3708
65d8ef1e 3709 enablestring=
e6cc62c6
VS
3710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3711echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3712 no_cache=0
3713 # Check whether --enable-compat22 or --disable-compat22 was given.
3714if test "${enable_compat22+set}" = set; then
3715 enableval="$enable_compat22"
e6cc62c6 3716
54276ccf
VZ
3717 if test "$enableval" = yes; then
3718 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3719 else
3720 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3721 fi
e6cc62c6 3722
54276ccf 3723else
e6cc62c6 3724
54276ccf
VZ
3725 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3726 if test "x$LINE" != x ; then
3727 eval "DEFAULT_$LINE"
3728 else
3729 no_cache=1
3730 fi
3731
3732 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3733
e6cc62c6 3734fi;
54276ccf
VZ
3735
3736 eval "$ac_cv_use_compat22"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3742 echo "$as_me:$LINENO: result: yes" >&5
3743echo "${ECHO_T}yes" >&6
54276ccf 3744 else
e6cc62c6
VS
3745 echo "$as_me:$LINENO: result: no" >&5
3746echo "${ECHO_T}no" >&6
54276ccf 3747 fi
e6cc62c6 3748
54276ccf 3749
65d8ef1e 3750 enablestring=disable
e6cc62c6
VS
3751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3752echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3753 no_cache=0
3754 # Check whether --enable-compat24 or --disable-compat24 was given.
3755if test "${enable_compat24+set}" = set; then
3756 enableval="$enable_compat24"
e6cc62c6 3757
65d8ef1e
VS
3758 if test "$enableval" = yes; then
3759 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3760 else
3761 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3762 fi
e6cc62c6 3763
65d8ef1e 3764else
e6cc62c6 3765
65d8ef1e
VS
3766 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3774
e6cc62c6 3775fi;
65d8ef1e
VS
3776
3777 eval "$ac_cv_use_compat24"
3778 if test "$no_cache" != 1; then
3779 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3780 fi
3781
3782 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3783 echo "$as_me:$LINENO: result: yes" >&5
3784echo "${ECHO_T}yes" >&6
65d8ef1e 3785 else
e6cc62c6
VS
3786 echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
65d8ef1e 3788 fi
e6cc62c6 3789
65d8ef1e 3790
3bd8fb5f
RD
3791# Check whether --enable-rpath or --disable-rpath was given.
3792if test "${enable_rpath+set}" = set; then
3793 enableval="$enable_rpath"
3794 wxRPATH_DIR="$enableval"
e6cc62c6 3795fi;
3bd8fb5f
RD
3796
3797if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3798 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3799fi
3800
8284b0c5
MB
3801
3802
3803
5005acfe 3804 enablestring=
e6cc62c6
VS
3805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3806echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3807 no_cache=0
3808 # Check whether --enable-intl or --disable-intl was given.
3809if test "${enable_intl+set}" = set; then
3810 enableval="$enable_intl"
e6cc62c6 3811
10f2d63a
VZ
3812 if test "$enableval" = yes; then
3813 ac_cv_use_intl='wxUSE_INTL=yes'
3814 else
3815 ac_cv_use_intl='wxUSE_INTL=no'
3816 fi
e6cc62c6 3817
10f2d63a 3818else
e6cc62c6 3819
10f2d63a
VZ
3820 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3821 if test "x$LINE" != x ; then
3822 eval "DEFAULT_$LINE"
3823 else
3824 no_cache=1
3825 fi
3826
3827 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3828
e6cc62c6 3829fi;
10f2d63a
VZ
3830
3831 eval "$ac_cv_use_intl"
3832 if test "$no_cache" != 1; then
3833 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3834 fi
3835
3836 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3837 echo "$as_me:$LINENO: result: yes" >&5
3838echo "${ECHO_T}yes" >&6
10f2d63a 3839 else
e6cc62c6
VS
3840 echo "$as_me:$LINENO: result: no" >&5
3841echo "${ECHO_T}no" >&6
10f2d63a 3842 fi
e6cc62c6 3843
10f2d63a 3844
5005acfe 3845 enablestring=
e6cc62c6
VS
3846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3847echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3848 no_cache=0
3849 # Check whether --enable-config or --disable-config was given.
3850if test "${enable_config+set}" = set; then
3851 enableval="$enable_config"
e6cc62c6 3852
10f2d63a
VZ
3853 if test "$enableval" = yes; then
3854 ac_cv_use_config='wxUSE_CONFIG=yes'
3855 else
3856 ac_cv_use_config='wxUSE_CONFIG=no'
3857 fi
e6cc62c6 3858
10f2d63a 3859else
e6cc62c6 3860
10f2d63a
VZ
3861 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3862 if test "x$LINE" != x ; then
3863 eval "DEFAULT_$LINE"
3864 else
3865 no_cache=1
3866 fi
3867
3868 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3869
e6cc62c6 3870fi;
10f2d63a
VZ
3871
3872 eval "$ac_cv_use_config"
3873 if test "$no_cache" != 1; then
3874 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3875 fi
3876
3877 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3878 echo "$as_me:$LINENO: result: yes" >&5
3879echo "${ECHO_T}yes" >&6
10f2d63a 3880 else
e6cc62c6
VS
3881 echo "$as_me:$LINENO: result: no" >&5
3882echo "${ECHO_T}no" >&6
10f2d63a 3883 fi
e6cc62c6 3884
52127426 3885
8284b0c5 3886
5005acfe 3887 enablestring=
e6cc62c6
VS
3888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3889echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3890 no_cache=0
3891 # Check whether --enable-protocols or --disable-protocols was given.
3892if test "${enable_protocols+set}" = set; then
3893 enableval="$enable_protocols"
e6cc62c6 3894
a1622950
VZ
3895 if test "$enableval" = yes; then
3896 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3897 else
3898 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3899 fi
e6cc62c6 3900
a1622950 3901else
e6cc62c6 3902
a1622950
VZ
3903 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3904 if test "x$LINE" != x ; then
3905 eval "DEFAULT_$LINE"
3906 else
3907 no_cache=1
3908 fi
3909
3910 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3911
e6cc62c6 3912fi;
a1622950
VZ
3913
3914 eval "$ac_cv_use_protocols"
3915 if test "$no_cache" != 1; then
3916 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3917 fi
3918
3919 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3920 echo "$as_me:$LINENO: result: yes" >&5
3921echo "${ECHO_T}yes" >&6
a1622950 3922 else
e6cc62c6
VS
3923 echo "$as_me:$LINENO: result: no" >&5
3924echo "${ECHO_T}no" >&6
a1622950 3925 fi
e6cc62c6 3926
a1622950 3927
5005acfe 3928 enablestring=
e6cc62c6
VS
3929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3930echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3931 no_cache=0
3932 # Check whether --enable-ftp or --disable-ftp was given.
3933if test "${enable_ftp+set}" = set; then
3934 enableval="$enable_ftp"
e6cc62c6 3935
a1622950
VZ
3936 if test "$enableval" = yes; then
3937 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3938 else
3939 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3940 fi
e6cc62c6 3941
a1622950 3942else
e6cc62c6 3943
a1622950
VZ
3944 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3945 if test "x$LINE" != x ; then
3946 eval "DEFAULT_$LINE"
3947 else
3948 no_cache=1
3949 fi
3950
3951 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3952
e6cc62c6 3953fi;
a1622950
VZ
3954
3955 eval "$ac_cv_use_ftp"
3956 if test "$no_cache" != 1; then
3957 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3958 fi
3959
3960 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3961 echo "$as_me:$LINENO: result: yes" >&5
3962echo "${ECHO_T}yes" >&6
a1622950 3963 else
e6cc62c6
VS
3964 echo "$as_me:$LINENO: result: no" >&5
3965echo "${ECHO_T}no" >&6
a1622950 3966 fi
e6cc62c6 3967
a1622950 3968
5005acfe 3969 enablestring=
e6cc62c6
VS
3970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3971echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3972 no_cache=0
3973 # Check whether --enable-http or --disable-http was given.
3974if test "${enable_http+set}" = set; then
3975 enableval="$enable_http"
e6cc62c6 3976
a1622950
VZ
3977 if test "$enableval" = yes; then
3978 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3979 else
3980 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3981 fi
e6cc62c6 3982
a1622950 3983else
e6cc62c6 3984
a1622950
VZ
3985 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3986 if test "x$LINE" != x ; then
3987 eval "DEFAULT_$LINE"
3988 else
3989 no_cache=1
3990 fi
3991
3992 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3993
e6cc62c6 3994fi;
a1622950
VZ
3995
3996 eval "$ac_cv_use_http"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4002 echo "$as_me:$LINENO: result: yes" >&5
4003echo "${ECHO_T}yes" >&6
a1622950 4004 else
e6cc62c6
VS
4005 echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
a1622950 4007 fi
e6cc62c6 4008
a1622950 4009
5005acfe 4010 enablestring=
e6cc62c6
VS
4011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4012echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4013 no_cache=0
4014 # Check whether --enable-fileproto or --disable-fileproto was given.
4015if test "${enable_fileproto+set}" = set; then
4016 enableval="$enable_fileproto"
e6cc62c6 4017
a1622950
VZ
4018 if test "$enableval" = yes; then
4019 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4020 else
4021 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4022 fi
e6cc62c6 4023
a1622950 4024else
e6cc62c6 4025
a1622950
VZ
4026 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4027 if test "x$LINE" != x ; then
4028 eval "DEFAULT_$LINE"
4029 else
4030 no_cache=1
4031 fi
4032
4033 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4034
e6cc62c6 4035fi;
a1622950
VZ
4036
4037 eval "$ac_cv_use_fileproto"
4038 if test "$no_cache" != 1; then
4039 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4040 fi
4041
4042 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4043 echo "$as_me:$LINENO: result: yes" >&5
4044echo "${ECHO_T}yes" >&6
a1622950 4045 else
e6cc62c6
VS
4046 echo "$as_me:$LINENO: result: no" >&5
4047echo "${ECHO_T}no" >&6
a1622950 4048 fi
e6cc62c6 4049
a1622950 4050
5005acfe 4051 enablestring=
e6cc62c6
VS
4052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4053echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4054 no_cache=0
4055 # Check whether --enable-sockets or --disable-sockets was given.
4056if test "${enable_sockets+set}" = set; then
4057 enableval="$enable_sockets"
e6cc62c6 4058
10f2d63a
VZ
4059 if test "$enableval" = yes; then
4060 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4061 else
4062 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4063 fi
e6cc62c6 4064
10f2d63a 4065else
e6cc62c6 4066
10f2d63a
VZ
4067 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4068 if test "x$LINE" != x ; then
4069 eval "DEFAULT_$LINE"
4070 else
4071 no_cache=1
4072 fi
4073
4074 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4075
e6cc62c6 4076fi;
10f2d63a
VZ
4077
4078 eval "$ac_cv_use_sockets"
4079 if test "$no_cache" != 1; then
4080 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4081 fi
4082
4083 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4084 echo "$as_me:$LINENO: result: yes" >&5
4085echo "${ECHO_T}yes" >&6
10f2d63a 4086 else
e6cc62c6
VS
4087 echo "$as_me:$LINENO: result: no" >&5
4088echo "${ECHO_T}no" >&6
10f2d63a 4089 fi
e6cc62c6 4090
8284b0c5 4091
5005acfe 4092 enablestring=
e6cc62c6
VS
4093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4094echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4095 no_cache=0
4096 # Check whether --enable-ole or --disable-ole was given.
4097if test "${enable_ole+set}" = set; then
4098 enableval="$enable_ole"
e6cc62c6 4099
3bce6687
JS
4100 if test "$enableval" = yes; then
4101 ac_cv_use_ole='wxUSE_OLE=yes'
4102 else
4103 ac_cv_use_ole='wxUSE_OLE=no'
4104 fi
e6cc62c6 4105
3bce6687 4106else
e6cc62c6 4107
3bce6687
JS
4108 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4109 if test "x$LINE" != x ; then
4110 eval "DEFAULT_$LINE"
4111 else
4112 no_cache=1
4113 fi
4114
4115 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4116
e6cc62c6 4117fi;
3bce6687
JS
4118
4119 eval "$ac_cv_use_ole"
4120 if test "$no_cache" != 1; then
4121 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4122 fi
4123
4124 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4125 echo "$as_me:$LINENO: result: yes" >&5
4126echo "${ECHO_T}yes" >&6
3bce6687 4127 else
e6cc62c6
VS
4128 echo "$as_me:$LINENO: result: no" >&5
4129echo "${ECHO_T}no" >&6
3bce6687 4130 fi
e6cc62c6 4131
3bce6687 4132
5005acfe 4133 enablestring=
e6cc62c6
VS
4134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4135echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4136 no_cache=0
4137 # Check whether --enable-dataobj or --disable-dataobj was given.
4138if test "${enable_dataobj+set}" = set; then
4139 enableval="$enable_dataobj"
e6cc62c6 4140
3bce6687
JS
4141 if test "$enableval" = yes; then
4142 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4143 else
4144 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4145 fi
e6cc62c6 4146
3bce6687 4147else
e6cc62c6 4148
3bce6687
JS
4149 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4150 if test "x$LINE" != x ; then
4151 eval "DEFAULT_$LINE"
4152 else
4153 no_cache=1
4154 fi
4155
4156 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4157
e6cc62c6 4158fi;
3bce6687
JS
4159
4160 eval "$ac_cv_use_dataobj"
4161 if test "$no_cache" != 1; then
4162 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4163 fi
4164
4165 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4166 echo "$as_me:$LINENO: result: yes" >&5
4167echo "${ECHO_T}yes" >&6
3bce6687 4168 else
e6cc62c6
VS
4169 echo "$as_me:$LINENO: result: no" >&5
4170echo "${ECHO_T}no" >&6
3bce6687 4171 fi
e6cc62c6 4172
3bce6687 4173
52127426 4174
5005acfe 4175 enablestring=
e6cc62c6
VS
4176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4177echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4178 no_cache=0
eb4efbdc
VZ
4179 # Check whether --enable-ipc or --disable-ipc was given.
4180if test "${enable_ipc+set}" = set; then
4181 enableval="$enable_ipc"
e6cc62c6 4182
10f2d63a 4183 if test "$enableval" = yes; then
eb4efbdc 4184 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4185 else
eb4efbdc 4186 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4187 fi
e6cc62c6 4188
10f2d63a 4189else
e6cc62c6 4190
eb4efbdc 4191 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
eb4efbdc 4198 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4199
e6cc62c6 4200fi;
10f2d63a 4201
eb4efbdc 4202 eval "$ac_cv_use_ipc"
10f2d63a 4203 if test "$no_cache" != 1; then
eb4efbdc 4204 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4205 fi
4206
eb4efbdc 4207 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4208 echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6
10f2d63a 4210 else
e6cc62c6
VS
4211 echo "$as_me:$LINENO: result: no" >&5
4212echo "${ECHO_T}no" >&6
10f2d63a 4213 fi
e6cc62c6 4214
52127426 4215
8284b0c5 4216
5005acfe 4217 enablestring=
e6cc62c6
VS
4218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4219echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4220 no_cache=0
4221 # Check whether --enable-cmdline or --disable-cmdline was given.
4222if test "${enable_cmdline+set}" = set; then
4223 enableval="$enable_cmdline"
e6cc62c6 4224
1e6feb95
VZ
4225 if test "$enableval" = yes; then
4226 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4227 else
4228 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4229 fi
e6cc62c6 4230
1e6feb95 4231else
e6cc62c6 4232
1e6feb95
VZ
4233 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4234 if test "x$LINE" != x ; then
4235 eval "DEFAULT_$LINE"
4236 else
4237 no_cache=1
4238 fi
4239
4240 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4241
e6cc62c6 4242fi;
1e6feb95
VZ
4243
4244 eval "$ac_cv_use_cmdline"
4245 if test "$no_cache" != 1; then
4246 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4247 fi
4248
4249 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4250 echo "$as_me:$LINENO: result: yes" >&5
4251echo "${ECHO_T}yes" >&6
1e6feb95 4252 else
e6cc62c6
VS
4253 echo "$as_me:$LINENO: result: no" >&5
4254echo "${ECHO_T}no" >&6
1e6feb95 4255 fi
e6cc62c6 4256
1e6feb95 4257
5005acfe 4258 enablestring=
e6cc62c6
VS
4259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4260echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4261 no_cache=0
4262 # Check whether --enable-datetime or --disable-datetime was given.
4263if test "${enable_datetime+set}" = set; then
4264 enableval="$enable_datetime"
e6cc62c6 4265
1e6feb95
VZ
4266 if test "$enableval" = yes; then
4267 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4268 else
4269 ac_cv_use_datetime='wxUSE_DATETIME=no'
4270 fi
e6cc62c6 4271
1e6feb95 4272else
e6cc62c6 4273
1e6feb95
VZ
4274 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4275 if test "x$LINE" != x ; then
4276 eval "DEFAULT_$LINE"
4277 else
4278 no_cache=1
4279 fi
4280
4281 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4282
e6cc62c6 4283fi;
1e6feb95
VZ
4284
4285 eval "$ac_cv_use_datetime"
4286 if test "$no_cache" != 1; then
4287 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4288 fi
4289
4290 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4291 echo "$as_me:$LINENO: result: yes" >&5
4292echo "${ECHO_T}yes" >&6
1e6feb95 4293 else
e6cc62c6
VS
4294 echo "$as_me:$LINENO: result: no" >&5
4295echo "${ECHO_T}no" >&6
1e6feb95 4296 fi
e6cc62c6 4297
1e6feb95 4298
5005acfe 4299 enablestring=
e6cc62c6
VS
4300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4301echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4302 no_cache=0
4303 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4304if test "${enable_stopwatch+set}" = set; then
4305 enableval="$enable_stopwatch"
e6cc62c6 4306
1e6feb95
VZ
4307 if test "$enableval" = yes; then
4308 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4309 else
4310 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4311 fi
e6cc62c6 4312
1e6feb95 4313else
e6cc62c6 4314
1e6feb95
VZ
4315 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
4322 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4323
e6cc62c6 4324fi;
1e6feb95
VZ
4325
4326 eval "$ac_cv_use_stopwatch"
4327 if test "$no_cache" != 1; then
4328 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4329 fi
4330
4331 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4332 echo "$as_me:$LINENO: result: yes" >&5
4333echo "${ECHO_T}yes" >&6
1e6feb95 4334 else
e6cc62c6
VS
4335 echo "$as_me:$LINENO: result: no" >&5
4336echo "${ECHO_T}no" >&6
1e6feb95 4337 fi
e6cc62c6 4338
1e6feb95 4339
5005acfe 4340 enablestring=
e6cc62c6
VS
4341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4342echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4343 no_cache=0
eb4efbdc
VZ
4344 # Check whether --enable-dialupman or --disable-dialupman was given.
4345if test "${enable_dialupman+set}" = set; then
4346 enableval="$enable_dialupman"
e6cc62c6 4347
10f2d63a 4348 if test "$enableval" = yes; then
eb4efbdc 4349 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4350 else
eb4efbdc 4351 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4352 fi
e6cc62c6 4353
10f2d63a 4354else
e6cc62c6 4355
eb4efbdc 4356 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4357 if test "x$LINE" != x ; then
4358 eval "DEFAULT_$LINE"
4359 else
4360 no_cache=1
4361 fi
4362
eb4efbdc 4363 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4364
e6cc62c6 4365fi;
10f2d63a 4366
eb4efbdc 4367 eval "$ac_cv_use_dialupman"
10f2d63a 4368 if test "$no_cache" != 1; then
eb4efbdc 4369 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4370 fi
4371
eb4efbdc 4372 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4373 echo "$as_me:$LINENO: result: yes" >&5
4374echo "${ECHO_T}yes" >&6
10f2d63a 4375 else
e6cc62c6
VS
4376 echo "$as_me:$LINENO: result: no" >&5
4377echo "${ECHO_T}no" >&6
10f2d63a 4378 fi
e6cc62c6 4379
10f2d63a 4380
5005acfe 4381 enablestring=
e6cc62c6
VS
4382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4383echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4384 no_cache=0
4385 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4386if test "${enable_apple_ieee+set}" = set; then
4387 enableval="$enable_apple_ieee"
e6cc62c6 4388
10f2d63a
VZ
4389 if test "$enableval" = yes; then
4390 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4391 else
4392 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4393 fi
e6cc62c6 4394
10f2d63a 4395else
e6cc62c6 4396
10f2d63a
VZ
4397 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4398 if test "x$LINE" != x ; then
4399 eval "DEFAULT_$LINE"
4400 else
4401 no_cache=1
4402 fi
4403
4404 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4405
e6cc62c6 4406fi;
10f2d63a
VZ
4407
4408 eval "$ac_cv_use_apple_ieee"
4409 if test "$no_cache" != 1; then
4410 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4411 fi
4412
4413 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4414 echo "$as_me:$LINENO: result: yes" >&5
4415echo "${ECHO_T}yes" >&6
10f2d63a 4416 else
e6cc62c6
VS
4417 echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6
10f2d63a 4419 fi
e6cc62c6 4420
10f2d63a 4421
5005acfe 4422 enablestring=
e6cc62c6
VS
4423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4424echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4425 no_cache=0
1e6feb95
VZ
4426 # Check whether --enable-timer or --disable-timer was given.
4427if test "${enable_timer+set}" = set; then
4428 enableval="$enable_timer"
e6cc62c6 4429
10f2d63a 4430 if test "$enableval" = yes; then
1e6feb95 4431 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4432 else
1e6feb95 4433 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4434 fi
e6cc62c6 4435
10f2d63a 4436else
e6cc62c6 4437
1e6feb95 4438 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4439 if test "x$LINE" != x ; then
4440 eval "DEFAULT_$LINE"
4441 else
4442 no_cache=1
4443 fi
4444
1e6feb95 4445 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4446
e6cc62c6 4447fi;
10f2d63a 4448
1e6feb95 4449 eval "$ac_cv_use_timer"
10f2d63a 4450 if test "$no_cache" != 1; then
1e6feb95 4451 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4452 fi
4453
1e6feb95 4454 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4455 echo "$as_me:$LINENO: result: yes" >&5
4456echo "${ECHO_T}yes" >&6
10f2d63a 4457 else
e6cc62c6
VS
4458 echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6
10f2d63a 4460 fi
e6cc62c6 4461
10f2d63a 4462
5005acfe 4463 enablestring=
e6cc62c6
VS
4464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4465echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4466 no_cache=0
4467 # Check whether --enable-wave or --disable-wave was given.
4468if test "${enable_wave+set}" = set; then
4469 enableval="$enable_wave"
e6cc62c6 4470
10f2d63a
VZ
4471 if test "$enableval" = yes; then
4472 ac_cv_use_wave='wxUSE_WAVE=yes'
4473 else
4474 ac_cv_use_wave='wxUSE_WAVE=no'
4475 fi
e6cc62c6 4476
10f2d63a 4477else
e6cc62c6 4478
10f2d63a
VZ
4479 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4480 if test "x$LINE" != x ; then
4481 eval "DEFAULT_$LINE"
4482 else
4483 no_cache=1
4484 fi
4485
4486 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4487
e6cc62c6 4488fi;
10f2d63a
VZ
4489
4490 eval "$ac_cv_use_wave"
4491 if test "$no_cache" != 1; then
4492 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4493 fi
4494
4495 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4496 echo "$as_me:$LINENO: result: yes" >&5
4497echo "${ECHO_T}yes" >&6
10f2d63a 4498 else
e6cc62c6
VS
4499 echo "$as_me:$LINENO: result: no" >&5
4500echo "${ECHO_T}no" >&6
10f2d63a 4501 fi
e6cc62c6 4502
10f2d63a 4503
5005acfe 4504 enablestring=
e6cc62c6
VS
4505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4506echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4507 no_cache=0
4508 # Check whether --enable-fraction or --disable-fraction was given.
4509if test "${enable_fraction+set}" = set; then
4510 enableval="$enable_fraction"
e6cc62c6 4511
10f2d63a
VZ
4512 if test "$enableval" = yes; then
4513 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4514 else
4515 ac_cv_use_fraction='wxUSE_FRACTION=no'
4516 fi
e6cc62c6 4517
10f2d63a 4518else
e6cc62c6 4519
10f2d63a
VZ
4520 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4521 if test "x$LINE" != x ; then
4522 eval "DEFAULT_$LINE"
4523 else
4524 no_cache=1
4525 fi
4526
4527 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4528
e6cc62c6 4529fi;
10f2d63a
VZ
4530
4531 eval "$ac_cv_use_fraction"
4532 if test "$no_cache" != 1; then
4533 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4534 fi
4535
4536 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4537 echo "$as_me:$LINENO: result: yes" >&5
4538echo "${ECHO_T}yes" >&6
10f2d63a 4539 else
e6cc62c6
VS
4540 echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6
10f2d63a 4542 fi
e6cc62c6 4543
10f2d63a 4544
5005acfe 4545 enablestring=
e6cc62c6
VS
4546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4547echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4548 no_cache=0
4549 # Check whether --enable-dynlib or --disable-dynlib was given.
4550if test "${enable_dynlib+set}" = set; then
4551 enableval="$enable_dynlib"
e6cc62c6 4552
10f2d63a
VZ
4553 if test "$enableval" = yes; then
4554 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4555 else
4556 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4557 fi
e6cc62c6 4558
10f2d63a 4559else
e6cc62c6 4560
10f2d63a
VZ
4561 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4562 if test "x$LINE" != x ; then
4563 eval "DEFAULT_$LINE"
4564 else
4565 no_cache=1
4566 fi
4567
4568 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4569
e6cc62c6 4570fi;
10f2d63a
VZ
4571
4572 eval "$ac_cv_use_dynlib"
4573 if test "$no_cache" != 1; then
4574 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4575 fi
4576
4577 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4578 echo "$as_me:$LINENO: result: yes" >&5
4579echo "${ECHO_T}yes" >&6
10f2d63a 4580 else
e6cc62c6
VS
4581 echo "$as_me:$LINENO: result: no" >&5
4582echo "${ECHO_T}no" >&6
10f2d63a 4583 fi
e6cc62c6 4584
10f2d63a 4585
5005acfe 4586 enablestring=
e6cc62c6
VS
4587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4588echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4589 no_cache=0
4590 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4591if test "${enable_dynamicloader+set}" = set; then
4592 enableval="$enable_dynamicloader"
e6cc62c6 4593
0b9ab0bd
RL
4594 if test "$enableval" = yes; then
4595 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4596 else
4597 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4598 fi
e6cc62c6 4599
0b9ab0bd 4600else
e6cc62c6 4601
0b9ab0bd
RL
4602 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4603 if test "x$LINE" != x ; then
4604 eval "DEFAULT_$LINE"
4605 else
4606 no_cache=1
4607 fi
4608
4609 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4610
e6cc62c6 4611fi;
0b9ab0bd
RL
4612
4613 eval "$ac_cv_use_dynamicloader"
4614 if test "$no_cache" != 1; then
4615 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4616 fi
4617
4618 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4619 echo "$as_me:$LINENO: result: yes" >&5
4620echo "${ECHO_T}yes" >&6
0b9ab0bd 4621 else
e6cc62c6
VS
4622 echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6
0b9ab0bd 4624 fi
e6cc62c6 4625
0b9ab0bd 4626
5005acfe 4627 enablestring=
e6cc62c6
VS
4628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4629echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4630 no_cache=0
4631 # Check whether --enable-longlong or --disable-longlong was given.
4632if test "${enable_longlong+set}" = set; then
4633 enableval="$enable_longlong"
e6cc62c6 4634
10f2d63a
VZ
4635 if test "$enableval" = yes; then
4636 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4637 else
4638 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4639 fi
e6cc62c6 4640
10f2d63a 4641else
e6cc62c6 4642
10f2d63a
VZ
4643 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4644 if test "x$LINE" != x ; then
4645 eval "DEFAULT_$LINE"
4646 else
4647 no_cache=1
4648 fi
4649
4650 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4651
e6cc62c6 4652fi;
10f2d63a
VZ
4653
4654 eval "$ac_cv_use_longlong"
4655 if test "$no_cache" != 1; then
4656 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4657 fi
4658
4659 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4660 echo "$as_me:$LINENO: result: yes" >&5
4661echo "${ECHO_T}yes" >&6
10f2d63a 4662 else
e6cc62c6
VS
4663 echo "$as_me:$LINENO: result: no" >&5
4664echo "${ECHO_T}no" >&6
10f2d63a 4665 fi
e6cc62c6 4666
10f2d63a 4667
5005acfe 4668 enablestring=
e6cc62c6
VS
4669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4670echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4671 no_cache=0
4672 # Check whether --enable-geometry or --disable-geometry was given.
4673if test "${enable_geometry+set}" = set; then
4674 enableval="$enable_geometry"
e6cc62c6 4675
e8f65ba6
RR
4676 if test "$enableval" = yes; then
4677 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4678 else
4679 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4680 fi
e6cc62c6 4681
e8f65ba6 4682else
e6cc62c6 4683
e8f65ba6
RR
4684 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4685 if test "x$LINE" != x ; then
4686 eval "DEFAULT_$LINE"
4687 else
4688 no_cache=1
4689 fi
4690
4691 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4692
e6cc62c6 4693fi;
e8f65ba6
RR
4694
4695 eval "$ac_cv_use_geometry"
4696 if test "$no_cache" != 1; then
4697 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4698 fi
4699
4700 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4701 echo "$as_me:$LINENO: result: yes" >&5
4702echo "${ECHO_T}yes" >&6
e8f65ba6 4703 else
e6cc62c6
VS
4704 echo "$as_me:$LINENO: result: no" >&5
4705echo "${ECHO_T}no" >&6
e8f65ba6 4706 fi
e6cc62c6 4707
e8f65ba6 4708
5005acfe 4709 enablestring=
e6cc62c6
VS
4710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4711echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4712 no_cache=0
4713 # Check whether --enable-log or --disable-log was given.
4714if test "${enable_log+set}" = set; then
4715 enableval="$enable_log"
e6cc62c6 4716
10f2d63a
VZ
4717 if test "$enableval" = yes; then
4718 ac_cv_use_log='wxUSE_LOG=yes'
4719 else
4720 ac_cv_use_log='wxUSE_LOG=no'
4721 fi
e6cc62c6 4722
10f2d63a 4723else
e6cc62c6 4724
10f2d63a
VZ
4725 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4733
e6cc62c6 4734fi;
10f2d63a
VZ
4735
4736 eval "$ac_cv_use_log"
4737 if test "$no_cache" != 1; then
4738 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4739 fi
4740
4741 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4742 echo "$as_me:$LINENO: result: yes" >&5
4743echo "${ECHO_T}yes" >&6
10f2d63a 4744 else
e6cc62c6
VS
4745 echo "$as_me:$LINENO: result: no" >&5
4746echo "${ECHO_T}no" >&6
10f2d63a 4747 fi
e6cc62c6 4748
10f2d63a 4749
5005acfe 4750 enablestring=
e6cc62c6
VS
4751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4752echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4753 no_cache=0
4754 # Check whether --enable-streams or --disable-streams was given.
4755if test "${enable_streams+set}" = set; then
4756 enableval="$enable_streams"
e6cc62c6 4757
10f2d63a
VZ
4758 if test "$enableval" = yes; then
4759 ac_cv_use_streams='wxUSE_STREAMS=yes'
4760 else
4761 ac_cv_use_streams='wxUSE_STREAMS=no'
4762 fi
e6cc62c6 4763
10f2d63a 4764else
e6cc62c6 4765
10f2d63a
VZ
4766 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4767 if test "x$LINE" != x ; then
4768 eval "DEFAULT_$LINE"
4769 else
4770 no_cache=1
4771 fi
4772
4773 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4774
e6cc62c6 4775fi;
10f2d63a
VZ
4776
4777 eval "$ac_cv_use_streams"
4778 if test "$no_cache" != 1; then
4779 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4780 fi
4781
4782 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4783 echo "$as_me:$LINENO: result: yes" >&5
4784echo "${ECHO_T}yes" >&6
10f2d63a 4785 else
e6cc62c6
VS
4786 echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6
10f2d63a 4788 fi
e6cc62c6 4789
10f2d63a 4790
5005acfe 4791 enablestring=
e6cc62c6
VS
4792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4793echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4794 no_cache=0
4795 # Check whether --enable-file or --disable-file was given.
4796if test "${enable_file+set}" = set; then
4797 enableval="$enable_file"
e6cc62c6 4798
10f2d63a
VZ
4799 if test "$enableval" = yes; then
4800 ac_cv_use_file='wxUSE_FILE=yes'
4801 else
4802 ac_cv_use_file='wxUSE_FILE=no'
4803 fi
e6cc62c6 4804
10f2d63a 4805else
e6cc62c6 4806
10f2d63a
VZ
4807 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4808 if test "x$LINE" != x ; then
4809 eval "DEFAULT_$LINE"
4810 else
4811 no_cache=1
4812 fi
4813
4814 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4815
e6cc62c6 4816fi;
10f2d63a
VZ
4817
4818 eval "$ac_cv_use_file"
4819 if test "$no_cache" != 1; then
4820 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4821 fi
4822
4823 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4824 echo "$as_me:$LINENO: result: yes" >&5
4825echo "${ECHO_T}yes" >&6
10f2d63a 4826 else
e6cc62c6
VS
4827 echo "$as_me:$LINENO: result: no" >&5
4828echo "${ECHO_T}no" >&6
10f2d63a 4829 fi
e6cc62c6 4830
10f2d63a 4831
5005acfe 4832 enablestring=
e6cc62c6
VS
4833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4834echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4835 no_cache=0
1e6feb95
VZ
4836 # Check whether --enable-ffile or --disable-ffile was given.
4837if test "${enable_ffile+set}" = set; then
4838 enableval="$enable_ffile"
e6cc62c6 4839
10f2d63a 4840 if test "$enableval" = yes; then
1e6feb95 4841 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4842 else
1e6feb95 4843 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4844 fi
e6cc62c6 4845
10f2d63a 4846else
e6cc62c6 4847
1e6feb95 4848 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4849 if test "x$LINE" != x ; then
4850 eval "DEFAULT_$LINE"
4851 else
4852 no_cache=1
4853 fi
4854
1e6feb95 4855 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4856
e6cc62c6 4857fi;
10f2d63a 4858
1e6feb95 4859 eval "$ac_cv_use_ffile"
10f2d63a 4860 if test "$no_cache" != 1; then
1e6feb95 4861 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4862 fi
4863
1e6feb95 4864 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4865 echo "$as_me:$LINENO: result: yes" >&5
4866echo "${ECHO_T}yes" >&6
10f2d63a 4867 else
e6cc62c6
VS
4868 echo "$as_me:$LINENO: result: no" >&5
4869echo "${ECHO_T}no" >&6
10f2d63a 4870 fi
e6cc62c6 4871
10f2d63a 4872
5005acfe 4873 enablestring=
e6cc62c6
VS
4874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4875echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4876 no_cache=0
4877 # Check whether --enable-textbuf or --disable-textbuf was given.
4878if test "${enable_textbuf+set}" = set; then
4879 enableval="$enable_textbuf"
e6cc62c6 4880
a3a584a7
VZ
4881 if test "$enableval" = yes; then
4882 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4883 else
4884 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4885 fi
e6cc62c6 4886
a3a584a7 4887else
e6cc62c6 4888
a3a584a7
VZ
4889 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4890 if test "x$LINE" != x ; then
4891 eval "DEFAULT_$LINE"
4892 else
4893 no_cache=1
4894 fi
4895
4896 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4897
e6cc62c6 4898fi;
a3a584a7
VZ
4899
4900 eval "$ac_cv_use_textbuf"
4901 if test "$no_cache" != 1; then
4902 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4903 fi
4904
4905 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4906 echo "$as_me:$LINENO: result: yes" >&5
4907echo "${ECHO_T}yes" >&6
a3a584a7 4908 else
e6cc62c6
VS
4909 echo "$as_me:$LINENO: result: no" >&5
4910echo "${ECHO_T}no" >&6
a3a584a7 4911 fi
e6cc62c6 4912
a3a584a7 4913
5005acfe 4914 enablestring=
e6cc62c6
VS
4915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4916echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4917 no_cache=0
1e6feb95
VZ
4918 # Check whether --enable-textfile or --disable-textfile was given.
4919if test "${enable_textfile+set}" = set; then
4920 enableval="$enable_textfile"
e6cc62c6 4921
10f2d63a 4922 if test "$enableval" = yes; then
1e6feb95 4923 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4924 else
1e6feb95 4925 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4926 fi
e6cc62c6 4927
10f2d63a 4928else
e6cc62c6 4929
1e6feb95 4930 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4931 if test "x$LINE" != x ; then
4932 eval "DEFAULT_$LINE"
4933 else
4934 no_cache=1
4935 fi
4936
1e6feb95 4937 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4938
e6cc62c6 4939fi;
10f2d63a 4940
1e6feb95 4941 eval "$ac_cv_use_textfile"
10f2d63a 4942 if test "$no_cache" != 1; then
1e6feb95 4943 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4944 fi
4945
1e6feb95 4946 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4947 echo "$as_me:$LINENO: result: yes" >&5
4948echo "${ECHO_T}yes" >&6
10f2d63a 4949 else
e6cc62c6
VS
4950 echo "$as_me:$LINENO: result: no" >&5
4951echo "${ECHO_T}no" >&6
10f2d63a 4952 fi
e6cc62c6 4953
10f2d63a 4954
5005acfe 4955 enablestring=
e6cc62c6
VS
4956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4957echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4958 no_cache=0
1e6feb95
VZ
4959 # Check whether --enable-fontmap or --disable-fontmap was given.
4960if test "${enable_fontmap+set}" = set; then
4961 enableval="$enable_fontmap"
e6cc62c6 4962
10f2d63a 4963 if test "$enableval" = yes; then
1e6feb95 4964 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4965 else
1e6feb95 4966 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4967 fi
e6cc62c6 4968
10f2d63a 4969else
e6cc62c6 4970
1e6feb95 4971 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4972 if test "x$LINE" != x ; then
4973 eval "DEFAULT_$LINE"
4974 else
4975 no_cache=1
4976 fi
4977
1e6feb95 4978 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4979
e6cc62c6 4980fi;
10f2d63a 4981
1e6feb95 4982 eval "$ac_cv_use_fontmap"
10f2d63a 4983 if test "$no_cache" != 1; then
1e6feb95 4984 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4985 fi
4986
1e6feb95 4987 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4988 echo "$as_me:$LINENO: result: yes" >&5
4989echo "${ECHO_T}yes" >&6
10f2d63a 4990 else
e6cc62c6
VS
4991 echo "$as_me:$LINENO: result: no" >&5
4992echo "${ECHO_T}no" >&6
10f2d63a 4993 fi
e6cc62c6 4994
10f2d63a 4995
5005acfe 4996 enablestring=
e6cc62c6
VS
4997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4998echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4999 no_cache=0
1e6feb95
VZ
5000 # Check whether --enable-unicode or --disable-unicode was given.
5001if test "${enable_unicode+set}" = set; then
5002 enableval="$enable_unicode"
e6cc62c6 5003
1e6feb95
VZ
5004 if test "$enableval" = yes; then
5005 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5006 else
5007 ac_cv_use_unicode='wxUSE_UNICODE=no'
5008 fi
e6cc62c6 5009
1e6feb95 5010else
e6cc62c6 5011
1e6feb95
VZ
5012 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5013 if test "x$LINE" != x ; then
5014 eval "DEFAULT_$LINE"
5015 else
5016 no_cache=1
5017 fi
5018
5019 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 5020
e6cc62c6 5021fi;
1e6feb95
VZ
5022
5023 eval "$ac_cv_use_unicode"
5024 if test "$no_cache" != 1; then
5025 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5026 fi
5027
5028 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5029 echo "$as_me:$LINENO: result: yes" >&5
5030echo "${ECHO_T}yes" >&6
1e6feb95 5031 else
e6cc62c6
VS
5032 echo "$as_me:$LINENO: result: no" >&5
5033echo "${ECHO_T}no" >&6
1e6feb95 5034 fi
e6cc62c6 5035
1e6feb95 5036
5005acfe 5037 enablestring=
e6cc62c6
VS
5038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5039echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5040 no_cache=0
5041 # Check whether --enable-mslu or --disable-mslu was given.
5042if test "${enable_mslu+set}" = set; then
5043 enableval="$enable_mslu"
e6cc62c6 5044
a72a4bfa
VS
5045 if test "$enableval" = yes; then
5046 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5047 else
5048 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5049 fi
e6cc62c6 5050
a72a4bfa 5051else
e6cc62c6 5052
a72a4bfa
VS
5053 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5061
e6cc62c6 5062fi;
a72a4bfa
VS
5063
5064 eval "$ac_cv_use_mslu"
5065 if test "$no_cache" != 1; then
5066 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5067 fi
5068
5069 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5070 echo "$as_me:$LINENO: result: yes" >&5
5071echo "${ECHO_T}yes" >&6
a72a4bfa 5072 else
e6cc62c6
VS
5073 echo "$as_me:$LINENO: result: no" >&5
5074echo "${ECHO_T}no" >&6
a72a4bfa 5075 fi
e6cc62c6 5076
a72a4bfa 5077
5005acfe 5078 enablestring=
e6cc62c6
VS
5079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5080echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5081 no_cache=0
5082 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5083if test "${enable_wxprintfv+set}" = set; then
5084 enableval="$enable_wxprintfv"
e6cc62c6 5085
1e6feb95 5086 if test "$enableval" = yes; then
10f2d63a
VZ
5087 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5088 else
5089 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5090 fi
e6cc62c6 5091
10f2d63a 5092else
e6cc62c6 5093
10f2d63a
VZ
5094 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5095 if test "x$LINE" != x ; then
5096 eval "DEFAULT_$LINE"
5097 else
5098 no_cache=1
5099 fi
5100
5101 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5102
e6cc62c6 5103fi;
10f2d63a
VZ
5104
5105 eval "$ac_cv_use_wxprintfv"
5106 if test "$no_cache" != 1; then
5107 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5108 fi
5109
5110 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5111 echo "$as_me:$LINENO: result: yes" >&5
5112echo "${ECHO_T}yes" >&6
10f2d63a 5113 else
e6cc62c6
VS
5114 echo "$as_me:$LINENO: result: no" >&5
5115echo "${ECHO_T}no" >&6
10f2d63a 5116 fi
e6cc62c6 5117
10f2d63a 5118
5005acfe 5119 enablestring=
e6cc62c6
VS
5120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5121echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5122 no_cache=0
5123 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5124if test "${enable_std_iostreams+set}" = set; then
5125 enableval="$enable_std_iostreams"
e6cc62c6 5126
10f2d63a
VZ
5127 if test "$enableval" = yes; then
5128 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5129 else
5130 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5131 fi
e6cc62c6 5132
10f2d63a 5133else
e6cc62c6 5134
10f2d63a
VZ
5135 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5136 if test "x$LINE" != x ; then
5137 eval "DEFAULT_$LINE"
5138 else
5139 no_cache=1
5140 fi
5141
5142 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5143
e6cc62c6 5144fi;
10f2d63a
VZ
5145
5146 eval "$ac_cv_use_std_iostreams"
5147 if test "$no_cache" != 1; then
5148 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5149 fi
5150
5151 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5152 echo "$as_me:$LINENO: result: yes" >&5
5153echo "${ECHO_T}yes" >&6
10f2d63a 5154 else
e6cc62c6
VS
5155 echo "$as_me:$LINENO: result: no" >&5
5156echo "${ECHO_T}no" >&6
10f2d63a 5157 fi
e6cc62c6 5158
10f2d63a 5159
5005acfe 5160 enablestring=
e6cc62c6
VS
5161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5162echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5163 no_cache=0
5164 # Check whether --enable-filesystem or --disable-filesystem was given.
5165if test "${enable_filesystem+set}" = set; then
5166 enableval="$enable_filesystem"
e6cc62c6 5167
24528b0c
VS
5168 if test "$enableval" = yes; then
5169 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5170 else
5171 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5172 fi
e6cc62c6 5173
24528b0c 5174else
e6cc62c6 5175
24528b0c
VS
5176 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5177 if test "x$LINE" != x ; then
5178 eval "DEFAULT_$LINE"
5179 else
5180 no_cache=1
5181 fi
5182
5183 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5184
e6cc62c6 5185fi;
24528b0c
VS
5186
5187 eval "$ac_cv_use_filesystem"
5188 if test "$no_cache" != 1; then
5189 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5190 fi
5191
5192 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5193 echo "$as_me:$LINENO: result: yes" >&5
5194echo "${ECHO_T}yes" >&6
24528b0c 5195 else
e6cc62c6
VS
5196 echo "$as_me:$LINENO: result: no" >&5
5197echo "${ECHO_T}no" >&6
24528b0c 5198 fi
e6cc62c6 5199
24528b0c 5200
5005acfe 5201 enablestring=
e6cc62c6
VS
5202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5203echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5204 no_cache=0
5205 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5206if test "${enable_fs_inet+set}" = set; then
5207 enableval="$enable_fs_inet"
e6cc62c6 5208
10f2d63a
VZ
5209 if test "$enableval" = yes; then
5210 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5211 else
5212 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5213 fi
e6cc62c6 5214
10f2d63a 5215else
e6cc62c6 5216
10f2d63a
VZ
5217 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5218 if test "x$LINE" != x ; then
5219 eval "DEFAULT_$LINE"
5220 else
5221 no_cache=1
5222 fi
5223
5224 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5225
e6cc62c6 5226fi;
10f2d63a
VZ
5227
5228 eval "$ac_cv_use_fs_inet"
5229 if test "$no_cache" != 1; then
5230 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5231 fi
5232
5233 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5234 echo "$as_me:$LINENO: result: yes" >&5
5235echo "${ECHO_T}yes" >&6
10f2d63a 5236 else
e6cc62c6
VS
5237 echo "$as_me:$LINENO: result: no" >&5
5238echo "${ECHO_T}no" >&6
10f2d63a 5239 fi
e6cc62c6 5240
10f2d63a 5241
5005acfe 5242 enablestring=
e6cc62c6
VS
5243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5244echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5245 no_cache=0
5246 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5247if test "${enable_fs_zip+set}" = set; then
5248 enableval="$enable_fs_zip"
e6cc62c6 5249
10f2d63a
VZ
5250 if test "$enableval" = yes; then
5251 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5252 else
5253 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5254 fi
e6cc62c6 5255
10f2d63a 5256else
e6cc62c6 5257
10f2d63a
VZ
5258 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5259 if test "x$LINE" != x ; then
5260 eval "DEFAULT_$LINE"
5261 else
5262 no_cache=1
5263 fi
5264
5265 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5266
e6cc62c6 5267fi;
10f2d63a
VZ
5268
5269 eval "$ac_cv_use_fs_zip"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5275 echo "$as_me:$LINENO: result: yes" >&5
5276echo "${ECHO_T}yes" >&6
10f2d63a 5277 else
e6cc62c6
VS
5278 echo "$as_me:$LINENO: result: no" >&5
5279echo "${ECHO_T}no" >&6
10f2d63a 5280 fi
e6cc62c6 5281
10f2d63a 5282
5005acfe 5283 enablestring=
e6cc62c6
VS
5284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5285echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5286 no_cache=0
5287 # Check whether --enable-zipstream or --disable-zipstream was given.
5288if test "${enable_zipstream+set}" = set; then
5289 enableval="$enable_zipstream"
e6cc62c6 5290
10f2d63a
VZ
5291 if test "$enableval" = yes; then
5292 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5293 else
5294 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5295 fi
e6cc62c6 5296
10f2d63a 5297else
e6cc62c6 5298
10f2d63a
VZ
5299 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5300 if test "x$LINE" != x ; then
5301 eval "DEFAULT_$LINE"
5302 else
5303 no_cache=1
5304 fi
5305
5306 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5307
e6cc62c6 5308fi;
10f2d63a
VZ
5309
5310 eval "$ac_cv_use_zipstream"
5311 if test "$no_cache" != 1; then
5312 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5313 fi
5314
5315 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5316 echo "$as_me:$LINENO: result: yes" >&5
5317echo "${ECHO_T}yes" >&6
10f2d63a 5318 else
e6cc62c6
VS
5319 echo "$as_me:$LINENO: result: no" >&5
5320echo "${ECHO_T}no" >&6
10f2d63a 5321 fi
e6cc62c6 5322
8284b0c5 5323
52127426 5324
5005acfe 5325 enablestring=
e6cc62c6
VS
5326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5328 no_cache=0
5329 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5330if test "${enable_catch_segvs+set}" = set; then
5331 enableval="$enable_catch_segvs"
e6cc62c6 5332
eb4efbdc
VZ
5333 if test "$enableval" = yes; then
5334 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5335 else
5336 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5337 fi
e6cc62c6 5338
eb4efbdc 5339else
e6cc62c6 5340
eb4efbdc
VZ
5341 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5349
e6cc62c6 5350fi;
eb4efbdc
VZ
5351
5352 eval "$ac_cv_use_catch_segvs"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
eb4efbdc 5360 else
e6cc62c6
VS
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
eb4efbdc 5363 fi
e6cc62c6 5364
eb4efbdc 5365
5005acfe 5366 enablestring=
e6cc62c6
VS
5367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5369 no_cache=0
5370 # Check whether --enable-snglinst or --disable-snglinst was given.
5371if test "${enable_snglinst+set}" = set; then
5372 enableval="$enable_snglinst"
e6cc62c6 5373
4f3c5f06
VZ
5374 if test "$enableval" = yes; then
5375 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5376 else
5377 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5378 fi
e6cc62c6 5379
4f3c5f06 5380else
e6cc62c6 5381
4f3c5f06
VZ
5382 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
5389 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5390
e6cc62c6 5391fi;
4f3c5f06
VZ
5392
5393 eval "$ac_cv_use_snglinst"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
4f3c5f06 5401 else
e6cc62c6
VS
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
4f3c5f06 5404 fi
e6cc62c6 5405
52127426 5406
8284b0c5 5407
5005acfe 5408 enablestring=
e6cc62c6
VS
5409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5410echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5411 no_cache=0
5412 # Check whether --enable-mimetype or --disable-mimetype was given.
5413if test "${enable_mimetype+set}" = set; then
5414 enableval="$enable_mimetype"
e6cc62c6 5415
1e6feb95
VZ
5416 if test "$enableval" = yes; then
5417 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5418 else
5419 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5420 fi
e6cc62c6 5421
1e6feb95 5422else
e6cc62c6 5423
1e6feb95
VZ
5424 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5425 if test "x$LINE" != x ; then
5426 eval "DEFAULT_$LINE"
5427 else
5428 no_cache=1
5429 fi
5430
5431 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5432
e6cc62c6 5433fi;
1e6feb95
VZ
5434
5435 eval "$ac_cv_use_mimetype"
5436 if test "$no_cache" != 1; then
5437 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5438 fi
5439
5440 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5441 echo "$as_me:$LINENO: result: yes" >&5
5442echo "${ECHO_T}yes" >&6
1e6feb95 5443 else
e6cc62c6
VS
5444 echo "$as_me:$LINENO: result: no" >&5
5445echo "${ECHO_T}no" >&6
1e6feb95 5446 fi
e6cc62c6 5447
1e6feb95 5448
5005acfe 5449 enablestring=
e6cc62c6
VS
5450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5451echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5452 no_cache=0
5453 # Check whether --enable-system_options or --disable-system_options was given.
5454if test "${enable_system_options+set}" = set; then
5455 enableval="$enable_system_options"
e6cc62c6 5456
3e44f09d
VZ
5457 if test "$enableval" = yes; then
5458 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5459 else
5460 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5461 fi
e6cc62c6 5462
3e44f09d 5463else
e6cc62c6 5464
3e44f09d
VZ
5465 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5466 if test "x$LINE" != x ; then
5467 eval "DEFAULT_$LINE"
5468 else
5469 no_cache=1
5470 fi
5471
5472 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5473
e6cc62c6 5474fi;
3e44f09d
VZ
5475
5476 eval "$ac_cv_use_system_options"
5477 if test "$no_cache" != 1; then
5478 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5479 fi
5480
5481 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5482 echo "$as_me:$LINENO: result: yes" >&5
5483echo "${ECHO_T}yes" >&6
3e44f09d 5484 else
e6cc62c6
VS
5485 echo "$as_me:$LINENO: result: no" >&5
5486echo "${ECHO_T}no" >&6
3e44f09d 5487 fi
e6cc62c6 5488
8284b0c5 5489
52127426 5490
5005acfe 5491 enablestring=
e6cc62c6
VS
5492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5493echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5494 no_cache=0
5495 # Check whether --enable-url or --disable-url was given.
5496if test "${enable_url+set}" = set; then
5497 enableval="$enable_url"
e6cc62c6 5498
4cdb0ab0
VS
5499 if test "$enableval" = yes; then
5500 ac_cv_use_url='wxUSE_URL=yes'
5501 else
5502 ac_cv_use_url='wxUSE_URL=no'
5503 fi
e6cc62c6 5504
4cdb0ab0 5505else
e6cc62c6 5506
4cdb0ab0
VS
5507 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5508 if test "x$LINE" != x ; then
5509 eval "DEFAULT_$LINE"
5510 else
5511 no_cache=1
5512 fi
5513
5514 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5515
e6cc62c6 5516fi;
4cdb0ab0
VS
5517
5518 eval "$ac_cv_use_url"
5519 if test "$no_cache" != 1; then
5520 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5521 fi
5522
5523 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5524 echo "$as_me:$LINENO: result: yes" >&5
5525echo "${ECHO_T}yes" >&6
4cdb0ab0 5526 else
e6cc62c6
VS
5527 echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6
4cdb0ab0 5529 fi
e6cc62c6 5530
4cdb0ab0 5531
5005acfe 5532 enablestring=
e6cc62c6
VS
5533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5534echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5535 no_cache=0
5536 # Check whether --enable-protocol or --disable-protocol was given.
5537if test "${enable_protocol+set}" = set; then
5538 enableval="$enable_protocol"
e6cc62c6 5539
4cdb0ab0
VS
5540 if test "$enableval" = yes; then
5541 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5542 else
5543 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5544 fi
e6cc62c6 5545
4cdb0ab0 5546else
e6cc62c6 5547
4cdb0ab0
VS
5548 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5556
e6cc62c6 5557fi;
4cdb0ab0
VS
5558
5559 eval "$ac_cv_use_protocol"
5560 if test "$no_cache" != 1; then
5561 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5562 fi
5563
5564 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5565 echo "$as_me:$LINENO: result: yes" >&5
5566echo "${ECHO_T}yes" >&6
4cdb0ab0 5567 else
e6cc62c6
VS
5568 echo "$as_me:$LINENO: result: no" >&5
5569echo "${ECHO_T}no" >&6
4cdb0ab0 5570 fi
e6cc62c6 5571
4cdb0ab0 5572
5005acfe 5573 enablestring=
e6cc62c6
VS
5574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5575echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5576 no_cache=0
5577 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5578if test "${enable_protocol_http+set}" = set; then
5579 enableval="$enable_protocol_http"
e6cc62c6 5580
4cdb0ab0
VS
5581 if test "$enableval" = yes; then
5582 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5583 else
5584 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5585 fi
e6cc62c6 5586
4cdb0ab0 5587else
e6cc62c6 5588
4cdb0ab0
VS
5589 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5590 if test "x$LINE" != x ; then
5591 eval "DEFAULT_$LINE"
5592 else
5593 no_cache=1
5594 fi
5595
5596 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5597
e6cc62c6 5598fi;
4cdb0ab0
VS
5599
5600 eval "$ac_cv_use_protocol_http"
5601 if test "$no_cache" != 1; then
5602 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5603 fi
5604
5605 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5606 echo "$as_me:$LINENO: result: yes" >&5
5607echo "${ECHO_T}yes" >&6
4cdb0ab0 5608 else
e6cc62c6
VS
5609 echo "$as_me:$LINENO: result: no" >&5
5610echo "${ECHO_T}no" >&6
4cdb0ab0 5611 fi
e6cc62c6 5612
4cdb0ab0 5613
5005acfe 5614 enablestring=
e6cc62c6
VS
5615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5616echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5617 no_cache=0
5618 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5619if test "${enable_protocol_ftp+set}" = set; then
5620 enableval="$enable_protocol_ftp"
e6cc62c6 5621
4cdb0ab0
VS
5622 if test "$enableval" = yes; then
5623 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5624 else
5625 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5626 fi
e6cc62c6 5627
4cdb0ab0 5628else
e6cc62c6 5629
4cdb0ab0
VS
5630 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5638
e6cc62c6 5639fi;
4cdb0ab0
VS
5640
5641 eval "$ac_cv_use_protocol_ftp"
5642 if test "$no_cache" != 1; then
5643 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5644 fi
5645
5646 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5647 echo "$as_me:$LINENO: result: yes" >&5
5648echo "${ECHO_T}yes" >&6
4cdb0ab0 5649 else
e6cc62c6
VS
5650 echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6
4cdb0ab0 5652 fi
e6cc62c6 5653
4cdb0ab0 5654
5005acfe 5655 enablestring=
e6cc62c6
VS
5656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5657echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5658 no_cache=0
5659 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5660if test "${enable_protocol_file+set}" = set; then
5661 enableval="$enable_protocol_file"
e6cc62c6 5662
4cdb0ab0
VS
5663 if test "$enableval" = yes; then
5664 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5665 else
5666 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5667 fi
e6cc62c6 5668
4cdb0ab0 5669else
e6cc62c6 5670
4cdb0ab0
VS
5671 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5672 if test "x$LINE" != x ; then
5673 eval "DEFAULT_$LINE"
5674 else
5675 no_cache=1
5676 fi
5677
5678 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5679
e6cc62c6 5680fi;
4cdb0ab0
VS
5681
5682 eval "$ac_cv_use_protocol_file"
5683 if test "$no_cache" != 1; then
5684 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5685 fi
5686
5687 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5688 echo "$as_me:$LINENO: result: yes" >&5
5689echo "${ECHO_T}yes" >&6
4cdb0ab0 5690 else
e6cc62c6
VS
5691 echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6
4cdb0ab0 5693 fi
e6cc62c6 5694
52127426 5695
8284b0c5
MB
5696
5697
5698
5005acfe 5699 enablestring=
e6cc62c6
VS
5700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5701echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5702 no_cache=0
5703 # Check whether --enable-threads or --disable-threads was given.
5704if test "${enable_threads+set}" = set; then
5705 enableval="$enable_threads"
e6cc62c6 5706
10f2d63a
VZ
5707 if test "$enableval" = yes; then
5708 ac_cv_use_threads='wxUSE_THREADS=yes'
5709 else
5710 ac_cv_use_threads='wxUSE_THREADS=no'
5711 fi
e6cc62c6 5712
10f2d63a 5713else
e6cc62c6 5714
10f2d63a
VZ
5715 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5716 if test "x$LINE" != x ; then
5717 eval "DEFAULT_$LINE"
5718 else
5719 no_cache=1
5720 fi
5721
5722 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5723
e6cc62c6 5724fi;
10f2d63a
VZ
5725
5726 eval "$ac_cv_use_threads"
5727 if test "$no_cache" != 1; then
5728 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5729 fi
5730
5731 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5732 echo "$as_me:$LINENO: result: yes" >&5
5733echo "${ECHO_T}yes" >&6
10f2d63a 5734 else
e6cc62c6
VS
5735 echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
10f2d63a 5737 fi
e6cc62c6 5738
10f2d63a 5739
b12915c1
VZ
5740if test "$wxUSE_GUI" = "yes"; then
5741
8284b0c5
MB
5742
5743
5005acfe 5744 enablestring=
e6cc62c6
VS
5745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5746echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5747 no_cache=0
5748 # Check whether --enable-docview or --disable-docview was given.
5749if test "${enable_docview+set}" = set; then
5750 enableval="$enable_docview"
e6cc62c6 5751
10f2d63a
VZ
5752 if test "$enableval" = yes; then
5753 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5754 else
5755 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5756 fi
e6cc62c6 5757
10f2d63a 5758else
e6cc62c6 5759
10f2d63a
VZ
5760 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5761 if test "x$LINE" != x ; then
5762 eval "DEFAULT_$LINE"
5763 else
5764 no_cache=1
5765 fi
5766
5767 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5768
e6cc62c6 5769fi;
10f2d63a
VZ
5770
5771 eval "$ac_cv_use_docview"
5772 if test "$no_cache" != 1; then
5773 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5774 fi
5775
5776 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5777 echo "$as_me:$LINENO: result: yes" >&5
5778echo "${ECHO_T}yes" >&6
10f2d63a 5779 else
e6cc62c6
VS
5780 echo "$as_me:$LINENO: result: no" >&5
5781echo "${ECHO_T}no" >&6
10f2d63a 5782 fi
e6cc62c6 5783
10f2d63a 5784
5005acfe 5785 enablestring=
e6cc62c6
VS
5786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5787echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5788 no_cache=0
5789 # Check whether --enable-help or --disable-help was given.
5790if test "${enable_help+set}" = set; then
5791 enableval="$enable_help"
e6cc62c6 5792
10f2d63a
VZ
5793 if test "$enableval" = yes; then
5794 ac_cv_use_help='wxUSE_HELP=yes'
5795 else
5796 ac_cv_use_help='wxUSE_HELP=no'
5797 fi
e6cc62c6 5798
10f2d63a 5799else
e6cc62c6 5800
10f2d63a
VZ
5801 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5802 if test "x$LINE" != x ; then
5803 eval "DEFAULT_$LINE"
5804 else
5805 no_cache=1
5806 fi
5807
5808 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5809
e6cc62c6 5810fi;
10f2d63a
VZ
5811
5812 eval "$ac_cv_use_help"
5813 if test "$no_cache" != 1; then
5814 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5815 fi
5816
5817 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5818 echo "$as_me:$LINENO: result: yes" >&5
5819echo "${ECHO_T}yes" >&6
10f2d63a 5820 else
e6cc62c6
VS
5821 echo "$as_me:$LINENO: result: no" >&5
5822echo "${ECHO_T}no" >&6
10f2d63a 5823 fi
e6cc62c6 5824
10f2d63a 5825
5005acfe 5826 enablestring=
e6cc62c6
VS
5827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5828echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5829 no_cache=0
5830 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5831if test "${enable_mshtmlhelp+set}" = set; then
5832 enableval="$enable_mshtmlhelp"
e6cc62c6 5833
29fd3c0c
VS
5834 if test "$enableval" = yes; then
5835 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5836 else
5837 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5838 fi
e6cc62c6 5839
29fd3c0c 5840else
e6cc62c6 5841
29fd3c0c
VS
5842 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5850
e6cc62c6 5851fi;
29fd3c0c
VS
5852
5853 eval "$ac_cv_use_mshtmlhelp"
5854 if test "$no_cache" != 1; then
5855 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5856 fi
5857
5858 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5859 echo "$as_me:$LINENO: result: yes" >&5
5860echo "${ECHO_T}yes" >&6
29fd3c0c 5861 else
e6cc62c6
VS
5862 echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
29fd3c0c 5864 fi
e6cc62c6 5865
29fd3c0c 5866
5005acfe 5867 enablestring=
e6cc62c6
VS
5868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5869echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5870 no_cache=0
5871 # Check whether --enable-html or --disable-html was given.
5872if test "${enable_html+set}" = set; then
5873 enableval="$enable_html"
e6cc62c6 5874
3379ed37
VZ
5875 if test "$enableval" = yes; then
5876 ac_cv_use_html='wxUSE_HTML=yes'
5877 else
5878 ac_cv_use_html='wxUSE_HTML=no'
5879 fi
e6cc62c6 5880
3379ed37 5881else
e6cc62c6 5882
3379ed37
VZ
5883 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5884 if test "x$LINE" != x ; then
5885 eval "DEFAULT_$LINE"
5886 else
5887 no_cache=1
5888 fi
5889
5890 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5891
e6cc62c6 5892fi;
3379ed37
VZ
5893
5894 eval "$ac_cv_use_html"
5895 if test "$no_cache" != 1; then
5896 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5897 fi
5898
5899 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5900 echo "$as_me:$LINENO: result: yes" >&5
5901echo "${ECHO_T}yes" >&6
3379ed37 5902 else
e6cc62c6
VS
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
3379ed37 5905 fi
e6cc62c6 5906
3379ed37 5907
5005acfe 5908 enablestring=
e6cc62c6
VS
5909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5910echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5911 no_cache=0
5912 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5913if test "${enable_htmlhelp+set}" = set; then
5914 enableval="$enable_htmlhelp"
e6cc62c6 5915
3379ed37
VZ
5916 if test "$enableval" = yes; then
5917 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5918 else
5919 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5920 fi
e6cc62c6 5921
3379ed37 5922else
e6cc62c6 5923
3379ed37
VZ
5924 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5932
e6cc62c6 5933fi;
3379ed37
VZ
5934
5935 eval "$ac_cv_use_htmlhelp"
5936 if test "$no_cache" != 1; then
5937 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5938 fi
5939
5940 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5941 echo "$as_me:$LINENO: result: yes" >&5
5942echo "${ECHO_T}yes" >&6
3379ed37 5943 else
e6cc62c6
VS
5944 echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
3379ed37 5946 fi
e6cc62c6 5947
3379ed37 5948
5005acfe 5949 enablestring=
e6cc62c6
VS
5950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5951echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5952 no_cache=0
5953 # Check whether --enable-constraints or --disable-constraints was given.
5954if test "${enable_constraints+set}" = set; then
5955 enableval="$enable_constraints"
e6cc62c6 5956
10f2d63a
VZ
5957 if test "$enableval" = yes; then
5958 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5959 else
5960 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5961 fi
e6cc62c6 5962
10f2d63a 5963else
e6cc62c6 5964
10f2d63a
VZ
5965 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5966 if test "x$LINE" != x ; then
5967 eval "DEFAULT_$LINE"
5968 else
5969 no_cache=1
5970 fi
5971
5972 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5973
e6cc62c6 5974fi;
10f2d63a
VZ
5975
5976 eval "$ac_cv_use_constraints"
5977 if test "$no_cache" != 1; then
5978 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5979 fi
5980
5981 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5982 echo "$as_me:$LINENO: result: yes" >&5
5983echo "${ECHO_T}yes" >&6
10f2d63a 5984 else
e6cc62c6
VS
5985 echo "$as_me:$LINENO: result: no" >&5
5986echo "${ECHO_T}no" >&6
10f2d63a 5987 fi
e6cc62c6 5988
10f2d63a 5989
5005acfe 5990 enablestring=
e6cc62c6
VS
5991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5992echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5993 no_cache=0
5994 # Check whether --enable-printarch or --disable-printarch was given.
5995if test "${enable_printarch+set}" = set; then
5996 enableval="$enable_printarch"
e6cc62c6 5997
10f2d63a
VZ
5998 if test "$enableval" = yes; then
5999 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6000 else
6001 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6002 fi
e6cc62c6 6003
10f2d63a 6004else
e6cc62c6 6005
10f2d63a
VZ
6006 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6014
e6cc62c6 6015fi;
10f2d63a
VZ
6016
6017 eval "$ac_cv_use_printarch"
6018 if test "$no_cache" != 1; then
6019 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6020 fi
6021
6022 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6023 echo "$as_me:$LINENO: result: yes" >&5
6024echo "${ECHO_T}yes" >&6
10f2d63a 6025 else
e6cc62c6
VS
6026 echo "$as_me:$LINENO: result: no" >&5
6027echo "${ECHO_T}no" >&6
10f2d63a 6028 fi
e6cc62c6 6029
10f2d63a 6030
5005acfe 6031 enablestring=
e6cc62c6
VS
6032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6033echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6034 no_cache=0
6035 # Check whether --enable-mdi or --disable-mdi was given.
6036if test "${enable_mdi+set}" = set; then
6037 enableval="$enable_mdi"
e6cc62c6 6038
10f2d63a
VZ
6039 if test "$enableval" = yes; then
6040 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6041 else
6042 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6043 fi
e6cc62c6 6044
10f2d63a 6045else
e6cc62c6 6046
10f2d63a
VZ
6047 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6048 if test "x$LINE" != x ; then
6049 eval "DEFAULT_$LINE"
6050 else
6051 no_cache=1
6052 fi
6053
6054 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6055
e6cc62c6 6056fi;
10f2d63a
VZ
6057
6058 eval "$ac_cv_use_mdi"
6059 if test "$no_cache" != 1; then
6060 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6061 fi
6062
6063 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6064 echo "$as_me:$LINENO: result: yes" >&5
6065echo "${ECHO_T}yes" >&6
10f2d63a 6066 else
e6cc62c6
VS
6067 echo "$as_me:$LINENO: result: no" >&5
6068echo "${ECHO_T}no" >&6
10f2d63a 6069 fi
e6cc62c6 6070
698dcdb6 6071
5005acfe 6072 enablestring=
e6cc62c6
VS
6073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6074echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6075 no_cache=0
6076 # Check whether --enable-loggui or --disable-loggui was given.
6077if test "${enable_loggui+set}" = set; then
6078 enableval="$enable_loggui"
e6cc62c6 6079
1e6feb95
VZ
6080 if test "$enableval" = yes; then
6081 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6082 else
6083 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6084 fi
e6cc62c6 6085
1e6feb95 6086else
e6cc62c6 6087
1e6feb95
VZ
6088 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6089 if test "x$LINE" != x ; then
6090 eval "DEFAULT_$LINE"
6091 else
6092 no_cache=1
6093 fi
6094
6095 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6096
e6cc62c6 6097fi;
1e6feb95
VZ
6098
6099 eval "$ac_cv_use_loggui"
6100 if test "$no_cache" != 1; then
6101 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6102 fi
6103
6104 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6105 echo "$as_me:$LINENO: result: yes" >&5
6106echo "${ECHO_T}yes" >&6
1e6feb95 6107 else
e6cc62c6
VS
6108 echo "$as_me:$LINENO: result: no" >&5
6109echo "${ECHO_T}no" >&6
1e6feb95 6110 fi
e6cc62c6 6111
1e6feb95 6112
5005acfe 6113 enablestring=
e6cc62c6
VS
6114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6115echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6116 no_cache=0
6117 # Check whether --enable-logwin or --disable-logwin was given.
6118if test "${enable_logwin+set}" = set; then
6119 enableval="$enable_logwin"
e6cc62c6 6120
1e6feb95
VZ
6121 if test "$enableval" = yes; then
6122 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6123 else
6124 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6125 fi
e6cc62c6 6126
1e6feb95 6127else
e6cc62c6 6128
1e6feb95
VZ
6129 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6137
e6cc62c6 6138fi;
1e6feb95
VZ
6139
6140 eval "$ac_cv_use_logwin"
6141 if test "$no_cache" != 1; then
6142 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6143 fi
6144
6145 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6146 echo "$as_me:$LINENO: result: yes" >&5
6147echo "${ECHO_T}yes" >&6
1e6feb95 6148 else
e6cc62c6
VS
6149 echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6
1e6feb95 6151 fi
e6cc62c6 6152
1e6feb95 6153
5005acfe 6154 enablestring=
e6cc62c6
VS
6155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6156echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6157 no_cache=0
6158 # Check whether --enable-logdialog or --disable-logdialog was given.
6159if test "${enable_logdialog+set}" = set; then
6160 enableval="$enable_logdialog"
e6cc62c6 6161
69d27ff7
MB
6162 if test "$enableval" = yes; then
6163 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6164 else
6165 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6166 fi
e6cc62c6 6167
69d27ff7 6168else
e6cc62c6 6169
69d27ff7
MB
6170 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6171 if test "x$LINE" != x ; then
6172 eval "DEFAULT_$LINE"
6173 else
6174 no_cache=1
6175 fi
6176
6177 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6178
e6cc62c6 6179fi;
69d27ff7
MB
6180
6181 eval "$ac_cv_use_logdialog"
6182 if test "$no_cache" != 1; then
6183 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6184 fi
6185
6186 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6187 echo "$as_me:$LINENO: result: yes" >&5
6188echo "${ECHO_T}yes" >&6
69d27ff7 6189 else
e6cc62c6
VS
6190 echo "$as_me:$LINENO: result: no" >&5
6191echo "${ECHO_T}no" >&6
69d27ff7 6192 fi
e6cc62c6 6193
8284b0c5 6194
52127426 6195
5005acfe 6196 enablestring=
e6cc62c6
VS
6197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6198echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6199 no_cache=0
6200 # Check whether --enable-postscript or --disable-postscript was given.
6201if test "${enable_postscript+set}" = set; then
6202 enableval="$enable_postscript"
e6cc62c6 6203
10f2d63a
VZ
6204 if test "$enableval" = yes; then
6205 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6206 else
6207 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6208 fi
e6cc62c6 6209
10f2d63a 6210else
e6cc62c6 6211
10f2d63a
VZ
6212 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6213 if test "x$LINE" != x ; then
6214 eval "DEFAULT_$LINE"
6215 else
6216 no_cache=1
6217 fi
6218
6219 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6220
e6cc62c6 6221fi;
10f2d63a
VZ
6222
6223 eval "$ac_cv_use_postscript"
6224 if test "$no_cache" != 1; then
6225 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6226 fi
6227
6228 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6229 echo "$as_me:$LINENO: result: yes" >&5
6230echo "${ECHO_T}yes" >&6
10f2d63a 6231 else
e6cc62c6
VS
6232 echo "$as_me:$LINENO: result: no" >&5
6233echo "${ECHO_T}no" >&6
10f2d63a 6234 fi
e6cc62c6 6235
8284b0c5
MB
6236
6237
52127426 6238
8284b0c5 6239
5005acfe 6240 enablestring=
e6cc62c6
VS
6241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6242echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6243 no_cache=0
3c907f20
VZ
6244 # Check whether --enable-prologio or --disable-prologio was given.
6245if test "${enable_prologio+set}" = set; then
6246 enableval="$enable_prologio"
e6cc62c6 6247
10f2d63a 6248 if test "$enableval" = yes; then
3c907f20 6249 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6250 else
3c907f20 6251 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6252 fi
e6cc62c6 6253
10f2d63a 6254else
e6cc62c6 6255
3c907f20 6256 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6257 if test "x$LINE" != x ; then
6258 eval "DEFAULT_$LINE"
6259 else
6260 no_cache=1
6261 fi
6262
3c907f20 6263 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6264
e6cc62c6 6265fi;
10f2d63a 6266
3c907f20 6267 eval "$ac_cv_use_prologio"
10f2d63a 6268 if test "$no_cache" != 1; then
3c907f20 6269 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6270 fi
6271
3c907f20 6272 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6273 echo "$as_me:$LINENO: result: yes" >&5
6274echo "${ECHO_T}yes" >&6
10f2d63a 6275 else
e6cc62c6
VS
6276 echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6
10f2d63a 6278 fi
e6cc62c6 6279
8284b0c5 6280
5005acfe 6281 enablestring=
e6cc62c6
VS
6282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6283echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6284 no_cache=0
3c907f20
VZ
6285 # Check whether --enable-resources or --disable-resources was given.
6286if test "${enable_resources+set}" = set; then
6287 enableval="$enable_resources"
e6cc62c6 6288
10f2d63a 6289 if test "$enableval" = yes; then
3c907f20 6290 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6291 else
3c907f20 6292 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6293 fi
e6cc62c6 6294
10f2d63a 6295else
e6cc62c6 6296
3c907f20 6297 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6298 if test "x$LINE" != x ; then
6299 eval "DEFAULT_$LINE"
6300 else
6301 no_cache=1
6302 fi
6303
3c907f20 6304 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6305
e6cc62c6 6306fi;
10f2d63a 6307
3c907f20 6308 eval "$ac_cv_use_resources"
10f2d63a 6309 if test "$no_cache" != 1; then
3c907f20 6310 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6311 fi
6312
3c907f20 6313 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6314 echo "$as_me:$LINENO: result: yes" >&5
6315echo "${ECHO_T}yes" >&6
10f2d63a 6316 else
e6cc62c6
VS
6317 echo "$as_me:$LINENO: result: no" >&5
6318echo "${ECHO_T}no" >&6
10f2d63a 6319 fi
e6cc62c6 6320
8284b0c5
MB
6321
6322
52127426 6323
5005acfe 6324 enablestring=
e6cc62c6
VS
6325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6326echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6327 no_cache=0
6328 # Check whether --enable-clipboard or --disable-clipboard was given.
6329if test "${enable_clipboard+set}" = set; then
6330 enableval="$enable_clipboard"
e6cc62c6 6331
10f2d63a
VZ
6332 if test "$enableval" = yes; then
6333 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6334 else
6335 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6336 fi
e6cc62c6 6337
10f2d63a 6338else
e6cc62c6 6339
10f2d63a
VZ
6340 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6341 if test "x$LINE" != x ; then
6342 eval "DEFAULT_$LINE"
6343 else
6344 no_cache=1
6345 fi
6346
6347 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6348
e6cc62c6 6349fi;
10f2d63a
VZ
6350
6351 eval "$ac_cv_use_clipboard"
6352 if test "$no_cache" != 1; then
6353 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6354 fi
6355
6356 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6357 echo "$as_me:$LINENO: result: yes" >&5
6358echo "${ECHO_T}yes" >&6
10f2d63a 6359 else
e6cc62c6
VS
6360 echo "$as_me:$LINENO: result: no" >&5
6361echo "${ECHO_T}no" >&6
10f2d63a 6362 fi
e6cc62c6 6363
10f2d63a 6364
5005acfe 6365 enablestring=
e6cc62c6
VS
6366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6367echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6368 no_cache=0
6369 # Check whether --enable-dnd or --disable-dnd was given.
6370if test "${enable_dnd+set}" = set; then
6371 enableval="$enable_dnd"
e6cc62c6 6372
10f2d63a
VZ
6373 if test "$enableval" = yes; then
6374 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6375 else
6376 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6377 fi
e6cc62c6 6378
10f2d63a 6379else
e6cc62c6 6380
10f2d63a
VZ
6381 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6382 if test "x$LINE" != x ; then
6383 eval "DEFAULT_$LINE"
6384 else
6385 no_cache=1
6386 fi
6387
6388 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6389
e6cc62c6 6390fi;
10f2d63a
VZ
6391
6392 eval "$ac_cv_use_dnd"
6393 if test "$no_cache" != 1; then
6394 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6395 fi
6396
6397 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6398 echo "$as_me:$LINENO: result: yes" >&5
6399echo "${ECHO_T}yes" >&6
10f2d63a 6400 else
e6cc62c6
VS
6401 echo "$as_me:$LINENO: result: no" >&5
6402echo "${ECHO_T}no" >&6
10f2d63a 6403 fi
e6cc62c6 6404
10f2d63a 6405
5005acfe 6406 enablestring=
e6cc62c6
VS
6407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6408echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6409 no_cache=0
6410 # Check whether --enable-metafile or --disable-metafile was given.
6411if test "${enable_metafile+set}" = set; then
6412 enableval="$enable_metafile"
e6cc62c6 6413
b64f0a5f
RL
6414 if test "$enableval" = yes; then
6415 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6416 else
6417 ac_cv_use_metafile='wxUSE_METAFILE=no'
6418 fi
e6cc62c6 6419
b64f0a5f 6420else
e6cc62c6 6421
b64f0a5f
RL
6422 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6423 if test "x$LINE" != x ; then
6424 eval "DEFAULT_$LINE"
6425 else
6426 no_cache=1
6427 fi
6428
6429 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6430
e6cc62c6 6431fi;
b64f0a5f
RL
6432
6433 eval "$ac_cv_use_metafile"
6434 if test "$no_cache" != 1; then
6435 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6436 fi
6437
6438 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6439 echo "$as_me:$LINENO: result: yes" >&5
6440echo "${ECHO_T}yes" >&6
b64f0a5f 6441 else
e6cc62c6
VS
6442 echo "$as_me:$LINENO: result: no" >&5
6443echo "${ECHO_T}no" >&6
b64f0a5f 6444 fi
e6cc62c6 6445
52127426 6446
8284b0c5 6447
52127426 6448
8284b0c5 6449
5005acfe 6450 enablestring=
e6cc62c6
VS
6451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6452echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6453 no_cache=0
6454 # Check whether --enable-controls or --disable-controls was given.
6455if test "${enable_controls+set}" = set; then
6456 enableval="$enable_controls"
e6cc62c6 6457
10f2d63a
VZ
6458 if test "$enableval" = yes; then
6459 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6460 else
6461 ac_cv_use_controls='wxUSE_CONTROLS=no'
6462 fi
e6cc62c6 6463
10f2d63a 6464else
e6cc62c6 6465
10f2d63a
VZ
6466 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6467 if test "x$LINE" != x ; then
6468 eval "DEFAULT_$LINE"
6469 else
6470 no_cache=1
6471 fi
6472
6473 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6474
e6cc62c6 6475fi;
10f2d63a
VZ
6476
6477 eval "$ac_cv_use_controls"
6478 if test "$no_cache" != 1; then
6479 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6480 fi
6481
6482 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6483 echo "$as_me:$LINENO: result: yes" >&5
6484echo "${ECHO_T}yes" >&6
10f2d63a 6485 else
e6cc62c6
VS
6486 echo "$as_me:$LINENO: result: no" >&5
6487echo "${ECHO_T}no" >&6
10f2d63a 6488 fi
e6cc62c6 6489
10f2d63a
VZ
6490
6491if test "$wxUSE_CONTROLS" = "yes"; then
6492 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6493 DEFAULT_wxUSE_BMPBUTTON=yes
6494 DEFAULT_wxUSE_BUTTON=yes
6495 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6496 DEFAULT_wxUSE_CARET=yes
6497 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6498 DEFAULT_wxUSE_CHECKBOX=yes
6499 DEFAULT_wxUSE_CHECKLISTBOX=yes
6500 DEFAULT_wxUSE_CHOICE=yes
6501 DEFAULT_wxUSE_GAUGE=yes
6502 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6503 DEFAULT_wxUSE_IMAGLIST=yes
6504 DEFAULT_wxUSE_LISTBOX=yes
6505 DEFAULT_wxUSE_LISTCTRL=yes
6506 DEFAULT_wxUSE_NOTEBOOK=yes
6507 DEFAULT_wxUSE_RADIOBOX=yes
6508 DEFAULT_wxUSE_RADIOBTN=yes
6509 DEFAULT_wxUSE_SASH=yes
6510 DEFAULT_wxUSE_SCROLLBAR=yes
6511 DEFAULT_wxUSE_SLIDER=yes
6512 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6513 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6514 DEFAULT_wxUSE_SPLITTER=yes
6515 DEFAULT_wxUSE_STATBMP=yes
6516 DEFAULT_wxUSE_STATBOX=yes
6517 DEFAULT_wxUSE_STATLINE=yes
6518 DEFAULT_wxUSE_STATUSBAR=yes
6519 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6520 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6521 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6522 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6523 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6524 DEFAULT_wxUSE_TOOLTIPS=yes
6525 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6526 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6527 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6528elif test "$wxUSE_CONTROLS" = "no"; then
6529 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6530 DEFAULT_wxUSE_BMPBUTTON=no
6531 DEFAULT_wxUSE_BUTTON=no
6532 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6533 DEFAULT_wxUSE_CARET=no
6534 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6535 DEFAULT_wxUSE_CHECKBOX=no
6536 DEFAULT_wxUSE_CHECKLISTBOX=no
6537 DEFAULT_wxUSE_CHOICE=no
6538 DEFAULT_wxUSE_GAUGE=no
6539 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6540 DEFAULT_wxUSE_IMAGLIST=no
6541 DEFAULT_wxUSE_LISTBOX=no
6542 DEFAULT_wxUSE_LISTCTRL=no
6543 DEFAULT_wxUSE_NOTEBOOK=no
6544 DEFAULT_wxUSE_RADIOBOX=no
6545 DEFAULT_wxUSE_RADIOBTN=no
6546 DEFAULT_wxUSE_SASH=no
6547 DEFAULT_wxUSE_SCROLLBAR=no
6548 DEFAULT_wxUSE_SLIDER=no
6549 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6550 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6551 DEFAULT_wxUSE_SPLITTER=no
6552 DEFAULT_wxUSE_STATBMP=no
6553 DEFAULT_wxUSE_STATBOX=no
6554 DEFAULT_wxUSE_STATLINE=no
6555 DEFAULT_wxUSE_STATUSBAR=no
6556 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6557 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6558 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6559 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6560 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6561 DEFAULT_wxUSE_TOOLTIPS=no
6562 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6563 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6564 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6565fi
6566
ac0c4cc3
DE
6567## FIXME: This is a blatant hack
6568if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6569 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6570 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6571 # Generic notebook requires tab dialog
6572 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6573 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6574 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6575 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6576 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6577fi
6578
8284b0c5 6579
5005acfe 6580 enablestring=
e6cc62c6
VS
6581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6582echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6583 no_cache=0
6584 # Check whether --enable-accel or --disable-accel was given.
6585if test "${enable_accel+set}" = set; then
6586 enableval="$enable_accel"
e6cc62c6 6587
10f2d63a
VZ
6588 if test "$enableval" = yes; then
6589 ac_cv_use_accel='wxUSE_ACCEL=yes'
6590 else
6591 ac_cv_use_accel='wxUSE_ACCEL=no'
6592 fi
e6cc62c6 6593
10f2d63a 6594else
e6cc62c6 6595
10f2d63a
VZ
6596 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6597 if test "x$LINE" != x ; then
6598 eval "DEFAULT_$LINE"
6599 else
6600 no_cache=1
6601 fi
6602
6603 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6604
e6cc62c6 6605fi;
10f2d63a
VZ
6606
6607 eval "$ac_cv_use_accel"
6608 if test "$no_cache" != 1; then
6609 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6610 fi
6611
6612 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6613 echo "$as_me:$LINENO: result: yes" >&5
6614echo "${ECHO_T}yes" >&6
10f2d63a 6615 else
e6cc62c6
VS
6616 echo "$as_me:$LINENO: result: no" >&5
6617echo "${ECHO_T}no" >&6
10f2d63a 6618 fi
e6cc62c6 6619
10f2d63a 6620
5005acfe 6621 enablestring=
e6cc62c6
VS
6622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6623echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6624 no_cache=0
1e6feb95
VZ
6625 # Check whether --enable-button or --disable-button was given.
6626if test "${enable_button+set}" = set; then
6627 enableval="$enable_button"
e6cc62c6 6628
10f2d63a 6629 if test "$enableval" = yes; then
1e6feb95 6630 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6631 else
1e6feb95 6632 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6633 fi
e6cc62c6 6634
10f2d63a 6635else
e6cc62c6 6636
1e6feb95 6637 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6638 if test "x$LINE" != x ; then
6639 eval "DEFAULT_$LINE"
6640 else
6641 no_cache=1
6642 fi
6643
1e6feb95 6644 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6645
e6cc62c6 6646fi;
10f2d63a 6647
1e6feb95 6648 eval "$ac_cv_use_button"
10f2d63a 6649 if test "$no_cache" != 1; then
1e6feb95 6650 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6651 fi
6652
1e6feb95 6653 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6654 echo "$as_me:$LINENO: result: yes" >&5
6655echo "${ECHO_T}yes" >&6
10f2d63a 6656 else
e6cc62c6
VS
6657 echo "$as_me:$LINENO: result: no" >&5
6658echo "${ECHO_T}no" >&6
10f2d63a 6659 fi
e6cc62c6 6660
10f2d63a 6661
5005acfe 6662 enablestring=
e6cc62c6
VS
6663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6664echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6665 no_cache=0
6666 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6667if test "${enable_bmpbutton+set}" = set; then
6668 enableval="$enable_bmpbutton"
e6cc62c6 6669
10f2d63a
VZ
6670 if test "$enableval" = yes; then
6671 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6672 else
6673 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6674 fi
e6cc62c6 6675
10f2d63a 6676else
e6cc62c6 6677
10f2d63a
VZ
6678 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6679 if test "x$LINE" != x ; then
6680 eval "DEFAULT_$LINE"
6681 else
6682 no_cache=1
6683 fi
6684
6685 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6686
e6cc62c6 6687fi;
10f2d63a
VZ
6688
6689 eval "$ac_cv_use_bmpbutton"
6690 if test "$no_cache" != 1; then
6691 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6692 fi
6693
6694 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6695 echo "$as_me:$LINENO: result: yes" >&5
6696echo "${ECHO_T}yes" >&6
10f2d63a 6697 else
e6cc62c6
VS
6698 echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6
10f2d63a 6700 fi
e6cc62c6 6701
10f2d63a 6702
5005acfe 6703 enablestring=
e6cc62c6
VS
6704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6705echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6706 no_cache=0
6707 # Check whether --enable-calendar or --disable-calendar was given.
6708if test "${enable_calendar+set}" = set; then
6709 enableval="$enable_calendar"
e6cc62c6 6710
1e6feb95
VZ
6711 if test "$enableval" = yes; then
6712 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6713 else
6714 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6715 fi
e6cc62c6 6716
1e6feb95 6717else
e6cc62c6 6718
1e6feb95
VZ
6719 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6720 if test "x$LINE" != x ; then
6721 eval "DEFAULT_$LINE"
6722 else
6723 no_cache=1
6724 fi
6725
6726 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6727
e6cc62c6 6728fi;
1e6feb95
VZ
6729
6730 eval "$ac_cv_use_calendar"
6731 if test "$no_cache" != 1; then
6732 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6733 fi
6734
6735 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6736 echo "$as_me:$LINENO: result: yes" >&5
6737echo "${ECHO_T}yes" >&6
1e6feb95 6738 else
e6cc62c6
VS
6739 echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6
1e6feb95 6741 fi
e6cc62c6 6742
1e6feb95 6743
5005acfe 6744 enablestring=
e6cc62c6
VS
6745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6746echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6747 no_cache=0
6748 # Check whether --enable-caret or --disable-caret was given.
6749if test "${enable_caret+set}" = set; then
6750 enableval="$enable_caret"
e6cc62c6 6751
1e6feb95
VZ
6752 if test "$enableval" = yes; then
6753 ac_cv_use_caret='wxUSE_CARET=yes'
6754 else
6755 ac_cv_use_caret='wxUSE_CARET=no'
6756 fi
e6cc62c6 6757
1e6feb95 6758else
e6cc62c6 6759
1e6feb95
VZ
6760 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6761 if test "x$LINE" != x ; then
6762 eval "DEFAULT_$LINE"
6763 else
6764 no_cache=1
6765 fi
6766
6767 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6768
e6cc62c6 6769fi;
1e6feb95
VZ
6770
6771 eval "$ac_cv_use_caret"
6772 if test "$no_cache" != 1; then
6773 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6774 fi
6775
6776 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6777 echo "$as_me:$LINENO: result: yes" >&5
6778echo "${ECHO_T}yes" >&6
1e6feb95 6779 else
e6cc62c6
VS
6780 echo "$as_me:$LINENO: result: no" >&5
6781echo "${ECHO_T}no" >&6
1e6feb95 6782 fi
e6cc62c6 6783
1e6feb95 6784
5005acfe 6785 enablestring=
e6cc62c6
VS
6786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6787echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6788 no_cache=0
6789 # Check whether --enable-checkbox or --disable-checkbox was given.
6790if test "${enable_checkbox+set}" = set; then
6791 enableval="$enable_checkbox"
e6cc62c6 6792
10f2d63a
VZ
6793 if test "$enableval" = yes; then
6794 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6795 else
6796 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6797 fi
e6cc62c6 6798
10f2d63a 6799else
e6cc62c6 6800
10f2d63a
VZ
6801 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6802 if test "x$LINE" != x ; then
6803 eval "DEFAULT_$LINE"
6804 else
6805 no_cache=1
6806 fi
6807
6808 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6809
e6cc62c6 6810fi;
10f2d63a
VZ
6811
6812 eval "$ac_cv_use_checkbox"
6813 if test "$no_cache" != 1; then
6814 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6815 fi
6816
6817 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6818 echo "$as_me:$LINENO: result: yes" >&5
6819echo "${ECHO_T}yes" >&6
10f2d63a 6820 else
e6cc62c6
VS
6821 echo "$as_me:$LINENO: result: no" >&5
6822echo "${ECHO_T}no" >&6
10f2d63a 6823 fi
e6cc62c6 6824
10f2d63a 6825
5005acfe 6826 enablestring=
e6cc62c6
VS
6827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6828echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6829 no_cache=0
6830 # Check whether --enable-checklst or --disable-checklst was given.
6831if test "${enable_checklst+set}" = set; then
6832 enableval="$enable_checklst"
e6cc62c6 6833
10f2d63a
VZ
6834 if test "$enableval" = yes; then
6835 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6836 else
6837 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6838 fi
e6cc62c6 6839
10f2d63a 6840else
e6cc62c6 6841
10f2d63a
VZ
6842 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6843 if test "x$LINE" != x ; then
6844 eval "DEFAULT_$LINE"
6845 else
6846 no_cache=1
6847 fi
6848
6849 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6850
e6cc62c6 6851fi;
10f2d63a
VZ
6852
6853 eval "$ac_cv_use_checklst"
6854 if test "$no_cache" != 1; then
6855 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6856 fi
6857
6858 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6859 echo "$as_me:$LINENO: result: yes" >&5
6860echo "${ECHO_T}yes" >&6
10f2d63a 6861 else
e6cc62c6
VS
6862 echo "$as_me:$LINENO: result: no" >&5
6863echo "${ECHO_T}no" >&6
10f2d63a 6864 fi
e6cc62c6 6865
10f2d63a 6866
5005acfe 6867 enablestring=
e6cc62c6
VS
6868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6869echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6870 no_cache=0
6871 # Check whether --enable-choice or --disable-choice was given.
6872if test "${enable_choice+set}" = set; then
6873 enableval="$enable_choice"
e6cc62c6 6874
10f2d63a
VZ
6875 if test "$enableval" = yes; then
6876 ac_cv_use_choice='wxUSE_CHOICE=yes'
6877 else
6878 ac_cv_use_choice='wxUSE_CHOICE=no'
6879 fi
e6cc62c6 6880
10f2d63a 6881else
e6cc62c6 6882
10f2d63a
VZ
6883 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6884 if test "x$LINE" != x ; then
6885 eval "DEFAULT_$LINE"
6886 else
6887 no_cache=1
6888 fi
6889
6890 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6891
e6cc62c6 6892fi;
10f2d63a
VZ
6893
6894 eval "$ac_cv_use_choice"
6895 if test "$no_cache" != 1; then
6896 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6897 fi
6898
6899 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6900 echo "$as_me:$LINENO: result: yes" >&5
6901echo "${ECHO_T}yes" >&6
10f2d63a 6902 else
e6cc62c6
VS
6903 echo "$as_me:$LINENO: result: no" >&5
6904echo "${ECHO_T}no" >&6
10f2d63a 6905 fi
e6cc62c6 6906
10f2d63a 6907
5005acfe 6908 enablestring=
e6cc62c6
VS
6909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6910echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6911 no_cache=0
6912 # Check whether --enable-combobox or --disable-combobox was given.
6913if test "${enable_combobox+set}" = set; then
6914 enableval="$enable_combobox"
e6cc62c6 6915
10f2d63a
VZ
6916 if test "$enableval" = yes; then
6917 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6918 else
6919 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6920 fi
e6cc62c6 6921
10f2d63a 6922else
e6cc62c6 6923
10f2d63a
VZ
6924 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6925 if test "x$LINE" != x ; then
6926 eval "DEFAULT_$LINE"
6927 else
6928 no_cache=1
6929 fi
6930
6931 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6932
e6cc62c6 6933fi;
10f2d63a
VZ
6934
6935 eval "$ac_cv_use_combobox"
6936 if test "$no_cache" != 1; then
6937 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6938 fi
6939
6940 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6941 echo "$as_me:$LINENO: result: yes" >&5
6942echo "${ECHO_T}yes" >&6
10f2d63a 6943 else
e6cc62c6
VS
6944 echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6
10f2d63a 6946 fi
e6cc62c6 6947
10f2d63a 6948
da494b40 6949 enablestring=
e6cc62c6
VS
6950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6951echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6952 no_cache=0
6953 # Check whether --enable-display or --disable-display was given.
6954if test "${enable_display+set}" = set; then
6955 enableval="$enable_display"
e6cc62c6 6956
da494b40
MB
6957 if test "$enableval" = yes; then
6958 ac_cv_use_display='wxUSE_DISPLAY=yes'
6959 else
6960 ac_cv_use_display='wxUSE_DISPLAY=no'
6961 fi
e6cc62c6 6962
da494b40 6963else
e6cc62c6 6964
da494b40
MB
6965 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6966 if test "x$LINE" != x ; then
6967 eval "DEFAULT_$LINE"
6968 else
6969 no_cache=1
6970 fi
6971
6972 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6973
e6cc62c6 6974fi;
da494b40
MB
6975
6976 eval "$ac_cv_use_display"
6977 if test "$no_cache" != 1; then
6978 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6979 fi
6980
6981 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6982 echo "$as_me:$LINENO: result: yes" >&5
6983echo "${ECHO_T}yes" >&6
da494b40 6984 else
e6cc62c6
VS
6985 echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6
da494b40 6987 fi
e6cc62c6 6988
da494b40 6989
5005acfe 6990 enablestring=
e6cc62c6
VS
6991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6992echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6993 no_cache=0
6994 # Check whether --enable-gauge or --disable-gauge was given.
6995if test "${enable_gauge+set}" = set; then
6996 enableval="$enable_gauge"
e6cc62c6 6997
10f2d63a
VZ
6998 if test "$enableval" = yes; then
6999 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7000 else
7001 ac_cv_use_gauge='wxUSE_GAUGE=no'
7002 fi
e6cc62c6 7003
10f2d63a 7004else
e6cc62c6 7005
10f2d63a
VZ
7006 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7007 if test "x$LINE" != x ; then
7008 eval "DEFAULT_$LINE"
7009 else
7010 no_cache=1
7011 fi
7012
7013 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7014
e6cc62c6 7015fi;
10f2d63a
VZ
7016
7017 eval "$ac_cv_use_gauge"
7018 if test "$no_cache" != 1; then
7019 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7020 fi
7021
7022 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7023 echo "$as_me:$LINENO: result: yes" >&5
7024echo "${ECHO_T}yes" >&6
10f2d63a 7025 else
e6cc62c6
VS
7026 echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6
10f2d63a 7028 fi
e6cc62c6 7029
10f2d63a 7030
5005acfe 7031 enablestring=
e6cc62c6
VS
7032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7033echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7034 no_cache=0
7035 # Check whether --enable-grid or --disable-grid was given.
7036if test "${enable_grid+set}" = set; then
7037 enableval="$enable_grid"
e6cc62c6 7038
10f2d63a
VZ
7039 if test "$enableval" = yes; then
7040 ac_cv_use_grid='wxUSE_GRID=yes'
7041 else
7042 ac_cv_use_grid='wxUSE_GRID=no'
7043 fi
e6cc62c6 7044
10f2d63a 7045else
e6cc62c6 7046
10f2d63a
VZ
7047 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7048 if test "x$LINE" != x ; then
7049 eval "DEFAULT_$LINE"
7050 else
7051 no_cache=1
7052 fi
7053
7054 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7055
e6cc62c6 7056fi;
10f2d63a
VZ
7057
7058 eval "$ac_cv_use_grid"
7059 if test "$no_cache" != 1; then
7060 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7061 fi
7062
7063 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7064 echo "$as_me:$LINENO: result: yes" >&5
7065echo "${ECHO_T}yes" >&6
10f2d63a 7066 else
e6cc62c6
VS
7067 echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6
10f2d63a 7069 fi
e6cc62c6 7070
10f2d63a 7071
5005acfe 7072 enablestring=
e6cc62c6
VS
7073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7074echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7075 no_cache=0
7076 # Check whether --enable-imaglist or --disable-imaglist was given.
7077if test "${enable_imaglist+set}" = set; then
7078 enableval="$enable_imaglist"
e6cc62c6 7079
10f2d63a
VZ
7080 if test "$enableval" = yes; then
7081 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7082 else
7083 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7084 fi
e6cc62c6 7085
10f2d63a 7086else
e6cc62c6 7087
10f2d63a
VZ
7088 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7089 if test "x$LINE" != x ; then
7090 eval "DEFAULT_$LINE"
7091 else
7092 no_cache=1
7093 fi
7094
7095 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7096
e6cc62c6 7097fi;
10f2d63a
VZ
7098
7099 eval "$ac_cv_use_imaglist"
7100 if test "$no_cache" != 1; then
7101 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7102 fi
7103
7104 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7105 echo "$as_me:$LINENO: result: yes" >&5
7106echo "${ECHO_T}yes" >&6
10f2d63a 7107 else
e6cc62c6
VS
7108 echo "$as_me:$LINENO: result: no" >&5
7109echo "${ECHO_T}no" >&6
10f2d63a 7110 fi
e6cc62c6 7111
10f2d63a 7112
5005acfe 7113 enablestring=
e6cc62c6
VS
7114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7115echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7116 no_cache=0
7117 # Check whether --enable-listbox or --disable-listbox was given.
7118if test "${enable_listbox+set}" = set; then
7119 enableval="$enable_listbox"
e6cc62c6 7120
10f2d63a
VZ
7121 if test "$enableval" = yes; then
7122 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7123 else
7124 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7125 fi
e6cc62c6 7126
10f2d63a 7127else
e6cc62c6 7128
10f2d63a
VZ
7129 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7130 if test "x$LINE" != x ; then
7131 eval "DEFAULT_$LINE"
7132 else
7133 no_cache=1
7134 fi
7135
7136 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7137
e6cc62c6 7138fi;
10f2d63a
VZ
7139
7140 eval "$ac_cv_use_listbox"
7141 if test "$no_cache" != 1; then
7142 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7143 fi
7144
7145 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7146 echo "$as_me:$LINENO: result: yes" >&5
7147echo "${ECHO_T}yes" >&6
10f2d63a 7148 else
e6cc62c6
VS
7149 echo "$as_me:$LINENO: result: no" >&5
7150echo "${ECHO_T}no" >&6
10f2d63a 7151 fi
e6cc62c6 7152
10f2d63a 7153
5005acfe 7154 enablestring=
e6cc62c6
VS
7155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7156echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7157 no_cache=0
7158 # Check whether --enable-listctrl or --disable-listctrl was given.
7159if test "${enable_listctrl+set}" = set; then
7160 enableval="$enable_listctrl"
e6cc62c6 7161
10f2d63a
VZ
7162 if test "$enableval" = yes; then
7163 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7164 else
7165 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7166 fi
e6cc62c6 7167
10f2d63a 7168else
e6cc62c6 7169
10f2d63a
VZ
7170 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7171 if test "x$LINE" != x ; then
7172 eval "DEFAULT_$LINE"
7173 else
7174 no_cache=1
7175 fi
7176
7177 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7178
e6cc62c6 7179fi;
10f2d63a
VZ
7180
7181 eval "$ac_cv_use_listctrl"
7182 if test "$no_cache" != 1; then
7183 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7184 fi
7185
7186 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7187 echo "$as_me:$LINENO: result: yes" >&5
7188echo "${ECHO_T}yes" >&6
10f2d63a 7189 else
e6cc62c6
VS
7190 echo "$as_me:$LINENO: result: no" >&5
7191echo "${ECHO_T}no" >&6
10f2d63a 7192 fi
e6cc62c6 7193
10f2d63a 7194
5005acfe 7195 enablestring=
e6cc62c6
VS
7196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7197echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7198 no_cache=0
7199 # Check whether --enable-notebook or --disable-notebook was given.
7200if test "${enable_notebook+set}" = set; then
7201 enableval="$enable_notebook"
e6cc62c6 7202
10f2d63a
VZ
7203 if test "$enableval" = yes; then
7204 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7205 else
7206 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7207 fi
e6cc62c6 7208
10f2d63a 7209else
e6cc62c6 7210
10f2d63a
VZ
7211 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7219
e6cc62c6 7220fi;
10f2d63a
VZ
7221
7222 eval "$ac_cv_use_notebook"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7228 echo "$as_me:$LINENO: result: yes" >&5
7229echo "${ECHO_T}yes" >&6
10f2d63a 7230 else
e6cc62c6
VS
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
10f2d63a 7233 fi
e6cc62c6 7234
10f2d63a 7235
5005acfe 7236 enablestring=
e6cc62c6
VS
7237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7238echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7239 no_cache=0
7240 # Check whether --enable-radiobox or --disable-radiobox was given.
7241if test "${enable_radiobox+set}" = set; then
7242 enableval="$enable_radiobox"
e6cc62c6 7243
10f2d63a
VZ
7244 if test "$enableval" = yes; then
7245 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7246 else
7247 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7248 fi
e6cc62c6 7249
10f2d63a 7250else
e6cc62c6 7251
10f2d63a
VZ
7252 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7260
e6cc62c6 7261fi;
10f2d63a
VZ
7262
7263 eval "$ac_cv_use_radiobox"
7264 if test "$no_cache" != 1; then
7265 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7266 fi
7267
7268 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7269 echo "$as_me:$LINENO: result: yes" >&5
7270echo "${ECHO_T}yes" >&6
10f2d63a 7271 else
e6cc62c6
VS
7272 echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6
10f2d63a 7274 fi
e6cc62c6 7275
10f2d63a 7276
5005acfe 7277 enablestring=
e6cc62c6
VS
7278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7279echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7280 no_cache=0
7281 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7282if test "${enable_radiobtn+set}" = set; then
7283 enableval="$enable_radiobtn"
e6cc62c6 7284
10f2d63a
VZ
7285 if test "$enableval" = yes; then
7286 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7287 else
7288 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7289 fi
e6cc62c6 7290
10f2d63a 7291else
e6cc62c6 7292
10f2d63a
VZ
7293 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7294 if test "x$LINE" != x ; then
7295 eval "DEFAULT_$LINE"
7296 else
7297 no_cache=1
7298 fi
7299
7300 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7301
e6cc62c6 7302fi;
10f2d63a
VZ
7303
7304 eval "$ac_cv_use_radiobtn"
7305 if test "$no_cache" != 1; then
7306 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7307 fi
7308
7309 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7310 echo "$as_me:$LINENO: result: yes" >&5
7311echo "${ECHO_T}yes" >&6
10f2d63a 7312 else
e6cc62c6
VS
7313 echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6
10f2d63a 7315 fi
e6cc62c6 7316
10f2d63a 7317
5005acfe 7318 enablestring=
e6cc62c6
VS
7319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7320echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7321 no_cache=0
7322 # Check whether --enable-sash or --disable-sash was given.
7323if test "${enable_sash+set}" = set; then
7324 enableval="$enable_sash"
e6cc62c6 7325
10f2d63a
VZ
7326 if test "$enableval" = yes; then
7327 ac_cv_use_sash='wxUSE_SASH=yes'
7328 else
7329 ac_cv_use_sash='wxUSE_SASH=no'
7330 fi
e6cc62c6 7331
10f2d63a 7332else
e6cc62c6 7333
10f2d63a
VZ
7334 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7335 if test "x$LINE" != x ; then
7336 eval "DEFAULT_$LINE"
7337 else
7338 no_cache=1
7339 fi
7340
7341 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7342
e6cc62c6 7343fi;
10f2d63a
VZ
7344
7345 eval "$ac_cv_use_sash"
7346 if test "$no_cache" != 1; then
7347 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7348 fi
7349
7350 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7351 echo "$as_me:$LINENO: result: yes" >&5
7352echo "${ECHO_T}yes" >&6
10f2d63a 7353 else
e6cc62c6
VS
7354 echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6
10f2d63a 7356 fi
e6cc62c6 7357
10f2d63a 7358
5005acfe 7359 enablestring=
e6cc62c6
VS
7360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7361echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7362 no_cache=0
7363 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7364if test "${enable_scrollbar+set}" = set; then
7365 enableval="$enable_scrollbar"
e6cc62c6 7366
10f2d63a
VZ
7367 if test "$enableval" = yes; then
7368 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7369 else
7370 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7371 fi
e6cc62c6 7372
10f2d63a 7373else
e6cc62c6 7374
10f2d63a
VZ
7375 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7376 if test "x$LINE" != x ; then
7377 eval "DEFAULT_$LINE"
7378 else
7379 no_cache=1
7380 fi
7381
7382 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7383
e6cc62c6 7384fi;
10f2d63a
VZ
7385
7386 eval "$ac_cv_use_scrollbar"
7387 if test "$no_cache" != 1; then
7388 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7389 fi
7390
7391 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7392 echo "$as_me:$LINENO: result: yes" >&5
7393echo "${ECHO_T}yes" >&6
10f2d63a 7394 else
e6cc62c6
VS
7395 echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6
10f2d63a 7397 fi
e6cc62c6 7398
10f2d63a 7399
5005acfe 7400 enablestring=
e6cc62c6
VS
7401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7402echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7403 no_cache=0
7404 # Check whether --enable-slider or --disable-slider was given.
7405if test "${enable_slider+set}" = set; then
7406 enableval="$enable_slider"
e6cc62c6 7407
10f2d63a
VZ
7408 if test "$enableval" = yes; then
7409 ac_cv_use_slider='wxUSE_SLIDER=yes'
7410 else
7411 ac_cv_use_slider='wxUSE_SLIDER=no'
7412 fi
e6cc62c6 7413
10f2d63a 7414else
e6cc62c6 7415
10f2d63a
VZ
7416 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7417 if test "x$LINE" != x ; then
7418 eval "DEFAULT_$LINE"
7419 else
7420 no_cache=1
7421 fi
7422
7423 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7424
e6cc62c6 7425fi;
10f2d63a
VZ
7426
7427 eval "$ac_cv_use_slider"
7428 if test "$no_cache" != 1; then
7429 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7430 fi
7431
7432 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7433 echo "$as_me:$LINENO: result: yes" >&5
7434echo "${ECHO_T}yes" >&6
10f2d63a 7435 else
e6cc62c6
VS
7436 echo "$as_me:$LINENO: result: no" >&5
7437echo "${ECHO_T}no" >&6
10f2d63a 7438 fi
e6cc62c6 7439
10f2d63a 7440
5005acfe 7441 enablestring=
e6cc62c6
VS
7442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7443echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7444 no_cache=0
7445 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7446if test "${enable_spinbtn+set}" = set; then
7447 enableval="$enable_spinbtn"
e6cc62c6 7448
10f2d63a
VZ
7449 if test "$enableval" = yes; then
7450 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7451 else
7452 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7453 fi
e6cc62c6 7454
10f2d63a 7455else
e6cc62c6 7456
10f2d63a
VZ
7457 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7458 if test "x$LINE" != x ; then
7459 eval "DEFAULT_$LINE"
7460 else
7461 no_cache=1
7462 fi
7463
7464 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7465
e6cc62c6 7466fi;
10f2d63a
VZ
7467
7468 eval "$ac_cv_use_spinbtn"
7469 if test "$no_cache" != 1; then
7470 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7471 fi
7472
7473 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7474 echo "$as_me:$LINENO: result: yes" >&5
7475echo "${ECHO_T}yes" >&6
10f2d63a 7476 else
e6cc62c6
VS
7477 echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6
10f2d63a 7479 fi
e6cc62c6 7480
10f2d63a 7481
5005acfe 7482 enablestring=
e6cc62c6
VS
7483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7484echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7485 no_cache=0
7486 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7487if test "${enable_spinctrl+set}" = set; then
7488 enableval="$enable_spinctrl"
e6cc62c6 7489
56cfaa52
RR
7490 if test "$enableval" = yes; then
7491 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7492 else
7493 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7494 fi
e6cc62c6 7495
56cfaa52 7496else
e6cc62c6 7497
56cfaa52
RR
7498 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7499 if test "x$LINE" != x ; then
7500 eval "DEFAULT_$LINE"
7501 else
7502 no_cache=1
7503 fi
7504
7505 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7506
e6cc62c6 7507fi;
56cfaa52
RR
7508
7509 eval "$ac_cv_use_spinctrl"
7510 if test "$no_cache" != 1; then
7511 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7512 fi
7513
7514 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7515 echo "$as_me:$LINENO: result: yes" >&5
7516echo "${ECHO_T}yes" >&6
56cfaa52 7517 else
e6cc62c6
VS
7518 echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
56cfaa52 7520 fi
e6cc62c6 7521
56cfaa52 7522
5005acfe 7523 enablestring=
e6cc62c6
VS
7524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7525echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7526 no_cache=0
7527 # Check whether --enable-splitter or --disable-splitter was given.
7528if test "${enable_splitter+set}" = set; then
7529 enableval="$enable_splitter"
e6cc62c6 7530
10f2d63a
VZ
7531 if test "$enableval" = yes; then
7532 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7533 else
7534 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7535 fi
e6cc62c6 7536
10f2d63a 7537else
e6cc62c6 7538
10f2d63a
VZ
7539 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7540 if test "x$LINE" != x ; then
7541 eval "DEFAULT_$LINE"
7542 else
7543 no_cache=1
7544 fi
7545
7546 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7547
e6cc62c6 7548fi;
10f2d63a
VZ
7549
7550 eval "$ac_cv_use_splitter"
7551 if test "$no_cache" != 1; then
7552 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7553 fi
7554
7555 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7556 echo "$as_me:$LINENO: result: yes" >&5
7557echo "${ECHO_T}yes" >&6
10f2d63a 7558 else
e6cc62c6
VS
7559 echo "$as_me:$LINENO: result: no" >&5
7560echo "${ECHO_T}no" >&6
10f2d63a 7561 fi
e6cc62c6 7562
10f2d63a 7563
5005acfe 7564 enablestring=
e6cc62c6
VS
7565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7566echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7567 no_cache=0
7568 # Check whether --enable-statbmp or --disable-statbmp was given.
7569if test "${enable_statbmp+set}" = set; then
7570 enableval="$enable_statbmp"
e6cc62c6 7571
10f2d63a
VZ
7572 if test "$enableval" = yes; then
7573 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7574 else
7575 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7576 fi
e6cc62c6 7577
10f2d63a 7578else
e6cc62c6 7579
10f2d63a
VZ
7580 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7581 if test "x$LINE" != x ; then
7582 eval "DEFAULT_$LINE"
7583 else
7584 no_cache=1
7585 fi
7586
7587 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7588
e6cc62c6 7589fi;
10f2d63a
VZ
7590
7591 eval "$ac_cv_use_statbmp"
7592 if test "$no_cache" != 1; then
7593 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7594 fi
7595
7596 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7597 echo "$as_me:$LINENO: result: yes" >&5
7598echo "${ECHO_T}yes" >&6
10f2d63a 7599 else
e6cc62c6
VS
7600 echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6
10f2d63a 7602 fi
e6cc62c6 7603
10f2d63a 7604
5005acfe 7605 enablestring=
e6cc62c6
VS
7606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7607echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7608 no_cache=0
7609 # Check whether --enable-statbox or --disable-statbox was given.
7610if test "${enable_statbox+set}" = set; then
7611 enableval="$enable_statbox"
e6cc62c6 7612
10f2d63a
VZ
7613 if test "$enableval" = yes; then
7614 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7615 else
7616 ac_cv_use_statbox='wxUSE_STATBOX=no'
7617 fi
e6cc62c6 7618
10f2d63a 7619else
e6cc62c6 7620
10f2d63a
VZ
7621 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7622 if test "x$LINE" != x ; then
7623 eval "DEFAULT_$LINE"
7624 else
7625 no_cache=1
7626 fi
7627
7628 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7629
e6cc62c6 7630fi;
10f2d63a
VZ
7631
7632 eval "$ac_cv_use_statbox"
7633 if test "$no_cache" != 1; then
7634 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7635 fi
7636
7637 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7638 echo "$as_me:$LINENO: result: yes" >&5
7639echo "${ECHO_T}yes" >&6
10f2d63a 7640 else
e6cc62c6
VS
7641 echo "$as_me:$LINENO: result: no" >&5
7642echo "${ECHO_T}no" >&6
10f2d63a 7643 fi
e6cc62c6 7644
10f2d63a 7645
5005acfe 7646 enablestring=
e6cc62c6
VS
7647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7648echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7649 no_cache=0
7650 # Check whether --enable-statline or --disable-statline was given.
7651if test "${enable_statline+set}" = set; then
7652 enableval="$enable_statline"
e6cc62c6 7653
10f2d63a
VZ
7654 if test "$enableval" = yes; then
7655 ac_cv_use_statline='wxUSE_STATLINE=yes'
7656 else
7657 ac_cv_use_statline='wxUSE_STATLINE=no'
7658 fi
e6cc62c6 7659
10f2d63a 7660else
e6cc62c6 7661
10f2d63a
VZ
7662 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7663 if test "x$LINE" != x ; then
7664 eval "DEFAULT_$LINE"
7665 else
7666 no_cache=1
7667 fi
7668
7669 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7670
e6cc62c6 7671fi;
10f2d63a
VZ
7672
7673 eval "$ac_cv_use_statline"
7674 if test "$no_cache" != 1; then
7675 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7676 fi
7677
7678 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7679 echo "$as_me:$LINENO: result: yes" >&5
7680echo "${ECHO_T}yes" >&6
10f2d63a 7681 else
e6cc62c6
VS
7682 echo "$as_me:$LINENO: result: no" >&5
7683echo "${ECHO_T}no" >&6
10f2d63a 7684 fi
e6cc62c6 7685
10f2d63a 7686
5005acfe 7687 enablestring=
e6cc62c6
VS
7688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7689echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7690 no_cache=0
7691 # Check whether --enable-stattext or --disable-stattext was given.
7692if test "${enable_stattext+set}" = set; then
7693 enableval="$enable_stattext"
e6cc62c6 7694
1e6feb95
VZ
7695 if test "$enableval" = yes; then
7696 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7697 else
7698 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7699 fi
e6cc62c6 7700
1e6feb95 7701else
e6cc62c6 7702
1e6feb95
VZ
7703 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7704 if test "x$LINE" != x ; then
7705 eval "DEFAULT_$LINE"
7706 else
7707 no_cache=1
7708 fi
7709
7710 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7711
e6cc62c6 7712fi;
1e6feb95
VZ
7713
7714 eval "$ac_cv_use_stattext"
7715 if test "$no_cache" != 1; then
7716 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7717 fi
7718
7719 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7720 echo "$as_me:$LINENO: result: yes" >&5
7721echo "${ECHO_T}yes" >&6
1e6feb95 7722 else
e6cc62c6
VS
7723 echo "$as_me:$LINENO: result: no" >&5
7724echo "${ECHO_T}no" >&6
1e6feb95 7725 fi
e6cc62c6 7726
1e6feb95 7727
5005acfe 7728 enablestring=
e6cc62c6
VS
7729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7730echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7731 no_cache=0
7732 # Check whether --enable-statusbar or --disable-statusbar was given.
7733if test "${enable_statusbar+set}" = set; then
7734 enableval="$enable_statusbar"
e6cc62c6 7735
10f2d63a
VZ
7736 if test "$enableval" = yes; then
7737 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7738 else
7739 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7740 fi
e6cc62c6 7741
10f2d63a 7742else
e6cc62c6 7743
10f2d63a
VZ
7744 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7745 if test "x$LINE" != x ; then
7746 eval "DEFAULT_$LINE"
7747 else
7748 no_cache=1
7749 fi
7750
7751 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7752
e6cc62c6 7753fi;
10f2d63a
VZ
7754
7755 eval "$ac_cv_use_statusbar"
7756 if test "$no_cache" != 1; then
7757 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7758 fi
7759
7760 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7761 echo "$as_me:$LINENO: result: yes" >&5
7762echo "${ECHO_T}yes" >&6
10f2d63a 7763 else
e6cc62c6
VS
7764 echo "$as_me:$LINENO: result: no" >&5
7765echo "${ECHO_T}no" >&6
10f2d63a 7766 fi
e6cc62c6 7767
10f2d63a 7768
5005acfe 7769 enablestring=
e6cc62c6
VS
7770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7771echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7772 no_cache=0
7773 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7774if test "${enable_tabdialog+set}" = set; then
7775 enableval="$enable_tabdialog"
e6cc62c6 7776
10f2d63a
VZ
7777 if test "$enableval" = yes; then
7778 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7779 else
7780 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7781 fi
e6cc62c6 7782
10f2d63a 7783else
e6cc62c6 7784
10f2d63a
VZ
7785 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7786 if test "x$LINE" != x ; then
7787 eval "DEFAULT_$LINE"
7788 else
7789 no_cache=1
7790 fi
7791
7792 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7793
e6cc62c6 7794fi;
10f2d63a
VZ
7795
7796 eval "$ac_cv_use_tabdialog"
7797 if test "$no_cache" != 1; then
7798 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7799 fi
7800
7801 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7802 echo "$as_me:$LINENO: result: yes" >&5
7803echo "${ECHO_T}yes" >&6
10f2d63a 7804 else
e6cc62c6
VS
7805 echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6
10f2d63a 7807 fi
e6cc62c6 7808
10f2d63a 7809
5005acfe 7810 enablestring=
e6cc62c6
VS
7811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7812echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7813 no_cache=0
7814 # Check whether --enable-textctrl or --disable-textctrl was given.
7815if test "${enable_textctrl+set}" = set; then
7816 enableval="$enable_textctrl"
e6cc62c6 7817
1e6feb95
VZ
7818 if test "$enableval" = yes; then
7819 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7820 else
7821 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7822 fi
e6cc62c6 7823
1e6feb95 7824else
e6cc62c6 7825
1e6feb95
VZ
7826 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7827 if test "x$LINE" != x ; then
7828 eval "DEFAULT_$LINE"
7829 else
7830 no_cache=1
7831 fi
7832
7833 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7834
e6cc62c6 7835fi;
1e6feb95
VZ
7836
7837 eval "$ac_cv_use_textctrl"
7838 if test "$no_cache" != 1; then
7839 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7840 fi
7841
7842 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7843 echo "$as_me:$LINENO: result: yes" >&5
7844echo "${ECHO_T}yes" >&6
1e6feb95 7845 else
e6cc62c6
VS
7846 echo "$as_me:$LINENO: result: no" >&5
7847echo "${ECHO_T}no" >&6
1e6feb95 7848 fi
e6cc62c6 7849
1e6feb95 7850
5005acfe 7851 enablestring=
e6cc62c6
VS
7852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7853echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7854 no_cache=0
7855 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7856if test "${enable_togglebtn+set}" = set; then
7857 enableval="$enable_togglebtn"
e6cc62c6 7858
1db8dc4a
VZ
7859 if test "$enableval" = yes; then
7860 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7861 else
7862 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7863 fi
e6cc62c6 7864
1db8dc4a 7865else
e6cc62c6 7866
1db8dc4a
VZ
7867 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7868 if test "x$LINE" != x ; then
7869 eval "DEFAULT_$LINE"
7870 else
7871 no_cache=1
7872 fi
7873
7874 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7875
e6cc62c6 7876fi;
1db8dc4a
VZ
7877
7878 eval "$ac_cv_use_togglebtn"
7879 if test "$no_cache" != 1; then
7880 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7881 fi
7882
7883 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7884 echo "$as_me:$LINENO: result: yes" >&5
7885echo "${ECHO_T}yes" >&6
1db8dc4a 7886 else
e6cc62c6
VS
7887 echo "$as_me:$LINENO: result: no" >&5
7888echo "${ECHO_T}no" >&6
1db8dc4a 7889 fi
e6cc62c6 7890
1db8dc4a 7891
5005acfe 7892 enablestring=
e6cc62c6
VS
7893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7894echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7895 no_cache=0
7896 # Check whether --enable-toolbar or --disable-toolbar was given.
7897if test "${enable_toolbar+set}" = set; then
7898 enableval="$enable_toolbar"
e6cc62c6 7899
10f2d63a
VZ
7900 if test "$enableval" = yes; then
7901 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7902 else
7903 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7904 fi
e6cc62c6 7905
10f2d63a 7906else
e6cc62c6 7907
10f2d63a
VZ
7908 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7909 if test "x$LINE" != x ; then
7910 eval "DEFAULT_$LINE"
7911 else
7912 no_cache=1
7913 fi
7914
7915 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7916
e6cc62c6 7917fi;
10f2d63a
VZ
7918
7919 eval "$ac_cv_use_toolbar"
7920 if test "$no_cache" != 1; then
7921 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7922 fi
7923
7924 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7925 echo "$as_me:$LINENO: result: yes" >&5
7926echo "${ECHO_T}yes" >&6
10f2d63a 7927 else
e6cc62c6
VS
7928 echo "$as_me:$LINENO: result: no" >&5
7929echo "${ECHO_T}no" >&6
10f2d63a 7930 fi
e6cc62c6 7931
10f2d63a 7932
5005acfe 7933 enablestring=
e6cc62c6
VS
7934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7935echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7936 no_cache=0
7937 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7938if test "${enable_tbarnative+set}" = set; then
7939 enableval="$enable_tbarnative"
e6cc62c6 7940
360d6699
VZ
7941 if test "$enableval" = yes; then
7942 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7943 else
7944 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7945 fi
e6cc62c6 7946
360d6699 7947else
e6cc62c6 7948
360d6699
VZ
7949 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7950 if test "x$LINE" != x ; then
7951 eval "DEFAULT_$LINE"
7952 else
7953 no_cache=1
7954 fi
7955
7956 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7957
e6cc62c6 7958fi;
360d6699
VZ
7959
7960 eval "$ac_cv_use_tbarnative"
7961 if test "$no_cache" != 1; then
7962 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7963 fi
7964
7965 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7966 echo "$as_me:$LINENO: result: yes" >&5
7967echo "${ECHO_T}yes" >&6
360d6699 7968 else
e6cc62c6
VS
7969 echo "$as_me:$LINENO: result: no" >&5
7970echo "${ECHO_T}no" >&6
360d6699 7971 fi
e6cc62c6 7972
360d6699 7973
5005acfe 7974 enablestring=
e6cc62c6
VS
7975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7976echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7977 no_cache=0
7978 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7979if test "${enable_tbarsmpl+set}" = set; then
7980 enableval="$enable_tbarsmpl"
e6cc62c6 7981
360d6699
VZ
7982 if test "$enableval" = yes; then
7983 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7984 else
7985 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7986 fi
e6cc62c6 7987
360d6699 7988else
e6cc62c6 7989
360d6699
VZ
7990 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7991 if test "x$LINE" != x ; then
7992 eval "DEFAULT_$LINE"
7993 else
7994 no_cache=1
7995 fi
7996
7997 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7998
e6cc62c6 7999fi;
360d6699
VZ
8000
8001 eval "$ac_cv_use_tbarsmpl"
8002 if test "$no_cache" != 1; then
8003 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8004 fi
8005
8006 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8007 echo "$as_me:$LINENO: result: yes" >&5
8008echo "${ECHO_T}yes" >&6
360d6699 8009 else
e6cc62c6
VS
8010 echo "$as_me:$LINENO: result: no" >&5
8011echo "${ECHO_T}no" >&6
360d6699 8012 fi
e6cc62c6 8013
360d6699 8014
5005acfe 8015 enablestring=
e6cc62c6
VS
8016 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8017echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8018 no_cache=0
8019 # Check whether --enable-treectrl or --disable-treectrl was given.
8020if test "${enable_treectrl+set}" = set; then
8021 enableval="$enable_treectrl"
e6cc62c6 8022
10f2d63a
VZ
8023 if test "$enableval" = yes; then
8024 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8025 else
8026 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8027 fi
e6cc62c6 8028
10f2d63a 8029else
e6cc62c6 8030
10f2d63a
VZ
8031 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8032 if test "x$LINE" != x ; then
8033 eval "DEFAULT_$LINE"
8034 else
8035 no_cache=1
8036 fi
8037
8038 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8039
e6cc62c6 8040fi;
10f2d63a 8041
1e6feb95
VZ
8042 eval "$ac_cv_use_treectrl"
8043 if test "$no_cache" != 1; then
8044 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8045 fi
8046
8047 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8048 echo "$as_me:$LINENO: result: yes" >&5
8049echo "${ECHO_T}yes" >&6
1e6feb95 8050 else
e6cc62c6
VS
8051 echo "$as_me:$LINENO: result: no" >&5
8052echo "${ECHO_T}no" >&6
1e6feb95 8053 fi
e6cc62c6 8054
1e6feb95 8055
5005acfe 8056 enablestring=
e6cc62c6
VS
8057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8058echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8059 no_cache=0
8060 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8061if test "${enable_tipwindow+set}" = set; then
8062 enableval="$enable_tipwindow"
e6cc62c6 8063
9926e4a4
VZ
8064 if test "$enableval" = yes; then
8065 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8066 else
8067 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8068 fi
e6cc62c6 8069
9926e4a4 8070else
e6cc62c6 8071
9926e4a4
VZ
8072 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8073 if test "x$LINE" != x ; then
8074 eval "DEFAULT_$LINE"
8075 else
8076 no_cache=1
8077 fi
8078
8079 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8080
e6cc62c6 8081fi;
9926e4a4
VZ
8082
8083 eval "$ac_cv_use_tipwindow"
8084 if test "$no_cache" != 1; then
8085 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8086 fi
8087
8088 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8089 echo "$as_me:$LINENO: result: yes" >&5
8090echo "${ECHO_T}yes" >&6
9926e4a4 8091 else
e6cc62c6
VS
8092 echo "$as_me:$LINENO: result: no" >&5
8093echo "${ECHO_T}no" >&6
9926e4a4 8094 fi
e6cc62c6 8095
9926e4a4 8096
5005acfe 8097 enablestring=
e6cc62c6
VS
8098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8099echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8100 no_cache=0
8101 # Check whether --enable-popupwin or --disable-popupwin was given.
8102if test "${enable_popupwin+set}" = set; then
8103 enableval="$enable_popupwin"
e6cc62c6 8104
9f41d601
RR
8105 if test "$enableval" = yes; then
8106 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8107 else
8108 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8109 fi
e6cc62c6 8110
9f41d601 8111else
e6cc62c6 8112
9f41d601
RR
8113 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8114 if test "x$LINE" != x ; then
8115 eval "DEFAULT_$LINE"
8116 else
8117 no_cache=1
8118 fi
8119
8120 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8121
e6cc62c6 8122fi;
9f41d601
RR
8123
8124 eval "$ac_cv_use_popupwin"
8125 if test "$no_cache" != 1; then
8126 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8127 fi
8128
8129 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8130 echo "$as_me:$LINENO: result: yes" >&5
8131echo "${ECHO_T}yes" >&6
9f41d601 8132 else
e6cc62c6
VS
8133 echo "$as_me:$LINENO: result: no" >&5
8134echo "${ECHO_T}no" >&6
9f41d601 8135 fi
e6cc62c6 8136
52127426 8137
8284b0c5
MB
8138
8139
5005acfe 8140 enablestring=
e6cc62c6
VS
8141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8142echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8143 no_cache=0
8144 # Check whether --enable-commondlg or --disable-commondlg was given.
8145if test "${enable_commondlg+set}" = set; then
8146 enableval="$enable_commondlg"
e6cc62c6 8147
1e6feb95
VZ
8148 if test "$enableval" = yes; then
8149 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8150 else
8151 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8152 fi
e6cc62c6 8153
1e6feb95 8154else
e6cc62c6 8155
1e6feb95
VZ
8156 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8157 if test "x$LINE" != x ; then
8158 eval "DEFAULT_$LINE"
8159 else
8160 no_cache=1
8161 fi
8162
8163 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8164
e6cc62c6 8165fi;
1e6feb95
VZ
8166
8167 eval "$ac_cv_use_commondlg"
8168 if test "$no_cache" != 1; then
8169 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8170 fi
8171
8172 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8173 echo "$as_me:$LINENO: result: yes" >&5
8174echo "${ECHO_T}yes" >&6
1e6feb95 8175 else
e6cc62c6
VS
8176 echo "$as_me:$LINENO: result: no" >&5
8177echo "${ECHO_T}no" >&6
1e6feb95 8178 fi
e6cc62c6 8179
1e6feb95 8180
5005acfe 8181 enablestring=
e6cc62c6
VS
8182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8183echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8184 no_cache=0
8185 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8186if test "${enable_choicedlg+set}" = set; then
8187 enableval="$enable_choicedlg"
e6cc62c6 8188
1e6feb95
VZ
8189 if test "$enableval" = yes; then
8190 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8191 else
8192 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8193 fi
e6cc62c6 8194
1e6feb95 8195else
e6cc62c6 8196
1e6feb95
VZ
8197 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8198 if test "x$LINE" != x ; then
8199 eval "DEFAULT_$LINE"
8200 else
8201 no_cache=1
8202 fi
8203
8204 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8205
e6cc62c6 8206fi;
1e6feb95
VZ
8207
8208 eval "$ac_cv_use_choicedlg"
8209 if test "$no_cache" != 1; then
8210 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8211 fi
8212
8213 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8214 echo "$as_me:$LINENO: result: yes" >&5
8215echo "${ECHO_T}yes" >&6
1e6feb95 8216 else
e6cc62c6
VS
8217 echo "$as_me:$LINENO: result: no" >&5
8218echo "${ECHO_T}no" >&6
1e6feb95 8219 fi
e6cc62c6 8220
1e6feb95 8221
5005acfe 8222 enablestring=
e6cc62c6
VS
8223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8224echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8225 no_cache=0
8226 # Check whether --enable-coldlg or --disable-coldlg was given.
8227if test "${enable_coldlg+set}" = set; then
8228 enableval="$enable_coldlg"
e6cc62c6 8229
1e6feb95
VZ
8230 if test "$enableval" = yes; then
8231 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8232 else
8233 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8234 fi
e6cc62c6 8235
1e6feb95 8236else
e6cc62c6 8237
1e6feb95
VZ
8238 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8239 if test "x$LINE" != x ; then
8240 eval "DEFAULT_$LINE"
8241 else
8242 no_cache=1
8243 fi
8244
8245 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8246
e6cc62c6 8247fi;
1e6feb95
VZ
8248
8249 eval "$ac_cv_use_coldlg"
8250 if test "$no_cache" != 1; then
8251 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8252 fi
8253
8254 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8255 echo "$as_me:$LINENO: result: yes" >&5
8256echo "${ECHO_T}yes" >&6
1e6feb95 8257 else
e6cc62c6
VS
8258 echo "$as_me:$LINENO: result: no" >&5
8259echo "${ECHO_T}no" >&6
1e6feb95 8260 fi
e6cc62c6 8261
1e6feb95 8262
5005acfe 8263 enablestring=
e6cc62c6
VS
8264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8265echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8266 no_cache=0
8267 # Check whether --enable-filedlg or --disable-filedlg was given.
8268if test "${enable_filedlg+set}" = set; then
8269 enableval="$enable_filedlg"
e6cc62c6 8270
1e6feb95
VZ
8271 if test "$enableval" = yes; then
8272 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8273 else
8274 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8275 fi
e6cc62c6 8276
1e6feb95 8277else
e6cc62c6 8278
1e6feb95
VZ
8279 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8280 if test "x$LINE" != x ; then
8281 eval "DEFAULT_$LINE"
8282 else
8283 no_cache=1
8284 fi
8285
8286 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8287
e6cc62c6 8288fi;
1e6feb95
VZ
8289
8290 eval "$ac_cv_use_filedlg"
8291 if test "$no_cache" != 1; then
8292 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8293 fi
8294
8295 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8296 echo "$as_me:$LINENO: result: yes" >&5
8297echo "${ECHO_T}yes" >&6
1e6feb95 8298 else
e6cc62c6
VS
8299 echo "$as_me:$LINENO: result: no" >&5
8300echo "${ECHO_T}no" >&6
1e6feb95 8301 fi
e6cc62c6 8302
1e6feb95 8303
5005acfe 8304 enablestring=
e6cc62c6
VS
8305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8306echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8307 no_cache=0
69d27ff7
MB
8308 # Check whether --enable-finddlg or --disable-finddlg was given.
8309if test "${enable_finddlg+set}" = set; then
8310 enableval="$enable_finddlg"
e6cc62c6 8311
8db37e06 8312 if test "$enableval" = yes; then
69d27ff7 8313 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8314 else
69d27ff7 8315 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8316 fi
e6cc62c6 8317
8db37e06 8318else
e6cc62c6 8319
8db37e06
VZ
8320 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8321 if test "x$LINE" != x ; then
8322 eval "DEFAULT_$LINE"
8323 else
8324 no_cache=1
8325 fi
8326
69d27ff7 8327 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8328
e6cc62c6 8329fi;
8db37e06 8330
69d27ff7 8331 eval "$ac_cv_use_finddlg"
8db37e06 8332 if test "$no_cache" != 1; then
69d27ff7 8333 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8334 fi
8335
8336 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8337 echo "$as_me:$LINENO: result: yes" >&5
8338echo "${ECHO_T}yes" >&6
8db37e06 8339 else
e6cc62c6
VS
8340 echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6
8db37e06 8342 fi
e6cc62c6 8343
8db37e06 8344
5005acfe 8345 enablestring=
e6cc62c6
VS
8346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8347echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8348 no_cache=0
8349 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8350if test "${enable_fontdlg+set}" = set; then
8351 enableval="$enable_fontdlg"
e6cc62c6 8352
1e6feb95
VZ
8353 if test "$enableval" = yes; then
8354 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8355 else
8356 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8357 fi
e6cc62c6 8358
1e6feb95 8359else
e6cc62c6 8360
1e6feb95
VZ
8361 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8362 if test "x$LINE" != x ; then
8363 eval "DEFAULT_$LINE"
8364 else
8365 no_cache=1
8366 fi
8367
8368 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8369
e6cc62c6 8370fi;
1e6feb95
VZ
8371
8372 eval "$ac_cv_use_fontdlg"
8373 if test "$no_cache" != 1; then
8374 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8375 fi
8376
8377 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8378 echo "$as_me:$LINENO: result: yes" >&5
8379echo "${ECHO_T}yes" >&6
1e6feb95 8380 else
e6cc62c6
VS
8381 echo "$as_me:$LINENO: result: no" >&5
8382echo "${ECHO_T}no" >&6
1e6feb95 8383 fi
e6cc62c6 8384
1e6feb95 8385
5005acfe 8386 enablestring=
e6cc62c6
VS
8387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8388echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8389 no_cache=0
8390 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8391if test "${enable_dirdlg+set}" = set; then
8392 enableval="$enable_dirdlg"
e6cc62c6 8393
1e6feb95
VZ
8394 if test "$enableval" = yes; then
8395 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8396 else
8397 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8398 fi
e6cc62c6 8399
1e6feb95 8400else
e6cc62c6 8401
1e6feb95
VZ
8402 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8403 if test "x$LINE" != x ; then
8404 eval "DEFAULT_$LINE"
8405 else
8406 no_cache=1
8407 fi
8408
8409 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8410
e6cc62c6 8411fi;
1e6feb95
VZ
8412
8413 eval "$ac_cv_use_dirdlg"
10f2d63a 8414 if test "$no_cache" != 1; then
1e6feb95 8415 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8416 fi
8417
1e6feb95 8418 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8419 echo "$as_me:$LINENO: result: yes" >&5
8420echo "${ECHO_T}yes" >&6
10f2d63a 8421 else
e6cc62c6
VS
8422 echo "$as_me:$LINENO: result: no" >&5
8423echo "${ECHO_T}no" >&6
10f2d63a 8424 fi
e6cc62c6 8425
698dcdb6 8426
5005acfe 8427 enablestring=
e6cc62c6
VS
8428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8429echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8430 no_cache=0
1e6feb95
VZ
8431 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8432if test "${enable_msgdlg+set}" = set; then
8433 enableval="$enable_msgdlg"
e6cc62c6 8434
10f2d63a 8435 if test "$enableval" = yes; then
1e6feb95 8436 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8437 else
1e6feb95 8438 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8439 fi
e6cc62c6 8440
10f2d63a 8441else
e6cc62c6 8442
1e6feb95 8443 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8444 if test "x$LINE" != x ; then
8445 eval "DEFAULT_$LINE"
8446 else
8447 no_cache=1
8448 fi
8449
1e6feb95 8450 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8451
e6cc62c6 8452fi;
10f2d63a 8453
1e6feb95 8454 eval "$ac_cv_use_msgdlg"
10f2d63a 8455 if test "$no_cache" != 1; then
1e6feb95 8456 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8457 fi
8458
1e6feb95 8459 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8460 echo "$as_me:$LINENO: result: yes" >&5
8461echo "${ECHO_T}yes" >&6
10f2d63a 8462 else
e6cc62c6
VS
8463 echo "$as_me:$LINENO: result: no" >&5
8464echo "${ECHO_T}no" >&6
10f2d63a 8465 fi
e6cc62c6 8466
10f2d63a 8467
5005acfe 8468 enablestring=
e6cc62c6
VS
8469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8470echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8471 no_cache=0
1e6feb95
VZ
8472 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8473if test "${enable_numberdlg+set}" = set; then
8474 enableval="$enable_numberdlg"
e6cc62c6 8475
10f2d63a 8476 if test "$enableval" = yes; then
1e6feb95 8477 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8478 else
1e6feb95 8479 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8480 fi
e6cc62c6 8481
10f2d63a 8482else
e6cc62c6 8483
1e6feb95 8484 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8485 if test "x$LINE" != x ; then
8486 eval "DEFAULT_$LINE"
8487 else
8488 no_cache=1
8489 fi
8490
1e6feb95 8491 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8492
e6cc62c6 8493fi;
10f2d63a 8494
1e6feb95 8495 eval "$ac_cv_use_numberdlg"
10f2d63a 8496 if test "$no_cache" != 1; then
1e6feb95 8497 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8498 fi
8499
1e6feb95 8500 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8501 echo "$as_me:$LINENO: result: yes" >&5
8502echo "${ECHO_T}yes" >&6
10f2d63a 8503 else
e6cc62c6
VS
8504 echo "$as_me:$LINENO: result: no" >&5
8505echo "${ECHO_T}no" >&6
10f2d63a 8506 fi
e6cc62c6 8507
10f2d63a 8508
5005acfe 8509 enablestring=
e6cc62c6
VS
8510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8511echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8512 no_cache=0
8513 # Check whether --enable-splash or --disable-splash was given.
8514if test "${enable_splash+set}" = set; then
8515 enableval="$enable_splash"
e6cc62c6 8516
cbca9943
VZ
8517 if test "$enableval" = yes; then
8518 ac_cv_use_splash='wxUSE_SPLASH=yes'
8519 else
8520 ac_cv_use_splash='wxUSE_SPLASH=no'
8521 fi
e6cc62c6 8522
cbca9943 8523else
e6cc62c6 8524
cbca9943
VZ
8525 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8526 if test "x$LINE" != x ; then
8527 eval "DEFAULT_$LINE"
8528 else
8529 no_cache=1
8530 fi
8531
8532 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8533
e6cc62c6 8534fi;
cbca9943
VZ
8535
8536 eval "$ac_cv_use_splash"
8537 if test "$no_cache" != 1; then
8538 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8539 fi
8540
8541 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8542 echo "$as_me:$LINENO: result: yes" >&5
8543echo "${ECHO_T}yes" >&6
cbca9943 8544 else
e6cc62c6
VS
8545 echo "$as_me:$LINENO: result: no" >&5
8546echo "${ECHO_T}no" >&6
cbca9943 8547 fi
e6cc62c6 8548
cbca9943 8549
5005acfe 8550 enablestring=
e6cc62c6
VS
8551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8552echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8553 no_cache=0
8554 # Check whether --enable-textdlg or --disable-textdlg was given.
8555if test "${enable_textdlg+set}" = set; then
8556 enableval="$enable_textdlg"
e6cc62c6 8557
10f2d63a
VZ
8558 if test "$enableval" = yes; then
8559 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8560 else
8561 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8562 fi
e6cc62c6 8563
10f2d63a 8564else
e6cc62c6 8565
10f2d63a
VZ
8566 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8567 if test "x$LINE" != x ; then
8568 eval "DEFAULT_$LINE"
8569 else
8570 no_cache=1
8571 fi
8572
8573 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8574
e6cc62c6 8575fi;
10f2d63a
VZ
8576
8577 eval "$ac_cv_use_textdlg"
8578 if test "$no_cache" != 1; then
8579 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8580 fi
8581
8582 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8583 echo "$as_me:$LINENO: result: yes" >&5
8584echo "${ECHO_T}yes" >&6
10f2d63a 8585 else
e6cc62c6
VS
8586 echo "$as_me:$LINENO: result: no" >&5
8587echo "${ECHO_T}no" >&6
10f2d63a 8588 fi
e6cc62c6 8589
10f2d63a 8590
5005acfe 8591 enablestring=
e6cc62c6
VS
8592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8593echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8594 no_cache=0
8595 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8596if test "${enable_tipdlg+set}" = set; then
8597 enableval="$enable_tipdlg"
e6cc62c6 8598
10f2d63a
VZ
8599 if test "$enableval" = yes; then
8600 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8601 else
8602 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8603 fi
e6cc62c6 8604
10f2d63a 8605else
e6cc62c6 8606
10f2d63a
VZ
8607 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8608 if test "x$LINE" != x ; then
8609 eval "DEFAULT_$LINE"
8610 else
8611 no_cache=1
8612 fi
8613
8614 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8615
e6cc62c6 8616fi;
10f2d63a
VZ
8617
8618 eval "$ac_cv_use_tipdlg"
8619 if test "$no_cache" != 1; then
8620 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8621 fi
8622
8623 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8624 echo "$as_me:$LINENO: result: yes" >&5
8625echo "${ECHO_T}yes" >&6
10f2d63a 8626 else
e6cc62c6
VS
8627 echo "$as_me:$LINENO: result: no" >&5
8628echo "${ECHO_T}no" >&6
10f2d63a 8629 fi
e6cc62c6 8630
10f2d63a 8631
5005acfe 8632 enablestring=
e6cc62c6
VS
8633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8634echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8635 no_cache=0
8636 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8637if test "${enable_progressdlg+set}" = set; then
8638 enableval="$enable_progressdlg"
e6cc62c6 8639
10f2d63a
VZ
8640 if test "$enableval" = yes; then
8641 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8642 else
8643 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8644 fi
e6cc62c6 8645
10f2d63a 8646else
e6cc62c6 8647
10f2d63a
VZ
8648 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8649 if test "x$LINE" != x ; then
8650 eval "DEFAULT_$LINE"
8651 else
8652 no_cache=1
8653 fi
8654
8655 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8656
e6cc62c6 8657fi;
10f2d63a
VZ
8658
8659 eval "$ac_cv_use_progressdlg"
8660 if test "$no_cache" != 1; then
8661 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8662 fi
8663
8664 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8665 echo "$as_me:$LINENO: result: yes" >&5
8666echo "${ECHO_T}yes" >&6
10f2d63a 8667 else
e6cc62c6
VS
8668 echo "$as_me:$LINENO: result: no" >&5
8669echo "${ECHO_T}no" >&6
10f2d63a 8670 fi
e6cc62c6 8671
10f2d63a 8672
5005acfe 8673 enablestring=
e6cc62c6
VS
8674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8675echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8676 no_cache=0
8677 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8678if test "${enable_wizarddlg+set}" = set; then
8679 enableval="$enable_wizarddlg"
e6cc62c6 8680
b1f5d087
VZ
8681 if test "$enableval" = yes; then
8682 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8683 else
8684 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8685 fi
e6cc62c6 8686
b1f5d087 8687else
e6cc62c6 8688
b1f5d087
VZ
8689 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8690 if test "x$LINE" != x ; then
8691 eval "DEFAULT_$LINE"
8692 else
8693 no_cache=1
8694 fi
8695
8696 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8697
e6cc62c6 8698fi;
b1f5d087
VZ
8699
8700 eval "$ac_cv_use_wizarddlg"
8701 if test "$no_cache" != 1; then
8702 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8703 fi
8704
8705 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8706 echo "$as_me:$LINENO: result: yes" >&5
8707echo "${ECHO_T}yes" >&6
b1f5d087 8708 else
e6cc62c6
VS
8709 echo "$as_me:$LINENO: result: no" >&5
8710echo "${ECHO_T}no" >&6
b1f5d087 8711 fi
e6cc62c6 8712
8284b0c5
MB
8713
8714
52127426 8715
5005acfe 8716 enablestring=
e6cc62c6
VS
8717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8718echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8719 no_cache=0
8720 # Check whether --enable-menus or --disable-menus was given.
8721if test "${enable_menus+set}" = set; then
8722 enableval="$enable_menus"
e6cc62c6 8723
1e6feb95
VZ
8724 if test "$enableval" = yes; then
8725 ac_cv_use_menus='wxUSE_MENUS=yes'
8726 else
8727 ac_cv_use_menus='wxUSE_MENUS=no'
8728 fi
e6cc62c6 8729
1e6feb95 8730else
e6cc62c6 8731
1e6feb95
VZ
8732 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8733 if test "x$LINE" != x ; then
8734 eval "DEFAULT_$LINE"
8735 else
8736 no_cache=1
8737 fi
8738
8739 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8740
e6cc62c6 8741fi;
1e6feb95
VZ
8742
8743 eval "$ac_cv_use_menus"
8744 if test "$no_cache" != 1; then
8745 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8746 fi
8747
8748 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8749 echo "$as_me:$LINENO: result: yes" >&5
8750echo "${ECHO_T}yes" >&6
1e6feb95 8751 else
e6cc62c6
VS
8752 echo "$as_me:$LINENO: result: no" >&5
8753echo "${ECHO_T}no" >&6
1e6feb95 8754 fi
e6cc62c6 8755
1e6feb95 8756
5005acfe 8757 enablestring=
e6cc62c6
VS
8758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8759echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8760 no_cache=0
8761 # Check whether --enable-miniframe or --disable-miniframe was given.
8762if test "${enable_miniframe+set}" = set; then
8763 enableval="$enable_miniframe"
e6cc62c6 8764
10f2d63a
VZ
8765 if test "$enableval" = yes; then
8766 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8767 else
8768 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8769 fi
e6cc62c6 8770
10f2d63a 8771else
e6cc62c6 8772
10f2d63a
VZ
8773 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8774 if test "x$LINE" != x ; then
8775 eval "DEFAULT_$LINE"
8776 else
8777 no_cache=1
8778 fi
8779
8780 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8781
e6cc62c6 8782fi;
10f2d63a
VZ
8783
8784 eval "$ac_cv_use_miniframe"
8785 if test "$no_cache" != 1; then
8786 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8787 fi
8788
8789 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8790 echo "$as_me:$LINENO: result: yes" >&5
8791echo "${ECHO_T}yes" >&6
10f2d63a 8792 else
e6cc62c6
VS
8793 echo "$as_me:$LINENO: result: no" >&5
8794echo "${ECHO_T}no" >&6
10f2d63a 8795 fi
e6cc62c6 8796
10f2d63a 8797
5005acfe 8798 enablestring=
e6cc62c6
VS
8799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8800echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8801 no_cache=0
8802 # Check whether --enable-tooltips or --disable-tooltips was given.
8803if test "${enable_tooltips+set}" = set; then
8804 enableval="$enable_tooltips"
e6cc62c6 8805
10f2d63a
VZ
8806 if test "$enableval" = yes; then
8807 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8808 else
8809 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8810 fi
e6cc62c6 8811
10f2d63a 8812else
e6cc62c6 8813
10f2d63a
VZ
8814 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8815 if test "x$LINE" != x ; then
8816 eval "DEFAULT_$LINE"
8817 else
8818 no_cache=1
8819 fi
8820
8821 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8822
e6cc62c6 8823fi;
10f2d63a
VZ
8824
8825 eval "$ac_cv_use_tooltips"
8826 if test "$no_cache" != 1; then
8827 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8828 fi
8829
8830 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8831 echo "$as_me:$LINENO: result: yes" >&5
8832echo "${ECHO_T}yes" >&6
10f2d63a 8833 else
e6cc62c6
VS
8834 echo "$as_me:$LINENO: result: no" >&5
8835echo "${ECHO_T}no" >&6
10f2d63a 8836 fi
e6cc62c6 8837
10f2d63a 8838
5005acfe 8839 enablestring=
e6cc62c6
VS
8840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8841echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8842 no_cache=0
8843 # Check whether --enable-splines or --disable-splines was given.
8844if test "${enable_splines+set}" = set; then
8845 enableval="$enable_splines"
e6cc62c6 8846
10f2d63a
VZ
8847 if test "$enableval" = yes; then
8848 ac_cv_use_splines='wxUSE_SPLINES=yes'
8849 else
8850 ac_cv_use_splines='wxUSE_SPLINES=no'
8851 fi
e6cc62c6 8852
10f2d63a 8853else
e6cc62c6 8854
10f2d63a
VZ
8855 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8856 if test "x$LINE" != x ; then
8857 eval "DEFAULT_$LINE"
8858 else
8859 no_cache=1
8860 fi
8861
8862 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8863
e6cc62c6 8864fi;
10f2d63a
VZ
8865
8866 eval "$ac_cv_use_splines"
8867 if test "$no_cache" != 1; then
8868 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8869 fi
8870
8871 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8872 echo "$as_me:$LINENO: result: yes" >&5
8873echo "${ECHO_T}yes" >&6
10f2d63a 8874 else
e6cc62c6
VS
8875 echo "$as_me:$LINENO: result: no" >&5
8876echo "${ECHO_T}no" >&6
10f2d63a 8877 fi
e6cc62c6 8878
10f2d63a 8879
5005acfe 8880 enablestring=
e6cc62c6
VS
8881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8882echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8883 no_cache=0
8884 # Check whether --enable-validators or --disable-validators was given.
8885if test "${enable_validators+set}" = set; then
8886 enableval="$enable_validators"
e6cc62c6 8887
10f2d63a
VZ
8888 if test "$enableval" = yes; then
8889 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8890 else
8891 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8892 fi
e6cc62c6 8893
10f2d63a 8894else
e6cc62c6 8895
10f2d63a
VZ
8896 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8897 if test "x$LINE" != x ; then
8898 eval "DEFAULT_$LINE"
8899 else
8900 no_cache=1
8901 fi
8902
8903 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8904
e6cc62c6 8905fi;
10f2d63a
VZ
8906
8907 eval "$ac_cv_use_validators"
8908 if test "$no_cache" != 1; then
8909 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8910 fi
8911
8912 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8913 echo "$as_me:$LINENO: result: yes" >&5
8914echo "${ECHO_T}yes" >&6
10f2d63a 8915 else
e6cc62c6
VS
8916 echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
10f2d63a 8918 fi
e6cc62c6 8919
10f2d63a 8920
5005acfe 8921 enablestring=
e6cc62c6
VS
8922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8923echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8924 no_cache=0
8925 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8926if test "${enable_busyinfo+set}" = set; then
8927 enableval="$enable_busyinfo"
e6cc62c6 8928
10f2d63a
VZ
8929 if test "$enableval" = yes; then
8930 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8931 else
8932 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8933 fi
e6cc62c6 8934
10f2d63a 8935else
e6cc62c6 8936
10f2d63a
VZ
8937 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8938 if test "x$LINE" != x ; then
8939 eval "DEFAULT_$LINE"
8940 else
8941 no_cache=1
8942 fi
8943
8944 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8945
e6cc62c6 8946fi;
10f2d63a
VZ
8947
8948 eval "$ac_cv_use_busyinfo"
8949 if test "$no_cache" != 1; then
8950 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8951 fi
8952
8953 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8954 echo "$as_me:$LINENO: result: yes" >&5
8955echo "${ECHO_T}yes" >&6
10f2d63a 8956 else
e6cc62c6
VS
8957 echo "$as_me:$LINENO: result: no" >&5
8958echo "${ECHO_T}no" >&6
10f2d63a 8959 fi
e6cc62c6 8960
10f2d63a 8961
5005acfe 8962 enablestring=
e6cc62c6
VS
8963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8964echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8965 no_cache=0
8966 # Check whether --enable-joystick or --disable-joystick was given.
8967if test "${enable_joystick+set}" = set; then
8968 enableval="$enable_joystick"
e6cc62c6 8969
f6bcfd97
BP
8970 if test "$enableval" = yes; then
8971 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8972 else
8973 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8974 fi
e6cc62c6 8975
f6bcfd97 8976else
e6cc62c6 8977
f6bcfd97
BP
8978 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8979 if test "x$LINE" != x ; then
8980 eval "DEFAULT_$LINE"
8981 else
8982 no_cache=1
8983 fi
8984
8985 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8986
e6cc62c6 8987fi;
f6bcfd97
BP
8988
8989 eval "$ac_cv_use_joystick"
8990 if test "$no_cache" != 1; then
8991 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8992 fi
8993
8994 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8995 echo "$as_me:$LINENO: result: yes" >&5
8996echo "${ECHO_T}yes" >&6
f6bcfd97 8997 else
e6cc62c6
VS
8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
f6bcfd97 9000 fi
e6cc62c6 9001
698dcdb6 9002
5005acfe 9003 enablestring=
e6cc62c6
VS
9004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9005echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9006 no_cache=0
9007 # Check whether --enable-metafile or --disable-metafile was given.
9008if test "${enable_metafile+set}" = set; then
9009 enableval="$enable_metafile"
e6cc62c6 9010
1e6feb95
VZ
9011 if test "$enableval" = yes; then
9012 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9013 else
9014 ac_cv_use_metafile='wxUSE_METAFILE=no'
9015 fi
e6cc62c6 9016
1e6feb95 9017else
e6cc62c6 9018
1e6feb95
VZ
9019 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9020 if test "x$LINE" != x ; then
9021 eval "DEFAULT_$LINE"
9022 else
9023 no_cache=1
9024 fi
9025
9026 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9027
e6cc62c6 9028fi;
1e6feb95
VZ
9029
9030 eval "$ac_cv_use_metafile"
9031 if test "$no_cache" != 1; then
9032 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9033 fi
9034
9035 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9036 echo "$as_me:$LINENO: result: yes" >&5
9037echo "${ECHO_T}yes" >&6
1e6feb95 9038 else
e6cc62c6
VS
9039 echo "$as_me:$LINENO: result: no" >&5
9040echo "${ECHO_T}no" >&6
1e6feb95 9041 fi
e6cc62c6 9042
1e6feb95 9043
5005acfe 9044 enablestring=
e6cc62c6
VS
9045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9046echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9047 no_cache=0
9048 # Check whether --enable-dragimage or --disable-dragimage was given.
9049if test "${enable_dragimage+set}" = set; then
9050 enableval="$enable_dragimage"
e6cc62c6 9051
24fd6d87
VZ
9052 if test "$enableval" = yes; then
9053 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9054 else
9055 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9056 fi
e6cc62c6 9057
24fd6d87 9058else
e6cc62c6 9059
24fd6d87
VZ
9060 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9061 if test "x$LINE" != x ; then
9062 eval "DEFAULT_$LINE"
9063 else
9064 no_cache=1
9065 fi
9066
9067 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9068
e6cc62c6 9069fi;
24fd6d87
VZ
9070
9071 eval "$ac_cv_use_dragimage"
9072 if test "$no_cache" != 1; then
9073 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9074 fi
9075
9076 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9077 echo "$as_me:$LINENO: result: yes" >&5
9078echo "${ECHO_T}yes" >&6
24fd6d87 9079 else
e6cc62c6
VS
9080 echo "$as_me:$LINENO: result: no" >&5
9081echo "${ECHO_T}no" >&6
24fd6d87 9082 fi
e6cc62c6 9083
52127426 9084
7bb2947d 9085 enablestring=
e6cc62c6
VS
9086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9087echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9088 no_cache=0
9089 # Check whether --enable-accessibility or --disable-accessibility was given.
9090if test "${enable_accessibility+set}" = set; then
9091 enableval="$enable_accessibility"
e6cc62c6 9092
7bb2947d
MB
9093 if test "$enableval" = yes; then
9094 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9095 else
9096 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9097 fi
e6cc62c6 9098
7bb2947d 9099else
e6cc62c6 9100
7bb2947d
MB
9101 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9102 if test "x$LINE" != x ; then
9103 eval "DEFAULT_$LINE"
9104 else
9105 no_cache=1
9106 fi
9107
9108 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9109
e6cc62c6 9110fi;
7bb2947d
MB
9111
9112 eval "$ac_cv_use_accessibility"
9113 if test "$no_cache" != 1; then
9114 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9115 fi
9116
9117 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9118 echo "$as_me:$LINENO: result: yes" >&5
9119echo "${ECHO_T}yes" >&6
7bb2947d 9120 else
e6cc62c6
VS
9121 echo "$as_me:$LINENO: result: no" >&5
9122echo "${ECHO_T}no" >&6
7bb2947d 9123 fi
e6cc62c6 9124
7bb2947d 9125
8284b0c5
MB
9126
9127
5005acfe 9128 enablestring=
e6cc62c6
VS
9129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9130echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9131 no_cache=0
9132 # Check whether --enable-palette or --disable-palette was given.
9133if test "${enable_palette+set}" = set; then
9134 enableval="$enable_palette"
e6cc62c6 9135
edae8572
VZ
9136 if test "$enableval" = yes; then
9137 ac_cv_use_palette='wxUSE_PALETTE=yes'
9138 else
9139 ac_cv_use_palette='wxUSE_PALETTE=no'
9140 fi
e6cc62c6 9141
edae8572 9142else
e6cc62c6 9143
edae8572
VZ
9144 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9145 if test "x$LINE" != x ; then
9146 eval "DEFAULT_$LINE"
9147 else
9148 no_cache=1
9149 fi
9150
9151 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9152
e6cc62c6 9153fi;
edae8572
VZ
9154
9155 eval "$ac_cv_use_palette"
9156 if test "$no_cache" != 1; then
9157 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9158 fi
9159
9160 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9161 echo "$as_me:$LINENO: result: yes" >&5
9162echo "${ECHO_T}yes" >&6
edae8572 9163 else
e6cc62c6
VS
9164 echo "$as_me:$LINENO: result: no" >&5
9165echo "${ECHO_T}no" >&6
edae8572 9166 fi
e6cc62c6 9167
edae8572 9168
5005acfe 9169 enablestring=
e6cc62c6
VS
9170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9171echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9172 no_cache=0
9173 # Check whether --enable-image or --disable-image was given.
9174if test "${enable_image+set}" = set; then
9175 enableval="$enable_image"
e6cc62c6 9176
0046ff7c
VS
9177 if test "$enableval" = yes; then
9178 ac_cv_use_image='wxUSE_IMAGE=yes'
9179 else
9180 ac_cv_use_image='wxUSE_IMAGE=no'
9181 fi
e6cc62c6 9182
0046ff7c 9183else
e6cc62c6 9184
0046ff7c
VS
9185 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9186 if test "x$LINE" != x ; then
9187 eval "DEFAULT_$LINE"
9188 else
9189 no_cache=1
9190 fi
9191
9192 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9193
e6cc62c6 9194fi;
0046ff7c
VS
9195
9196 eval "$ac_cv_use_image"
9197 if test "$no_cache" != 1; then
9198 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9199 fi
9200
9201 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9202 echo "$as_me:$LINENO: result: yes" >&5
9203echo "${ECHO_T}yes" >&6
0046ff7c 9204 else
e6cc62c6
VS
9205 echo "$as_me:$LINENO: result: no" >&5
9206echo "${ECHO_T}no" >&6
0046ff7c 9207 fi
e6cc62c6 9208
0046ff7c 9209
5005acfe 9210 enablestring=
e6cc62c6
VS
9211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9212echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9213 no_cache=0
9214 # Check whether --enable-gif or --disable-gif was given.
9215if test "${enable_gif+set}" = set; then
9216 enableval="$enable_gif"
e6cc62c6 9217
10f2d63a
VZ
9218 if test "$enableval" = yes; then
9219 ac_cv_use_gif='wxUSE_GIF=yes'
9220 else
9221 ac_cv_use_gif='wxUSE_GIF=no'
9222 fi
e6cc62c6 9223
10f2d63a 9224else
e6cc62c6 9225
10f2d63a
VZ
9226 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9227 if test "x$LINE" != x ; then
9228 eval "DEFAULT_$LINE"
9229 else
9230 no_cache=1
9231 fi
9232
9233 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9234
e6cc62c6 9235fi;
10f2d63a
VZ
9236
9237 eval "$ac_cv_use_gif"
9238 if test "$no_cache" != 1; then
9239 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9240 fi
9241
9242 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9243 echo "$as_me:$LINENO: result: yes" >&5
9244echo "${ECHO_T}yes" >&6
10f2d63a 9245 else
e6cc62c6
VS
9246 echo "$as_me:$LINENO: result: no" >&5
9247echo "${ECHO_T}no" >&6
10f2d63a 9248 fi
e6cc62c6 9249
10f2d63a 9250
5005acfe 9251 enablestring=
e6cc62c6
VS
9252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9253echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9254 no_cache=0
9255 # Check whether --enable-pcx or --disable-pcx was given.
9256if test "${enable_pcx+set}" = set; then
9257 enableval="$enable_pcx"
e6cc62c6 9258
10f2d63a
VZ
9259 if test "$enableval" = yes; then
9260 ac_cv_use_pcx='wxUSE_PCX=yes'
9261 else
9262 ac_cv_use_pcx='wxUSE_PCX=no'
9263 fi
e6cc62c6 9264
10f2d63a 9265else
e6cc62c6 9266
10f2d63a
VZ
9267 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9268 if test "x$LINE" != x ; then
9269 eval "DEFAULT_$LINE"
9270 else
9271 no_cache=1
9272 fi
9273
9274 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9275
e6cc62c6 9276fi;
10f2d63a
VZ
9277
9278 eval "$ac_cv_use_pcx"
9279 if test "$no_cache" != 1; then
9280 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9281 fi
9282
9283 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9284 echo "$as_me:$LINENO: result: yes" >&5
9285echo "${ECHO_T}yes" >&6
10f2d63a 9286 else
e6cc62c6
VS
9287 echo "$as_me:$LINENO: result: no" >&5
9288echo "${ECHO_T}no" >&6
10f2d63a 9289 fi
e6cc62c6 9290
10f2d63a 9291
5005acfe 9292 enablestring=
e6cc62c6
VS
9293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9294echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9295 no_cache=0
9296 # Check whether --enable-iff or --disable-iff was given.
9297if test "${enable_iff+set}" = set; then
9298 enableval="$enable_iff"
e6cc62c6 9299
4b6b4dfc
RR
9300 if test "$enableval" = yes; then
9301 ac_cv_use_iff='wxUSE_IFF=yes'
9302 else
9303 ac_cv_use_iff='wxUSE_IFF=no'
9304 fi
e6cc62c6 9305
4b6b4dfc 9306else
e6cc62c6 9307
4b6b4dfc
RR
9308 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9309 if test "x$LINE" != x ; then
9310 eval "DEFAULT_$LINE"
9311 else
9312 no_cache=1
9313 fi
9314
9315 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9316
e6cc62c6 9317fi;
4b6b4dfc
RR
9318
9319 eval "$ac_cv_use_iff"
9320 if test "$no_cache" != 1; then
9321 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9322 fi
9323
9324 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9325 echo "$as_me:$LINENO: result: yes" >&5
9326echo "${ECHO_T}yes" >&6
4b6b4dfc 9327 else
e6cc62c6
VS
9328 echo "$as_me:$LINENO: result: no" >&5
9329echo "${ECHO_T}no" >&6
4b6b4dfc 9330 fi
e6cc62c6 9331
4b6b4dfc 9332
5005acfe 9333 enablestring=
e6cc62c6
VS
9334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9335echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9336 no_cache=0
9337 # Check whether --enable-pnm or --disable-pnm was given.
9338if test "${enable_pnm+set}" = set; then
9339 enableval="$enable_pnm"
e6cc62c6 9340
10f2d63a
VZ
9341 if test "$enableval" = yes; then
9342 ac_cv_use_pnm='wxUSE_PNM=yes'
9343 else
9344 ac_cv_use_pnm='wxUSE_PNM=no'
9345 fi
e6cc62c6 9346
10f2d63a 9347else
e6cc62c6 9348
10f2d63a
VZ
9349 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9350 if test "x$LINE" != x ; then
9351 eval "DEFAULT_$LINE"
9352 else
9353 no_cache=1
9354 fi
9355
9356 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9357
e6cc62c6 9358fi;
10f2d63a
VZ
9359
9360 eval "$ac_cv_use_pnm"
9361 if test "$no_cache" != 1; then
9362 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9363 fi
9364
9365 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9366 echo "$as_me:$LINENO: result: yes" >&5
9367echo "${ECHO_T}yes" >&6
10f2d63a 9368 else
e6cc62c6
VS
9369 echo "$as_me:$LINENO: result: no" >&5
9370echo "${ECHO_T}no" >&6
10f2d63a 9371 fi
e6cc62c6 9372
10f2d63a 9373
5005acfe 9374 enablestring=
e6cc62c6
VS
9375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9376echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9377 no_cache=0
69d27ff7
MB
9378 # Check whether --enable-xpm or --disable-xpm was given.
9379if test "${enable_xpm+set}" = set; then
9380 enableval="$enable_xpm"
e6cc62c6 9381
0046ff7c 9382 if test "$enableval" = yes; then
69d27ff7 9383 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9384 else
69d27ff7 9385 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9386 fi
e6cc62c6 9387
0046ff7c 9388else
e6cc62c6 9389
0046ff7c
VS
9390 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9391 if test "x$LINE" != x ; then
9392 eval "DEFAULT_$LINE"
9393 else
9394 no_cache=1
9395 fi
9396
69d27ff7 9397 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9398
e6cc62c6 9399fi;
0046ff7c 9400
69d27ff7 9401 eval "$ac_cv_use_xpm"
0046ff7c 9402 if test "$no_cache" != 1; then
69d27ff7 9403 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9404 fi
9405
9406 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9407 echo "$as_me:$LINENO: result: yes" >&5
9408echo "${ECHO_T}yes" >&6
0046ff7c 9409 else
e6cc62c6
VS
9410 echo "$as_me:$LINENO: result: no" >&5
9411echo "${ECHO_T}no" >&6
0046ff7c 9412 fi
e6cc62c6 9413
0046ff7c 9414
5005acfe 9415 enablestring=
e6cc62c6
VS
9416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9417echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9418 no_cache=0
c7206e64
VS
9419 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9420if test "${enable_ico_cur+set}" = set; then
9421 enableval="$enable_ico_cur"
e6cc62c6 9422
658974ae 9423 if test "$enableval" = yes; then
c7206e64 9424 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9425 else
c7206e64 9426 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9427 fi
e6cc62c6 9428
658974ae 9429else
e6cc62c6 9430
658974ae
VS
9431 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9432 if test "x$LINE" != x ; then
9433 eval "DEFAULT_$LINE"
9434 else
9435 no_cache=1
9436 fi
9437
c7206e64 9438 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9439
e6cc62c6 9440fi;
658974ae 9441
c7206e64 9442 eval "$ac_cv_use_ico_cur"
658974ae 9443 if test "$no_cache" != 1; then
c7206e64 9444 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9445 fi
9446
9447 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9448 echo "$as_me:$LINENO: result: yes" >&5
9449echo "${ECHO_T}yes" >&6
658974ae 9450 else
e6cc62c6
VS
9451 echo "$as_me:$LINENO: result: no" >&5
9452echo "${ECHO_T}no" >&6
658974ae 9453 fi
e6cc62c6 9454
658974ae 9455
b12915c1
VZ
9456fi
9457
029b47ad
VS
9458
9459
9460 enablestring=
9461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9462echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9463 no_cache=0
9464 # Check whether --enable-official_build or --disable-official_build was given.
9465if test "${enable_official_build+set}" = set; then
9466 enableval="$enable_official_build"
9467
9468 if test "$enableval" = yes; then
9469 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9470 else
9471 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9472 fi
9473
9474else
9475
9476 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9477 if test "x$LINE" != x ; then
9478 eval "DEFAULT_$LINE"
9479 else
9480 no_cache=1
9481 fi
9482
9483 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9484
9485fi;
9486
9487 eval "$ac_cv_use_official_build"
9488 if test "$no_cache" != 1; then
9489 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9490 fi
9491
9492 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9493 echo "$as_me:$LINENO: result: yes" >&5
9494echo "${ECHO_T}yes" >&6
9495 else
9496 echo "$as_me:$LINENO: result: no" >&5
9497echo "${ECHO_T}no" >&6
9498 fi
9499
9500# Check whether --enable-vendor or --disable-vendor was given.
9501if test "${enable_vendor+set}" = set; then
9502 enableval="$enable_vendor"
9503 VENDOR="$enableval"
9504fi;
9505if test "x$VENDOR" = "x"; then
9506 VENDOR="custom"
9507fi
9508
d558c907
VS
9509case "${host}" in
9510 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
9511 PATH_IFS=';'
9512 LEX_STEM="lexyy"
d558c907
VS
9513 ;;
9514 *)
9515 PATH_IFS=':'
9516 LEX_STEM="lex.yy"
9517 ;;
9518esac
9519
8284b0c5
MB
9520
9521
10f2d63a
VZ
9522 echo "saving argument cache $wx_arg_cache_file"
9523 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9524
8284b0c5 9525
e6cc62c6
VS
9526
9527echo "$as_me:$LINENO: checking for toolkit" >&5
9528echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9529
9530# In Wine, we need to default to MSW, not GTK or MOTIF
9531if test "$wxUSE_WINE" = "yes"; then
9532 DEFAULT_DEFAULT_wxUSE_GTK=0
9533 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9534 DEFAULT_DEFAULT_wxUSE_MSW=1
9535fi
10f2d63a
VZ
9536
9537if test "$wxUSE_GUI" = "yes"; then
9538
3a922bb4 9539 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9540 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9541echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9542 { (exit 1); exit 1; }; }
3a922bb4 9543 fi
b12915c1 9544
3a922bb4
RL
9545 if test "$TOOLKIT_GIVEN" = 1; then
9546 for toolkit in `echo $ALL_TOOLKITS`; do
9547 var=wxUSE_$toolkit
9548 eval "value=\$${var}"
9549 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9550 done
10f2d63a 9551 else
3a922bb4
RL
9552 for toolkit in `echo $ALL_TOOLKITS`; do
9553 if test "$has_toolkit_in_cache" != 1; then
9554 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9555 else
9556 var=DEFAULT_wxUSE_$toolkit
9557 fi
9558 eval "wxUSE_$toolkit=\$${var}"
9559 done
10f2d63a 9560 fi
10f2d63a 9561
ac0c4cc3
DE
9562 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9563 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9564 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9565
d558c907 9566 case "${host}" in
6fa882bd 9567 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9568 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9569 esac
10f2d63a 9570
3a922bb4
RL
9571 case "$NUM_TOOLKITS" in
9572 1)
9573 ;;
9574 0)
e6cc62c6
VS
9575 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9576echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9577 { (exit 1); exit 1; }; }
3a922bb4
RL
9578 ;;
9579 *)
e6cc62c6
VS
9580 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9581echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9582 { (exit 1); exit 1; }; }
3a922bb4 9583 esac
10f2d63a 9584
3a922bb4
RL
9585 for toolkit in `echo $ALL_TOOLKITS`; do
9586 var=wxUSE_$toolkit
9587 eval "value=\$${var}"
9588 if test "x$value" != x; then
9589 cache_var=CACHE_$toolkit
9590 eval "cache=\$${cache_var}"
9591 if test "$cache" = 1; then
9592 echo "$var=$value" >> ${wx_arg_cache_file}
9593 fi
9594 if test "$value" = 1; then
9595 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9596 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9597echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9598 fi
9599 fi
9600 done
10f2d63a 9601else
9de9b8f0
VZ
9602 if test "x$host_alias" != "x"; then
9603 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9604echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9605 else
9606 echo "$as_me:$LINENO: result: base only" >&5
9607echo "${ECHO_T}base only" >&6
9608 fi
10f2d63a
VZ
9609fi
9610
43d99b6d
VS
9611wants_win32=0
9612doesnt_want_win32=0
17234b26
MB
9613case "${host}" in
9614 *-*-cygwin*)
9615 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9616 wants_win32=1
9617 else
9618 doesnt_want_win32=1
17234b26
MB
9619 fi
9620 ;;
9621 *-*-mingw*)
43d99b6d 9622 wants_win32=1
17234b26
MB
9623 ;;
9624esac
9625
89e6bf6d
VZ
9626if test "$wxUSE_WINE" = "yes"; then
9627 wants_win32=1
9628 CC=winegcc
9629 CXX=wineg++
9630 RESCOMP=wrc
9631fi
9632
43d99b6d 9633if test "$wants_win32" = 1 ; then
17234b26
MB
9634 USE_UNIX=0
9635 USE_WIN32=1
e6cc62c6 9636 cat >>confdefs.h <<\_ACEOF
17234b26 9637#define __WIN32__ 1
e6cc62c6 9638_ACEOF
17234b26 9639
e6cc62c6 9640 cat >>confdefs.h <<\_ACEOF
17234b26 9641#define __WIN95__ 1
e6cc62c6 9642_ACEOF
17234b26 9643
e6cc62c6 9644 cat >>confdefs.h <<\_ACEOF
17234b26 9645#define __WINDOWS__ 1
e6cc62c6 9646_ACEOF
17234b26 9647
e6cc62c6 9648 cat >>confdefs.h <<\_ACEOF
17234b26 9649#define __GNUWIN32__ 1
e6cc62c6 9650_ACEOF
17234b26 9651
e6cc62c6 9652 cat >>confdefs.h <<\_ACEOF
17234b26 9653#define STRICT 1
e6cc62c6 9654_ACEOF
17234b26 9655
e6cc62c6 9656 cat >>confdefs.h <<\_ACEOF
17234b26 9657#define WINVER 0x0400
e6cc62c6 9658_ACEOF
17234b26 9659
43d99b6d
VS
9660fi
9661if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9662 USE_UNIX=1
9663 USE_WIN32=0
9664fi
9665
9666if test "$USE_UNIX" = 1 ; then
9667 wxUSE_UNIX=yes
e6cc62c6 9668 cat >>confdefs.h <<\_ACEOF
17234b26 9669#define __UNIX__ 1
e6cc62c6 9670_ACEOF
17234b26
MB
9671
9672fi
9673
8284b0c5 9674
e6cc62c6 9675cat >confcache <<\_ACEOF
10f2d63a
VZ
9676# This file is a shell script that caches the results of configure
9677# tests run on this system so they can be shared between configure
e6cc62c6
VS
9678# scripts and configure runs, see configure's option --config-cache.
9679# It is not useful on other systems. If it contains results you don't
9680# want to keep, you may remove or edit it.
10f2d63a 9681#
e6cc62c6
VS
9682# config.status only pays attention to the cache file if you give it
9683# the --recheck option to rerun configure.
10f2d63a 9684#
e6cc62c6
VS
9685# `ac_cv_env_foo' variables (set or unset) will be overridden when
9686# loading this file, other *unset* `ac_cv_foo' will be assigned the
9687# following values.
9688
9689_ACEOF
9690
10f2d63a
VZ
9691# The following way of writing the cache mishandles newlines in values,
9692# but we know of no workaround that is simple, portable, and efficient.
9693# So, don't put newlines in cache variables' values.
9694# Ultrix sh set writes to stderr and can't be redirected directly,
9695# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9696{
9697 (set) 2>&1 |
9698 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9699 *ac_space=\ *)
9700 # `set' does not quote correctly, so add quotes (double-quote
9701 # substitution turns \\\\ into \\, and sed turns \\ into \).
9702 sed -n \
9703 "s/'/'\\\\''/g;
9704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9705 ;;
9706 *)
9707 # `set' quotes correctly as required by POSIX, so do not add quotes.
9708 sed -n \
9709 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9710 ;;
9711 esac;
9712} |
9713 sed '
9714 t clear
9715 : clear
9716 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9717 t end
9718 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9719 : end' >>confcache
9720if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9721 if test -w $cache_file; then
e6cc62c6
VS
9722 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9723 cat confcache >$cache_file
10f2d63a
VZ
9724 else
9725 echo "not updating unwritable cache $cache_file"
9726 fi
9727fi
9728rm -f confcache
9729
e59890c3 9730if test "$build" != "$host" ; then
9d353d4a 9731 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9732 CC=$host_alias-gcc
9733 CXX=$host_alias-c++
9734 AR=$host_alias-ar
9735 RANLIB=$host_alias-ranlib
9736 DLLTOOL=$host_alias-dlltool
9737 RESCOMP=$host_alias-windres
9738 LD=$host_alias-ld
9739 NM=$host_alias-nm
9740 STRIP=$host_alias-strip
9741 else
e6cc62c6
VS
9742 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9743echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9744 { (exit 1); exit 1; }; }
3a922bb4 9745 fi
10f2d63a
VZ
9746fi
9747
ec603395 9748CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9749ac_ext=c
9750ac_cpp='$CPP $CPPFLAGS'
9751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9753ac_compiler_gnu=$ac_cv_c_compiler_gnu
9754if test -n "$ac_tool_prefix"; then
9755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9756set dummy ${ac_tool_prefix}gcc; ac_word=$2
9757echo "$as_me:$LINENO: checking for $ac_word" >&5
9758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9759if test "${ac_cv_prog_CC+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761else
9762 if test -n "$CC"; then
9763 ac_cv_prog_CC="$CC" # Let the user override the test.
9764else
9765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766for as_dir in $PATH
9767do
9768 IFS=$as_save_IFS
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9774 break 2
9775 fi
9776done
9777done
9778
9779fi
9780fi
9781CC=$ac_cv_prog_CC
9782if test -n "$CC"; then
9783 echo "$as_me:$LINENO: result: $CC" >&5
9784echo "${ECHO_T}$CC" >&6
9785else
9786 echo "$as_me:$LINENO: result: no" >&5
9787echo "${ECHO_T}no" >&6
9788fi
9789
9790fi
9791if test -z "$ac_cv_prog_CC"; then
9792 ac_ct_CC=$CC
9793 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9794set dummy gcc; ac_word=$2
e6cc62c6
VS
9795echo "$as_me:$LINENO: checking for $ac_word" >&5
9796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799else
9800 if test -n "$ac_ct_CC"; then
9801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9802else
9803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804for as_dir in $PATH
9805do
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_ac_ct_CC="gcc"
9811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9813 fi
9814done
9815done
9816
9817fi
9818fi
9819ac_ct_CC=$ac_cv_prog_ac_ct_CC
9820if test -n "$ac_ct_CC"; then
9821 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9822echo "${ECHO_T}$ac_ct_CC" >&6
9823else
9824 echo "$as_me:$LINENO: result: no" >&5
9825echo "${ECHO_T}no" >&6
9826fi
9827
9828 CC=$ac_ct_CC
9829else
9830 CC="$ac_cv_prog_CC"
9831fi
9832
9833if test -z "$CC"; then
9834 if test -n "$ac_tool_prefix"; then
9835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9836set dummy ${ac_tool_prefix}cc; ac_word=$2
9837echo "$as_me:$LINENO: checking for $ac_word" >&5
9838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9839if test "${ac_cv_prog_CC+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9841else
9842 if test -n "$CC"; then
9843 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9844else
e6cc62c6
VS
9845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846for as_dir in $PATH
9847do
9848 IFS=$as_save_IFS
9849 test -z "$as_dir" && as_dir=.
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852 ac_cv_prog_CC="${ac_tool_prefix}cc"
9853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 break 2
9855 fi
9856done
9857done
9858
10f2d63a 9859fi
6232543b 9860fi
e6cc62c6 9861CC=$ac_cv_prog_CC
6232543b 9862if test -n "$CC"; then
e6cc62c6
VS
9863 echo "$as_me:$LINENO: result: $CC" >&5
9864echo "${ECHO_T}$CC" >&6
9865else
9866 echo "$as_me:$LINENO: result: no" >&5
9867echo "${ECHO_T}no" >&6
9868fi
9869
9870fi
9871if test -z "$ac_cv_prog_CC"; then
9872 ac_ct_CC=$CC
9873 # Extract the first word of "cc", so it can be a program name with args.
9874set dummy cc; ac_word=$2
9875echo "$as_me:$LINENO: checking for $ac_word" >&5
9876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9877if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879else
9880 if test -n "$ac_ct_CC"; then
9881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9882else
9883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $PATH
9885do
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9890 ac_cv_prog_ac_ct_CC="cc"
9891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9892 break 2
9893 fi
9894done
9895done
9896
9897fi
9898fi
9899ac_ct_CC=$ac_cv_prog_ac_ct_CC
9900if test -n "$ac_ct_CC"; then
9901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9902echo "${ECHO_T}$ac_ct_CC" >&6
9903else
9904 echo "$as_me:$LINENO: result: no" >&5
9905echo "${ECHO_T}no" >&6
9906fi
9907
9908 CC=$ac_ct_CC
247f5006 9909else
e6cc62c6 9910 CC="$ac_cv_prog_CC"
247f5006
VZ
9911fi
9912
e6cc62c6 9913fi
5c6fa7d2
RR
9914if test -z "$CC"; then
9915 # Extract the first word of "cc", so it can be a program name with args.
9916set dummy cc; ac_word=$2
e6cc62c6
VS
9917echo "$as_me:$LINENO: checking for $ac_word" >&5
9918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9919if test "${ac_cv_prog_CC+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9921else
9922 if test -n "$CC"; then
9923 ac_cv_prog_CC="$CC" # Let the user override the test.
9924else
9925 ac_prog_rejected=no
e6cc62c6
VS
9926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927for as_dir in $PATH
9928do
9929 IFS=$as_save_IFS
9930 test -z "$as_dir" && as_dir=.
9931 for ac_exec_ext in '' $ac_executable_extensions; do
9932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9934 ac_prog_rejected=yes
9935 continue
9936 fi
9937 ac_cv_prog_CC="cc"
9938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 break 2
9940 fi
9941done
9942done
9943
328a083c
RR
9944if test $ac_prog_rejected = yes; then
9945 # We found a bogon in the path, so make sure we never use it.
9946 set dummy $ac_cv_prog_CC
9947 shift
e6cc62c6 9948 if test $# != 0; then
328a083c 9949 # We chose a different compiler from the bogus one.
1e487827
VS
9950 # However, it has the same basename, so the bogon will be chosen
9951 # first if we set CC to just the basename; use the full file name.
9952 shift
e6cc62c6 9953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9954 fi
1e487827
VS
9955fi
9956fi
9957fi
e6cc62c6 9958CC=$ac_cv_prog_CC
1e487827 9959if test -n "$CC"; then
e6cc62c6
VS
9960 echo "$as_me:$LINENO: result: $CC" >&5
9961echo "${ECHO_T}$CC" >&6
703e0a69 9962else
e6cc62c6
VS
9963 echo "$as_me:$LINENO: result: no" >&5
9964echo "${ECHO_T}no" >&6
703e0a69 9965fi
1e487827 9966
e6cc62c6
VS
9967fi
9968if test -z "$CC"; then
9969 if test -n "$ac_tool_prefix"; then
9970 for ac_prog in cl
9971 do
9972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9973set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9974echo "$as_me:$LINENO: checking for $ac_word" >&5
9975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9976if test "${ac_cv_prog_CC+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9978else
9979 if test -n "$CC"; then
9980 ac_cv_prog_CC="$CC" # Let the user override the test.
9981else
e6cc62c6
VS
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9989 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 break 2
9992 fi
9993done
9994done
9995
f09359cf
VS
9996fi
9997fi
e6cc62c6 9998CC=$ac_cv_prog_CC
f09359cf 9999if test -n "$CC"; then
e6cc62c6
VS
10000 echo "$as_me:$LINENO: result: $CC" >&5
10001echo "${ECHO_T}$CC" >&6
f09359cf 10002else
e6cc62c6
VS
10003 echo "$as_me:$LINENO: result: no" >&5
10004echo "${ECHO_T}no" >&6
5c6fa7d2 10005fi
1e487827 10006
e6cc62c6
VS
10007 test -n "$CC" && break
10008 done
10009fi
10010if test -z "$CC"; then
10011 ac_ct_CC=$CC
10012 for ac_prog in cl
10013do
10014 # Extract the first word of "$ac_prog", so it can be a program name with args.
10015set dummy $ac_prog; ac_word=$2
10016echo "$as_me:$LINENO: checking for $ac_word" >&5
10017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021 if test -n "$ac_ct_CC"; then
10022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10023else
10024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025for as_dir in $PATH
10026do
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10031 ac_cv_prog_ac_ct_CC="$ac_prog"
10032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10034 fi
10035done
10036done
f09359cf 10037
e6cc62c6
VS
10038fi
10039fi
10040ac_ct_CC=$ac_cv_prog_ac_ct_CC
10041if test -n "$ac_ct_CC"; then
10042 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10043echo "${ECHO_T}$ac_ct_CC" >&6
10044else
10045 echo "$as_me:$LINENO: result: no" >&5
10046echo "${ECHO_T}no" >&6
10047fi
f09359cf 10048
e6cc62c6
VS
10049 test -n "$ac_ct_CC" && break
10050done
247f5006 10051
e6cc62c6
VS
10052 CC=$ac_ct_CC
10053fi
10054
10055fi
10056
10057
10058test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10059See \`config.log' for more details." >&5
10060echo "$as_me: error: no acceptable C compiler found in \$PATH
10061See \`config.log' for more details." >&2;}
10062 { (exit 1); exit 1; }; }
10063
10064# Provide some information about the compiler.
10065echo "$as_me:$LINENO:" \
10066 "checking for C compiler version" >&5
10067ac_compiler=`set X $ac_compile; echo $2`
10068{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10069 (eval $ac_compiler --version </dev/null >&5) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }
10073{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10074 (eval $ac_compiler -v </dev/null >&5) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }
10078{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10079 (eval $ac_compiler -V </dev/null >&5) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }
10083
10084cat >conftest.$ac_ext <<_ACEOF
10085#line $LINENO "configure"
10086/* confdefs.h. */
10087_ACEOF
10088cat confdefs.h >>conftest.$ac_ext
10089cat >>conftest.$ac_ext <<_ACEOF
10090/* end confdefs.h. */
10091
10092int
10093main ()
10094{
247f5006 10095
e6cc62c6
VS
10096 ;
10097 return 0;
10098}
10099_ACEOF
10100ac_clean_files_save=$ac_clean_files
10101ac_clean_files="$ac_clean_files a.out a.exe b.out"
10102# Try to create an executable without -o first, disregard a.out.
10103# It will help us diagnose broken compilers, and finding out an intuition
10104# of exeext.
10105echo "$as_me:$LINENO: checking for C compiler default output" >&5
10106echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10107ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10108if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10109 (eval $ac_link_default) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; then
10113 # Find the output, starting from the most likely. This scheme is
10114# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10115# resort.
10116
10117# Be careful to initialize this variable, since it used to be cached.
10118# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10119ac_cv_exeext=
10120# b.out is created by i960 compilers.
10121for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10122do
10123 test -f "$ac_file" || continue
10124 case $ac_file in
10125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10126 ;;
10127 conftest.$ac_ext )
10128 # This is the source file.
10129 ;;
10130 [ab].out )
10131 # We found the default executable, but exeext='' is most
10132 # certainly right.
10133 break;;
10134 *.* )
10135 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10136 # FIXME: I believe we export ac_cv_exeext for Libtool,
10137 # but it would be cool to find out if it's true. Does anybody
10138 # maintain Libtool? --akim.
10139 export ac_cv_exeext
10140 break;;
10141 * )
10142 break;;
10143 esac
10144done
10145else
10146 echo "$as_me: failed program was:" >&5
10147sed 's/^/| /' conftest.$ac_ext >&5
10148
10149{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10150See \`config.log' for more details." >&5
10151echo "$as_me: error: C compiler cannot create executables
10152See \`config.log' for more details." >&2;}
10153 { (exit 77); exit 77; }; }
10154fi
10155
10156ac_exeext=$ac_cv_exeext
10157echo "$as_me:$LINENO: result: $ac_file" >&5
10158echo "${ECHO_T}$ac_file" >&6
10159
10160# Check the compiler produces executables we can run. If not, either
10161# the compiler is broken, or we cross compile.
10162echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10163echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10164# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10165# If not cross compiling, check that we can run a simple program.
10166if test "$cross_compiling" != yes; then
10167 if { ac_try='./$ac_file'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 cross_compiling=no
698dcdb6 10174 else
e6cc62c6
VS
10175 if test "$cross_compiling" = maybe; then
10176 cross_compiling=yes
10177 else
10178 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10179If you meant to cross compile, use \`--host'.
10180See \`config.log' for more details." >&5
10181echo "$as_me: error: cannot run C compiled programs.
10182If you meant to cross compile, use \`--host'.
10183See \`config.log' for more details." >&2;}
10184 { (exit 1); exit 1; }; }
10185 fi
698dcdb6 10186 fi
52127426 10187fi
e6cc62c6
VS
10188echo "$as_me:$LINENO: result: yes" >&5
10189echo "${ECHO_T}yes" >&6
10190
10191rm -f a.out a.exe conftest$ac_cv_exeext b.out
10192ac_clean_files=$ac_clean_files_save
10193# Check the compiler produces executables we can run. If not, either
10194# the compiler is broken, or we cross compile.
10195echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10196echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10197echo "$as_me:$LINENO: result: $cross_compiling" >&5
10198echo "${ECHO_T}$cross_compiling" >&6
10199
10200echo "$as_me:$LINENO: checking for suffix of executables" >&5
10201echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203 (eval $ac_link) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; then
10207 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10208# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10209# work properly (i.e., refer to `conftest.exe'), while it won't with
10210# `rm'.
10211for ac_file in conftest.exe conftest conftest.*; do
10212 test -f "$ac_file" || continue
10213 case $ac_file in
10214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10215 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10216 export ac_cv_exeext
10217 break;;
10218 * ) break;;
10219 esac
10220done
5c6fa7d2 10221else
e6cc62c6
VS
10222 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10223See \`config.log' for more details." >&5
10224echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10225See \`config.log' for more details." >&2;}
10226 { (exit 1); exit 1; }; }
10227fi
10228
10229rm -f conftest$ac_cv_exeext
10230echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10231echo "${ECHO_T}$ac_cv_exeext" >&6
10232
10233rm -f conftest.$ac_ext
10234EXEEXT=$ac_cv_exeext
10235ac_exeext=$EXEEXT
10236echo "$as_me:$LINENO: checking for suffix of object files" >&5
10237echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10238if test "${ac_cv_objext+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240else
10241 cat >conftest.$ac_ext <<_ACEOF
10242#line $LINENO "configure"
10243/* confdefs.h. */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h. */
10248
10249int
10250main ()
10251{
f09359cf 10252
e6cc62c6
VS
10253 ;
10254 return 0;
10255}
10256_ACEOF
10257rm -f conftest.o conftest.obj
10258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; then
10263 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10264 case $ac_file in
10265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10266 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10267 break;;
10268 esac
10269done
a0b9e27f 10270else
e6cc62c6
VS
10271 echo "$as_me: failed program was:" >&5
10272sed 's/^/| /' conftest.$ac_ext >&5
10273
10274{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10275See \`config.log' for more details." >&5
10276echo "$as_me: error: cannot compute suffix of object files: cannot compile
10277See \`config.log' for more details." >&2;}
10278 { (exit 1); exit 1; }; }
a0b9e27f 10279fi
247f5006 10280
e6cc62c6
VS
10281rm -f conftest.$ac_cv_objext conftest.$ac_ext
10282fi
10283echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10284echo "${ECHO_T}$ac_cv_objext" >&6
10285OBJEXT=$ac_cv_objext
10286ac_objext=$OBJEXT
10287echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10288echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10289if test "${ac_cv_c_compiler_gnu+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10291else
e6cc62c6
VS
10292 cat >conftest.$ac_ext <<_ACEOF
10293#line $LINENO "configure"
10294/* confdefs.h. */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h. */
10299
10300int
10301main ()
10302{
10303#ifndef __GNUC__
10304 choke me
10305#endif
10306
10307 ;
10308 return 0;
10309}
10310_ACEOF
10311rm -f conftest.$ac_objext
10312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313 (eval $ac_compile) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -s conftest.$ac_objext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_compiler_gnu=yes
10324else
10325 echo "$as_me: failed program was:" >&5
10326sed 's/^/| /' conftest.$ac_ext >&5
10327
10328ac_compiler_gnu=no
10329fi
10330rm -f conftest.$ac_objext conftest.$ac_ext
10331ac_cv_c_compiler_gnu=$ac_compiler_gnu
10332
10333fi
10334echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10335echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10336GCC=`test $ac_compiler_gnu = yes && echo yes`
10337ac_test_CFLAGS=${CFLAGS+set}
10338ac_save_CFLAGS=$CFLAGS
10339CFLAGS="-g"
10340echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10341echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10342if test "${ac_cv_prog_cc_g+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344else
10345 cat >conftest.$ac_ext <<_ACEOF
10346#line $LINENO "configure"
10347/* confdefs.h. */
10348_ACEOF
10349cat confdefs.h >>conftest.$ac_ext
10350cat >>conftest.$ac_ext <<_ACEOF
10351/* end confdefs.h. */
10352
10353int
10354main ()
10355{
10356
10357 ;
10358 return 0;
10359}
10360_ACEOF
10361rm -f conftest.$ac_objext
10362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10363 (eval $ac_compile) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -s conftest.$ac_objext'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10f2d63a
VZ
10373 ac_cv_prog_cc_g=yes
10374else
e6cc62c6
VS
10375 echo "$as_me: failed program was:" >&5
10376sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10377
e6cc62c6 10378ac_cv_prog_cc_g=no
10f2d63a 10379fi
e6cc62c6
VS
10380rm -f conftest.$ac_objext conftest.$ac_ext
10381fi
10382echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10383echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10384if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10385 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10386elif test $ac_cv_prog_cc_g = yes; then
10387 if test "$GCC" = yes; then
10f2d63a
VZ
10388 CFLAGS="-g -O2"
10389 else
f09359cf 10390 CFLAGS="-g"
10f2d63a 10391 fi
5c0a20c3 10392else
f09359cf
VS
10393 if test "$GCC" = yes; then
10394 CFLAGS="-O2"
10395 else
10396 CFLAGS=
10397 fi
10f2d63a 10398fi
e6cc62c6
VS
10399echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10400echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10401if test "${ac_cv_prog_cc_stdc+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404 ac_cv_prog_cc_stdc=no
10405ac_save_CC=$CC
10406cat >conftest.$ac_ext <<_ACEOF
10407#line $LINENO "configure"
10408/* confdefs.h. */
10409_ACEOF
10410cat confdefs.h >>conftest.$ac_ext
10411cat >>conftest.$ac_ext <<_ACEOF
10412/* end confdefs.h. */
10413#include <stdarg.h>
10414#include <stdio.h>
10415#include <sys/types.h>
10416#include <sys/stat.h>
10417/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10418struct buf { int x; };
10419FILE * (*rcsopen) (struct buf *, struct stat *, int);
10420static char *e (p, i)
10421 char **p;
10422 int i;
10423{
10424 return p[i];
10425}
10426static char *f (char * (*g) (char **, int), char **p, ...)
10427{
10428 char *s;
10429 va_list v;
10430 va_start (v,p);
10431 s = g (p, va_arg (v,int));
10432 va_end (v);
10433 return s;
10434}
10435int test (int i, double x);
10436struct s1 {int (*f) (int a);};
10437struct s2 {int (*f) (double a);};
10438int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10439int argc;
10440char **argv;
10441int
10442main ()
10443{
10444return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10445 ;
10446 return 0;
10447}
10448_ACEOF
10449# Don't try gcc -ansi; that turns off useful extensions and
10450# breaks some systems' header files.
10451# AIX -qlanglvl=ansi
10452# Ultrix and OSF/1 -std1
10453# HP-UX 10.20 and later -Ae
10454# HP-UX older versions -Aa -D_HPUX_SOURCE
10455# SVR4 -Xc -D__EXTENSIONS__
10456for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10457do
10458 CC="$ac_save_CC $ac_arg"
10459 rm -f conftest.$ac_objext
10460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -s conftest.$ac_objext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_prog_cc_stdc=$ac_arg
10472break
10473else
10474 echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
10477fi
10478rm -f conftest.$ac_objext
10479done
10480rm -f conftest.$ac_ext conftest.$ac_objext
10481CC=$ac_save_CC
10482
10483fi
10484
10485case "x$ac_cv_prog_cc_stdc" in
10486 x|xno)
10487 echo "$as_me:$LINENO: result: none needed" >&5
10488echo "${ECHO_T}none needed" >&6 ;;
10489 *)
10490 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10491echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10492 CC="$CC $ac_cv_prog_cc_stdc" ;;
10493esac
10494
10495# Some people use a C++ compiler to compile C. Since we use `exit',
10496# in C++ we need to declare it. In case someone uses the same compiler
10497# for both compiling C and C++ we need to have the C++ compiler decide
10498# the declaration of exit, since it's the most demanding environment.
10499cat >conftest.$ac_ext <<_ACEOF
10500#ifndef __cplusplus
10501 choke me
10502#endif
10503_ACEOF
10504rm -f conftest.$ac_objext
10505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506 (eval $ac_compile) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -s conftest.$ac_objext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 for ac_declaration in \
6f628073
VS
10517 ''\
10518 '#include <stdlib.h>' \
e6cc62c6
VS
10519 'extern "C" void std::exit (int) throw (); using std::exit;' \
10520 'extern "C" void std::exit (int); using std::exit;' \
10521 'extern "C" void exit (int) throw ();' \
10522 'extern "C" void exit (int);' \
10523 'void exit (int);'
10524do
10525 cat >conftest.$ac_ext <<_ACEOF
10526#line $LINENO "configure"
10527/* confdefs.h. */
10528_ACEOF
10529cat confdefs.h >>conftest.$ac_ext
10530cat >>conftest.$ac_ext <<_ACEOF
10531/* end confdefs.h. */
71e83a03 10532#include <stdlib.h>
6f628073 10533$ac_declaration
e6cc62c6
VS
10534int
10535main ()
10536{
10537exit (42);
10538 ;
10539 return 0;
10540}
10541_ACEOF
10542rm -f conftest.$ac_objext
10543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10544 (eval $ac_compile) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -s conftest.$ac_objext'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 :
10555else
10556 echo "$as_me: failed program was:" >&5
10557sed 's/^/| /' conftest.$ac_ext >&5
10558
10559continue
10560fi
10561rm -f conftest.$ac_objext conftest.$ac_ext
10562 cat >conftest.$ac_ext <<_ACEOF
10563#line $LINENO "configure"
10564/* confdefs.h. */
10565_ACEOF
10566cat confdefs.h >>conftest.$ac_ext
10567cat >>conftest.$ac_ext <<_ACEOF
10568/* end confdefs.h. */
10569$ac_declaration
10570int
10571main ()
10572{
10573exit (42);
10574 ;
10575 return 0;
10576}
10577_ACEOF
10578rm -f conftest.$ac_objext
10579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580 (eval $ac_compile) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -s conftest.$ac_objext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 break
10591else
10592 echo "$as_me: failed program was:" >&5
10593sed 's/^/| /' conftest.$ac_ext >&5
10594
10595fi
10596rm -f conftest.$ac_objext conftest.$ac_ext
10597done
10598rm -f conftest*
10599if test -n "$ac_declaration"; then
10600 echo '#ifdef __cplusplus' >>confdefs.h
10601 echo $ac_declaration >>confdefs.h
10602 echo '#endif' >>confdefs.h
10603fi
10604
10605else
10606 echo "$as_me: failed program was:" >&5
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
10609fi
10610rm -f conftest.$ac_objext conftest.$ac_ext
10611ac_ext=c
10612ac_cpp='$CPP $CPPFLAGS'
10613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10615ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10616
10617
e6cc62c6
VS
10618
10619ac_ext=c
10620ac_cpp='$CPP $CPPFLAGS'
10621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623ac_compiler_gnu=$ac_cv_c_compiler_gnu
10624echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10625echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10626# On Suns, sometimes $CPP names a directory.
10627if test -n "$CPP" && test -d "$CPP"; then
10628 CPP=
10629fi
10630if test -z "$CPP"; then
e6cc62c6
VS
10631 if test "${ac_cv_prog_CPP+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10633else
10634 # Double quotes because CPP needs to be expanded
10635 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10636 do
10637 ac_preproc_ok=false
10638for ac_c_preproc_warn_flag in '' yes
10639do
10640 # Use a header file that comes with gcc, so configuring glibc
10641 # with a fresh cross-compiler works.
10642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10643 # <limits.h> exists even on freestanding compilers.
10f2d63a 10644 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10645 # not just through cpp. "Syntax error" is here to catch this case.
10646 cat >conftest.$ac_ext <<_ACEOF
10647#line $LINENO "configure"
10648/* confdefs.h. */
10649_ACEOF
10650cat confdefs.h >>conftest.$ac_ext
10651cat >>conftest.$ac_ext <<_ACEOF
10652/* end confdefs.h. */
10653#ifdef __STDC__
10654# include <limits.h>
10655#else
10656# include <assert.h>
10657#endif
10658 Syntax error
10659_ACEOF
10660if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } >/dev/null; then
10668 if test -s conftest.err; then
10669 ac_cpp_err=$ac_c_preproc_warn_flag
10670 else
10671 ac_cpp_err=
10672 fi
10f2d63a 10673else
e6cc62c6
VS
10674 ac_cpp_err=yes
10675fi
10676if test -z "$ac_cpp_err"; then
a0b9e27f 10677 :
247f5006 10678else
e6cc62c6
VS
10679 echo "$as_me: failed program was:" >&5
10680sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 # Broken: fails on valid input.
10683continue
10684fi
10685rm -f conftest.err conftest.$ac_ext
10686
10687 # OK, works on sane cases. Now check whether non-existent headers
10688 # can be detected and how.
10689 cat >conftest.$ac_ext <<_ACEOF
10690#line $LINENO "configure"
10691/* confdefs.h. */
10692_ACEOF
10693cat confdefs.h >>conftest.$ac_ext
10694cat >>conftest.$ac_ext <<_ACEOF
10695/* end confdefs.h. */
10696#include <ac_nonexistent.h>
10697_ACEOF
10698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } >/dev/null; then
10706 if test -s conftest.err; then
10707 ac_cpp_err=$ac_c_preproc_warn_flag
10708 else
10709 ac_cpp_err=
10710 fi
10f2d63a 10711else
e6cc62c6 10712 ac_cpp_err=yes
579d8138 10713fi
e6cc62c6
VS
10714if test -z "$ac_cpp_err"; then
10715 # Broken: success on invalid input.
10716continue
10717else
10718 echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 # Passes both tests.
10722ac_preproc_ok=:
10723break
52127426 10724fi
e6cc62c6
VS
10725rm -f conftest.err conftest.$ac_ext
10726
10727done
10728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10729rm -f conftest.err conftest.$ac_ext
10730if $ac_preproc_ok; then
10731 break
8284b0c5 10732fi
e6cc62c6
VS
10733
10734 done
10735 ac_cv_prog_CPP=$CPP
10736
10737fi
10738 CPP=$ac_cv_prog_CPP
10739else
10740 ac_cv_prog_CPP=$CPP
10741fi
10742echo "$as_me:$LINENO: result: $CPP" >&5
10743echo "${ECHO_T}$CPP" >&6
10744ac_preproc_ok=false
10745for ac_c_preproc_warn_flag in '' yes
10746do
10747 # Use a header file that comes with gcc, so configuring glibc
10748 # with a fresh cross-compiler works.
10749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 # <limits.h> exists even on freestanding compilers.
10751 # On the NeXT, cc -E runs the code through the compiler's parser,
10752 # not just through cpp. "Syntax error" is here to catch this case.
10753 cat >conftest.$ac_ext <<_ACEOF
10754#line $LINENO "configure"
10755/* confdefs.h. */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h. */
10760#ifdef __STDC__
10761# include <limits.h>
10762#else
10763# include <assert.h>
10764#endif
10765 Syntax error
10766_ACEOF
10767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } >/dev/null; then
10775 if test -s conftest.err; then
10776 ac_cpp_err=$ac_c_preproc_warn_flag
10777 else
10778 ac_cpp_err=
10779 fi
10780else
10781 ac_cpp_err=yes
10782fi
10783if test -z "$ac_cpp_err"; then
10784 :
10785else
10786 echo "$as_me: failed program was:" >&5
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 # Broken: fails on valid input.
10790continue
10791fi
10792rm -f conftest.err conftest.$ac_ext
10793
10794 # OK, works on sane cases. Now check whether non-existent headers
10795 # can be detected and how.
10796 cat >conftest.$ac_ext <<_ACEOF
10797#line $LINENO "configure"
10798/* confdefs.h. */
10799_ACEOF
10800cat confdefs.h >>conftest.$ac_ext
10801cat >>conftest.$ac_ext <<_ACEOF
10802/* end confdefs.h. */
10803#include <ac_nonexistent.h>
10804_ACEOF
10805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } >/dev/null; then
10813 if test -s conftest.err; then
10814 ac_cpp_err=$ac_c_preproc_warn_flag
10815 else
10816 ac_cpp_err=
10817 fi
10818else
10819 ac_cpp_err=yes
10820fi
10821if test -z "$ac_cpp_err"; then
10822 # Broken: success on invalid input.
10823continue
10824else
10825 echo "$as_me: failed program was:" >&5
10826sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 # Passes both tests.
10829ac_preproc_ok=:
10830break
a0b9e27f 10831fi
e6cc62c6
VS
10832rm -f conftest.err conftest.$ac_ext
10833
10834done
10835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10836rm -f conftest.err conftest.$ac_ext
10837if $ac_preproc_ok; then
10838 :
10839else
10840 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10841See \`config.log' for more details." >&5
10842echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10843See \`config.log' for more details." >&2;}
10844 { (exit 1); exit 1; }; }
10845fi
10846
10847ac_ext=c
10848ac_cpp='$CPP $CPPFLAGS'
10849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10851ac_compiler_gnu=$ac_cv_c_compiler_gnu
10852
10853
10854echo "$as_me:$LINENO: checking for egrep" >&5
10855echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10856if test "${ac_cv_prog_egrep+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10858else
e6cc62c6
VS
10859 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10860 then ac_cv_prog_egrep='grep -E'
10861 else ac_cv_prog_egrep='egrep'
10862 fi
10f2d63a 10863fi
e6cc62c6
VS
10864echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10865echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10866 EGREP=$ac_cv_prog_egrep
10867
10f2d63a 10868
e6cc62c6
VS
10869if test $ac_cv_c_compiler_gnu = yes; then
10870 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10871echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10872if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10874else
10875 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10876 cat >conftest.$ac_ext <<_ACEOF
10877#line $LINENO "configure"
10878/* confdefs.h. */
10879_ACEOF
10880cat confdefs.h >>conftest.$ac_ext
10881cat >>conftest.$ac_ext <<_ACEOF
10882/* end confdefs.h. */
10f2d63a
VZ
10883#include <sgtty.h>
10884Autoconf TIOCGETP
e6cc62c6 10885_ACEOF
10f2d63a 10886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10887 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10888 ac_cv_prog_gcc_traditional=yes
10889else
10f2d63a
VZ
10890 ac_cv_prog_gcc_traditional=no
10891fi
10892rm -f conftest*
10893
8284b0c5 10894
10f2d63a 10895 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10896 cat >conftest.$ac_ext <<_ACEOF
10897#line $LINENO "configure"
10898/* confdefs.h. */
10899_ACEOF
10900cat confdefs.h >>conftest.$ac_ext
10901cat >>conftest.$ac_ext <<_ACEOF
10902/* end confdefs.h. */
10f2d63a
VZ
10903#include <termio.h>
10904Autoconf TCGETA
e6cc62c6 10905_ACEOF
10f2d63a 10906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10907 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10908 ac_cv_prog_gcc_traditional=yes
10909fi
10910rm -f conftest*
10911
10912 fi
10913fi
e6cc62c6
VS
10914echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10915echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10916 if test $ac_cv_prog_gcc_traditional = yes; then
10917 CC="$CC -traditional"
10918 fi
10919fi
10920
8284b0c5
MB
10921
10922
e6cc62c6
VS
10923
10924ac_ext=cc
1e487827 10925ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10929
698dcdb6 10930
ec603395 10931CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10932ac_ext=cc
10933ac_cpp='$CXXCPP $CPPFLAGS'
10934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10937if test -n "$ac_tool_prefix"; then
10938 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10939 do
10940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10942echo "$as_me:$LINENO: checking for $ac_word" >&5
10943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944if test "${ac_cv_prog_CXX+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10946else
10947 if test -n "$CXX"; then
10948 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10949else
e6cc62c6
VS
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10960 fi
10961done
10962done
10963
10f2d63a
VZ
10964fi
10965fi
e6cc62c6 10966CXX=$ac_cv_prog_CXX
10f2d63a 10967if test -n "$CXX"; then
e6cc62c6
VS
10968 echo "$as_me:$LINENO: result: $CXX" >&5
10969echo "${ECHO_T}$CXX" >&6
10f2d63a 10970else
e6cc62c6
VS
10971 echo "$as_me:$LINENO: result: no" >&5
10972echo "${ECHO_T}no" >&6
10f2d63a
VZ
10973fi
10974
e6cc62c6
VS
10975 test -n "$CXX" && break
10976 done
10977fi
10978if test -z "$CXX"; then
10979 ac_ct_CXX=$CXX
10980 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10981do
10982 # Extract the first word of "$ac_prog", so it can be a program name with args.
10983set dummy $ac_prog; ac_word=$2
10984echo "$as_me:$LINENO: checking for $ac_word" >&5
10985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10986if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10988else
10989 if test -n "$ac_ct_CXX"; then
10990 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10991else
10992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993for as_dir in $PATH
10994do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10999 ac_cv_prog_ac_ct_CXX="$ac_prog"
11000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11002 fi
11003done
10f2d63a 11004done
a0b9e27f 11005
8284b0c5 11006fi
a0b9e27f 11007fi
e6cc62c6
VS
11008ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11009if test -n "$ac_ct_CXX"; then
11010 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11011echo "${ECHO_T}$ac_ct_CXX" >&6
11012else
11013 echo "$as_me:$LINENO: result: no" >&5
11014echo "${ECHO_T}no" >&6
a0b9e27f 11015fi
10f2d63a 11016
e6cc62c6
VS
11017 test -n "$ac_ct_CXX" && break
11018done
11019test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11020
11021 CXX=$ac_ct_CXX
11022fi
11023
11024
11025# Provide some information about the compiler.
11026echo "$as_me:$LINENO:" \
11027 "checking for C++ compiler version" >&5
11028ac_compiler=`set X $ac_compile; echo $2`
11029{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11030 (eval $ac_compiler --version </dev/null >&5) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }
11034{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11035 (eval $ac_compiler -v </dev/null >&5) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }
11039{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11040 (eval $ac_compiler -V </dev/null >&5) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }
11044
11045echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11046echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11047if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049else
11050 cat >conftest.$ac_ext <<_ACEOF
11051#line $LINENO "configure"
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
11057
11058int
11059main ()
11060{
11061#ifndef __GNUC__
11062 choke me
11063#endif
10f2d63a 11064
e6cc62c6
VS
11065 ;
11066 return 0;
11067}
11068_ACEOF
11069rm -f conftest.$ac_objext
11070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11071 (eval $ac_compile) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 ac_compiler_gnu=yes
11082else
11083 echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
11085
11086ac_compiler_gnu=no
11087fi
11088rm -f conftest.$ac_objext conftest.$ac_ext
11089ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11090
11091fi
11092echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11093echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11094GXX=`test $ac_compiler_gnu = yes && echo yes`
11095ac_test_CXXFLAGS=${CXXFLAGS+set}
11096ac_save_CXXFLAGS=$CXXFLAGS
11097CXXFLAGS="-g"
11098echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11099echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11100if test "${ac_cv_prog_cxx_g+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102else
11103 cat >conftest.$ac_ext <<_ACEOF
11104#line $LINENO "configure"
11105/* confdefs.h. */
11106_ACEOF
11107cat confdefs.h >>conftest.$ac_ext
11108cat >>conftest.$ac_ext <<_ACEOF
11109/* end confdefs.h. */
11110
11111int
11112main ()
11113{
f09359cf 11114
e6cc62c6
VS
11115 ;
11116 return 0;
11117}
11118_ACEOF
11119rm -f conftest.$ac_objext
11120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121 (eval $ac_compile) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } &&
11125 { ac_try='test -s conftest.$ac_objext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
10f2d63a
VZ
11131 ac_cv_prog_cxx_g=yes
11132else
e6cc62c6
VS
11133 echo "$as_me: failed program was:" >&5
11134sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11135
e6cc62c6 11136ac_cv_prog_cxx_g=no
10f2d63a 11137fi
e6cc62c6
VS
11138rm -f conftest.$ac_objext conftest.$ac_ext
11139fi
11140echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11141echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11142if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11143 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11144elif test $ac_cv_prog_cxx_g = yes; then
11145 if test "$GXX" = yes; then
10f2d63a
VZ
11146 CXXFLAGS="-g -O2"
11147 else
f09359cf 11148 CXXFLAGS="-g"
10f2d63a 11149 fi
5c0a20c3 11150else
f09359cf
VS
11151 if test "$GXX" = yes; then
11152 CXXFLAGS="-O2"
11153 else
11154 CXXFLAGS=
11155 fi
10f2d63a 11156fi
e6cc62c6 11157for ac_declaration in \
6f628073
VS
11158 ''\
11159 '#include <stdlib.h>' \
e6cc62c6
VS
11160 'extern "C" void std::exit (int) throw (); using std::exit;' \
11161 'extern "C" void std::exit (int); using std::exit;' \
11162 'extern "C" void exit (int) throw ();' \
11163 'extern "C" void exit (int);' \
11164 'void exit (int);'
11165do
11166 cat >conftest.$ac_ext <<_ACEOF
11167#line $LINENO "configure"
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
71e83a03 11173#include <stdlib.h>
6f628073 11174$ac_declaration
e6cc62c6
VS
11175int
11176main ()
11177{
11178exit (42);
11179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext
11184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 :
11196else
11197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
11200continue
11201fi
11202rm -f conftest.$ac_objext conftest.$ac_ext
11203 cat >conftest.$ac_ext <<_ACEOF
11204#line $LINENO "configure"
11205/* confdefs.h. */
11206_ACEOF
11207cat confdefs.h >>conftest.$ac_ext
11208cat >>conftest.$ac_ext <<_ACEOF
11209/* end confdefs.h. */
11210$ac_declaration
11211int
11212main ()
11213{
11214exit (42);
11215 ;
11216 return 0;
11217}
11218_ACEOF
11219rm -f conftest.$ac_objext
11220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -s conftest.$ac_objext'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 break
11232else
11233 echo "$as_me: failed program was:" >&5
11234sed 's/^/| /' conftest.$ac_ext >&5
11235
11236fi
11237rm -f conftest.$ac_objext conftest.$ac_ext
11238done
11239rm -f conftest*
11240if test -n "$ac_declaration"; then
11241 echo '#ifdef __cplusplus' >>confdefs.h
11242 echo $ac_declaration >>confdefs.h
11243 echo '#endif' >>confdefs.h
11244fi
11245
11246ac_ext=cc
11247ac_cpp='$CXXCPP $CPPFLAGS'
11248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11251
11252
10f2d63a 11253ac_ext=c
10f2d63a 11254ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11257ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11258
11259
e6cc62c6
VS
11260if test -n "$ac_tool_prefix"; then
11261 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11262set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11263echo "$as_me:$LINENO: checking for $ac_word" >&5
11264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11265if test "${ac_cv_prog_RANLIB+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11267else
11268 if test -n "$RANLIB"; then
11269 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11270else
e6cc62c6
VS
11271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272for as_dir in $PATH
11273do
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11278 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 break 2
11281 fi
11282done
11283done
11284
10f2d63a
VZ
11285fi
11286fi
e6cc62c6 11287RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11288if test -n "$RANLIB"; then
e6cc62c6
VS
11289 echo "$as_me:$LINENO: result: $RANLIB" >&5
11290echo "${ECHO_T}$RANLIB" >&6
11291else
11292 echo "$as_me:$LINENO: result: no" >&5
11293echo "${ECHO_T}no" >&6
11294fi
11295
11296fi
11297if test -z "$ac_cv_prog_RANLIB"; then
11298 ac_ct_RANLIB=$RANLIB
11299 # Extract the first word of "ranlib", so it can be a program name with args.
11300set dummy ranlib; ac_word=$2
11301echo "$as_me:$LINENO: checking for $ac_word" >&5
11302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11303if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11305else
e6cc62c6
VS
11306 if test -n "$ac_ct_RANLIB"; then
11307 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11308else
11309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310for as_dir in $PATH
11311do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11316 ac_cv_prog_ac_ct_RANLIB="ranlib"
11317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11318 break 2
11319 fi
11320done
11321done
11322
11323 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11324fi
11325fi
11326ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11327if test -n "$ac_ct_RANLIB"; then
11328 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11329echo "${ECHO_T}$ac_ct_RANLIB" >&6
11330else
11331 echo "$as_me:$LINENO: result: no" >&5
11332echo "${ECHO_T}no" >&6
11333fi
11334
11335 RANLIB=$ac_ct_RANLIB
11336else
11337 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11338fi
11339
10f2d63a
VZ
11340
11341# Extract the first word of "ar", so it can be a program name with args.
11342set dummy ar; ac_word=$2
e6cc62c6
VS
11343echo "$as_me:$LINENO: checking for $ac_word" >&5
11344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11345if test "${ac_cv_prog_AR+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11347else
11348 if test -n "$AR"; then
11349 ac_cv_prog_AR="$AR" # Let the user override the test.
11350else
e6cc62c6
VS
11351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358 ac_cv_prog_AR="ar"
11359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11361 fi
11362done
11363done
11364
10f2d63a
VZ
11365fi
11366fi
e6cc62c6 11367AR=$ac_cv_prog_AR
10f2d63a 11368if test -n "$AR"; then
e6cc62c6
VS
11369 echo "$as_me:$LINENO: result: $AR" >&5
11370echo "${ECHO_T}$AR" >&6
10f2d63a 11371else
e6cc62c6
VS
11372 echo "$as_me:$LINENO: result: no" >&5
11373echo "${ECHO_T}no" >&6
10f2d63a
VZ
11374fi
11375
911740e7
VS
11376if test "x$AR" = "x" ; then
11377 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11378echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11379 { (exit 1); exit 1; }; }
11380fi
8284b0c5 11381
6054113a 11382# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11383# so one script is as good as another. But avoid the broken or
11384# incompatible versions:
11385# SysV /etc/install, /usr/sbin/install
11386# SunOS /usr/etc/install
11387# IRIX /sbin/install
11388# AIX /bin/install
e6cc62c6 11389# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11390# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11391# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11392# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11393# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11394echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11395echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11396if test -z "$INSTALL"; then
e6cc62c6
VS
11397if test "${ac_cv_path_install+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399else
11400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401for as_dir in $PATH
11402do
11403 IFS=$as_save_IFS
11404 test -z "$as_dir" && as_dir=.
11405 # Account for people who put trailing slashes in PATH elements.
11406case $as_dir/ in
11407 ./ | .// | /cC/* | \
11408 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11409 /usr/ucb/* ) ;;
11410 *)
11411 # OSF1 and SCO ODT 3.0 have their own names for install.
11412 # Don't use installbsd from OSF since it installs stuff as root
11413 # by default.
11414 for ac_prog in ginstall scoinst install; do
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11417 if test $ac_prog = install &&
11418 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11419 # AIX install. It has an incompatible calling convention.
11420 :
11421 elif test $ac_prog = install &&
11422 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11423 # program-specific install script used by HP pwplus--don't use.
11424 :
11425 else
11426 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11427 break 3
11428 fi
11429 fi
10f2d63a 11430 done
e6cc62c6
VS
11431 done
11432 ;;
11433esac
11434done
11435
10f2d63a
VZ
11436
11437fi
11438 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11439 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11440 else
11441 # As a last resort, use the slow shell script. We don't cache a
11442 # path for INSTALL within a source directory, because that will
11443 # break other packages using the cache if that directory is
11444 # removed, or if the path is relative.
e6cc62c6 11445 INSTALL=$ac_install_sh
10f2d63a
VZ
11446 fi
11447fi
e6cc62c6
VS
11448echo "$as_me:$LINENO: result: $INSTALL" >&5
11449echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11450
11451# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11452# It thinks the first close brace ends the variable substitution.
11453test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11454
e6cc62c6 11455test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11456
10f2d63a
VZ
11457test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11458
8284b0c5 11459
1d1b75ac
VZ
11460case ${INSTALL} in
11461 /* ) # Absolute
11462 ;;
4f5a7f74
VZ
11463 ?:* ) # Drive letter, considered as absolute.
11464 ;;
3bd8fb5f 11465 *)
1d1b75ac
VZ
11466 INSTALL=`pwd`/${INSTALL} ;;
11467esac
11468
4f5a7f74
VZ
11469case ${host} in
11470 *-hp-hpux* )
11471 INSTALL_DIR="mkdir"
11472 ;;
11473
11474 *) INSTALL_DIR="$INSTALL -d"
11475 ;;
11476esac
11477
8284b0c5 11478
6054113a
GD
11479case "${host}" in
11480
b5853384 11481 powerpc-*-darwin* )
eb99ae0b
GD
11482 INSTALL_PROGRAM="cp -fp"
11483 INSTALL_DATA="cp -fp"
6054113a
GD
11484 ;;
11485 *)
11486 ;;
d6853540 11487esac
698dcdb6 11488
10f2d63a
VZ
11489# Extract the first word of "strip", so it can be a program name with args.
11490set dummy strip; ac_word=$2
e6cc62c6
VS
11491echo "$as_me:$LINENO: checking for $ac_word" >&5
11492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11493if test "${ac_cv_prog_STRIP+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11495else
11496 if test -n "$STRIP"; then
11497 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11498else
e6cc62c6
VS
11499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500for as_dir in $PATH
11501do
11502 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11506 ac_cv_prog_STRIP="strip"
11507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 break 2
11509 fi
11510done
11511done
11512
10f2d63a
VZ
11513 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11514fi
11515fi
e6cc62c6 11516STRIP=$ac_cv_prog_STRIP
10f2d63a 11517if test -n "$STRIP"; then
e6cc62c6
VS
11518 echo "$as_me:$LINENO: result: $STRIP" >&5
11519echo "${ECHO_T}$STRIP" >&6
10f2d63a 11520else
e6cc62c6
VS
11521 echo "$as_me:$LINENO: result: no" >&5
11522echo "${ECHO_T}no" >&6
10f2d63a
VZ
11523fi
11524
5c6fa7d2 11525
e6cc62c6
VS
11526echo "$as_me:$LINENO: checking if make is GNU make" >&5
11527echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11528if test "${wx_cv_prog_makeisgnu+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11530else
e6cc62c6 11531
414eab6d 11532 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11533 egrep -s GNU > /dev/null); then
414eab6d
VZ
11534 wx_cv_prog_makeisgnu="yes"
11535 else
11536 wx_cv_prog_makeisgnu="no"
11537 fi
11538
11539fi
e6cc62c6
VS
11540echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11541echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11542
11543if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11544 IF_GNU_MAKE=""
11545else
11546 IF_GNU_MAKE="#"
11547fi
11548
8284b0c5
MB
11549
11550
414eab6d 11551if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11552echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11553echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11554if test "${wx_cv_prog_makevpath+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11556else
e6cc62c6 11557
10f2d63a
VZ
11558cat - << EOF > confMake
11559check : file
11560 cp \$? \$@
11561 cp \$? final_file
11562EOF
11563
11564if test ! -d sub ; then
11565 mkdir sub
11566fi
11567echo dummy > sub/file
f6bcfd97 11568${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11569RESULT=$?
11570rm -f sub/file check final_file confMake
11571rmdir sub
11572if test "$RESULT" = 0; then
04e7a216 11573 wx_cv_prog_makevpath="yes"
10f2d63a 11574else
04e7a216
VZ
11575 wx_cv_prog_makevpath="no"
11576fi
11577
11578fi
e6cc62c6
VS
11579echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11580echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11581
11582if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11583{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11584You need a make-utility that is able to use the variable
11585VPATH correctly.
11586If your version of make does not support VPATH correctly,
11587please install GNU-make (possibly as gmake), and start
11588configure with the following command:
11589export MAKE=gmake; ./configure for sh-type shells
11590setenv MAKE gmake; ./configure for csh-type shells
11591Also please do remember to use gmake in this case every time
11592you are trying to compile.
e6cc62c6
VS
11593" >&5
11594echo "$as_me: error:
11595You need a make-utility that is able to use the variable
11596VPATH correctly.
11597If your version of make does not support VPATH correctly,
11598please install GNU-make (possibly as gmake), and start
11599configure with the following command:
11600export MAKE=gmake; ./configure for sh-type shells
11601setenv MAKE gmake; ./configure for csh-type shells
11602Also please do remember to use gmake in this case every time
11603you are trying to compile.
11604" >&2;}
11605 { (exit 1); exit 1; }; }
11606fi fi
10f2d63a
VZ
11607for ac_prog in 'bison -y' byacc
11608do
e6cc62c6 11609 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 11610set dummy $ac_prog; ac_word=$2
e6cc62c6
VS
11611echo "$as_me:$LINENO: checking for $ac_word" >&5
11612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11613if test "${ac_cv_prog_YACC+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11615else
11616 if test -n "$YACC"; then
11617 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11618else
e6cc62c6
VS
11619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620for as_dir in $PATH
11621do
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_prog_YACC="$ac_prog"
11627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
11629 fi
11630done
11631done
11632
10f2d63a
VZ
11633fi
11634fi
e6cc62c6 11635YACC=$ac_cv_prog_YACC
10f2d63a 11636if test -n "$YACC"; then
e6cc62c6
VS
11637 echo "$as_me:$LINENO: result: $YACC" >&5
11638echo "${ECHO_T}$YACC" >&6
10f2d63a 11639else
e6cc62c6
VS
11640 echo "$as_me:$LINENO: result: no" >&5
11641echo "${ECHO_T}no" >&6
10f2d63a
VZ
11642fi
11643
e6cc62c6 11644 test -n "$YACC" && break
10f2d63a
VZ
11645done
11646test -n "$YACC" || YACC="yacc"
11647
8284b0c5 11648
e6cc62c6
VS
11649for ac_prog in flex lex
11650do
11651 # Extract the first word of "$ac_prog", so it can be a program name with args.
11652set dummy $ac_prog; ac_word=$2
11653echo "$as_me:$LINENO: checking for $ac_word" >&5
11654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11655if test "${ac_cv_prog_LEX+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11657else
11658 if test -n "$LEX"; then
11659 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11660else
e6cc62c6
VS
11661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662for as_dir in $PATH
11663do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11668 ac_cv_prog_LEX="$ac_prog"
11669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 break 2
11671 fi
11672done
11673done
11674
10f2d63a
VZ
11675fi
11676fi
e6cc62c6 11677LEX=$ac_cv_prog_LEX
10f2d63a 11678if test -n "$LEX"; then
e6cc62c6
VS
11679 echo "$as_me:$LINENO: result: $LEX" >&5
11680echo "${ECHO_T}$LEX" >&6
10f2d63a 11681else
e6cc62c6
VS
11682 echo "$as_me:$LINENO: result: no" >&5
11683echo "${ECHO_T}no" >&6
10f2d63a
VZ
11684fi
11685
e6cc62c6
VS
11686 test -n "$LEX" && break
11687done
11688test -n "$LEX" || LEX=":"
11689
10f2d63a
VZ
11690if test -z "$LEXLIB"
11691then
e6cc62c6
VS
11692 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11693echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11694if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11696else
11697 ac_check_lib_save_LIBS=$LIBS
11698LIBS="-lfl $LIBS"
11699cat >conftest.$ac_ext <<_ACEOF
11700#line $LINENO "configure"
11701/* confdefs.h. */
11702_ACEOF
11703cat confdefs.h >>conftest.$ac_ext
11704cat >>conftest.$ac_ext <<_ACEOF
11705/* end confdefs.h. */
11706
11707/* Override any gcc2 internal prototype to avoid an error. */
11708#ifdef __cplusplus
11709extern "C"
11710#endif
11711/* We use char because int might match the return type of a gcc2
11712 builtin and then its argument prototype would still apply. */
11713char yywrap ();
11714int
11715main ()
11716{
11717yywrap ();
11718 ;
11719 return 0;
11720}
11721_ACEOF
11722rm -f conftest.$ac_objext conftest$ac_exeext
11723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724 (eval $ac_link) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -s conftest$ac_exeext'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; }; then
11734 ac_cv_lib_fl_yywrap=yes
11735else
11736 echo "$as_me: failed program was:" >&5
11737sed 's/^/| /' conftest.$ac_ext >&5
11738
11739ac_cv_lib_fl_yywrap=no
11740fi
11741rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11742LIBS=$ac_check_lib_save_LIBS
11743fi
11744echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11745echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11746if test $ac_cv_lib_fl_yywrap = yes; then
11747 LEXLIB="-lfl"
11748else
11749 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11750echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11751if test "${ac_cv_lib_l_yywrap+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753else
11754 ac_check_lib_save_LIBS=$LIBS
11755LIBS="-ll $LIBS"
11756cat >conftest.$ac_ext <<_ACEOF
11757#line $LINENO "configure"
11758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
11763
247f5006 11764/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11765#ifdef __cplusplus
11766extern "C"
11767#endif
247f5006 11768/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11769 builtin and then its argument prototype would still apply. */
11770char yywrap ();
11771int
11772main ()
11773{
11774yywrap ();
11775 ;
11776 return 0;
11777}
11778_ACEOF
11779rm -f conftest.$ac_objext conftest$ac_exeext
11780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
11785 { ac_try='test -s conftest$ac_exeext'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 ac_cv_lib_l_yywrap=yes
11792else
11793 echo "$as_me: failed program was:" >&5
11794sed 's/^/| /' conftest.$ac_ext >&5
11795
11796ac_cv_lib_l_yywrap=no
11797fi
11798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11799LIBS=$ac_check_lib_save_LIBS
11800fi
11801echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11802echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11803if test $ac_cv_lib_l_yywrap = yes; then
11804 LEXLIB="-ll"
11805fi
10f2d63a 11806
10f2d63a 11807fi
8284b0c5 11808
10f2d63a 11809fi
e6cc62c6
VS
11810
11811if test "x$LEX" != "x:"; then
11812 echo "$as_me:$LINENO: checking lex output file root" >&5
11813echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11814if test "${ac_cv_prog_lex_root+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816else
11817 # The minimal lex program is just a single line: %%. But some broken lexes
11818# (Solaris, I think it was) want two %% lines, so accommodate them.
11819cat >conftest.l <<_ACEOF
11820%%
11821%%
11822_ACEOF
11823{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11824 (eval $LEX conftest.l) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }
11828if test -f lex.yy.c; then
11829 ac_cv_prog_lex_root=lex.yy
11830elif test -f lexyy.c; then
11831 ac_cv_prog_lex_root=lexyy
8284b0c5 11832else
e6cc62c6
VS
11833 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11834echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11835 { (exit 1); exit 1; }; }
10f2d63a 11836fi
a0b9e27f 11837fi
e6cc62c6
VS
11838echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11839echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11840rm -f conftest.l
11841LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10f2d63a 11842
e6cc62c6
VS
11843echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11844echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11845if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11847else
e6cc62c6
VS
11848 # POSIX says lex can declare yytext either as a pointer or an array; the
11849# default is implementation-dependent. Figure out which it is, since
11850# not all implementations provide the %pointer and %array declarations.
11851ac_cv_prog_lex_yytext_pointer=no
11852echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11853ac_save_LIBS=$LIBS
11854LIBS="$LIBS $LEXLIB"
11855cat >conftest.$ac_ext <<_ACEOF
11856`cat $LEX_OUTPUT_ROOT.c`
11857_ACEOF
11858rm -f conftest.$ac_objext conftest$ac_exeext
11859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860 (eval $ac_link) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try='test -s conftest$ac_exeext'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 11871else
e6cc62c6
VS
11872 echo "$as_me: failed program was:" >&5
11873sed 's/^/| /' conftest.$ac_ext >&5
11874
10f2d63a 11875fi
e6cc62c6
VS
11876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11877LIBS=$ac_save_LIBS
11878rm -f "${LEX_OUTPUT_ROOT}.c"
11879
11880fi
11881echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11882echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11883if test $ac_cv_prog_lex_yytext_pointer = yes; then
11884
11885cat >>confdefs.h <<\_ACEOF
11886#define YYTEXT_POINTER 1
11887_ACEOF
11888
a0b9e27f 11889fi
e6cc62c6
VS
11890
11891fi
11892
11893echo "$as_me:$LINENO: checking whether ln -s works" >&5
11894echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11895LN_S=$as_ln_s
11896if test "$LN_S" = "ln -s"; then
11897 echo "$as_me:$LINENO: result: yes" >&5
11898echo "${ECHO_T}yes" >&6
10f2d63a 11899else
e6cc62c6
VS
11900 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11901echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11902fi
5c6fa7d2 11903
247f5006 11904
2b5f62a0
VZ
11905case "${host}" in
11906 *-pc-os2_emx | *-pc-os2-emx )
11907 LIBS="$LIBS -lstdcpp"
11908 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11909 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11910echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11911if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11913else
e6cc62c6 11914 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11915LIBS="-lcExt $LIBS"
e6cc62c6
VS
11916cat >conftest.$ac_ext <<_ACEOF
11917#line $LINENO "configure"
11918/* confdefs.h. */
11919_ACEOF
11920cat confdefs.h >>conftest.$ac_ext
11921cat >>conftest.$ac_ext <<_ACEOF
11922/* end confdefs.h. */
11923
2b5f62a0 11924/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11925#ifdef __cplusplus
11926extern "C"
11927#endif
2b5f62a0 11928/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11929 builtin and then its argument prototype would still apply. */
11930char drand48 ();
11931int
11932main ()
11933{
11934drand48 ();
11935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext conftest$ac_exeext
11940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11941 (eval $ac_link) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
11945 { ac_try='test -s conftest$ac_exeext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_lib_cExt_drand48=yes
11952else
11953 echo "$as_me: failed program was:" >&5
11954sed 's/^/| /' conftest.$ac_ext >&5
11955
11956ac_cv_lib_cExt_drand48=no
11957fi
11958rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11959LIBS=$ac_check_lib_save_LIBS
11960fi
11961echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11962echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11963if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11964 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11965fi
11966
11967 else
11968 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11969 fi
11970 ;;
11971esac
11972
a0b9e27f 11973
01aa5863
VS
11974if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11975 echo "$as_me:$LINENO: checking for strings.h" >&5
11976echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11977if test "${ac_cv_header_strings_h+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979else
11980 ac_cv_header_strings_h=no
11981fi
11982echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11983echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11984 if test "$ac_cv_header_strings_h" = "no"; then
11985 echo "$as_me:$LINENO: result: forced no into cache" >&5
11986echo "${ECHO_T}forced no into cache" >&6
11987 else
11988 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11989echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11990 fi
11991fi
11992echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11993echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11994if test "${ac_cv_header_stdc+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996else
11997 cat >conftest.$ac_ext <<_ACEOF
11998#line $LINENO "configure"
11999/* confdefs.h. */
12000_ACEOF
12001cat confdefs.h >>conftest.$ac_ext
12002cat >>conftest.$ac_ext <<_ACEOF
12003/* end confdefs.h. */
12004#include <stdlib.h>
12005#include <stdarg.h>
12006#include <string.h>
12007#include <float.h>
247f5006 12008
e6cc62c6
VS
12009int
12010main ()
12011{
90dd450c 12012
e6cc62c6
VS
12013 ;
12014 return 0;
12015}
12016_ACEOF
12017rm -f conftest.$ac_objext
12018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019 (eval $ac_compile) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -s conftest.$ac_objext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 ac_cv_header_stdc=yes
8284b0c5 12030else
e6cc62c6
VS
12031 echo "$as_me: failed program was:" >&5
12032sed 's/^/| /' conftest.$ac_ext >&5
12033
12034ac_cv_header_stdc=no
21d1c967 12035fi
e6cc62c6 12036rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12037
e6cc62c6
VS
12038if test $ac_cv_header_stdc = yes; then
12039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12040 cat >conftest.$ac_ext <<_ACEOF
12041#line $LINENO "configure"
12042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
12047#include <string.h>
12048
12049_ACEOF
12050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12051 $EGREP "memchr" >/dev/null 2>&1; then
12052 :
12053else
12054 ac_cv_header_stdc=no
3a922bb4 12055fi
a0b9e27f 12056rm -f conftest*
e6cc62c6 12057
90dd450c 12058fi
e6cc62c6
VS
12059
12060if test $ac_cv_header_stdc = yes; then
12061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12062 cat >conftest.$ac_ext <<_ACEOF
12063#line $LINENO "configure"
12064/* confdefs.h. */
12065_ACEOF
12066cat confdefs.h >>conftest.$ac_ext
12067cat >>conftest.$ac_ext <<_ACEOF
12068/* end confdefs.h. */
12069#include <stdlib.h>
12070
12071_ACEOF
12072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12073 $EGREP "free" >/dev/null 2>&1; then
12074 :
a0b9e27f 12075else
e6cc62c6 12076 ac_cv_header_stdc=no
21d1c967 12077fi
e6cc62c6 12078rm -f conftest*
247f5006
VZ
12079
12080fi
e6cc62c6
VS
12081
12082if test $ac_cv_header_stdc = yes; then
12083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12084 if test "$cross_compiling" = yes; then
12085 :
12086else
12087 cat >conftest.$ac_ext <<_ACEOF
12088#line $LINENO "configure"
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094#include <ctype.h>
12095#if ((' ' & 0x0FF) == 0x020)
12096# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12097# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12098#else
12099# define ISLOWER(c) \
12100 (('a' <= (c) && (c) <= 'i') \
12101 || ('j' <= (c) && (c) <= 'r') \
12102 || ('s' <= (c) && (c) <= 'z'))
12103# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12104#endif
12105
12106#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12107int
12108main ()
12109{
12110 int i;
12111 for (i = 0; i < 256; i++)
12112 if (XOR (islower (i), ISLOWER (i))
12113 || toupper (i) != TOUPPER (i))
12114 exit(2);
12115 exit (0);
12116}
12117_ACEOF
12118rm -f conftest$ac_exeext
12119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120 (eval $ac_link) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 :
a0b9e27f 12130else
e6cc62c6
VS
12131 echo "$as_me: program exited with status $ac_status" >&5
12132echo "$as_me: failed program was:" >&5
12133sed 's/^/| /' conftest.$ac_ext >&5
12134
12135( exit $ac_status )
12136ac_cv_header_stdc=no
12137fi
12138rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12139fi
12140fi
12141fi
12142echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12143echo "${ECHO_T}$ac_cv_header_stdc" >&6
12144if test $ac_cv_header_stdc = yes; then
12145
12146cat >>confdefs.h <<\_ACEOF
12147#define STDC_HEADERS 1
12148_ACEOF
12149
a0b9e27f 12150fi
e6cc62c6
VS
12151
12152# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12163 inttypes.h stdint.h unistd.h
12164do
12165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12166echo "$as_me:$LINENO: checking for $ac_header" >&5
12167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12168if eval "test \"\${$as_ac_Header+set}\" = set"; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170else
12171 cat >conftest.$ac_ext <<_ACEOF
12172#line $LINENO "configure"
12173/* confdefs.h. */
12174_ACEOF
12175cat confdefs.h >>conftest.$ac_ext
12176cat >>conftest.$ac_ext <<_ACEOF
12177/* end confdefs.h. */
12178$ac_includes_default
12179
12180#include <$ac_header>
12181_ACEOF
12182rm -f conftest.$ac_objext
12183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12184 (eval $ac_compile) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -s conftest.$ac_objext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 eval "$as_ac_Header=yes"
12195else
12196 echo "$as_me: failed program was:" >&5
12197sed 's/^/| /' conftest.$ac_ext >&5
12198
12199eval "$as_ac_Header=no"
12200fi
12201rm -f conftest.$ac_objext conftest.$ac_ext
12202fi
12203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12204echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12205if test `eval echo '${'$as_ac_Header'}'` = yes; then
12206 cat >>confdefs.h <<_ACEOF
12207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208_ACEOF
12209
12210fi
12211
a0b9e27f 12212done
90dd450c 12213
e6cc62c6
VS
12214
12215
12216for ac_header in strings.h
21d1c967 12217do
e6cc62c6
VS
12218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12219if eval "test \"\${$as_ac_Header+set}\" = set"; then
12220 echo "$as_me:$LINENO: checking for $ac_header" >&5
12221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12222if eval "test \"\${$as_ac_Header+set}\" = set"; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224fi
12225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12227else
12228 # Is the header compilable?
12229echo "$as_me:$LINENO: checking $ac_header usability" >&5
12230echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12231cat >conftest.$ac_ext <<_ACEOF
12232#line $LINENO "configure"
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */
12238$ac_includes_default
12239#include <$ac_header>
12240_ACEOF
12241rm -f conftest.$ac_objext
12242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12243 (eval $ac_compile) 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -s conftest.$ac_objext'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 ac_header_compiler=yes
12254else
12255 echo "$as_me: failed program was:" >&5
12256sed 's/^/| /' conftest.$ac_ext >&5
12257
12258ac_header_compiler=no
12259fi
12260rm -f conftest.$ac_objext conftest.$ac_ext
12261echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12262echo "${ECHO_T}$ac_header_compiler" >&6
12263
12264# Is the header present?
12265echo "$as_me:$LINENO: checking $ac_header presence" >&5
12266echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12267cat >conftest.$ac_ext <<_ACEOF
12268#line $LINENO "configure"
12269/* confdefs.h. */
12270_ACEOF
12271cat confdefs.h >>conftest.$ac_ext
12272cat >>conftest.$ac_ext <<_ACEOF
12273/* end confdefs.h. */
12274#include <$ac_header>
12275_ACEOF
12276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } >/dev/null; then
12284 if test -s conftest.err; then
12285 ac_cpp_err=$ac_c_preproc_warn_flag
12286 else
12287 ac_cpp_err=
12288 fi
12289else
12290 ac_cpp_err=yes
12291fi
12292if test -z "$ac_cpp_err"; then
12293 ac_header_preproc=yes
12294else
12295 echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
12298 ac_header_preproc=no
12299fi
12300rm -f conftest.err conftest.$ac_ext
12301echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12302echo "${ECHO_T}$ac_header_preproc" >&6
12303
12304# So? What about this header?
12305case $ac_header_compiler:$ac_header_preproc in
12306 yes:no )
12307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12308echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12310echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12311 (
12312 cat <<\_ASBOX
12313## ------------------------------------ ##
12314## Report this to bug-autoconf@gnu.org. ##
12315## ------------------------------------ ##
12316_ASBOX
12317 ) |
12318 sed "s/^/$as_me: WARNING: /" >&2
12319 ;;
12320 no:yes )
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12324echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12327 (
12328 cat <<\_ASBOX
12329## ------------------------------------ ##
12330## Report this to bug-autoconf@gnu.org. ##
12331## ------------------------------------ ##
12332_ASBOX
12333 ) |
12334 sed "s/^/$as_me: WARNING: /" >&2
12335 ;;
12336esac
12337echo "$as_me:$LINENO: checking for $ac_header" >&5
12338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12339if eval "test \"\${$as_ac_Header+set}\" = set"; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341else
12342 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12343fi
e6cc62c6
VS
12344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12346
a0b9e27f 12347fi
e6cc62c6
VS
12348if test `eval echo '${'$as_ac_Header'}'` = yes; then
12349 cat >>confdefs.h <<_ACEOF
12350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12351_ACEOF
12352
12353fi
12354
12355done
12356
e6cc62c6
VS
12357
12358
12359for ac_header in stdlib.h
12360do
12361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362if eval "test \"\${$as_ac_Header+set}\" = set"; then
12363 echo "$as_me:$LINENO: checking for $ac_header" >&5
12364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12365if eval "test \"\${$as_ac_Header+set}\" = set"; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367fi
12368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12370else
12371 # Is the header compilable?
12372echo "$as_me:$LINENO: checking $ac_header usability" >&5
12373echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12374cat >conftest.$ac_ext <<_ACEOF
12375#line $LINENO "configure"
12376/* confdefs.h. */
12377_ACEOF
12378cat confdefs.h >>conftest.$ac_ext
12379cat >>conftest.$ac_ext <<_ACEOF
12380/* end confdefs.h. */
12381$ac_includes_default
12382#include <$ac_header>
12383_ACEOF
12384rm -f conftest.$ac_objext
12385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12386 (eval $ac_compile) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -s conftest.$ac_objext'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 ac_header_compiler=yes
12397else
12398 echo "$as_me: failed program was:" >&5
12399sed 's/^/| /' conftest.$ac_ext >&5
12400
12401ac_header_compiler=no
12402fi
12403rm -f conftest.$ac_objext conftest.$ac_ext
12404echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12405echo "${ECHO_T}$ac_header_compiler" >&6
12406
12407# Is the header present?
12408echo "$as_me:$LINENO: checking $ac_header presence" >&5
12409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12410cat >conftest.$ac_ext <<_ACEOF
12411#line $LINENO "configure"
12412/* confdefs.h. */
12413_ACEOF
12414cat confdefs.h >>conftest.$ac_ext
12415cat >>conftest.$ac_ext <<_ACEOF
12416/* end confdefs.h. */
12417#include <$ac_header>
12418_ACEOF
12419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } >/dev/null; then
12427 if test -s conftest.err; then
12428 ac_cpp_err=$ac_c_preproc_warn_flag
12429 else
12430 ac_cpp_err=
12431 fi
12432else
12433 ac_cpp_err=yes
12434fi
12435if test -z "$ac_cpp_err"; then
12436 ac_header_preproc=yes
12437else
12438 echo "$as_me: failed program was:" >&5
12439sed 's/^/| /' conftest.$ac_ext >&5
12440
12441 ac_header_preproc=no
12442fi
12443rm -f conftest.err conftest.$ac_ext
12444echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12445echo "${ECHO_T}$ac_header_preproc" >&6
12446
12447# So? What about this header?
12448case $ac_header_compiler:$ac_header_preproc in
12449 yes:no )
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12454 (
12455 cat <<\_ASBOX
12456## ------------------------------------ ##
12457## Report this to bug-autoconf@gnu.org. ##
12458## ------------------------------------ ##
12459_ASBOX
12460 ) |
12461 sed "s/^/$as_me: WARNING: /" >&2
12462 ;;
12463 no:yes )
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470 (
12471 cat <<\_ASBOX
12472## ------------------------------------ ##
12473## Report this to bug-autoconf@gnu.org. ##
12474## ------------------------------------ ##
12475_ASBOX
12476 ) |
12477 sed "s/^/$as_me: WARNING: /" >&2
12478 ;;
12479esac
12480echo "$as_me:$LINENO: checking for $ac_header" >&5
12481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12482if eval "test \"\${$as_ac_Header+set}\" = set"; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12484else
e6cc62c6
VS
12485 eval "$as_ac_Header=$ac_header_preproc"
12486fi
12487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12489
21d1c967 12490fi
e6cc62c6
VS
12491if test `eval echo '${'$as_ac_Header'}'` = yes; then
12492 cat >>confdefs.h <<_ACEOF
12493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12494_ACEOF
12495
12496fi
12497
21d1c967 12498done
4f14bcd8 12499
5c6fa7d2 12500
e6cc62c6 12501for ac_header in malloc.h
21d1c967 12502do
e6cc62c6
VS
12503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12504if eval "test \"\${$as_ac_Header+set}\" = set"; then
12505 echo "$as_me:$LINENO: checking for $ac_header" >&5
12506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12507if eval "test \"\${$as_ac_Header+set}\" = set"; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12509fi
12510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12512else
12513 # Is the header compilable?
12514echo "$as_me:$LINENO: checking $ac_header usability" >&5
12515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12516cat >conftest.$ac_ext <<_ACEOF
12517#line $LINENO "configure"
12518/* confdefs.h. */
12519_ACEOF
12520cat confdefs.h >>conftest.$ac_ext
12521cat >>conftest.$ac_ext <<_ACEOF
12522/* end confdefs.h. */
12523$ac_includes_default
12524#include <$ac_header>
12525_ACEOF
12526rm -f conftest.$ac_objext
12527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528 (eval $ac_compile) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -s conftest.$ac_objext'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12538 ac_header_compiler=yes
12539else
12540 echo "$as_me: failed program was:" >&5
12541sed 's/^/| /' conftest.$ac_ext >&5
12542
12543ac_header_compiler=no
12544fi
12545rm -f conftest.$ac_objext conftest.$ac_ext
12546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547echo "${ECHO_T}$ac_header_compiler" >&6
12548
12549# Is the header present?
12550echo "$as_me:$LINENO: checking $ac_header presence" >&5
12551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12552cat >conftest.$ac_ext <<_ACEOF
12553#line $LINENO "configure"
12554/* confdefs.h. */
12555_ACEOF
12556cat confdefs.h >>conftest.$ac_ext
12557cat >>conftest.$ac_ext <<_ACEOF
12558/* end confdefs.h. */
12559#include <$ac_header>
12560_ACEOF
12561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } >/dev/null; then
12569 if test -s conftest.err; then
12570 ac_cpp_err=$ac_c_preproc_warn_flag
12571 else
12572 ac_cpp_err=
12573 fi
12574else
12575 ac_cpp_err=yes
12576fi
12577if test -z "$ac_cpp_err"; then
12578 ac_header_preproc=yes
12579else
12580 echo "$as_me: failed program was:" >&5
12581sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 ac_header_preproc=no
12584fi
12585rm -f conftest.err conftest.$ac_ext
12586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587echo "${ECHO_T}$ac_header_preproc" >&6
12588
12589# So? What about this header?
12590case $ac_header_compiler:$ac_header_preproc in
12591 yes:no )
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12596 (
12597 cat <<\_ASBOX
12598## ------------------------------------ ##
12599## Report this to bug-autoconf@gnu.org. ##
12600## ------------------------------------ ##
12601_ASBOX
12602 ) |
12603 sed "s/^/$as_me: WARNING: /" >&2
12604 ;;
12605 no:yes )
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12609echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612 (
12613 cat <<\_ASBOX
12614## ------------------------------------ ##
12615## Report this to bug-autoconf@gnu.org. ##
12616## ------------------------------------ ##
12617_ASBOX
12618 ) |
12619 sed "s/^/$as_me: WARNING: /" >&2
12620 ;;
12621esac
12622echo "$as_me:$LINENO: checking for $ac_header" >&5
12623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12624if eval "test \"\${$as_ac_Header+set}\" = set"; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626else
12627 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12628fi
e6cc62c6
VS
12629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12631
21d1c967 12632fi
e6cc62c6
VS
12633if test `eval echo '${'$as_ac_Header'}'` = yes; then
12634 cat >>confdefs.h <<_ACEOF
12635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12636_ACEOF
12637
12638fi
12639
12640done
12641
12642
12643for ac_header in unistd.h
12644do
12645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12646if eval "test \"\${$as_ac_Header+set}\" = set"; then
12647 echo "$as_me:$LINENO: checking for $ac_header" >&5
12648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12649if eval "test \"\${$as_ac_Header+set}\" = set"; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12651fi
12652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12654else
12655 # Is the header compilable?
12656echo "$as_me:$LINENO: checking $ac_header usability" >&5
12657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12658cat >conftest.$ac_ext <<_ACEOF
12659#line $LINENO "configure"
12660/* confdefs.h. */
12661_ACEOF
12662cat confdefs.h >>conftest.$ac_ext
12663cat >>conftest.$ac_ext <<_ACEOF
12664/* end confdefs.h. */
12665$ac_includes_default
12666#include <$ac_header>
12667_ACEOF
12668rm -f conftest.$ac_objext
12669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12670 (eval $ac_compile) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -s conftest.$ac_objext'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12680 ac_header_compiler=yes
12681else
12682 echo "$as_me: failed program was:" >&5
12683sed 's/^/| /' conftest.$ac_ext >&5
12684
12685ac_header_compiler=no
12686fi
12687rm -f conftest.$ac_objext conftest.$ac_ext
12688echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12689echo "${ECHO_T}$ac_header_compiler" >&6
12690
12691# Is the header present?
12692echo "$as_me:$LINENO: checking $ac_header presence" >&5
12693echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12694cat >conftest.$ac_ext <<_ACEOF
12695#line $LINENO "configure"
12696/* confdefs.h. */
12697_ACEOF
12698cat confdefs.h >>conftest.$ac_ext
12699cat >>conftest.$ac_ext <<_ACEOF
12700/* end confdefs.h. */
12701#include <$ac_header>
12702_ACEOF
12703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12705 ac_status=$?
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } >/dev/null; then
12711 if test -s conftest.err; then
12712 ac_cpp_err=$ac_c_preproc_warn_flag
12713 else
12714 ac_cpp_err=
12715 fi
a0b9e27f 12716else
e6cc62c6
VS
12717 ac_cpp_err=yes
12718fi
12719if test -z "$ac_cpp_err"; then
12720 ac_header_preproc=yes
12721else
12722 echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724
12725 ac_header_preproc=no
12726fi
12727rm -f conftest.err conftest.$ac_ext
12728echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12729echo "${ECHO_T}$ac_header_preproc" >&6
12730
12731# So? What about this header?
12732case $ac_header_compiler:$ac_header_preproc in
12733 yes:no )
12734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12735echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12737echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12738 (
12739 cat <<\_ASBOX
12740## ------------------------------------ ##
12741## Report this to bug-autoconf@gnu.org. ##
12742## ------------------------------------ ##
12743_ASBOX
12744 ) |
12745 sed "s/^/$as_me: WARNING: /" >&2
12746 ;;
12747 no:yes )
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754 (
12755 cat <<\_ASBOX
12756## ------------------------------------ ##
12757## Report this to bug-autoconf@gnu.org. ##
12758## ------------------------------------ ##
12759_ASBOX
12760 ) |
12761 sed "s/^/$as_me: WARNING: /" >&2
12762 ;;
12763esac
12764echo "$as_me:$LINENO: checking for $ac_header" >&5
12765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12766if eval "test \"\${$as_ac_Header+set}\" = set"; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12768else
12769 eval "$as_ac_Header=$ac_header_preproc"
12770fi
12771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12773
12774fi
12775if test `eval echo '${'$as_ac_Header'}'` = yes; then
12776 cat >>confdefs.h <<_ACEOF
12777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12778_ACEOF
12779
d4158b5d 12780fi
e6cc62c6 12781
21d1c967 12782done
f6bcfd97 12783
e6cc62c6
VS
12784
12785for ac_header in wchar.h
12786do
12787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12788if eval "test \"\${$as_ac_Header+set}\" = set"; then
12789 echo "$as_me:$LINENO: checking for $ac_header" >&5
12790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12791if eval "test \"\${$as_ac_Header+set}\" = set"; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12793fi
12794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12796else
12797 # Is the header compilable?
12798echo "$as_me:$LINENO: checking $ac_header usability" >&5
12799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12800cat >conftest.$ac_ext <<_ACEOF
12801#line $LINENO "configure"
12802/* confdefs.h. */
12803_ACEOF
12804cat confdefs.h >>conftest.$ac_ext
12805cat >>conftest.$ac_ext <<_ACEOF
12806/* end confdefs.h. */
12807$ac_includes_default
12808#include <$ac_header>
12809_ACEOF
12810rm -f conftest.$ac_objext
12811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812 (eval $ac_compile) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -s conftest.$ac_objext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_header_compiler=yes
12823else
12824 echo "$as_me: failed program was:" >&5
12825sed 's/^/| /' conftest.$ac_ext >&5
12826
12827ac_header_compiler=no
12828fi
12829rm -f conftest.$ac_objext conftest.$ac_ext
12830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12831echo "${ECHO_T}$ac_header_compiler" >&6
12832
12833# Is the header present?
12834echo "$as_me:$LINENO: checking $ac_header presence" >&5
12835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12836cat >conftest.$ac_ext <<_ACEOF
12837#line $LINENO "configure"
12838/* confdefs.h. */
12839_ACEOF
12840cat confdefs.h >>conftest.$ac_ext
12841cat >>conftest.$ac_ext <<_ACEOF
12842/* end confdefs.h. */
12843#include <$ac_header>
12844_ACEOF
12845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12847 ac_status=$?
12848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } >/dev/null; then
12853 if test -s conftest.err; then
12854 ac_cpp_err=$ac_c_preproc_warn_flag
12855 else
12856 ac_cpp_err=
12857 fi
12858else
12859 ac_cpp_err=yes
12860fi
12861if test -z "$ac_cpp_err"; then
12862 ac_header_preproc=yes
12863else
12864 echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
12866
12867 ac_header_preproc=no
12868fi
12869rm -f conftest.err conftest.$ac_ext
12870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12871echo "${ECHO_T}$ac_header_preproc" >&6
12872
12873# So? What about this header?
12874case $ac_header_compiler:$ac_header_preproc in
12875 yes:no )
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12880 (
12881 cat <<\_ASBOX
12882## ------------------------------------ ##
12883## Report this to bug-autoconf@gnu.org. ##
12884## ------------------------------------ ##
12885_ASBOX
12886 ) |
12887 sed "s/^/$as_me: WARNING: /" >&2
12888 ;;
12889 no:yes )
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12896 (
12897 cat <<\_ASBOX
12898## ------------------------------------ ##
12899## Report this to bug-autoconf@gnu.org. ##
12900## ------------------------------------ ##
12901_ASBOX
12902 ) |
12903 sed "s/^/$as_me: WARNING: /" >&2
12904 ;;
12905esac
12906echo "$as_me:$LINENO: checking for $ac_header" >&5
12907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12908if eval "test \"\${$as_ac_Header+set}\" = set"; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12910else
12911 eval "$as_ac_Header=$ac_header_preproc"
12912fi
12913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12915
90dd450c 12916fi
e6cc62c6
VS
12917if test `eval echo '${'$as_ac_Header'}'` = yes; then
12918 cat >>confdefs.h <<_ACEOF
12919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12920_ACEOF
12921
12922fi
12923
12924done
90dd450c 12925
e6cc62c6
VS
12926
12927if test "$ac_cv_header_wchar_h" != "yes"; then
12928
12929for ac_header in wcstr.h
21d1c967 12930do
e6cc62c6
VS
12931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12932if eval "test \"\${$as_ac_Header+set}\" = set"; then
12933 echo "$as_me:$LINENO: checking for $ac_header" >&5
12934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12935if eval "test \"\${$as_ac_Header+set}\" = set"; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937fi
12938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12940else
12941 # Is the header compilable?
12942echo "$as_me:$LINENO: checking $ac_header usability" >&5
12943echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12944cat >conftest.$ac_ext <<_ACEOF
12945#line $LINENO "configure"
12946/* confdefs.h. */
12947_ACEOF
12948cat confdefs.h >>conftest.$ac_ext
12949cat >>conftest.$ac_ext <<_ACEOF
12950/* end confdefs.h. */
12951$ac_includes_default
12952#include <$ac_header>
12953_ACEOF
12954rm -f conftest.$ac_objext
12955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -s conftest.$ac_objext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_header_compiler=yes
12967else
12968 echo "$as_me: failed program was:" >&5
12969sed 's/^/| /' conftest.$ac_ext >&5
12970
12971ac_header_compiler=no
12972fi
12973rm -f conftest.$ac_objext conftest.$ac_ext
12974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12975echo "${ECHO_T}$ac_header_compiler" >&6
12976
12977# Is the header present?
12978echo "$as_me:$LINENO: checking $ac_header presence" >&5
12979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12980cat >conftest.$ac_ext <<_ACEOF
12981#line $LINENO "configure"
12982/* confdefs.h. */
12983_ACEOF
12984cat confdefs.h >>conftest.$ac_ext
12985cat >>conftest.$ac_ext <<_ACEOF
12986/* end confdefs.h. */
12987#include <$ac_header>
12988_ACEOF
12989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12991 ac_status=$?
12992 grep -v '^ *+' conftest.er1 >conftest.err
12993 rm -f conftest.er1
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } >/dev/null; then
12997 if test -s conftest.err; then
12998 ac_cpp_err=$ac_c_preproc_warn_flag
12999 else
13000 ac_cpp_err=
13001 fi
13002else
13003 ac_cpp_err=yes
13004fi
13005if test -z "$ac_cpp_err"; then
13006 ac_header_preproc=yes
13007else
13008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
13011 ac_header_preproc=no
13012fi
13013rm -f conftest.err conftest.$ac_ext
13014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13015echo "${ECHO_T}$ac_header_preproc" >&6
13016
13017# So? What about this header?
13018case $ac_header_compiler:$ac_header_preproc in
13019 yes:no )
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13023echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13024 (
13025 cat <<\_ASBOX
13026## ------------------------------------ ##
13027## Report this to bug-autoconf@gnu.org. ##
13028## ------------------------------------ ##
13029_ASBOX
13030 ) |
13031 sed "s/^/$as_me: WARNING: /" >&2
13032 ;;
13033 no:yes )
13034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13040 (
13041 cat <<\_ASBOX
13042## ------------------------------------ ##
13043## Report this to bug-autoconf@gnu.org. ##
13044## ------------------------------------ ##
13045_ASBOX
13046 ) |
13047 sed "s/^/$as_me: WARNING: /" >&2
13048 ;;
13049esac
13050echo "$as_me:$LINENO: checking for $ac_header" >&5
13051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13052if eval "test \"\${$as_ac_Header+set}\" = set"; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13054else
13055 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13056fi
e6cc62c6
VS
13057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13059
4f14bcd8 13060fi
e6cc62c6
VS
13061if test `eval echo '${'$as_ac_Header'}'` = yes; then
13062 cat >>confdefs.h <<_ACEOF
13063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13064_ACEOF
13065
13066fi
13067
13068done
13069
13070fi
13071
13072
13073for ac_header in fnmatch.h
13074do
13075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13076if eval "test \"\${$as_ac_Header+set}\" = set"; then
13077 echo "$as_me:$LINENO: checking for $ac_header" >&5
13078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13079if eval "test \"\${$as_ac_Header+set}\" = set"; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081fi
13082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13084else
13085 # Is the header compilable?
13086echo "$as_me:$LINENO: checking $ac_header usability" >&5
13087echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13088cat >conftest.$ac_ext <<_ACEOF
13089#line $LINENO "configure"
13090/* confdefs.h. */
13091_ACEOF
13092cat confdefs.h >>conftest.$ac_ext
13093cat >>conftest.$ac_ext <<_ACEOF
13094/* end confdefs.h. */
13095$ac_includes_default
13096#include <$ac_header>
13097_ACEOF
13098rm -f conftest.$ac_objext
13099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13100 (eval $ac_compile) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -s conftest.$ac_objext'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 ac_header_compiler=yes
13111else
13112 echo "$as_me: failed program was:" >&5
13113sed 's/^/| /' conftest.$ac_ext >&5
13114
13115ac_header_compiler=no
13116fi
13117rm -f conftest.$ac_objext conftest.$ac_ext
13118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13119echo "${ECHO_T}$ac_header_compiler" >&6
13120
13121# Is the header present?
13122echo "$as_me:$LINENO: checking $ac_header presence" >&5
13123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13124cat >conftest.$ac_ext <<_ACEOF
13125#line $LINENO "configure"
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131#include <$ac_header>
13132_ACEOF
13133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13135 ac_status=$?
13136 grep -v '^ *+' conftest.er1 >conftest.err
13137 rm -f conftest.er1
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } >/dev/null; then
13141 if test -s conftest.err; then
13142 ac_cpp_err=$ac_c_preproc_warn_flag
13143 else
13144 ac_cpp_err=
13145 fi
13146else
13147 ac_cpp_err=yes
13148fi
13149if test -z "$ac_cpp_err"; then
13150 ac_header_preproc=yes
13151else
13152 echo "$as_me: failed program was:" >&5
13153sed 's/^/| /' conftest.$ac_ext >&5
13154
13155 ac_header_preproc=no
13156fi
13157rm -f conftest.err conftest.$ac_ext
13158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13159echo "${ECHO_T}$ac_header_preproc" >&6
13160
13161# So? What about this header?
13162case $ac_header_compiler:$ac_header_preproc in
13163 yes:no )
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13167echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13168 (
13169 cat <<\_ASBOX
13170## ------------------------------------ ##
13171## Report this to bug-autoconf@gnu.org. ##
13172## ------------------------------------ ##
13173_ASBOX
13174 ) |
13175 sed "s/^/$as_me: WARNING: /" >&2
13176 ;;
13177 no:yes )
13178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13184 (
13185 cat <<\_ASBOX
13186## ------------------------------------ ##
13187## Report this to bug-autoconf@gnu.org. ##
13188## ------------------------------------ ##
13189_ASBOX
13190 ) |
13191 sed "s/^/$as_me: WARNING: /" >&2
13192 ;;
13193esac
13194echo "$as_me:$LINENO: checking for $ac_header" >&5
13195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13196if eval "test \"\${$as_ac_Header+set}\" = set"; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13198else
e6cc62c6
VS
13199 eval "$as_ac_Header=$ac_header_preproc"
13200fi
13201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13203
21d1c967 13204fi
e6cc62c6
VS
13205if test `eval echo '${'$as_ac_Header'}'` = yes; then
13206 cat >>confdefs.h <<_ACEOF
13207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13208_ACEOF
13209
13210fi
13211
21d1c967 13212done
90dd450c 13213
5c6fa7d2 13214
a0b9e27f 13215if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13216
13217for ac_func in fnmatch
21d1c967 13218do
e6cc62c6
VS
13219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13220echo "$as_me:$LINENO: checking for $ac_func" >&5
13221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13222if eval "test \"\${$as_ac_var+set}\" = set"; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13224else
13225 cat >conftest.$ac_ext <<_ACEOF
13226#line $LINENO "configure"
13227/* confdefs.h. */
13228_ACEOF
13229cat confdefs.h >>conftest.$ac_ext
13230cat >>conftest.$ac_ext <<_ACEOF
13231/* end confdefs.h. */
a0b9e27f 13232/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13233 which can conflict with char $ac_func (); below.
13234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13235 <limits.h> exists even on freestanding compilers. */
13236#ifdef __STDC__
13237# include <limits.h>
13238#else
13239# include <assert.h>
13240#endif
a0b9e27f 13241/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13242#ifdef __cplusplus
13243extern "C"
13244{
13245#endif
a0b9e27f 13246/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13247 builtin and then its argument prototype would still apply. */
13248char $ac_func ();
a0b9e27f
MB
13249/* The GNU C library defines this for functions which it implements
13250 to always fail with ENOSYS. Some functions are actually named
13251 something starting with __ and the normal name is an alias. */
13252#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13253choke me
13254#else
e6cc62c6
VS
13255char (*f) () = $ac_func;
13256#endif
13257#ifdef __cplusplus
13258}
a0b9e27f
MB
13259#endif
13260
e6cc62c6
VS
13261int
13262main ()
13263{
13264return f != $ac_func;
13265 ;
13266 return 0;
13267}
13268_ACEOF
13269rm -f conftest.$ac_objext conftest$ac_exeext
13270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13271 (eval $ac_link) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -s conftest$ac_exeext'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 eval "$as_ac_var=yes"
13282else
13283 echo "$as_me: failed program was:" >&5
13284sed 's/^/| /' conftest.$ac_ext >&5
13285
13286eval "$as_ac_var=no"
13287fi
13288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13289fi
13290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13291echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13292if test `eval echo '${'$as_ac_var'}'` = yes; then
13293 cat >>confdefs.h <<_ACEOF
13294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13295_ACEOF
32832908 13296
21d1c967
GD
13297fi
13298done
90dd450c 13299
a0b9e27f 13300fi
90dd450c 13301
e6cc62c6
VS
13302
13303for ac_header in langinfo.h
21d1c967 13304do
e6cc62c6
VS
13305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13306if eval "test \"\${$as_ac_Header+set}\" = set"; then
13307 echo "$as_me:$LINENO: checking for $ac_header" >&5
13308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13309if eval "test \"\${$as_ac_Header+set}\" = set"; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311fi
13312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13314else
13315 # Is the header compilable?
13316echo "$as_me:$LINENO: checking $ac_header usability" >&5
13317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13318cat >conftest.$ac_ext <<_ACEOF
13319#line $LINENO "configure"
13320/* confdefs.h. */
13321_ACEOF
13322cat confdefs.h >>conftest.$ac_ext
13323cat >>conftest.$ac_ext <<_ACEOF
13324/* end confdefs.h. */
13325$ac_includes_default
13326#include <$ac_header>
13327_ACEOF
13328rm -f conftest.$ac_objext
13329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13330 (eval $ac_compile) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } &&
13334 { ac_try='test -s conftest.$ac_objext'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_header_compiler=yes
13341else
13342 echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345ac_header_compiler=no
13346fi
13347rm -f conftest.$ac_objext conftest.$ac_ext
13348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13349echo "${ECHO_T}$ac_header_compiler" >&6
13350
13351# Is the header present?
13352echo "$as_me:$LINENO: checking $ac_header presence" >&5
13353echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13354cat >conftest.$ac_ext <<_ACEOF
13355#line $LINENO "configure"
13356/* confdefs.h. */
13357_ACEOF
13358cat confdefs.h >>conftest.$ac_ext
13359cat >>conftest.$ac_ext <<_ACEOF
13360/* end confdefs.h. */
13361#include <$ac_header>
13362_ACEOF
13363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } >/dev/null; then
13371 if test -s conftest.err; then
13372 ac_cpp_err=$ac_c_preproc_warn_flag
13373 else
13374 ac_cpp_err=
13375 fi
13376else
13377 ac_cpp_err=yes
13378fi
13379if test -z "$ac_cpp_err"; then
13380 ac_header_preproc=yes
13381else
13382 echo "$as_me: failed program was:" >&5
13383sed 's/^/| /' conftest.$ac_ext >&5
13384
13385 ac_header_preproc=no
13386fi
13387rm -f conftest.err conftest.$ac_ext
13388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13389echo "${ECHO_T}$ac_header_preproc" >&6
13390
13391# So? What about this header?
13392case $ac_header_compiler:$ac_header_preproc in
13393 yes:no )
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13397echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13398 (
13399 cat <<\_ASBOX
13400## ------------------------------------ ##
13401## Report this to bug-autoconf@gnu.org. ##
13402## ------------------------------------ ##
13403_ASBOX
13404 ) |
13405 sed "s/^/$as_me: WARNING: /" >&2
13406 ;;
13407 no:yes )
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13411echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13413echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13414 (
13415 cat <<\_ASBOX
13416## ------------------------------------ ##
13417## Report this to bug-autoconf@gnu.org. ##
13418## ------------------------------------ ##
13419_ASBOX
13420 ) |
13421 sed "s/^/$as_me: WARNING: /" >&2
13422 ;;
13423esac
13424echo "$as_me:$LINENO: checking for $ac_header" >&5
13425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13426if eval "test \"\${$as_ac_Header+set}\" = set"; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13428else
13429 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13430fi
e6cc62c6
VS
13431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13433
4f14bcd8 13434fi
e6cc62c6
VS
13435if test `eval echo '${'$as_ac_Header'}'` = yes; then
13436 cat >>confdefs.h <<_ACEOF
13437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13438_ACEOF
13439
21d1c967 13440fi
e6cc62c6 13441
21d1c967 13442done
3a922bb4 13443
8284b0c5 13444
4f5a7f74
VZ
13445case "${host}" in
13446 *-pc-os2_emx | *-pc-os2-emx )
13447 if test $ac_cv_header_langinfo_h = "yes"; then
13448 LIBS="$LIBS -lintl"
13449 fi
13450 ;;
13451esac
1542ea39 13452
a0b9e27f
MB
13453if test "$wxUSE_GUI" = "yes"; then
13454 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
13455
13456for ac_header in X11/XKBlib.h
21d1c967 13457do
e6cc62c6
VS
13458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13459if eval "test \"\${$as_ac_Header+set}\" = set"; then
13460 echo "$as_me:$LINENO: checking for $ac_header" >&5
13461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13462if eval "test \"\${$as_ac_Header+set}\" = set"; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13464fi
13465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13467else
13468 # Is the header compilable?
13469echo "$as_me:$LINENO: checking $ac_header usability" >&5
13470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13471cat >conftest.$ac_ext <<_ACEOF
13472#line $LINENO "configure"
13473/* confdefs.h. */
13474_ACEOF
13475cat confdefs.h >>conftest.$ac_ext
13476cat >>conftest.$ac_ext <<_ACEOF
13477/* end confdefs.h. */
13478$ac_includes_default
13479#include <$ac_header>
13480_ACEOF
13481rm -f conftest.$ac_objext
13482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13483 (eval $ac_compile) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } &&
13487 { ac_try='test -s conftest.$ac_objext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 ac_header_compiler=yes
13494else
13495 echo "$as_me: failed program was:" >&5
13496sed 's/^/| /' conftest.$ac_ext >&5
13497
13498ac_header_compiler=no
13499fi
13500rm -f conftest.$ac_objext conftest.$ac_ext
13501echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13502echo "${ECHO_T}$ac_header_compiler" >&6
13503
13504# Is the header present?
13505echo "$as_me:$LINENO: checking $ac_header presence" >&5
13506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13507cat >conftest.$ac_ext <<_ACEOF
13508#line $LINENO "configure"
13509/* confdefs.h. */
13510_ACEOF
13511cat confdefs.h >>conftest.$ac_ext
13512cat >>conftest.$ac_ext <<_ACEOF
13513/* end confdefs.h. */
13514#include <$ac_header>
13515_ACEOF
13516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13518 ac_status=$?
13519 grep -v '^ *+' conftest.er1 >conftest.err
13520 rm -f conftest.er1
13521 cat conftest.err >&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } >/dev/null; then
13524 if test -s conftest.err; then
13525 ac_cpp_err=$ac_c_preproc_warn_flag
13526 else
13527 ac_cpp_err=
13528 fi
13529else
13530 ac_cpp_err=yes
13531fi
13532if test -z "$ac_cpp_err"; then
13533 ac_header_preproc=yes
13534else
13535 echo "$as_me: failed program was:" >&5
13536sed 's/^/| /' conftest.$ac_ext >&5
13537
13538 ac_header_preproc=no
13539fi
13540rm -f conftest.err conftest.$ac_ext
13541echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13542echo "${ECHO_T}$ac_header_preproc" >&6
13543
13544# So? What about this header?
13545case $ac_header_compiler:$ac_header_preproc in
13546 yes:no )
13547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13551 (
13552 cat <<\_ASBOX
13553## ------------------------------------ ##
13554## Report this to bug-autoconf@gnu.org. ##
13555## ------------------------------------ ##
13556_ASBOX
13557 ) |
13558 sed "s/^/$as_me: WARNING: /" >&2
13559 ;;
13560 no:yes )
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13567 (
13568 cat <<\_ASBOX
13569## ------------------------------------ ##
13570## Report this to bug-autoconf@gnu.org. ##
13571## ------------------------------------ ##
13572_ASBOX
13573 ) |
13574 sed "s/^/$as_me: WARNING: /" >&2
13575 ;;
13576esac
13577echo "$as_me:$LINENO: checking for $ac_header" >&5
13578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13579if eval "test \"\${$as_ac_Header+set}\" = set"; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581else
13582 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13583fi
e6cc62c6
VS
13584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13586
90dd450c 13587fi
e6cc62c6
VS
13588if test `eval echo '${'$as_ac_Header'}'` = yes; then
13589 cat >>confdefs.h <<_ACEOF
13590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13591_ACEOF
13592
247f5006 13593fi
e6cc62c6 13594
247f5006
VZ
13595done
13596
a0b9e27f
MB
13597 fi
13598fi
247f5006 13599
247f5006 13600
e6cc62c6
VS
13601echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13602echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13603if test "${ac_cv_c_const+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605else
13606 cat >conftest.$ac_ext <<_ACEOF
13607#line $LINENO "configure"
13608/* confdefs.h. */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h. */
13613
13614int
13615main ()
13616{
13617/* FIXME: Include the comments suggested by Paul. */
13618#ifndef __cplusplus
13619 /* Ultrix mips cc rejects this. */
13620 typedef int charset[2];
13621 const charset x;
13622 /* SunOS 4.1.1 cc rejects this. */
13623 char const *const *ccp;
13624 char **p;
13625 /* NEC SVR4.0.2 mips cc rejects this. */
13626 struct point {int x, y;};
13627 static struct point const zero = {0,0};
13628 /* AIX XL C 1.02.0.0 rejects this.
13629 It does not let you subtract one const X* pointer from another in
13630 an arm of an if-expression whose if-part is not a constant
13631 expression */
13632 const char *g = "string";
13633 ccp = &g + (g ? g-g : 0);
13634 /* HPUX 7.0 cc rejects these. */
13635 ++ccp;
13636 p = (char**) ccp;
13637 ccp = (char const *const *) p;
13638 { /* SCO 3.2v4 cc rejects this. */
13639 char *t;
13640 char const *s = 0 ? (char *) 0 : (char const *) 0;
13641
13642 *t++ = 0;
13643 }
13644 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13645 int x[] = {25, 17};
13646 const int *foo = &x[0];
13647 ++foo;
13648 }
13649 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13650 typedef const int *iptr;
13651 iptr p = 0;
13652 ++p;
13653 }
13654 { /* AIX XL C 1.02.0.0 rejects this saying
13655 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13656 struct s { int j; const int *ap[3]; };
13657 struct s *b; b->j = 5;
13658 }
13659 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13660 const int foo = 10;
13661 }
13662#endif
13663
13664 ;
13665 return 0;
13666}
13667_ACEOF
13668rm -f conftest.$ac_objext
13669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
a0b9e27f 13680 ac_cv_c_const=yes
247f5006 13681else
e6cc62c6
VS
13682 echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685ac_cv_c_const=no
247f5006 13686fi
e6cc62c6 13687rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13688fi
e6cc62c6
VS
13689echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13690echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13691if test $ac_cv_c_const = no; then
e6cc62c6
VS
13692
13693cat >>confdefs.h <<\_ACEOF
13694#define const
13695_ACEOF
10f2d63a 13696
90dd450c 13697fi
81809c07 13698
e6cc62c6
VS
13699echo "$as_me:$LINENO: checking for inline" >&5
13700echo $ECHO_N "checking for inline... $ECHO_C" >&6
13701if test "${ac_cv_c_inline+set}" = set; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13703else
a0b9e27f
MB
13704 ac_cv_c_inline=no
13705for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13706 cat >conftest.$ac_ext <<_ACEOF
13707#line $LINENO "configure"
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713#ifndef __cplusplus
13714typedef int foo_t;
13715static $ac_kw foo_t static_foo () {return 0; }
13716$ac_kw foo_t foo () {return 0; }
13717#endif
a0b9e27f 13718
e6cc62c6
VS
13719_ACEOF
13720rm -f conftest.$ac_objext
13721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13722 (eval $ac_compile) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -s conftest.$ac_objext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
a0b9e27f 13732 ac_cv_c_inline=$ac_kw; break
247f5006 13733else
e6cc62c6
VS
13734 echo "$as_me: failed program was:" >&5
13735sed 's/^/| /' conftest.$ac_ext >&5
13736
247f5006 13737fi
e6cc62c6 13738rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13739done
247f5006
VZ
13740
13741fi
e6cc62c6
VS
13742echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13743echo "${ECHO_T}$ac_cv_c_inline" >&6
13744case $ac_cv_c_inline in
a0b9e27f 13745 inline | yes) ;;
e6cc62c6
VS
13746 no)
13747cat >>confdefs.h <<\_ACEOF
13748#define inline
13749_ACEOF
a0b9e27f 13750 ;;
e6cc62c6 13751 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13752#define inline $ac_cv_c_inline
e6cc62c6 13753_ACEOF
a0b9e27f
MB
13754 ;;
13755esac
247f5006 13756
247f5006 13757
e6cc62c6
VS
13758echo "$as_me:$LINENO: checking for char" >&5
13759echo $ECHO_N "checking for char... $ECHO_C" >&6
13760if test "${ac_cv_type_char+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762else
13763 cat >conftest.$ac_ext <<_ACEOF
13764#line $LINENO "configure"
13765/* confdefs.h. */
13766_ACEOF
13767cat confdefs.h >>conftest.$ac_ext
13768cat >>conftest.$ac_ext <<_ACEOF
13769/* end confdefs.h. */
13770$ac_includes_default
13771int
13772main ()
13773{
13774if ((char *) 0)
13775 return 0;
13776if (sizeof (char))
13777 return 0;
13778 ;
13779 return 0;
13780}
13781_ACEOF
13782rm -f conftest.$ac_objext
13783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13784 (eval $ac_compile) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -s conftest.$ac_objext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_cv_type_char=yes
13795else
13796 echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
13799ac_cv_type_char=no
13800fi
13801rm -f conftest.$ac_objext conftest.$ac_ext
13802fi
13803echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13804echo "${ECHO_T}$ac_cv_type_char" >&6
13805
13806echo "$as_me:$LINENO: checking size of char" >&5
13807echo $ECHO_N "checking size of char... $ECHO_C" >&6
13808if test "${ac_cv_sizeof_char+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810else
13811 if test "$ac_cv_type_char" = yes; then
13812 # The cast to unsigned long works around a bug in the HP C Compiler
13813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13815 # This bug is HP SR number 8606223364.
a0b9e27f 13816 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13817 # Depending upon the size, compute the lo and hi bounds.
13818cat >conftest.$ac_ext <<_ACEOF
13819#line $LINENO "configure"
13820/* confdefs.h. */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
13824/* end confdefs.h. */
13825$ac_includes_default
13826int
13827main ()
13828{
13829static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13830test_array [0] = 0
13831
13832 ;
13833 return 0;
13834}
13835_ACEOF
13836rm -f conftest.$ac_objext
13837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838 (eval $ac_compile) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -s conftest.$ac_objext'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 ac_lo=0 ac_mid=0
13849 while :; do
13850 cat >conftest.$ac_ext <<_ACEOF
13851#line $LINENO "configure"
13852/* confdefs.h. */
13853_ACEOF
13854cat confdefs.h >>conftest.$ac_ext
13855cat >>conftest.$ac_ext <<_ACEOF
13856/* end confdefs.h. */
13857$ac_includes_default
13858int
13859main ()
13860{
13861static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13862test_array [0] = 0
13863
13864 ;
13865 return 0;
13866}
13867_ACEOF
13868rm -f conftest.$ac_objext
13869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13870 (eval $ac_compile) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -s conftest.$ac_objext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_hi=$ac_mid; break
13881else
13882 echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
13885ac_lo=`expr $ac_mid + 1`
13886 if test $ac_lo -le $ac_mid; then
13887 ac_lo= ac_hi=
13888 break
13889 fi
13890 ac_mid=`expr 2 '*' $ac_mid + 1`
13891fi
13892rm -f conftest.$ac_objext conftest.$ac_ext
13893 done
a0b9e27f 13894else
e6cc62c6
VS
13895 echo "$as_me: failed program was:" >&5
13896sed 's/^/| /' conftest.$ac_ext >&5
13897
13898cat >conftest.$ac_ext <<_ACEOF
13899#line $LINENO "configure"
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
13904/* end confdefs.h. */
13905$ac_includes_default
13906int
13907main ()
13908{
13909static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13910test_array [0] = 0
13911
13912 ;
13913 return 0;
13914}
13915_ACEOF
13916rm -f conftest.$ac_objext
13917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13918 (eval $ac_compile) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } &&
13922 { ac_try='test -s conftest.$ac_objext'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13928 ac_hi=-1 ac_mid=-1
13929 while :; do
13930 cat >conftest.$ac_ext <<_ACEOF
13931#line $LINENO "configure"
13932/* confdefs.h. */
13933_ACEOF
13934cat confdefs.h >>conftest.$ac_ext
13935cat >>conftest.$ac_ext <<_ACEOF
13936/* end confdefs.h. */
13937$ac_includes_default
13938int
13939main ()
13940{
13941static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13942test_array [0] = 0
13943
13944 ;
13945 return 0;
13946}
13947_ACEOF
13948rm -f conftest.$ac_objext
13949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950 (eval $ac_compile) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_lo=$ac_mid; break
13961else
13962 echo "$as_me: failed program was:" >&5
13963sed 's/^/| /' conftest.$ac_ext >&5
13964
13965ac_hi=`expr '(' $ac_mid ')' - 1`
13966 if test $ac_mid -le $ac_hi; then
13967 ac_lo= ac_hi=
13968 break
13969 fi
13970 ac_mid=`expr 2 '*' $ac_mid`
13971fi
13972rm -f conftest.$ac_objext conftest.$ac_ext
13973 done
13974else
13975 echo "$as_me: failed program was:" >&5
13976sed 's/^/| /' conftest.$ac_ext >&5
13977
13978ac_lo= ac_hi=
13979fi
13980rm -f conftest.$ac_objext conftest.$ac_ext
13981fi
13982rm -f conftest.$ac_objext conftest.$ac_ext
13983# Binary search between lo and hi bounds.
13984while test "x$ac_lo" != "x$ac_hi"; do
13985 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13986 cat >conftest.$ac_ext <<_ACEOF
13987#line $LINENO "configure"
13988/* confdefs.h. */
13989_ACEOF
13990cat confdefs.h >>conftest.$ac_ext
13991cat >>conftest.$ac_ext <<_ACEOF
13992/* end confdefs.h. */
13993$ac_includes_default
13994int
13995main ()
13996{
13997static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13998test_array [0] = 0
13999
14000 ;
14001 return 0;
14002}
14003_ACEOF
14004rm -f conftest.$ac_objext
14005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_hi=$ac_mid
14017else
14018 echo "$as_me: failed program was:" >&5
14019sed 's/^/| /' conftest.$ac_ext >&5
14020
14021ac_lo=`expr '(' $ac_mid ')' + 1`
14022fi
14023rm -f conftest.$ac_objext conftest.$ac_ext
14024done
14025case $ac_lo in
14026?*) ac_cv_sizeof_char=$ac_lo;;
14027'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14028See \`config.log' for more details." >&5
14029echo "$as_me: error: cannot compute sizeof (char), 77
14030See \`config.log' for more details." >&2;}
14031 { (exit 1); exit 1; }; } ;;
14032esac
14033else
14034 if test "$cross_compiling" = yes; then
14035 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14036See \`config.log' for more details." >&5
14037echo "$as_me: error: cannot run test program while cross compiling
14038See \`config.log' for more details." >&2;}
14039 { (exit 1); exit 1; }; }
14040else
14041 cat >conftest.$ac_ext <<_ACEOF
14042#line $LINENO "configure"
14043/* confdefs.h. */
14044_ACEOF
14045cat confdefs.h >>conftest.$ac_ext
14046cat >>conftest.$ac_ext <<_ACEOF
14047/* end confdefs.h. */
14048$ac_includes_default
14049long longval () { return (long) (sizeof (char)); }
14050unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14051#include <stdio.h>
e6cc62c6
VS
14052#include <stdlib.h>
14053int
14054main ()
247f5006 14055{
e6cc62c6
VS
14056
14057 FILE *f = fopen ("conftest.val", "w");
14058 if (! f)
14059 exit (1);
14060 if (((long) (sizeof (char))) < 0)
14061 {
14062 long i = longval ();
14063 if (i != ((long) (sizeof (char))))
14064 exit (1);
14065 fprintf (f, "%ld\n", i);
14066 }
14067 else
14068 {
14069 unsigned long i = ulongval ();
14070 if (i != ((long) (sizeof (char))))
14071 exit (1);
14072 fprintf (f, "%lu\n", i);
14073 }
14074 exit (ferror (f) || fclose (f) != 0);
14075
14076 ;
14077 return 0;
52127426 14078}
e6cc62c6
VS
14079_ACEOF
14080rm -f conftest$ac_exeext
14081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082 (eval $ac_link) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14091 ac_cv_sizeof_char=`cat conftest.val`
14092else
14093 echo "$as_me: program exited with status $ac_status" >&5
14094echo "$as_me: failed program was:" >&5
14095sed 's/^/| /' conftest.$ac_ext >&5
14096
14097( exit $ac_status )
14098{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14099See \`config.log' for more details." >&5
14100echo "$as_me: error: cannot compute sizeof (char), 77
14101See \`config.log' for more details." >&2;}
14102 { (exit 1); exit 1; }; }
14103fi
14104rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14105fi
14106fi
14107rm -f conftest.val
247f5006 14108else
a0b9e27f 14109 ac_cv_sizeof_char=0
247f5006 14110fi
247f5006 14111fi
e6cc62c6
VS
14112echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14113echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14114cat >>confdefs.h <<_ACEOF
14115#define SIZEOF_CHAR $ac_cv_sizeof_char
14116_ACEOF
14117
14118
14119echo "$as_me:$LINENO: checking for short" >&5
14120echo $ECHO_N "checking for short... $ECHO_C" >&6
14121if test "${ac_cv_type_short+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14123else
14124 cat >conftest.$ac_ext <<_ACEOF
14125#line $LINENO "configure"
14126/* confdefs.h. */
14127_ACEOF
14128cat confdefs.h >>conftest.$ac_ext
14129cat >>conftest.$ac_ext <<_ACEOF
14130/* end confdefs.h. */
14131$ac_includes_default
14132int
14133main ()
14134{
14135if ((short *) 0)
14136 return 0;
14137if (sizeof (short))
14138 return 0;
14139 ;
14140 return 0;
14141}
14142_ACEOF
14143rm -f conftest.$ac_objext
14144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14145 (eval $ac_compile) 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try='test -s conftest.$ac_objext'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 ac_cv_type_short=yes
14156else
14157 echo "$as_me: failed program was:" >&5
14158sed 's/^/| /' conftest.$ac_ext >&5
14159
14160ac_cv_type_short=no
14161fi
14162rm -f conftest.$ac_objext conftest.$ac_ext
14163fi
14164echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14165echo "${ECHO_T}$ac_cv_type_short" >&6
14166
14167echo "$as_me:$LINENO: checking size of short" >&5
14168echo $ECHO_N "checking size of short... $ECHO_C" >&6
14169if test "${ac_cv_sizeof_short+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14171else
14172 if test "$ac_cv_type_short" = yes; then
14173 # The cast to unsigned long works around a bug in the HP C Compiler
14174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14176 # This bug is HP SR number 8606223364.
14177 if test "$cross_compiling" = yes; then
14178 # Depending upon the size, compute the lo and hi bounds.
14179cat >conftest.$ac_ext <<_ACEOF
14180#line $LINENO "configure"
14181/* confdefs.h. */
14182_ACEOF
14183cat confdefs.h >>conftest.$ac_ext
14184cat >>conftest.$ac_ext <<_ACEOF
14185/* end confdefs.h. */
14186$ac_includes_default
14187int
14188main ()
14189{
14190static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14191test_array [0] = 0
247f5006 14192
e6cc62c6
VS
14193 ;
14194 return 0;
14195}
14196_ACEOF
14197rm -f conftest.$ac_objext
14198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14199 (eval $ac_compile) 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } &&
14203 { ac_try='test -s conftest.$ac_objext'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }; then
14209 ac_lo=0 ac_mid=0
14210 while :; do
14211 cat >conftest.$ac_ext <<_ACEOF
14212#line $LINENO "configure"
14213/* confdefs.h. */
14214_ACEOF
14215cat confdefs.h >>conftest.$ac_ext
14216cat >>conftest.$ac_ext <<_ACEOF
14217/* end confdefs.h. */
14218$ac_includes_default
14219int
14220main ()
14221{
14222static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14223test_array [0] = 0
14224
14225 ;
14226 return 0;
14227}
14228_ACEOF
14229rm -f conftest.$ac_objext
14230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14231 (eval $ac_compile) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
14235 { ac_try='test -s conftest.$ac_objext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_hi=$ac_mid; break
14242else
14243 echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246ac_lo=`expr $ac_mid + 1`
14247 if test $ac_lo -le $ac_mid; then
14248 ac_lo= ac_hi=
14249 break
14250 fi
14251 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14252fi
e6cc62c6
VS
14253rm -f conftest.$ac_objext conftest.$ac_ext
14254 done
14255else
14256 echo "$as_me: failed program was:" >&5
14257sed 's/^/| /' conftest.$ac_ext >&5
14258
14259cat >conftest.$ac_ext <<_ACEOF
14260#line $LINENO "configure"
14261/* confdefs.h. */
14262_ACEOF
14263cat confdefs.h >>conftest.$ac_ext
14264cat >>conftest.$ac_ext <<_ACEOF
14265/* end confdefs.h. */
14266$ac_includes_default
14267int
14268main ()
14269{
14270static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14271test_array [0] = 0
247f5006 14272
e6cc62c6
VS
14273 ;
14274 return 0;
14275}
14276_ACEOF
14277rm -f conftest.$ac_objext
14278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14279 (eval $ac_compile) 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14289 ac_hi=-1 ac_mid=-1
14290 while :; do
14291 cat >conftest.$ac_ext <<_ACEOF
14292#line $LINENO "configure"
14293/* confdefs.h. */
14294_ACEOF
14295cat confdefs.h >>conftest.$ac_ext
14296cat >>conftest.$ac_ext <<_ACEOF
14297/* end confdefs.h. */
14298$ac_includes_default
14299int
14300main ()
14301{
14302static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14303test_array [0] = 0
247f5006 14304
e6cc62c6
VS
14305 ;
14306 return 0;
14307}
14308_ACEOF
14309rm -f conftest.$ac_objext
14310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311 (eval $ac_compile) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -s conftest.$ac_objext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 ac_lo=$ac_mid; break
14322else
14323 echo "$as_me: failed program was:" >&5
14324sed 's/^/| /' conftest.$ac_ext >&5
14325
14326ac_hi=`expr '(' $ac_mid ')' - 1`
14327 if test $ac_mid -le $ac_hi; then
14328 ac_lo= ac_hi=
14329 break
14330 fi
14331 ac_mid=`expr 2 '*' $ac_mid`
14332fi
14333rm -f conftest.$ac_objext conftest.$ac_ext
14334 done
247f5006 14335else
e6cc62c6
VS
14336 echo "$as_me: failed program was:" >&5
14337sed 's/^/| /' conftest.$ac_ext >&5
14338
14339ac_lo= ac_hi=
14340fi
14341rm -f conftest.$ac_objext conftest.$ac_ext
14342fi
14343rm -f conftest.$ac_objext conftest.$ac_ext
14344# Binary search between lo and hi bounds.
14345while test "x$ac_lo" != "x$ac_hi"; do
14346 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14347 cat >conftest.$ac_ext <<_ACEOF
14348#line $LINENO "configure"
14349/* confdefs.h. */
14350_ACEOF
14351cat confdefs.h >>conftest.$ac_ext
14352cat >>conftest.$ac_ext <<_ACEOF
14353/* end confdefs.h. */
14354$ac_includes_default
14355int
14356main ()
14357{
14358static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14359test_array [0] = 0
14360
14361 ;
14362 return 0;
14363}
14364_ACEOF
14365rm -f conftest.$ac_objext
14366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14367 (eval $ac_compile) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
14371 { ac_try='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_hi=$ac_mid
14378else
14379 echo "$as_me: failed program was:" >&5
14380sed 's/^/| /' conftest.$ac_ext >&5
14381
14382ac_lo=`expr '(' $ac_mid ')' + 1`
14383fi
14384rm -f conftest.$ac_objext conftest.$ac_ext
14385done
14386case $ac_lo in
14387?*) ac_cv_sizeof_short=$ac_lo;;
14388'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14389See \`config.log' for more details." >&5
14390echo "$as_me: error: cannot compute sizeof (short), 77
14391See \`config.log' for more details." >&2;}
14392 { (exit 1); exit 1; }; } ;;
14393esac
247f5006 14394else
e6cc62c6
VS
14395 if test "$cross_compiling" = yes; then
14396 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14397See \`config.log' for more details." >&5
14398echo "$as_me: error: cannot run test program while cross compiling
14399See \`config.log' for more details." >&2;}
14400 { (exit 1); exit 1; }; }
14401else
14402 cat >conftest.$ac_ext <<_ACEOF
14403#line $LINENO "configure"
14404/* confdefs.h. */
14405_ACEOF
14406cat confdefs.h >>conftest.$ac_ext
14407cat >>conftest.$ac_ext <<_ACEOF
14408/* end confdefs.h. */
14409$ac_includes_default
14410long longval () { return (long) (sizeof (short)); }
14411unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14412#include <stdio.h>
e6cc62c6
VS
14413#include <stdlib.h>
14414int
14415main ()
a0b9e27f 14416{
e6cc62c6
VS
14417
14418 FILE *f = fopen ("conftest.val", "w");
14419 if (! f)
14420 exit (1);
14421 if (((long) (sizeof (short))) < 0)
14422 {
14423 long i = longval ();
14424 if (i != ((long) (sizeof (short))))
14425 exit (1);
14426 fprintf (f, "%ld\n", i);
14427 }
14428 else
14429 {
14430 unsigned long i = ulongval ();
14431 if (i != ((long) (sizeof (short))))
14432 exit (1);
14433 fprintf (f, "%lu\n", i);
14434 }
14435 exit (ferror (f) || fclose (f) != 0);
14436
14437 ;
14438 return 0;
a0b9e27f 14439}
e6cc62c6
VS
14440_ACEOF
14441rm -f conftest$ac_exeext
14442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443 (eval $ac_link) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14449 ac_status=$?
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; }; then
14452 ac_cv_sizeof_short=`cat conftest.val`
14453else
14454 echo "$as_me: program exited with status $ac_status" >&5
14455echo "$as_me: failed program was:" >&5
14456sed 's/^/| /' conftest.$ac_ext >&5
14457
14458( exit $ac_status )
14459{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14460See \`config.log' for more details." >&5
14461echo "$as_me: error: cannot compute sizeof (short), 77
14462See \`config.log' for more details." >&2;}
14463 { (exit 1); exit 1; }; }
14464fi
14465rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14466fi
14467fi
14468rm -f conftest.val
247f5006 14469else
a0b9e27f 14470 ac_cv_sizeof_short=0
247f5006 14471fi
247f5006 14472fi
e6cc62c6
VS
14473echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14474echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14475cat >>confdefs.h <<_ACEOF
14476#define SIZEOF_SHORT $ac_cv_sizeof_short
14477_ACEOF
14478
14479
14480echo "$as_me:$LINENO: checking for void *" >&5
14481echo $ECHO_N "checking for void *... $ECHO_C" >&6
14482if test "${ac_cv_type_void_p+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484else
14485 cat >conftest.$ac_ext <<_ACEOF
14486#line $LINENO "configure"
14487/* confdefs.h. */
14488_ACEOF
14489cat confdefs.h >>conftest.$ac_ext
14490cat >>conftest.$ac_ext <<_ACEOF
14491/* end confdefs.h. */
14492$ac_includes_default
14493int
14494main ()
14495{
14496if ((void * *) 0)
14497 return 0;
14498if (sizeof (void *))
14499 return 0;
14500 ;
14501 return 0;
14502}
14503_ACEOF
14504rm -f conftest.$ac_objext
14505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14506 (eval $ac_compile) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
14510 { ac_try='test -s conftest.$ac_objext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 ac_cv_type_void_p=yes
14517else
14518 echo "$as_me: failed program was:" >&5
14519sed 's/^/| /' conftest.$ac_ext >&5
14520
14521ac_cv_type_void_p=no
14522fi
14523rm -f conftest.$ac_objext conftest.$ac_ext
14524fi
14525echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14526echo "${ECHO_T}$ac_cv_type_void_p" >&6
14527
14528echo "$as_me:$LINENO: checking size of void *" >&5
14529echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14530if test "${ac_cv_sizeof_void_p+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14532else
14533 if test "$ac_cv_type_void_p" = yes; then
14534 # The cast to unsigned long works around a bug in the HP C Compiler
14535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14537 # This bug is HP SR number 8606223364.
14538 if test "$cross_compiling" = yes; then
14539 # Depending upon the size, compute the lo and hi bounds.
14540cat >conftest.$ac_ext <<_ACEOF
14541#line $LINENO "configure"
14542/* confdefs.h. */
14543_ACEOF
14544cat confdefs.h >>conftest.$ac_ext
14545cat >>conftest.$ac_ext <<_ACEOF
14546/* end confdefs.h. */
14547$ac_includes_default
14548int
14549main ()
14550{
14551static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14552test_array [0] = 0
14553
14554 ;
14555 return 0;
14556}
14557_ACEOF
14558rm -f conftest.$ac_objext
14559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14560 (eval $ac_compile) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } &&
14564 { ac_try='test -s conftest.$ac_objext'
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_lo=0 ac_mid=0
14571 while :; do
14572 cat >conftest.$ac_ext <<_ACEOF
14573#line $LINENO "configure"
14574/* confdefs.h. */
14575_ACEOF
14576cat confdefs.h >>conftest.$ac_ext
14577cat >>conftest.$ac_ext <<_ACEOF
14578/* end confdefs.h. */
14579$ac_includes_default
14580int
14581main ()
14582{
14583static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14584test_array [0] = 0
247f5006 14585
e6cc62c6
VS
14586 ;
14587 return 0;
14588}
14589_ACEOF
14590rm -f conftest.$ac_objext
14591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_hi=$ac_mid; break
14603else
14604 echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607ac_lo=`expr $ac_mid + 1`
14608 if test $ac_lo -le $ac_mid; then
14609 ac_lo= ac_hi=
14610 break
14611 fi
14612 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14613fi
e6cc62c6
VS
14614rm -f conftest.$ac_objext conftest.$ac_ext
14615 done
14616else
14617 echo "$as_me: failed program was:" >&5
14618sed 's/^/| /' conftest.$ac_ext >&5
14619
14620cat >conftest.$ac_ext <<_ACEOF
14621#line $LINENO "configure"
14622/* confdefs.h. */
14623_ACEOF
14624cat confdefs.h >>conftest.$ac_ext
14625cat >>conftest.$ac_ext <<_ACEOF
14626/* end confdefs.h. */
14627$ac_includes_default
14628int
14629main ()
14630{
14631static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14632test_array [0] = 0
247f5006 14633
e6cc62c6
VS
14634 ;
14635 return 0;
14636}
14637_ACEOF
14638rm -f conftest.$ac_objext
14639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640 (eval $ac_compile) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try='test -s conftest.$ac_objext'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14650 ac_hi=-1 ac_mid=-1
14651 while :; do
14652 cat >conftest.$ac_ext <<_ACEOF
14653#line $LINENO "configure"
14654/* confdefs.h. */
14655_ACEOF
14656cat confdefs.h >>conftest.$ac_ext
14657cat >>conftest.$ac_ext <<_ACEOF
14658/* end confdefs.h. */
14659$ac_includes_default
14660int
14661main ()
14662{
14663static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14664test_array [0] = 0
247f5006 14665
e6cc62c6
VS
14666 ;
14667 return 0;
14668}
14669_ACEOF
14670rm -f conftest.$ac_objext
14671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14672 (eval $ac_compile) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } &&
14676 { ac_try='test -s conftest.$ac_objext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ac_lo=$ac_mid; break
14683else
14684 echo "$as_me: failed program was:" >&5
14685sed 's/^/| /' conftest.$ac_ext >&5
14686
14687ac_hi=`expr '(' $ac_mid ')' - 1`
14688 if test $ac_mid -le $ac_hi; then
14689 ac_lo= ac_hi=
14690 break
14691 fi
14692 ac_mid=`expr 2 '*' $ac_mid`
14693fi
14694rm -f conftest.$ac_objext conftest.$ac_ext
14695 done
a0b9e27f 14696else
e6cc62c6
VS
14697 echo "$as_me: failed program was:" >&5
14698sed 's/^/| /' conftest.$ac_ext >&5
14699
14700ac_lo= ac_hi=
14701fi
14702rm -f conftest.$ac_objext conftest.$ac_ext
14703fi
14704rm -f conftest.$ac_objext conftest.$ac_ext
14705# Binary search between lo and hi bounds.
14706while test "x$ac_lo" != "x$ac_hi"; do
14707 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14708 cat >conftest.$ac_ext <<_ACEOF
14709#line $LINENO "configure"
14710/* confdefs.h. */
14711_ACEOF
14712cat confdefs.h >>conftest.$ac_ext
14713cat >>conftest.$ac_ext <<_ACEOF
14714/* end confdefs.h. */
14715$ac_includes_default
14716int
14717main ()
14718{
14719static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14720test_array [0] = 0
14721
14722 ;
14723 return 0;
14724}
14725_ACEOF
14726rm -f conftest.$ac_objext
14727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14728 (eval $ac_compile) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -s conftest.$ac_objext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_hi=$ac_mid
14739else
14740 echo "$as_me: failed program was:" >&5
14741sed 's/^/| /' conftest.$ac_ext >&5
14742
14743ac_lo=`expr '(' $ac_mid ')' + 1`
14744fi
14745rm -f conftest.$ac_objext conftest.$ac_ext
14746done
14747case $ac_lo in
14748?*) ac_cv_sizeof_void_p=$ac_lo;;
14749'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14750See \`config.log' for more details." >&5
14751echo "$as_me: error: cannot compute sizeof (void *), 77
14752See \`config.log' for more details." >&2;}
14753 { (exit 1); exit 1; }; } ;;
14754esac
247f5006 14755else
e6cc62c6
VS
14756 if test "$cross_compiling" = yes; then
14757 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14758See \`config.log' for more details." >&5
14759echo "$as_me: error: cannot run test program while cross compiling
14760See \`config.log' for more details." >&2;}
14761 { (exit 1); exit 1; }; }
14762else
14763 cat >conftest.$ac_ext <<_ACEOF
14764#line $LINENO "configure"
14765/* confdefs.h. */
14766_ACEOF
14767cat confdefs.h >>conftest.$ac_ext
14768cat >>conftest.$ac_ext <<_ACEOF
14769/* end confdefs.h. */
14770$ac_includes_default
14771long longval () { return (long) (sizeof (void *)); }
14772unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14773#include <stdio.h>
e6cc62c6
VS
14774#include <stdlib.h>
14775int
14776main ()
247f5006 14777{
e6cc62c6
VS
14778
14779 FILE *f = fopen ("conftest.val", "w");
14780 if (! f)
14781 exit (1);
14782 if (((long) (sizeof (void *))) < 0)
14783 {
14784 long i = longval ();
14785 if (i != ((long) (sizeof (void *))))
14786 exit (1);
14787 fprintf (f, "%ld\n", i);
14788 }
14789 else
14790 {
14791 unsigned long i = ulongval ();
14792 if (i != ((long) (sizeof (void *))))
14793 exit (1);
14794 fprintf (f, "%lu\n", i);
14795 }
14796 exit (ferror (f) || fclose (f) != 0);
14797
14798 ;
14799 return 0;
5c6fa7d2 14800}
e6cc62c6
VS
14801_ACEOF
14802rm -f conftest$ac_exeext
14803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14804 (eval $ac_link) 2>&5
14805 ac_status=$?
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 ac_cv_sizeof_void_p=`cat conftest.val`
14814else
14815 echo "$as_me: program exited with status $ac_status" >&5
14816echo "$as_me: failed program was:" >&5
14817sed 's/^/| /' conftest.$ac_ext >&5
14818
14819( exit $ac_status )
14820{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14821See \`config.log' for more details." >&5
14822echo "$as_me: error: cannot compute sizeof (void *), 77
14823See \`config.log' for more details." >&2;}
14824 { (exit 1); exit 1; }; }
14825fi
14826rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14827fi
14828fi
14829rm -f conftest.val
a0b9e27f 14830else
a0b9e27f
MB
14831 ac_cv_sizeof_void_p=0
14832fi
a0b9e27f 14833fi
e6cc62c6
VS
14834echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14835echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14836cat >>confdefs.h <<_ACEOF
14837#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14838_ACEOF
14839
14840
14841echo "$as_me:$LINENO: checking for int" >&5
14842echo $ECHO_N "checking for int... $ECHO_C" >&6
14843if test "${ac_cv_type_int+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14845else
14846 cat >conftest.$ac_ext <<_ACEOF
14847#line $LINENO "configure"
14848/* confdefs.h. */
14849_ACEOF
14850cat confdefs.h >>conftest.$ac_ext
14851cat >>conftest.$ac_ext <<_ACEOF
14852/* end confdefs.h. */
14853$ac_includes_default
14854int
14855main ()
14856{
14857if ((int *) 0)
14858 return 0;
14859if (sizeof (int))
14860 return 0;
14861 ;
14862 return 0;
14863}
14864_ACEOF
14865rm -f conftest.$ac_objext
14866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14867 (eval $ac_compile) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_cv_type_int=yes
14878else
14879 echo "$as_me: failed program was:" >&5
14880sed 's/^/| /' conftest.$ac_ext >&5
14881
14882ac_cv_type_int=no
14883fi
14884rm -f conftest.$ac_objext conftest.$ac_ext
14885fi
14886echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14887echo "${ECHO_T}$ac_cv_type_int" >&6
14888
14889echo "$as_me:$LINENO: checking size of int" >&5
14890echo $ECHO_N "checking size of int... $ECHO_C" >&6
14891if test "${ac_cv_sizeof_int+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14893else
14894 if test "$ac_cv_type_int" = yes; then
14895 # The cast to unsigned long works around a bug in the HP C Compiler
14896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14898 # This bug is HP SR number 8606223364.
14899 if test "$cross_compiling" = yes; then
14900 # Depending upon the size, compute the lo and hi bounds.
14901cat >conftest.$ac_ext <<_ACEOF
14902#line $LINENO "configure"
14903/* confdefs.h. */
14904_ACEOF
14905cat confdefs.h >>conftest.$ac_ext
14906cat >>conftest.$ac_ext <<_ACEOF
14907/* end confdefs.h. */
14908$ac_includes_default
14909int
14910main ()
14911{
14912static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14913test_array [0] = 0
8284b0c5 14914
e6cc62c6
VS
14915 ;
14916 return 0;
14917}
14918_ACEOF
14919rm -f conftest.$ac_objext
14920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921 (eval $ac_compile) 2>&5
14922 ac_status=$?
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
14925 { ac_try='test -s conftest.$ac_objext'
14926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927 (eval $ac_try) 2>&5
14928 ac_status=$?
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 ac_lo=0 ac_mid=0
14932 while :; do
14933 cat >conftest.$ac_ext <<_ACEOF
14934#line $LINENO "configure"
14935/* confdefs.h. */
14936_ACEOF
14937cat confdefs.h >>conftest.$ac_ext
14938cat >>conftest.$ac_ext <<_ACEOF
14939/* end confdefs.h. */
14940$ac_includes_default
14941int
14942main ()
14943{
14944static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14945test_array [0] = 0
14946
14947 ;
14948 return 0;
14949}
14950_ACEOF
14951rm -f conftest.$ac_objext
14952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14953 (eval $ac_compile) 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try='test -s conftest.$ac_objext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_hi=$ac_mid; break
14964else
14965 echo "$as_me: failed program was:" >&5
14966sed 's/^/| /' conftest.$ac_ext >&5
14967
14968ac_lo=`expr $ac_mid + 1`
14969 if test $ac_lo -le $ac_mid; then
14970 ac_lo= ac_hi=
14971 break
14972 fi
14973 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14974fi
e6cc62c6
VS
14975rm -f conftest.$ac_objext conftest.$ac_ext
14976 done
14977else
14978 echo "$as_me: failed program was:" >&5
14979sed 's/^/| /' conftest.$ac_ext >&5
14980
14981cat >conftest.$ac_ext <<_ACEOF
14982#line $LINENO "configure"
14983/* confdefs.h. */
14984_ACEOF
14985cat confdefs.h >>conftest.$ac_ext
14986cat >>conftest.$ac_ext <<_ACEOF
14987/* end confdefs.h. */
14988$ac_includes_default
14989int
14990main ()
14991{
14992static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14993test_array [0] = 0
247f5006 14994
e6cc62c6
VS
14995 ;
14996 return 0;
14997}
14998_ACEOF
14999rm -f conftest.$ac_objext
15000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15001 (eval $ac_compile) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } &&
15005 { ac_try='test -s conftest.$ac_objext'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 ac_hi=-1 ac_mid=-1
15012 while :; do
15013 cat >conftest.$ac_ext <<_ACEOF
15014#line $LINENO "configure"
15015/* confdefs.h. */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h. */
15020$ac_includes_default
15021int
15022main ()
15023{
15024static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15025test_array [0] = 0
247f5006 15026
e6cc62c6
VS
15027 ;
15028 return 0;
15029}
15030_ACEOF
15031rm -f conftest.$ac_objext
15032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15033 (eval $ac_compile) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try='test -s conftest.$ac_objext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_lo=$ac_mid; break
15044else
15045 echo "$as_me: failed program was:" >&5
15046sed 's/^/| /' conftest.$ac_ext >&5
15047
15048ac_hi=`expr '(' $ac_mid ')' - 1`
15049 if test $ac_mid -le $ac_hi; then
15050 ac_lo= ac_hi=
15051 break
15052 fi
15053 ac_mid=`expr 2 '*' $ac_mid`
15054fi
15055rm -f conftest.$ac_objext conftest.$ac_ext
15056 done
247f5006 15057else
e6cc62c6
VS
15058 echo "$as_me: failed program was:" >&5
15059sed 's/^/| /' conftest.$ac_ext >&5
15060
15061ac_lo= ac_hi=
15062fi
15063rm -f conftest.$ac_objext conftest.$ac_ext
15064fi
15065rm -f conftest.$ac_objext conftest.$ac_ext
15066# Binary search between lo and hi bounds.
15067while test "x$ac_lo" != "x$ac_hi"; do
15068 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15069 cat >conftest.$ac_ext <<_ACEOF
15070#line $LINENO "configure"
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
15075/* end confdefs.h. */
15076$ac_includes_default
15077int
15078main ()
15079{
15080static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15081test_array [0] = 0
15082
15083 ;
15084 return 0;
15085}
15086_ACEOF
15087rm -f conftest.$ac_objext
15088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15089 (eval $ac_compile) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
15093 { ac_try='test -s conftest.$ac_objext'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 ac_hi=$ac_mid
15100else
15101 echo "$as_me: failed program was:" >&5
15102sed 's/^/| /' conftest.$ac_ext >&5
15103
15104ac_lo=`expr '(' $ac_mid ')' + 1`
15105fi
15106rm -f conftest.$ac_objext conftest.$ac_ext
15107done
15108case $ac_lo in
15109?*) ac_cv_sizeof_int=$ac_lo;;
15110'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15111See \`config.log' for more details." >&5
15112echo "$as_me: error: cannot compute sizeof (int), 77
15113See \`config.log' for more details." >&2;}
15114 { (exit 1); exit 1; }; } ;;
15115esac
a0b9e27f 15116else
e6cc62c6
VS
15117 if test "$cross_compiling" = yes; then
15118 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15119See \`config.log' for more details." >&5
15120echo "$as_me: error: cannot run test program while cross compiling
15121See \`config.log' for more details." >&2;}
15122 { (exit 1); exit 1; }; }
15123else
15124 cat >conftest.$ac_ext <<_ACEOF
15125#line $LINENO "configure"
15126/* confdefs.h. */
15127_ACEOF
15128cat confdefs.h >>conftest.$ac_ext
15129cat >>conftest.$ac_ext <<_ACEOF
15130/* end confdefs.h. */
15131$ac_includes_default
15132long longval () { return (long) (sizeof (int)); }
15133unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15134#include <stdio.h>
e6cc62c6
VS
15135#include <stdlib.h>
15136int
15137main ()
247f5006 15138{
e6cc62c6
VS
15139
15140 FILE *f = fopen ("conftest.val", "w");
15141 if (! f)
15142 exit (1);
15143 if (((long) (sizeof (int))) < 0)
15144 {
15145 long i = longval ();
15146 if (i != ((long) (sizeof (int))))
15147 exit (1);
15148 fprintf (f, "%ld\n", i);
15149 }
15150 else
15151 {
15152 unsigned long i = ulongval ();
15153 if (i != ((long) (sizeof (int))))
15154 exit (1);
15155 fprintf (f, "%lu\n", i);
15156 }
15157 exit (ferror (f) || fclose (f) != 0);
15158
15159 ;
15160 return 0;
247f5006 15161}
e6cc62c6
VS
15162_ACEOF
15163rm -f conftest$ac_exeext
15164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15165 (eval $ac_link) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_cv_sizeof_int=`cat conftest.val`
15175else
15176 echo "$as_me: program exited with status $ac_status" >&5
15177echo "$as_me: failed program was:" >&5
15178sed 's/^/| /' conftest.$ac_ext >&5
15179
15180( exit $ac_status )
15181{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15182See \`config.log' for more details." >&5
15183echo "$as_me: error: cannot compute sizeof (int), 77
15184See \`config.log' for more details." >&2;}
15185 { (exit 1); exit 1; }; }
15186fi
15187rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15188fi
15189fi
15190rm -f conftest.val
6f72b082 15191else
a0b9e27f 15192 ac_cv_sizeof_int=0
21d1c967 15193fi
698dcdb6 15194fi
e6cc62c6
VS
15195echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15196echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15197cat >>confdefs.h <<_ACEOF
15198#define SIZEOF_INT $ac_cv_sizeof_int
15199_ACEOF
15200
15201
15202echo "$as_me:$LINENO: checking for long" >&5
15203echo $ECHO_N "checking for long... $ECHO_C" >&6
15204if test "${ac_cv_type_long+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206else
15207 cat >conftest.$ac_ext <<_ACEOF
15208#line $LINENO "configure"
15209/* confdefs.h. */
15210_ACEOF
15211cat confdefs.h >>conftest.$ac_ext
15212cat >>conftest.$ac_ext <<_ACEOF
15213/* end confdefs.h. */
15214$ac_includes_default
15215int
15216main ()
15217{
15218if ((long *) 0)
15219 return 0;
15220if (sizeof (long))
15221 return 0;
15222 ;
15223 return 0;
15224}
15225_ACEOF
15226rm -f conftest.$ac_objext
15227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15228 (eval $ac_compile) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try='test -s conftest.$ac_objext'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
15238 ac_cv_type_long=yes
15239else
15240 echo "$as_me: failed program was:" >&5
15241sed 's/^/| /' conftest.$ac_ext >&5
15242
15243ac_cv_type_long=no
15244fi
15245rm -f conftest.$ac_objext conftest.$ac_ext
15246fi
15247echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15248echo "${ECHO_T}$ac_cv_type_long" >&6
15249
15250echo "$as_me:$LINENO: checking size of long" >&5
15251echo $ECHO_N "checking size of long... $ECHO_C" >&6
15252if test "${ac_cv_sizeof_long+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15254else
15255 if test "$ac_cv_type_long" = yes; then
15256 # The cast to unsigned long works around a bug in the HP C Compiler
15257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15259 # This bug is HP SR number 8606223364.
15260 if test "$cross_compiling" = yes; then
15261 # Depending upon the size, compute the lo and hi bounds.
15262cat >conftest.$ac_ext <<_ACEOF
15263#line $LINENO "configure"
15264/* confdefs.h. */
15265_ACEOF
15266cat confdefs.h >>conftest.$ac_ext
15267cat >>conftest.$ac_ext <<_ACEOF
15268/* end confdefs.h. */
15269$ac_includes_default
15270int
15271main ()
15272{
15273static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15274test_array [0] = 0
15275
15276 ;
15277 return 0;
15278}
15279_ACEOF
15280rm -f conftest.$ac_objext
15281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15282 (eval $ac_compile) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
15286 { ac_try='test -s conftest.$ac_objext'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; }; then
15292 ac_lo=0 ac_mid=0
15293 while :; do
15294 cat >conftest.$ac_ext <<_ACEOF
15295#line $LINENO "configure"
15296/* confdefs.h. */
15297_ACEOF
15298cat confdefs.h >>conftest.$ac_ext
15299cat >>conftest.$ac_ext <<_ACEOF
15300/* end confdefs.h. */
15301$ac_includes_default
15302int
15303main ()
15304{
15305static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15306test_array [0] = 0
4f14bcd8 15307
e6cc62c6
VS
15308 ;
15309 return 0;
15310}
15311_ACEOF
15312rm -f conftest.$ac_objext
15313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15314 (eval $ac_compile) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
15318 { ac_try='test -s conftest.$ac_objext'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_hi=$ac_mid; break
15325else
15326 echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329ac_lo=`expr $ac_mid + 1`
15330 if test $ac_lo -le $ac_mid; then
15331 ac_lo= ac_hi=
15332 break
15333 fi
15334 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15335fi
e6cc62c6
VS
15336rm -f conftest.$ac_objext conftest.$ac_ext
15337 done
15338else
15339 echo "$as_me: failed program was:" >&5
15340sed 's/^/| /' conftest.$ac_ext >&5
15341
15342cat >conftest.$ac_ext <<_ACEOF
15343#line $LINENO "configure"
15344/* confdefs.h. */
15345_ACEOF
15346cat confdefs.h >>conftest.$ac_ext
15347cat >>conftest.$ac_ext <<_ACEOF
15348/* end confdefs.h. */
15349$ac_includes_default
15350int
15351main ()
15352{
15353static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15354test_array [0] = 0
4f14bcd8 15355
e6cc62c6
VS
15356 ;
15357 return 0;
15358}
15359_ACEOF
15360rm -f conftest.$ac_objext
15361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362 (eval $ac_compile) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
15366 { ac_try='test -s conftest.$ac_objext'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 ac_hi=-1 ac_mid=-1
15373 while :; do
15374 cat >conftest.$ac_ext <<_ACEOF
15375#line $LINENO "configure"
15376/* confdefs.h. */
15377_ACEOF
15378cat confdefs.h >>conftest.$ac_ext
15379cat >>conftest.$ac_ext <<_ACEOF
15380/* end confdefs.h. */
15381$ac_includes_default
15382int
15383main ()
15384{
15385static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15386test_array [0] = 0
5c6fa7d2 15387
e6cc62c6
VS
15388 ;
15389 return 0;
15390}
15391_ACEOF
15392rm -f conftest.$ac_objext
15393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 (eval $ac_compile) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
15398 { ac_try='test -s conftest.$ac_objext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 ac_lo=$ac_mid; break
15405else
15406 echo "$as_me: failed program was:" >&5
15407sed 's/^/| /' conftest.$ac_ext >&5
15408
15409ac_hi=`expr '(' $ac_mid ')' - 1`
15410 if test $ac_mid -le $ac_hi; then
15411 ac_lo= ac_hi=
15412 break
15413 fi
15414 ac_mid=`expr 2 '*' $ac_mid`
15415fi
15416rm -f conftest.$ac_objext conftest.$ac_ext
15417 done
247f5006 15418else
e6cc62c6
VS
15419 echo "$as_me: failed program was:" >&5
15420sed 's/^/| /' conftest.$ac_ext >&5
15421
15422ac_lo= ac_hi=
15423fi
15424rm -f conftest.$ac_objext conftest.$ac_ext
15425fi
15426rm -f conftest.$ac_objext conftest.$ac_ext
15427# Binary search between lo and hi bounds.
15428while test "x$ac_lo" != "x$ac_hi"; do
15429 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15430 cat >conftest.$ac_ext <<_ACEOF
15431#line $LINENO "configure"
15432/* confdefs.h. */
15433_ACEOF
15434cat confdefs.h >>conftest.$ac_ext
15435cat >>conftest.$ac_ext <<_ACEOF
15436/* end confdefs.h. */
15437$ac_includes_default
15438int
15439main ()
15440{
15441static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15442test_array [0] = 0
15443
15444 ;
15445 return 0;
15446}
15447_ACEOF
15448rm -f conftest.$ac_objext
15449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15450 (eval $ac_compile) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try='test -s conftest.$ac_objext'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 ac_hi=$ac_mid
15461else
15462 echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465ac_lo=`expr '(' $ac_mid ')' + 1`
15466fi
15467rm -f conftest.$ac_objext conftest.$ac_ext
15468done
15469case $ac_lo in
15470?*) ac_cv_sizeof_long=$ac_lo;;
15471'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15472See \`config.log' for more details." >&5
15473echo "$as_me: error: cannot compute sizeof (long), 77
15474See \`config.log' for more details." >&2;}
15475 { (exit 1); exit 1; }; } ;;
15476esac
247f5006 15477else
e6cc62c6
VS
15478 if test "$cross_compiling" = yes; then
15479 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15480See \`config.log' for more details." >&5
15481echo "$as_me: error: cannot run test program while cross compiling
15482See \`config.log' for more details." >&2;}
15483 { (exit 1); exit 1; }; }
15484else
15485 cat >conftest.$ac_ext <<_ACEOF
15486#line $LINENO "configure"
15487/* confdefs.h. */
15488_ACEOF
15489cat confdefs.h >>conftest.$ac_ext
15490cat >>conftest.$ac_ext <<_ACEOF
15491/* end confdefs.h. */
15492$ac_includes_default
15493long longval () { return (long) (sizeof (long)); }
15494unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15495#include <stdio.h>
e6cc62c6
VS
15496#include <stdlib.h>
15497int
15498main ()
247f5006 15499{
e6cc62c6
VS
15500
15501 FILE *f = fopen ("conftest.val", "w");
15502 if (! f)
15503 exit (1);
15504 if (((long) (sizeof (long))) < 0)
15505 {
15506 long i = longval ();
15507 if (i != ((long) (sizeof (long))))
15508 exit (1);
15509 fprintf (f, "%ld\n", i);
15510 }
15511 else
15512 {
15513 unsigned long i = ulongval ();
15514 if (i != ((long) (sizeof (long))))
15515 exit (1);
15516 fprintf (f, "%lu\n", i);
15517 }
15518 exit (ferror (f) || fclose (f) != 0);
15519
15520 ;
15521 return 0;
247f5006 15522}
e6cc62c6
VS
15523_ACEOF
15524rm -f conftest$ac_exeext
15525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15526 (eval $ac_link) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15535 ac_cv_sizeof_long=`cat conftest.val`
15536else
15537 echo "$as_me: program exited with status $ac_status" >&5
15538echo "$as_me: failed program was:" >&5
15539sed 's/^/| /' conftest.$ac_ext >&5
15540
15541( exit $ac_status )
15542{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15543See \`config.log' for more details." >&5
15544echo "$as_me: error: cannot compute sizeof (long), 77
15545See \`config.log' for more details." >&2;}
15546 { (exit 1); exit 1; }; }
15547fi
15548rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15549fi
15550fi
15551rm -f conftest.val
247f5006 15552else
a0b9e27f 15553 ac_cv_sizeof_long=0
247f5006 15554fi
247f5006 15555fi
e6cc62c6
VS
15556echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15557echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15558cat >>confdefs.h <<_ACEOF
a0b9e27f 15559#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15560_ACEOF
247f5006 15561
a0b9e27f
MB
15562
15563
15564case "${host}" in
15565 arm-*-linux* )
e6cc62c6
VS
15566 echo "$as_me:$LINENO: checking for long long" >&5
15567echo $ECHO_N "checking for long long... $ECHO_C" >&6
15568if test "${ac_cv_type_long_long+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570else
15571 cat >conftest.$ac_ext <<_ACEOF
15572#line $LINENO "configure"
15573/* confdefs.h. */
15574_ACEOF
15575cat confdefs.h >>conftest.$ac_ext
15576cat >>conftest.$ac_ext <<_ACEOF
15577/* end confdefs.h. */
15578$ac_includes_default
15579int
15580main ()
15581{
15582if ((long long *) 0)
15583 return 0;
15584if (sizeof (long long))
15585 return 0;
15586 ;
15587 return 0;
15588}
15589_ACEOF
15590rm -f conftest.$ac_objext
15591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15592 (eval $ac_compile) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try='test -s conftest.$ac_objext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_cv_type_long_long=yes
15603else
15604 echo "$as_me: failed program was:" >&5
15605sed 's/^/| /' conftest.$ac_ext >&5
15606
15607ac_cv_type_long_long=no
15608fi
15609rm -f conftest.$ac_objext conftest.$ac_ext
15610fi
15611echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15612echo "${ECHO_T}$ac_cv_type_long_long" >&6
15613
15614echo "$as_me:$LINENO: checking size of long long" >&5
15615echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15616if test "${ac_cv_sizeof_long_long+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15618else
15619 if test "$ac_cv_type_long_long" = yes; then
15620 # The cast to unsigned long works around a bug in the HP C Compiler
15621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15623 # This bug is HP SR number 8606223364.
a0b9e27f 15624 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15625 # Depending upon the size, compute the lo and hi bounds.
15626cat >conftest.$ac_ext <<_ACEOF
15627#line $LINENO "configure"
15628/* confdefs.h. */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h. */
15633$ac_includes_default
15634int
15635main ()
15636{
15637static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15638test_array [0] = 0
15639
15640 ;
15641 return 0;
15642}
15643_ACEOF
15644rm -f conftest.$ac_objext
15645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15646 (eval $ac_compile) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
15650 { ac_try='test -s conftest.$ac_objext'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15653 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; }; then
15656 ac_lo=0 ac_mid=0
15657 while :; do
15658 cat >conftest.$ac_ext <<_ACEOF
15659#line $LINENO "configure"
15660/* confdefs.h. */
15661_ACEOF
15662cat confdefs.h >>conftest.$ac_ext
15663cat >>conftest.$ac_ext <<_ACEOF
15664/* end confdefs.h. */
15665$ac_includes_default
15666int
15667main ()
15668{
15669static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15670test_array [0] = 0
15671
15672 ;
15673 return 0;
15674}
15675_ACEOF
15676rm -f conftest.$ac_objext
15677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678 (eval $ac_compile) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -s conftest.$ac_objext'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 ac_hi=$ac_mid; break
15689else
15690 echo "$as_me: failed program was:" >&5
15691sed 's/^/| /' conftest.$ac_ext >&5
15692
15693ac_lo=`expr $ac_mid + 1`
15694 if test $ac_lo -le $ac_mid; then
15695 ac_lo= ac_hi=
15696 break
15697 fi
15698 ac_mid=`expr 2 '*' $ac_mid + 1`
15699fi
15700rm -f conftest.$ac_objext conftest.$ac_ext
15701 done
15702else
15703 echo "$as_me: failed program was:" >&5
15704sed 's/^/| /' conftest.$ac_ext >&5
15705
15706cat >conftest.$ac_ext <<_ACEOF
15707#line $LINENO "configure"
15708/* confdefs.h. */
15709_ACEOF
15710cat confdefs.h >>conftest.$ac_ext
15711cat >>conftest.$ac_ext <<_ACEOF
15712/* end confdefs.h. */
15713$ac_includes_default
15714int
15715main ()
15716{
15717static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15718test_array [0] = 0
15719
15720 ;
15721 return 0;
15722}
15723_ACEOF
15724rm -f conftest.$ac_objext
15725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15726 (eval $ac_compile) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try='test -s conftest.$ac_objext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_hi=-1 ac_mid=-1
15737 while :; do
15738 cat >conftest.$ac_ext <<_ACEOF
15739#line $LINENO "configure"
15740/* confdefs.h. */
15741_ACEOF
15742cat confdefs.h >>conftest.$ac_ext
15743cat >>conftest.$ac_ext <<_ACEOF
15744/* end confdefs.h. */
15745$ac_includes_default
15746int
15747main ()
15748{
15749static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15750test_array [0] = 0
15751
15752 ;
15753 return 0;
15754}
15755_ACEOF
15756rm -f conftest.$ac_objext
15757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try='test -s conftest.$ac_objext'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }; then
15768 ac_lo=$ac_mid; break
15769else
15770 echo "$as_me: failed program was:" >&5
15771sed 's/^/| /' conftest.$ac_ext >&5
15772
15773ac_hi=`expr '(' $ac_mid ')' - 1`
15774 if test $ac_mid -le $ac_hi; then
15775 ac_lo= ac_hi=
15776 break
15777 fi
15778 ac_mid=`expr 2 '*' $ac_mid`
15779fi
15780rm -f conftest.$ac_objext conftest.$ac_ext
15781 done
15782else
15783 echo "$as_me: failed program was:" >&5
15784sed 's/^/| /' conftest.$ac_ext >&5
15785
15786ac_lo= ac_hi=
15787fi
15788rm -f conftest.$ac_objext conftest.$ac_ext
15789fi
15790rm -f conftest.$ac_objext conftest.$ac_ext
15791# Binary search between lo and hi bounds.
15792while test "x$ac_lo" != "x$ac_hi"; do
15793 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15794 cat >conftest.$ac_ext <<_ACEOF
15795#line $LINENO "configure"
15796/* confdefs.h. */
15797_ACEOF
15798cat confdefs.h >>conftest.$ac_ext
15799cat >>conftest.$ac_ext <<_ACEOF
15800/* end confdefs.h. */
15801$ac_includes_default
15802int
15803main ()
15804{
15805static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15806test_array [0] = 0
15807
15808 ;
15809 return 0;
15810}
15811_ACEOF
15812rm -f conftest.$ac_objext
15813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814 (eval $ac_compile) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -s conftest.$ac_objext'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_hi=$ac_mid
15825else
15826 echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829ac_lo=`expr '(' $ac_mid ')' + 1`
15830fi
15831rm -f conftest.$ac_objext conftest.$ac_ext
15832done
15833case $ac_lo in
15834?*) ac_cv_sizeof_long_long=$ac_lo;;
15835'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15836See \`config.log' for more details." >&5
15837echo "$as_me: error: cannot compute sizeof (long long), 77
15838See \`config.log' for more details." >&2;}
15839 { (exit 1); exit 1; }; } ;;
15840esac
a0b9e27f 15841else
e6cc62c6
VS
15842 if test "$cross_compiling" = yes; then
15843 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15844See \`config.log' for more details." >&5
15845echo "$as_me: error: cannot run test program while cross compiling
15846See \`config.log' for more details." >&2;}
15847 { (exit 1); exit 1; }; }
15848else
15849 cat >conftest.$ac_ext <<_ACEOF
15850#line $LINENO "configure"
15851/* confdefs.h. */
15852_ACEOF
15853cat confdefs.h >>conftest.$ac_ext
15854cat >>conftest.$ac_ext <<_ACEOF
15855/* end confdefs.h. */
15856$ac_includes_default
15857long longval () { return (long) (sizeof (long long)); }
15858unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15859#include <stdio.h>
e6cc62c6
VS
15860#include <stdlib.h>
15861int
15862main ()
247f5006 15863{
e6cc62c6
VS
15864
15865 FILE *f = fopen ("conftest.val", "w");
15866 if (! f)
15867 exit (1);
15868 if (((long) (sizeof (long long))) < 0)
15869 {
15870 long i = longval ();
15871 if (i != ((long) (sizeof (long long))))
15872 exit (1);
15873 fprintf (f, "%ld\n", i);
15874 }
15875 else
15876 {
15877 unsigned long i = ulongval ();
15878 if (i != ((long) (sizeof (long long))))
15879 exit (1);
15880 fprintf (f, "%lu\n", i);
15881 }
15882 exit (ferror (f) || fclose (f) != 0);
15883
15884 ;
15885 return 0;
247f5006 15886}
e6cc62c6
VS
15887_ACEOF
15888rm -f conftest$ac_exeext
15889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15890 (eval $ac_link) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_cv_sizeof_long_long=`cat conftest.val`
15900else
15901 echo "$as_me: program exited with status $ac_status" >&5
15902echo "$as_me: failed program was:" >&5
15903sed 's/^/| /' conftest.$ac_ext >&5
15904
15905( exit $ac_status )
15906{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15907See \`config.log' for more details." >&5
15908echo "$as_me: error: cannot compute sizeof (long long), 77
15909See \`config.log' for more details." >&2;}
15910 { (exit 1); exit 1; }; }
15911fi
15912rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15913fi
15914fi
15915rm -f conftest.val
7b4a847f 15916else
a0b9e27f 15917 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15918fi
15919fi
e6cc62c6
VS
15920echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15921echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15922cat >>confdefs.h <<_ACEOF
15923#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15924_ACEOF
15925
15926
15927 ;;
15928 *-hp-hpux* )
15929 echo "$as_me:$LINENO: checking for long long" >&5
15930echo $ECHO_N "checking for long long... $ECHO_C" >&6
15931if test "${ac_cv_type_long_long+set}" = set; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15933else
15934 cat >conftest.$ac_ext <<_ACEOF
15935#line $LINENO "configure"
15936/* confdefs.h. */
15937_ACEOF
15938cat confdefs.h >>conftest.$ac_ext
15939cat >>conftest.$ac_ext <<_ACEOF
15940/* end confdefs.h. */
15941$ac_includes_default
15942int
15943main ()
15944{
15945if ((long long *) 0)
15946 return 0;
15947if (sizeof (long long))
15948 return 0;
15949 ;
15950 return 0;
15951}
15952_ACEOF
15953rm -f conftest.$ac_objext
15954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15955 (eval $ac_compile) 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } &&
15959 { ac_try='test -s conftest.$ac_objext'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; }; then
15965 ac_cv_type_long_long=yes
15966else
15967 echo "$as_me: failed program was:" >&5
15968sed 's/^/| /' conftest.$ac_ext >&5
15969
15970ac_cv_type_long_long=no
15971fi
15972rm -f conftest.$ac_objext conftest.$ac_ext
15973fi
15974echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15975echo "${ECHO_T}$ac_cv_type_long_long" >&6
15976
15977echo "$as_me:$LINENO: checking size of long long" >&5
15978echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15979if test "${ac_cv_sizeof_long_long+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15981else
15982 if test "$ac_cv_type_long_long" = yes; then
15983 # The cast to unsigned long works around a bug in the HP C Compiler
15984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15986 # This bug is HP SR number 8606223364.
15987 if test "$cross_compiling" = yes; then
15988 # Depending upon the size, compute the lo and hi bounds.
15989cat >conftest.$ac_ext <<_ACEOF
15990#line $LINENO "configure"
15991/* confdefs.h. */
15992_ACEOF
15993cat confdefs.h >>conftest.$ac_ext
15994cat >>conftest.$ac_ext <<_ACEOF
15995/* end confdefs.h. */
15996$ac_includes_default
15997int
15998main ()
15999{
16000static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16001test_array [0] = 0
16002
16003 ;
16004 return 0;
16005}
16006_ACEOF
16007rm -f conftest.$ac_objext
16008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16009 (eval $ac_compile) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019 ac_lo=0 ac_mid=0
16020 while :; do
16021 cat >conftest.$ac_ext <<_ACEOF
16022#line $LINENO "configure"
16023/* confdefs.h. */
16024_ACEOF
16025cat confdefs.h >>conftest.$ac_ext
16026cat >>conftest.$ac_ext <<_ACEOF
16027/* end confdefs.h. */
16028$ac_includes_default
16029int
16030main ()
16031{
16032static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16033test_array [0] = 0
8284b0c5 16034
e6cc62c6
VS
16035 ;
16036 return 0;
16037}
16038_ACEOF
16039rm -f conftest.$ac_objext
16040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16041 (eval $ac_compile) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -s conftest.$ac_objext'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_hi=$ac_mid; break
16052else
16053 echo "$as_me: failed program was:" >&5
16054sed 's/^/| /' conftest.$ac_ext >&5
16055
16056ac_lo=`expr $ac_mid + 1`
16057 if test $ac_lo -le $ac_mid; then
16058 ac_lo= ac_hi=
16059 break
16060 fi
16061 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16062fi
e6cc62c6
VS
16063rm -f conftest.$ac_objext conftest.$ac_ext
16064 done
16065else
16066 echo "$as_me: failed program was:" >&5
16067sed 's/^/| /' conftest.$ac_ext >&5
16068
16069cat >conftest.$ac_ext <<_ACEOF
16070#line $LINENO "configure"
16071/* confdefs.h. */
16072_ACEOF
16073cat confdefs.h >>conftest.$ac_ext
16074cat >>conftest.$ac_ext <<_ACEOF
16075/* end confdefs.h. */
16076$ac_includes_default
16077int
16078main ()
16079{
16080static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16081test_array [0] = 0
a0b9e27f 16082
e6cc62c6
VS
16083 ;
16084 return 0;
16085}
16086_ACEOF
16087rm -f conftest.$ac_objext
16088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089 (eval $ac_compile) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -s conftest.$ac_objext'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 ac_hi=-1 ac_mid=-1
16100 while :; do
16101 cat >conftest.$ac_ext <<_ACEOF
16102#line $LINENO "configure"
16103/* confdefs.h. */
16104_ACEOF
16105cat confdefs.h >>conftest.$ac_ext
16106cat >>conftest.$ac_ext <<_ACEOF
16107/* end confdefs.h. */
16108$ac_includes_default
16109int
16110main ()
16111{
16112static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16113test_array [0] = 0
a0b9e27f 16114
e6cc62c6
VS
16115 ;
16116 return 0;
16117}
16118_ACEOF
16119rm -f conftest.$ac_objext
16120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121 (eval $ac_compile) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } &&
16125 { ac_try='test -s conftest.$ac_objext'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }; then
16131 ac_lo=$ac_mid; break
16132else
16133 echo "$as_me: failed program was:" >&5
16134sed 's/^/| /' conftest.$ac_ext >&5
16135
16136ac_hi=`expr '(' $ac_mid ')' - 1`
16137 if test $ac_mid -le $ac_hi; then
16138 ac_lo= ac_hi=
16139 break
16140 fi
16141 ac_mid=`expr 2 '*' $ac_mid`
16142fi
16143rm -f conftest.$ac_objext conftest.$ac_ext
16144 done
8284b0c5 16145else
e6cc62c6
VS
16146 echo "$as_me: failed program was:" >&5
16147sed 's/^/| /' conftest.$ac_ext >&5
16148
16149ac_lo= ac_hi=
16150fi
16151rm -f conftest.$ac_objext conftest.$ac_ext
16152fi
16153rm -f conftest.$ac_objext conftest.$ac_ext
16154# Binary search between lo and hi bounds.
16155while test "x$ac_lo" != "x$ac_hi"; do
16156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16157 cat >conftest.$ac_ext <<_ACEOF
16158#line $LINENO "configure"
16159/* confdefs.h. */
16160_ACEOF
16161cat confdefs.h >>conftest.$ac_ext
16162cat >>conftest.$ac_ext <<_ACEOF
16163/* end confdefs.h. */
16164$ac_includes_default
16165int
16166main ()
16167{
16168static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16169test_array [0] = 0
16170
16171 ;
16172 return 0;
16173}
16174_ACEOF
16175rm -f conftest.$ac_objext
16176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16177 (eval $ac_compile) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -s conftest.$ac_objext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_hi=$ac_mid
16188else
16189 echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192ac_lo=`expr '(' $ac_mid ')' + 1`
16193fi
16194rm -f conftest.$ac_objext conftest.$ac_ext
16195done
16196case $ac_lo in
16197?*) ac_cv_sizeof_long_long=$ac_lo;;
16198'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16199See \`config.log' for more details." >&5
16200echo "$as_me: error: cannot compute sizeof (long long), 77
16201See \`config.log' for more details." >&2;}
16202 { (exit 1); exit 1; }; } ;;
16203esac
8284b0c5 16204else
e6cc62c6
VS
16205 if test "$cross_compiling" = yes; then
16206 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16207See \`config.log' for more details." >&5
16208echo "$as_me: error: cannot run test program while cross compiling
16209See \`config.log' for more details." >&2;}
16210 { (exit 1); exit 1; }; }
16211else
16212 cat >conftest.$ac_ext <<_ACEOF
16213#line $LINENO "configure"
16214/* confdefs.h. */
16215_ACEOF
16216cat confdefs.h >>conftest.$ac_ext
16217cat >>conftest.$ac_ext <<_ACEOF
16218/* end confdefs.h. */
16219$ac_includes_default
16220long longval () { return (long) (sizeof (long long)); }
16221unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16222#include <stdio.h>
e6cc62c6
VS
16223#include <stdlib.h>
16224int
16225main ()
8284b0c5 16226{
e6cc62c6
VS
16227
16228 FILE *f = fopen ("conftest.val", "w");
16229 if (! f)
16230 exit (1);
16231 if (((long) (sizeof (long long))) < 0)
16232 {
16233 long i = longval ();
16234 if (i != ((long) (sizeof (long long))))
16235 exit (1);
16236 fprintf (f, "%ld\n", i);
16237 }
16238 else
16239 {
16240 unsigned long i = ulongval ();
16241 if (i != ((long) (sizeof (long long))))
16242 exit (1);
16243 fprintf (f, "%lu\n", i);
16244 }
16245 exit (ferror (f) || fclose (f) != 0);
16246
16247 ;
16248 return 0;
8284b0c5 16249}
e6cc62c6
VS
16250_ACEOF
16251rm -f conftest$ac_exeext
16252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16253 (eval $ac_link) 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_cv_sizeof_long_long=`cat conftest.val`
16263else
16264 echo "$as_me: program exited with status $ac_status" >&5
16265echo "$as_me: failed program was:" >&5
16266sed 's/^/| /' conftest.$ac_ext >&5
16267
16268( exit $ac_status )
16269{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16270See \`config.log' for more details." >&5
16271echo "$as_me: error: cannot compute sizeof (long long), 77
16272See \`config.log' for more details." >&2;}
16273 { (exit 1); exit 1; }; }
16274fi
16275rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16276fi
16277fi
16278rm -f conftest.val
5c6fa7d2
RR
16279else
16280 ac_cv_sizeof_long_long=0
52127426 16281fi
4f57cf11 16282fi
e6cc62c6
VS
16283echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16284echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16285cat >>confdefs.h <<_ACEOF
4f57cf11 16286#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16287_ACEOF
4f57cf11
GD
16288
16289
16290 if test "$ac_cv_sizeof_long_long" != "0"; then
16291 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16292 fi
16293 ;;
16294 * )
e6cc62c6
VS
16295 echo "$as_me:$LINENO: checking for long long" >&5
16296echo $ECHO_N "checking for long long... $ECHO_C" >&6
16297if test "${ac_cv_type_long_long+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16299else
16300 cat >conftest.$ac_ext <<_ACEOF
16301#line $LINENO "configure"
16302/* confdefs.h. */
16303_ACEOF
16304cat confdefs.h >>conftest.$ac_ext
16305cat >>conftest.$ac_ext <<_ACEOF
16306/* end confdefs.h. */
16307$ac_includes_default
16308int
16309main ()
16310{
16311if ((long long *) 0)
16312 return 0;
16313if (sizeof (long long))
16314 return 0;
16315 ;
16316 return 0;
16317}
16318_ACEOF
16319rm -f conftest.$ac_objext
16320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16321 (eval $ac_compile) 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } &&
16325 { ac_try='test -s conftest.$ac_objext'
16326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327 (eval $ac_try) 2>&5
16328 ac_status=$?
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; }; then
16331 ac_cv_type_long_long=yes
16332else
16333 echo "$as_me: failed program was:" >&5
16334sed 's/^/| /' conftest.$ac_ext >&5
16335
16336ac_cv_type_long_long=no
16337fi
16338rm -f conftest.$ac_objext conftest.$ac_ext
16339fi
16340echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16341echo "${ECHO_T}$ac_cv_type_long_long" >&6
16342
16343echo "$as_me:$LINENO: checking size of long long" >&5
16344echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16345if test "${ac_cv_sizeof_long_long+set}" = set; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16347else
16348 if test "$ac_cv_type_long_long" = yes; then
16349 # The cast to unsigned long works around a bug in the HP C Compiler
16350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16352 # This bug is HP SR number 8606223364.
4f57cf11 16353 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16354 # Depending upon the size, compute the lo and hi bounds.
16355cat >conftest.$ac_ext <<_ACEOF
16356#line $LINENO "configure"
16357/* confdefs.h. */
16358_ACEOF
16359cat confdefs.h >>conftest.$ac_ext
16360cat >>conftest.$ac_ext <<_ACEOF
16361/* end confdefs.h. */
16362$ac_includes_default
16363int
16364main ()
16365{
16366static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16367test_array [0] = 0
16368
16369 ;
16370 return 0;
16371}
16372_ACEOF
16373rm -f conftest.$ac_objext
16374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16375 (eval $ac_compile) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } &&
16379 { ac_try='test -s conftest.$ac_objext'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16385 ac_lo=0 ac_mid=0
16386 while :; do
16387 cat >conftest.$ac_ext <<_ACEOF
16388#line $LINENO "configure"
16389/* confdefs.h. */
16390_ACEOF
16391cat confdefs.h >>conftest.$ac_ext
16392cat >>conftest.$ac_ext <<_ACEOF
16393/* end confdefs.h. */
16394$ac_includes_default
16395int
16396main ()
16397{
16398static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16399test_array [0] = 0
16400
16401 ;
16402 return 0;
16403}
16404_ACEOF
16405rm -f conftest.$ac_objext
16406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16407 (eval $ac_compile) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } &&
16411 { ac_try='test -s conftest.$ac_objext'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_hi=$ac_mid; break
16418else
16419 echo "$as_me: failed program was:" >&5
16420sed 's/^/| /' conftest.$ac_ext >&5
16421
16422ac_lo=`expr $ac_mid + 1`
16423 if test $ac_lo -le $ac_mid; then
16424 ac_lo= ac_hi=
16425 break
16426 fi
16427 ac_mid=`expr 2 '*' $ac_mid + 1`
16428fi
16429rm -f conftest.$ac_objext conftest.$ac_ext
16430 done
16431else
16432 echo "$as_me: failed program was:" >&5
16433sed 's/^/| /' conftest.$ac_ext >&5
16434
16435cat >conftest.$ac_ext <<_ACEOF
16436#line $LINENO "configure"
16437/* confdefs.h. */
16438_ACEOF
16439cat confdefs.h >>conftest.$ac_ext
16440cat >>conftest.$ac_ext <<_ACEOF
16441/* end confdefs.h. */
16442$ac_includes_default
16443int
16444main ()
16445{
16446static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16447test_array [0] = 0
16448
16449 ;
16450 return 0;
16451}
16452_ACEOF
16453rm -f conftest.$ac_objext
16454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16455 (eval $ac_compile) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } &&
16459 { ac_try='test -s conftest.$ac_objext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465 ac_hi=-1 ac_mid=-1
16466 while :; do
16467 cat >conftest.$ac_ext <<_ACEOF
16468#line $LINENO "configure"
16469/* confdefs.h. */
16470_ACEOF
16471cat confdefs.h >>conftest.$ac_ext
16472cat >>conftest.$ac_ext <<_ACEOF
16473/* end confdefs.h. */
16474$ac_includes_default
16475int
16476main ()
16477{
16478static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16479test_array [0] = 0
16480
16481 ;
16482 return 0;
16483}
16484_ACEOF
16485rm -f conftest.$ac_objext
16486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16487 (eval $ac_compile) 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -s conftest.$ac_objext'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_lo=$ac_mid; break
16498else
16499 echo "$as_me: failed program was:" >&5
16500sed 's/^/| /' conftest.$ac_ext >&5
16501
16502ac_hi=`expr '(' $ac_mid ')' - 1`
16503 if test $ac_mid -le $ac_hi; then
16504 ac_lo= ac_hi=
16505 break
16506 fi
16507 ac_mid=`expr 2 '*' $ac_mid`
16508fi
16509rm -f conftest.$ac_objext conftest.$ac_ext
16510 done
4f57cf11 16511else
e6cc62c6
VS
16512 echo "$as_me: failed program was:" >&5
16513sed 's/^/| /' conftest.$ac_ext >&5
16514
16515ac_lo= ac_hi=
16516fi
16517rm -f conftest.$ac_objext conftest.$ac_ext
16518fi
16519rm -f conftest.$ac_objext conftest.$ac_ext
16520# Binary search between lo and hi bounds.
16521while test "x$ac_lo" != "x$ac_hi"; do
16522 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16523 cat >conftest.$ac_ext <<_ACEOF
16524#line $LINENO "configure"
16525/* confdefs.h. */
16526_ACEOF
16527cat confdefs.h >>conftest.$ac_ext
16528cat >>conftest.$ac_ext <<_ACEOF
16529/* end confdefs.h. */
16530$ac_includes_default
16531int
16532main ()
16533{
16534static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16535test_array [0] = 0
16536
16537 ;
16538 return 0;
16539}
16540_ACEOF
16541rm -f conftest.$ac_objext
16542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16543 (eval $ac_compile) 2>&5
16544 ac_status=$?
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } &&
16547 { ac_try='test -s conftest.$ac_objext'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_hi=$ac_mid
16554else
16555 echo "$as_me: failed program was:" >&5
16556sed 's/^/| /' conftest.$ac_ext >&5
16557
16558ac_lo=`expr '(' $ac_mid ')' + 1`
16559fi
16560rm -f conftest.$ac_objext conftest.$ac_ext
16561done
16562case $ac_lo in
16563?*) ac_cv_sizeof_long_long=$ac_lo;;
16564'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16565See \`config.log' for more details." >&5
16566echo "$as_me: error: cannot compute sizeof (long long), 77
16567See \`config.log' for more details." >&2;}
16568 { (exit 1); exit 1; }; } ;;
16569esac
16570else
16571 if test "$cross_compiling" = yes; then
16572 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16573See \`config.log' for more details." >&5
16574echo "$as_me: error: cannot run test program while cross compiling
16575See \`config.log' for more details." >&2;}
16576 { (exit 1); exit 1; }; }
16577else
16578 cat >conftest.$ac_ext <<_ACEOF
16579#line $LINENO "configure"
16580/* confdefs.h. */
16581_ACEOF
16582cat confdefs.h >>conftest.$ac_ext
16583cat >>conftest.$ac_ext <<_ACEOF
16584/* end confdefs.h. */
16585$ac_includes_default
16586long longval () { return (long) (sizeof (long long)); }
16587unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16588#include <stdio.h>
e6cc62c6
VS
16589#include <stdlib.h>
16590int
16591main ()
4f57cf11 16592{
e6cc62c6
VS
16593
16594 FILE *f = fopen ("conftest.val", "w");
16595 if (! f)
16596 exit (1);
16597 if (((long) (sizeof (long long))) < 0)
16598 {
16599 long i = longval ();
16600 if (i != ((long) (sizeof (long long))))
16601 exit (1);
16602 fprintf (f, "%ld\n", i);
16603 }
16604 else
16605 {
16606 unsigned long i = ulongval ();
16607 if (i != ((long) (sizeof (long long))))
16608 exit (1);
16609 fprintf (f, "%lu\n", i);
16610 }
16611 exit (ferror (f) || fclose (f) != 0);
16612
16613 ;
16614 return 0;
4f57cf11 16615}
e6cc62c6
VS
16616_ACEOF
16617rm -f conftest$ac_exeext
16618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16619 (eval $ac_link) 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_sizeof_long_long=`cat conftest.val`
16629else
16630 echo "$as_me: program exited with status $ac_status" >&5
16631echo "$as_me: failed program was:" >&5
16632sed 's/^/| /' conftest.$ac_ext >&5
16633
16634( exit $ac_status )
16635{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16636See \`config.log' for more details." >&5
16637echo "$as_me: error: cannot compute sizeof (long long), 77
16638See \`config.log' for more details." >&2;}
16639 { (exit 1); exit 1; }; }
16640fi
16641rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16642fi
16643fi
16644rm -f conftest.val
4f57cf11 16645else
4f57cf11
GD
16646 ac_cv_sizeof_long_long=0
16647fi
7b4a847f 16648fi
e6cc62c6
VS
16649echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16650echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16651cat >>confdefs.h <<_ACEOF
21d1c967 16652#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16653_ACEOF
9e691f46 16654
8284b0c5 16655
21d1c967
GD
16656esac
16657
e6cc62c6
VS
16658echo "$as_me:$LINENO: checking size of wchar_t" >&5
16659echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16660if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16662else
e6cc62c6 16663
21d1c967 16664 if test "$cross_compiling" = yes; then
e6cc62c6 16665
2b5f62a0
VZ
16666 case "${host}" in
16667 *-pc-msdosdjgpp )
16668 wx_cv_sizeof_wchar_t=0
16669 ;;
16670 * )
16671 wx_cv_sizeof_wchar_t=4
16672 ;;
16673 esac
e6cc62c6
VS
16674
16675
6f72b082 16676else
e6cc62c6
VS
16677 cat >conftest.$ac_ext <<_ACEOF
16678#line $LINENO "configure"
16679/* confdefs.h. */
16680_ACEOF
16681cat confdefs.h >>conftest.$ac_ext
16682cat >>conftest.$ac_ext <<_ACEOF
16683/* end confdefs.h. */
21d1c967 16684
2b5f62a0
VZ
16685 /* DJGPP only has fake wchar_t: */
16686 #ifdef __DJGPP__
16687 # error "fake wchar_t"
16688 #endif
21d1c967
GD
16689 #ifdef HAVE_WCHAR_H
16690 # ifdef __CYGWIN__
16691 # include <stddef.h>
16692 # endif
16693 # include <wchar.h>
16694 #endif
16695 #ifdef HAVE_STDLIB_H
16696 # include <stdlib.h>
16697 #endif
16698 #include <stdio.h>
16699 int main()
16700 {
16701 FILE *f=fopen("conftestval", "w");
16702 if (!f) exit(1);
16703 fprintf(f, "%i", sizeof(wchar_t));
16704 exit(0);
16705 }
e6cc62c6
VS
16706
16707_ACEOF
16708rm -f conftest$ac_exeext
16709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16710 (eval $ac_link) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
21d1c967 16719 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16720else
e6cc62c6
VS
16721 echo "$as_me: program exited with status $ac_status" >&5
16722echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
16725( exit $ac_status )
16726wx_cv_sizeof_wchar_t=0
6f72b082 16727fi
e6cc62c6 16728rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16729fi
6f72b082 16730
3f345b47 16731fi
e6cc62c6
VS
16732echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16733echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16734
e6cc62c6 16735cat >>confdefs.h <<_ACEOF
21d1c967 16736#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16737_ACEOF
90dd450c 16738
8284b0c5 16739
21d1c967
GD
16740# Check whether --enable-largefile or --disable-largefile was given.
16741if test "${enable_largefile+set}" = set; then
16742 enableval="$enable_largefile"
3f345b47 16743
e6cc62c6 16744fi;
21d1c967
GD
16745if test "$enable_largefile" != no; then
16746 wx_largefile=no
e6cc62c6
VS
16747
16748 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16749echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16750if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16752else
16753
16754 cat >conftest.$ac_ext <<_ACEOF
16755#line $LINENO "configure"
16756/* confdefs.h. */
16757_ACEOF
16758cat confdefs.h >>conftest.$ac_ext
16759cat >>conftest.$ac_ext <<_ACEOF
16760/* end confdefs.h. */
21d1c967
GD
16761#define _FILE_OFFSET_BITS 64
16762 #include <sys/types.h>
e6cc62c6
VS
16763int
16764main ()
16765{
21d1c967
GD
16766typedef struct {
16767 unsigned int field: sizeof(off_t) == 8;
16768} wxlf;
16769
e6cc62c6
VS
16770 ;
16771 return 0;
16772}
16773_ACEOF
16774rm -f conftest.$ac_objext
16775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776 (eval $ac_compile) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
16780 { ac_try='test -s conftest.$ac_objext'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
21d1c967 16786 ac_cv_sys_file_offset_bits=64
f6bcfd97 16787else
e6cc62c6
VS
16788 echo "$as_me: failed program was:" >&5
16789sed 's/^/| /' conftest.$ac_ext >&5
16790
16791ac_cv_sys_file_offset_bits=no
247f5006 16792fi
e6cc62c6
VS
16793rm -f conftest.$ac_objext conftest.$ac_ext
16794
a0b9e27f 16795
e6cc62c6
VS
16796fi
16797echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16798echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16799
16800 if test "$ac_cv_sys_file_offset_bits" != no; then
16801 wx_largefile=yes
e6cc62c6 16802 cat >>confdefs.h <<_ACEOF
21d1c967 16803#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16804_ACEOF
21d1c967
GD
16805
16806 fi
16807
16808 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16809
16810 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16811echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16812if test "${ac_cv_sys_large_files+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16814else
16815
16816 cat >conftest.$ac_ext <<_ACEOF
16817#line $LINENO "configure"
16818/* confdefs.h. */
16819_ACEOF
16820cat confdefs.h >>conftest.$ac_ext
16821cat >>conftest.$ac_ext <<_ACEOF
16822/* end confdefs.h. */
21d1c967
GD
16823#define _LARGE_FILES 1
16824 #include <sys/types.h>
e6cc62c6
VS
16825int
16826main ()
16827{
21d1c967
GD
16828typedef struct {
16829 unsigned int field: sizeof(off_t) == 8;
16830} wxlf;
16831
e6cc62c6
VS
16832 ;
16833 return 0;
16834}
16835_ACEOF
16836rm -f conftest.$ac_objext
16837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838 (eval $ac_compile) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -s conftest.$ac_objext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
21d1c967 16848 ac_cv_sys_large_files=1
f6bcfd97 16849else
e6cc62c6
VS
16850 echo "$as_me: failed program was:" >&5
16851sed 's/^/| /' conftest.$ac_ext >&5
16852
16853ac_cv_sys_large_files=no
247f5006 16854fi
e6cc62c6 16855rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16856
e6cc62c6
VS
16857
16858fi
16859echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16860echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16861
21d1c967
GD
16862 if test "$ac_cv_sys_large_files" != no; then
16863 wx_largefile=yes
e6cc62c6 16864 cat >>confdefs.h <<_ACEOF
21d1c967 16865#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16866_ACEOF
90dd450c 16867
90dd450c
VZ
16868 fi
16869
90dd450c 16870 fi
90dd450c 16871
e6cc62c6
VS
16872 echo "$as_me:$LINENO: checking if large file support is available" >&5
16873echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16874 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16875 cat >>confdefs.h <<\_ACEOF
21d1c967 16876#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16877_ACEOF
90dd450c 16878
90dd450c 16879 fi
e6cc62c6
VS
16880 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16881echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16882fi
90dd450c 16883
8284b0c5 16884
f02444d0 16885if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16886 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16887 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16888 else
e26c13cf 16889 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16890 fi
e26c13cf 16891 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16892fi
16893
e6cc62c6
VS
16894echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16895echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16896if test "${ac_cv_c_bigendian+set}" = set; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16898else
21d1c967
GD
16899 ac_cv_c_bigendian=unknown
16900# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16901cat >conftest.$ac_ext <<_ACEOF
16902#line $LINENO "configure"
16903/* confdefs.h. */
16904_ACEOF
16905cat confdefs.h >>conftest.$ac_ext
16906cat >>conftest.$ac_ext <<_ACEOF
16907/* end confdefs.h. */
21d1c967
GD
16908#include <sys/types.h>
16909#include <sys/param.h>
e6cc62c6
VS
16910int
16911main ()
16912{
21d1c967
GD
16913
16914#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16915 bogus endian macros
16916#endif
e6cc62c6
VS
16917 ;
16918 return 0;
16919}
16920_ACEOF
16921rm -f conftest.$ac_objext
16922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16923 (eval $ac_compile) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try='test -s conftest.$ac_objext'
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16930 ac_status=$?
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; }; then
21d1c967 16933 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16934cat >conftest.$ac_ext <<_ACEOF
16935#line $LINENO "configure"
16936/* confdefs.h. */
16937_ACEOF
16938cat confdefs.h >>conftest.$ac_ext
16939cat >>conftest.$ac_ext <<_ACEOF
16940/* end confdefs.h. */
21d1c967
GD
16941#include <sys/types.h>
16942#include <sys/param.h>
e6cc62c6
VS
16943int
16944main ()
16945{
21d1c967
GD
16946
16947#if BYTE_ORDER != BIG_ENDIAN
16948 not big endian
16949#endif
e6cc62c6
VS
16950 ;
16951 return 0;
16952}
16953_ACEOF
16954rm -f conftest.$ac_objext
16955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956 (eval $ac_compile) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
16960 { ac_try='test -s conftest.$ac_objext'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
21d1c967 16966 ac_cv_c_bigendian=yes
3f345b47 16967else
e6cc62c6
VS
16968 echo "$as_me: failed program was:" >&5
16969sed 's/^/| /' conftest.$ac_ext >&5
16970
16971ac_cv_c_bigendian=no
3f345b47 16972fi
e6cc62c6 16973rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16974else
e6cc62c6
VS
16975 echo "$as_me: failed program was:" >&5
16976sed 's/^/| /' conftest.$ac_ext >&5
16977
3f345b47 16978fi
e6cc62c6 16979rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16980if test $ac_cv_c_bigendian = unknown; then
16981if test "$cross_compiling" = yes; then
16982 ac_cv_c_bigendian=unknown
10f2d63a 16983else
e6cc62c6
VS
16984 cat >conftest.$ac_ext <<_ACEOF
16985#line $LINENO "configure"
16986/* confdefs.h. */
16987_ACEOF
16988cat confdefs.h >>conftest.$ac_ext
16989cat >>conftest.$ac_ext <<_ACEOF
16990/* end confdefs.h. */
21d1c967
GD
16991main () {
16992 /* Are we little or big endian? From Harbison&Steele. */
16993 union
16994 {
16995 long l;
16996 char c[sizeof (long)];
16997 } u;
16998 u.l = 1;
16999 exit (u.c[sizeof (long) - 1] == 1);
17000}
e6cc62c6
VS
17001_ACEOF
17002rm -f conftest$ac_exeext
17003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17004 (eval $ac_link) 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
21d1c967 17013 ac_cv_c_bigendian=no
3f345b47 17014else
e6cc62c6
VS
17015 echo "$as_me: program exited with status $ac_status" >&5
17016echo "$as_me: failed program was:" >&5
17017sed 's/^/| /' conftest.$ac_ext >&5
17018
17019( exit $ac_status )
17020ac_cv_c_bigendian=yes
247f5006 17021fi
e6cc62c6 17022rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17023fi
3f345b47 17024fi
8168de4c 17025fi
e6cc62c6
VS
17026echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17027echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17028if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17029 { 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
17030echo "$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
17031fi
17032if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17033 cat >>confdefs.h <<\_ACEOF
247f5006 17034#define WORDS_BIGENDIAN 1
e6cc62c6 17035_ACEOF
247f5006
VZ
17036
17037fi
17038
17039
e6cc62c6
VS
17040
17041ac_ext=cc
17042ac_cpp='$CXXCPP $CPPFLAGS'
17043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17046echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17047echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17048if test -z "$CXXCPP"; then
e6cc62c6
VS
17049 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051else
17052 # Double quotes because CXXCPP needs to be expanded
17053 for CXXCPP in "$CXX -E" "/lib/cpp"
17054 do
17055 ac_preproc_ok=false
17056for ac_cxx_preproc_warn_flag in '' yes
17057do
17058 # Use a header file that comes with gcc, so configuring glibc
17059 # with a fresh cross-compiler works.
17060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17061 # <limits.h> exists even on freestanding compilers.
17062 # On the NeXT, cc -E runs the code through the compiler's parser,
17063 # not just through cpp. "Syntax error" is here to catch this case.
17064 cat >conftest.$ac_ext <<_ACEOF
17065#line $LINENO "configure"
17066/* confdefs.h. */
17067_ACEOF
17068cat confdefs.h >>conftest.$ac_ext
17069cat >>conftest.$ac_ext <<_ACEOF
17070/* end confdefs.h. */
17071#ifdef __STDC__
17072# include <limits.h>
17073#else
17074# include <assert.h>
17075#endif
17076 Syntax error
17077_ACEOF
17078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17080 ac_status=$?
17081 grep -v '^ *+' conftest.er1 >conftest.err
17082 rm -f conftest.er1
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } >/dev/null; then
17086 if test -s conftest.err; then
17087 ac_cpp_err=$ac_cxx_preproc_warn_flag
17088 else
17089 ac_cpp_err=
17090 fi
247f5006 17091else
e6cc62c6
VS
17092 ac_cpp_err=yes
17093fi
17094if test -z "$ac_cpp_err"; then
17095 :
17096else
17097 echo "$as_me: failed program was:" >&5
17098sed 's/^/| /' conftest.$ac_ext >&5
17099
17100 # Broken: fails on valid input.
17101continue
17102fi
17103rm -f conftest.err conftest.$ac_ext
17104
17105 # OK, works on sane cases. Now check whether non-existent headers
17106 # can be detected and how.
17107 cat >conftest.$ac_ext <<_ACEOF
17108#line $LINENO "configure"
17109/* confdefs.h. */
17110_ACEOF
17111cat confdefs.h >>conftest.$ac_ext
17112cat >>conftest.$ac_ext <<_ACEOF
17113/* end confdefs.h. */
17114#include <ac_nonexistent.h>
17115_ACEOF
17116if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17118 ac_status=$?
17119 grep -v '^ *+' conftest.er1 >conftest.err
17120 rm -f conftest.er1
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } >/dev/null; then
17124 if test -s conftest.err; then
17125 ac_cpp_err=$ac_cxx_preproc_warn_flag
17126 else
17127 ac_cpp_err=
17128 fi
17129else
17130 ac_cpp_err=yes
17131fi
17132if test -z "$ac_cpp_err"; then
17133 # Broken: success on invalid input.
17134continue
17135else
17136 echo "$as_me: failed program was:" >&5
17137sed 's/^/| /' conftest.$ac_ext >&5
17138
17139 # Passes both tests.
17140ac_preproc_ok=:
17141break
17142fi
17143rm -f conftest.err conftest.$ac_ext
17144
17145done
17146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17147rm -f conftest.err conftest.$ac_ext
17148if $ac_preproc_ok; then
17149 break
17150fi
17151
17152 done
17153 ac_cv_prog_CXXCPP=$CXXCPP
17154
17155fi
17156 CXXCPP=$ac_cv_prog_CXXCPP
17157else
17158 ac_cv_prog_CXXCPP=$CXXCPP
17159fi
17160echo "$as_me:$LINENO: result: $CXXCPP" >&5
17161echo "${ECHO_T}$CXXCPP" >&6
17162ac_preproc_ok=false
17163for ac_cxx_preproc_warn_flag in '' yes
17164do
17165 # Use a header file that comes with gcc, so configuring glibc
17166 # with a fresh cross-compiler works.
17167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17168 # <limits.h> exists even on freestanding compilers.
17169 # On the NeXT, cc -E runs the code through the compiler's parser,
17170 # not just through cpp. "Syntax error" is here to catch this case.
17171 cat >conftest.$ac_ext <<_ACEOF
17172#line $LINENO "configure"
17173/* confdefs.h. */
17174_ACEOF
17175cat confdefs.h >>conftest.$ac_ext
17176cat >>conftest.$ac_ext <<_ACEOF
17177/* end confdefs.h. */
17178#ifdef __STDC__
17179# include <limits.h>
17180#else
17181# include <assert.h>
17182#endif
17183 Syntax error
17184_ACEOF
17185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17187 ac_status=$?
17188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } >/dev/null; then
17193 if test -s conftest.err; then
17194 ac_cpp_err=$ac_cxx_preproc_warn_flag
17195 else
17196 ac_cpp_err=
17197 fi
17198else
17199 ac_cpp_err=yes
17200fi
17201if test -z "$ac_cpp_err"; then
21d1c967 17202 :
698dcdb6 17203else
e6cc62c6
VS
17204 echo "$as_me: failed program was:" >&5
17205sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 # Broken: fails on valid input.
17208continue
17209fi
17210rm -f conftest.err conftest.$ac_ext
17211
17212 # OK, works on sane cases. Now check whether non-existent headers
17213 # can be detected and how.
17214 cat >conftest.$ac_ext <<_ACEOF
17215#line $LINENO "configure"
17216/* confdefs.h. */
17217_ACEOF
17218cat confdefs.h >>conftest.$ac_ext
17219cat >>conftest.$ac_ext <<_ACEOF
17220/* end confdefs.h. */
17221#include <ac_nonexistent.h>
17222_ACEOF
17223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17225 ac_status=$?
17226 grep -v '^ *+' conftest.er1 >conftest.err
17227 rm -f conftest.er1
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } >/dev/null; then
17231 if test -s conftest.err; then
17232 ac_cpp_err=$ac_cxx_preproc_warn_flag
17233 else
17234 ac_cpp_err=
17235 fi
17236else
17237 ac_cpp_err=yes
247f5006 17238fi
e6cc62c6
VS
17239if test -z "$ac_cpp_err"; then
17240 # Broken: success on invalid input.
17241continue
17242else
17243 echo "$as_me: failed program was:" >&5
17244sed 's/^/| /' conftest.$ac_ext >&5
17245
17246 # Passes both tests.
17247ac_preproc_ok=:
17248break
328a083c 17249fi
e6cc62c6
VS
17250rm -f conftest.err conftest.$ac_ext
17251
17252done
17253# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17254rm -f conftest.err conftest.$ac_ext
17255if $ac_preproc_ok; then
17256 :
17257else
17258 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17259See \`config.log' for more details." >&5
17260echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17261See \`config.log' for more details." >&2;}
17262 { (exit 1); exit 1; }; }
90dd450c 17263fi
e6cc62c6
VS
17264
17265ac_ext=cc
17266ac_cpp='$CXXCPP $CPPFLAGS'
17267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17270
1e6feb95 17271
1725144d 17272
21d1c967 17273 if test "$cross_compiling" = "yes"; then
e6cc62c6 17274 cat >>confdefs.h <<\_ACEOF
21d1c967 17275#define wxUSE_IOSTREAMH 1
e6cc62c6 17276_ACEOF
ab9b9eab 17277
21d1c967 17278 else
e6cc62c6
VS
17279
17280
17281 ac_ext=cc
5c6fa7d2 17282ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17286
52127426 17287
247f5006 17288
e6cc62c6 17289for ac_header in iostream
21d1c967 17290do
e6cc62c6
VS
17291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17292if eval "test \"\${$as_ac_Header+set}\" = set"; then
17293 echo "$as_me:$LINENO: checking for $ac_header" >&5
17294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17295if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17297fi
17298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17299echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17300else
17301 # Is the header compilable?
17302echo "$as_me:$LINENO: checking $ac_header usability" >&5
17303echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17304cat >conftest.$ac_ext <<_ACEOF
17305#line $LINENO "configure"
17306/* confdefs.h. */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h. */
17311$ac_includes_default
17312#include <$ac_header>
17313_ACEOF
17314rm -f conftest.$ac_objext
17315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -s conftest.$ac_objext'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_header_compiler=yes
17327else
17328 echo "$as_me: failed program was:" >&5
17329sed 's/^/| /' conftest.$ac_ext >&5
17330
17331ac_header_compiler=no
17332fi
17333rm -f conftest.$ac_objext conftest.$ac_ext
17334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17335echo "${ECHO_T}$ac_header_compiler" >&6
17336
17337# Is the header present?
17338echo "$as_me:$LINENO: checking $ac_header presence" >&5
17339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17340cat >conftest.$ac_ext <<_ACEOF
17341#line $LINENO "configure"
17342/* confdefs.h. */
17343_ACEOF
17344cat confdefs.h >>conftest.$ac_ext
17345cat >>conftest.$ac_ext <<_ACEOF
17346/* end confdefs.h. */
17347#include <$ac_header>
17348_ACEOF
17349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } >/dev/null; then
17357 if test -s conftest.err; then
17358 ac_cpp_err=$ac_cxx_preproc_warn_flag
17359 else
17360 ac_cpp_err=
17361 fi
17362else
17363 ac_cpp_err=yes
17364fi
17365if test -z "$ac_cpp_err"; then
17366 ac_header_preproc=yes
17367else
17368 echo "$as_me: failed program was:" >&5
17369sed 's/^/| /' conftest.$ac_ext >&5
17370
17371 ac_header_preproc=no
17372fi
17373rm -f conftest.err conftest.$ac_ext
17374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17375echo "${ECHO_T}$ac_header_preproc" >&6
17376
17377# So? What about this header?
17378case $ac_header_compiler:$ac_header_preproc in
17379 yes:no )
17380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17384 (
17385 cat <<\_ASBOX
17386## ------------------------------------ ##
17387## Report this to bug-autoconf@gnu.org. ##
17388## ------------------------------------ ##
17389_ASBOX
17390 ) |
17391 sed "s/^/$as_me: WARNING: /" >&2
17392 ;;
17393 no:yes )
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17400 (
17401 cat <<\_ASBOX
17402## ------------------------------------ ##
17403## Report this to bug-autoconf@gnu.org. ##
17404## ------------------------------------ ##
17405_ASBOX
17406 ) |
17407 sed "s/^/$as_me: WARNING: /" >&2
17408 ;;
17409esac
17410echo "$as_me:$LINENO: checking for $ac_header" >&5
17411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17412if eval "test \"\${$as_ac_Header+set}\" = set"; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414else
17415 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17416fi
e6cc62c6
VS
17417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17419
90dd450c 17420fi
e6cc62c6
VS
17421if test `eval echo '${'$as_ac_Header'}'` = yes; then
17422 cat >>confdefs.h <<_ACEOF
17423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17424_ACEOF
17425
90dd450c 17426fi
e6cc62c6 17427
21d1c967 17428done
10f2d63a 17429
8284b0c5 17430
21d1c967
GD
17431 if test "$ac_cv_header_iostream" = "yes" ; then
17432 :
17433 else
e6cc62c6 17434 cat >>confdefs.h <<\_ACEOF
21d1c967 17435#define wxUSE_IOSTREAMH 1
e6cc62c6 17436_ACEOF
788deba1 17437
90dd450c 17438 fi
ab9b9eab 17439
21d1c967 17440 ac_ext=c
21d1c967 17441ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17444ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17445
21d1c967 17446 fi
ab9b9eab 17447
52127426 17448
8284b0c5 17449
e6cc62c6
VS
17450 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17451echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17452if test "${wx_cv_cpp_bool+set}" = set; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17454else
e6cc62c6
VS
17455
17456
17457
17458 ac_ext=cc
5c6fa7d2 17459ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17463
8284b0c5 17464
e6cc62c6
VS
17465 cat >conftest.$ac_ext <<_ACEOF
17466#line $LINENO "configure"
17467/* confdefs.h. */
17468_ACEOF
17469cat confdefs.h >>conftest.$ac_ext
17470cat >>conftest.$ac_ext <<_ACEOF
17471/* end confdefs.h. */
21d1c967 17472
e6cc62c6
VS
17473
17474int
17475main ()
17476{
21d1c967
GD
17477
17478 bool b = true;
17479
17480 return 0;
e6cc62c6
VS
17481
17482 ;
17483 return 0;
17484}
17485_ACEOF
17486rm -f conftest.$ac_objext
17487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17488 (eval $ac_compile) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); } &&
17492 { ac_try='test -s conftest.$ac_objext'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498
21d1c967 17499 wx_cv_cpp_bool=yes
e6cc62c6 17500
698dcdb6 17501else
e6cc62c6
VS
17502 echo "$as_me: failed program was:" >&5
17503sed 's/^/| /' conftest.$ac_ext >&5
17504
17505
21d1c967 17506 wx_cv_cpp_bool=no
e6cc62c6
VS
17507
17508
698dcdb6 17509fi
e6cc62c6 17510rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17511
17512 ac_ext=c
21d1c967 17513ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17517
a0b9e27f 17518
e6cc62c6
VS
17519fi
17520echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17521echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17522
17523 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17524 cat >>confdefs.h <<\_ACEOF
21d1c967 17525#define HAVE_BOOL 1
e6cc62c6 17526_ACEOF
ab9b9eab 17527
21d1c967
GD
17528 fi
17529
52127426 17530
8284b0c5 17531
e6cc62c6
VS
17532 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17533echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17534if test "${wx_cv_explicit+set}" = set; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17536else
e6cc62c6
VS
17537
17538
17539
17540 ac_ext=cc
5c6fa7d2 17541ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17545
8284b0c5 17546
e6cc62c6
VS
17547 cat >conftest.$ac_ext <<_ACEOF
17548#line $LINENO "configure"
17549/* confdefs.h. */
17550_ACEOF
17551cat confdefs.h >>conftest.$ac_ext
17552cat >>conftest.$ac_ext <<_ACEOF
17553/* end confdefs.h. */
986ecc86
VZ
17554
17555 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17556
17557int
17558main ()
17559{
986ecc86
VZ
17560
17561 return 0;
e6cc62c6
VS
17562
17563 ;
17564 return 0;
17565}
17566_ACEOF
17567rm -f conftest.$ac_objext
17568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569 (eval $ac_compile) 2>&5
17570 ac_status=$?
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -s conftest.$ac_objext'
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; }; then
17579
17580 cat >conftest.$ac_ext <<_ACEOF
17581#line $LINENO "configure"
17582/* confdefs.h. */
17583_ACEOF
17584cat confdefs.h >>conftest.$ac_ext
17585cat >>conftest.$ac_ext <<_ACEOF
17586/* end confdefs.h. */
986ecc86
VZ
17587
17588 class Foo { public: explicit Foo(int) {} };
17589 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17590
17591int
17592main ()
17593{
986ecc86
VZ
17594
17595 TakeFoo(17);
17596 return 0;
e6cc62c6
VS
17597
17598 ;
17599 return 0;
17600}
17601_ACEOF
17602rm -f conftest.$ac_objext
17603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17604 (eval $ac_compile) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } &&
17608 { ac_try='test -s conftest.$ac_objext'
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
986ecc86
VZ
17614 wx_cv_explicit=no
17615else
e6cc62c6
VS
17616 echo "$as_me: failed program was:" >&5
17617sed 's/^/| /' conftest.$ac_ext >&5
17618
17619wx_cv_explicit=yes
17620
986ecc86 17621fi
e6cc62c6
VS
17622rm -f conftest.$ac_objext conftest.$ac_ext
17623
986ecc86 17624else
e6cc62c6
VS
17625 echo "$as_me: failed program was:" >&5
17626sed 's/^/| /' conftest.$ac_ext >&5
17627
17628wx_cv_explicit=no
17629
986ecc86 17630fi
e6cc62c6 17631rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17632
17633 ac_ext=c
986ecc86 17634ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17637ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17638
a0b9e27f 17639
e6cc62c6
VS
17640fi
17641echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17642echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17643
17644 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17645 cat >>confdefs.h <<\_ACEOF
986ecc86 17646#define HAVE_EXPLICIT 1
e6cc62c6 17647_ACEOF
986ecc86
VZ
17648
17649 fi
17650
8284b0c5 17651
e6cc62c6
VS
17652echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17653echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17654if test "${ac_cv_cxx_const_cast+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17656else
521196a2 17657
521196a2 17658
e6cc62c6
VS
17659 ac_ext=cc
17660ac_cpp='$CXXCPP $CPPFLAGS'
17661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17664
17665 cat >conftest.$ac_ext <<_ACEOF
17666#line $LINENO "configure"
17667/* confdefs.h. */
17668_ACEOF
17669cat confdefs.h >>conftest.$ac_ext
17670cat >>conftest.$ac_ext <<_ACEOF
17671/* end confdefs.h. */
17672
17673int
17674main ()
17675{
521196a2 17676int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17677 ;
17678 return 0;
17679}
17680_ACEOF
17681rm -f conftest.$ac_objext
17682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17683 (eval $ac_compile) 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try='test -s conftest.$ac_objext'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
521196a2
MB
17693 ac_cv_cxx_const_cast=yes
17694else
e6cc62c6
VS
17695 echo "$as_me: failed program was:" >&5
17696sed 's/^/| /' conftest.$ac_ext >&5
17697
17698ac_cv_cxx_const_cast=no
521196a2 17699fi
e6cc62c6 17700rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17701 ac_ext=c
521196a2 17702ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17705ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17706
17707
17708fi
e6cc62c6
VS
17709echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17710echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17711if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17712
17713cat >>confdefs.h <<\_ACEOF
17714#define HAVE_CONST_CAST
17715_ACEOF
521196a2
MB
17716
17717fi
17718
17719
e87b7833
MB
17720if test "$wxUSE_STL" = "yes"; then
17721 ac_ext=cc
17722ac_cpp='$CXXCPP $CPPFLAGS'
17723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17726
17727
17728 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17729echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17730 cat >conftest.$ac_ext <<_ACEOF
17731#line $LINENO "configure"
17732/* confdefs.h. */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h. */
17737#include <string>
17738 #include <functional>
17739 #include <algorithm>
17740 #include <vector>
17741 #include <list>
17742int
17743main ()
17744{
17745std::vector<int> moo;
17746 std::list<int> foo;
17747 std::vector<int>::iterator it =
17748 std::find_if(moo.begin(), moo.end(),
17749 std::bind2nd(std::less<int>(), 3));
17750 ;
17751 return 0;
17752}
17753_ACEOF
17754rm -f conftest.$ac_objext
17755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17756 (eval $ac_compile) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
17760 { ac_try='test -s conftest.$ac_objext'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 echo "$as_me:$LINENO: result: yes" >&5
17767echo "${ECHO_T}yes" >&6
17768else
17769 echo "$as_me: failed program was:" >&5
17770sed 's/^/| /' conftest.$ac_ext >&5
17771
17772echo "$as_me:$LINENO: result: no" >&5
17773echo "${ECHO_T}no" >&6
17774 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17775echo "$as_me: error: Basic STL functionality missing" >&2;}
17776 { (exit 1); exit 1; }; }
17777fi
17778rm -f conftest.$ac_objext conftest.$ac_ext
17779
17780 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17781echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17782 cat >conftest.$ac_ext <<_ACEOF
17783#line $LINENO "configure"
17784/* confdefs.h. */
17785_ACEOF
17786cat confdefs.h >>conftest.$ac_ext
17787cat >>conftest.$ac_ext <<_ACEOF
17788/* end confdefs.h. */
17789#include <string>
17790int
17791main ()
17792{
17793std::wstring foo;
17794 ;
17795 return 0;
17796}
17797_ACEOF
17798rm -f conftest.$ac_objext
17799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17800 (eval $ac_compile) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -s conftest.$ac_objext'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; }; then
17810 echo "$as_me:$LINENO: result: yes" >&5
17811echo "${ECHO_T}yes" >&6
17812 cat >>confdefs.h <<\_ACEOF
17813#define HAVE_STD_WSTRING 1
17814_ACEOF
17815
17816else
17817 echo "$as_me: failed program was:" >&5
17818sed 's/^/| /' conftest.$ac_ext >&5
17819
17820echo "$as_me:$LINENO: result: no" >&5
17821echo "${ECHO_T}no" >&6
17822fi
17823rm -f conftest.$ac_objext conftest.$ac_ext
17824
17825 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17826echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17827 cat >conftest.$ac_ext <<_ACEOF
17828#line $LINENO "configure"
17829/* confdefs.h. */
17830_ACEOF
17831cat confdefs.h >>conftest.$ac_ext
17832cat >>conftest.$ac_ext <<_ACEOF
17833/* end confdefs.h. */
17834#include <string>
17835int
17836main ()
17837{
17838std::string foo, bar;
17839 foo.compare(bar);
17840 foo.compare(1, 1, bar);
17841 foo.compare(1, 1, bar, 1, 1);
17842 foo.compare("");
17843 foo.compare(1, 1, "");
17844 foo.compare(1, 1, "", 2);
17845 ;
17846 return 0;
17847}
17848_ACEOF
17849rm -f conftest.$ac_objext
17850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17851 (eval $ac_compile) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -s conftest.$ac_objext'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17861 echo "$as_me:$LINENO: result: yes" >&5
17862echo "${ECHO_T}yes" >&6
17863 cat >>confdefs.h <<\_ACEOF
17864#define HAVE_STD_STRING_COMPARE 1
17865_ACEOF
17866
17867else
17868 echo "$as_me: failed program was:" >&5
17869sed 's/^/| /' conftest.$ac_ext >&5
17870
17871echo "$as_me:$LINENO: result: no" >&5
17872echo "${ECHO_T}no" >&6
17873fi
17874rm -f conftest.$ac_objext conftest.$ac_ext
17875
17876 ac_ext=c
17877ac_cpp='$CPP $CPPFLAGS'
17878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880ac_compiler_gnu=$ac_cv_c_compiler_gnu
17881
17882fi
17883
8284b0c5 17884
21d1c967
GD
17885SEARCH_INCLUDE="\
17886 /usr/local/include \
17887 \
17888 /usr/Motif-1.2/include \
17889 /usr/Motif-2.1/include \
17890 \
17891 /usr/include/Motif1.2 \
17892 /opt/xpm/include/X11 \
17893 /opt/GBxpm/include/ \
17894 /opt/GBxpm/X11/include/ \
17895 \
17896 /usr/Motif1.2/include \
17897 /usr/dt/include \
17898 /usr/openwin/include \
17899 \
17900 /usr/include/Xm \
17901 \
17902 /usr/X11R6/include \
17903 /usr/X11R6.4/include \
17904 /usr/X11R5/include \
17905 /usr/X11R4/include \
17906 \
17907 /usr/include/X11R6 \
17908 /usr/include/X11R5 \
17909 /usr/include/X11R4 \
17910 \
17911 /usr/local/X11R6/include \
17912 /usr/local/X11R5/include \
17913 /usr/local/X11R4/include \
17914 \
17915 /usr/local/include/X11R6 \
17916 /usr/local/include/X11R5 \
17917 /usr/local/include/X11R4 \
17918 \
17919 /usr/X11/include \
17920 /usr/include/X11 \
17921 /usr/local/X11/include \
17922 /usr/local/include/X11 \
17923 \
17924 /usr/X386/include \
17925 /usr/x386/include \
17926 /usr/XFree86/include/X11 \
17927 \
17928 X:/XFree86/include \
17929 X:/XFree86/include/X11 \
17930 \
17931 /usr/include/gtk \
17932 /usr/local/include/gtk \
17933 /usr/include/glib \
17934 /usr/local/include/glib \
17935 \
17936 /usr/include/qt \
17937 /usr/local/include/qt \
17938 \
17939 /usr/include/windows \
17940 /usr/include/wine \
17941 /usr/local/include/wine \
17942 \
17943 /usr/unsupported/include \
17944 /usr/athena/include \
17945 /usr/local/x11r5/include \
17946 /usr/lpp/Xamples/include \
17947 \
2b5f62a0 17948 /usr/openwin/share/include"
21d1c967
GD
17949
17950SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17951
8284b0c5 17952
e6cc62c6 17953cat >confcache <<\_ACEOF
21d1c967
GD
17954# This file is a shell script that caches the results of configure
17955# tests run on this system so they can be shared between configure
e6cc62c6
VS
17956# scripts and configure runs, see configure's option --config-cache.
17957# It is not useful on other systems. If it contains results you don't
17958# want to keep, you may remove or edit it.
21d1c967 17959#
e6cc62c6
VS
17960# config.status only pays attention to the cache file if you give it
17961# the --recheck option to rerun configure.
21d1c967 17962#
e6cc62c6
VS
17963# `ac_cv_env_foo' variables (set or unset) will be overridden when
17964# loading this file, other *unset* `ac_cv_foo' will be assigned the
17965# following values.
17966
17967_ACEOF
17968
21d1c967
GD
17969# The following way of writing the cache mishandles newlines in values,
17970# but we know of no workaround that is simple, portable, and efficient.
17971# So, don't put newlines in cache variables' values.
17972# Ultrix sh set writes to stderr and can't be redirected directly,
17973# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17974{
17975 (set) 2>&1 |
17976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17977 *ac_space=\ *)
17978 # `set' does not quote correctly, so add quotes (double-quote
17979 # substitution turns \\\\ into \\, and sed turns \\ into \).
17980 sed -n \
17981 "s/'/'\\\\''/g;
17982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17983 ;;
17984 *)
17985 # `set' quotes correctly as required by POSIX, so do not add quotes.
17986 sed -n \
17987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17988 ;;
17989 esac;
17990} |
17991 sed '
17992 t clear
17993 : clear
17994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17995 t end
17996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17997 : end' >>confcache
17998if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17999 if test -w $cache_file; then
e6cc62c6
VS
18000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18001 cat confcache >$cache_file
21d1c967
GD
18002 else
18003 echo "not updating unwritable cache $cache_file"
18004 fi
ab9b9eab 18005fi
21d1c967 18006rm -f confcache
ab9b9eab 18007
fe0895cf 18008if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18009 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18010echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18011if test "${wx_cv_lib_glibc21+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013else
18014
18015 cat >conftest.$ac_ext <<_ACEOF
18016#line $LINENO "configure"
18017/* confdefs.h. */
18018_ACEOF
18019cat confdefs.h >>conftest.$ac_ext
18020cat >>conftest.$ac_ext <<_ACEOF
18021/* end confdefs.h. */
21d1c967 18022#include <features.h>
e6cc62c6
VS
18023int
18024main ()
18025{
ab9b9eab 18026
21d1c967
GD
18027 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18028 #error not glibc2.1
18029 #endif
e6cc62c6
VS
18030
18031 ;
18032 return 0;
18033}
18034_ACEOF
18035rm -f conftest.$ac_objext
18036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18037 (eval $ac_compile) 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
18041 { ac_try='test -s conftest.$ac_objext'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18047
21d1c967 18048 wx_cv_lib_glibc21=yes
e6cc62c6 18049
698dcdb6 18050else
e6cc62c6
VS
18051 echo "$as_me: failed program was:" >&5
18052sed 's/^/| /' conftest.$ac_ext >&5
18053
18054
21d1c967 18055 wx_cv_lib_glibc21=no
e6cc62c6
VS
18056
18057
247f5006 18058fi
e6cc62c6 18059rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18060
e6cc62c6
VS
18061fi
18062echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18063echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18064 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18065 cat >>confdefs.h <<\_ACEOF
21d1c967 18066#define wxHAVE_GLIBC2 1
e6cc62c6 18067_ACEOF
1e487827 18068
90dd450c 18069 fi
ab9b9eab
VZ
18070fi
18071
5c0a20c3
VZ
18072if test "x$wx_cv_lib_glibc21" = "xyes"; then
18073 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18074 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18075#define _GNU_SOURCE 1
e6cc62c6 18076_ACEOF
5c0a20c3
VZ
18077
18078 fi
18079fi
18080
8284b0c5
MB
18081
18082
21d1c967
GD
18083REGEX_INCLUDE=
18084if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18085 cat >>confdefs.h <<\_ACEOF
21d1c967 18086#define wxUSE_REGEX 1
e6cc62c6 18087_ACEOF
698dcdb6 18088
8284b0c5 18089
21d1c967 18090 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18091 if test "${ac_cv_header_regex_h+set}" = set; then
18092 echo "$as_me:$LINENO: checking for regex.h" >&5
18093echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18094if test "${ac_cv_header_regex_h+set}" = set; then
18095 echo $ECHO_N "(cached) $ECHO_C" >&6
18096fi
18097echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18098echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18099else
18100 # Is the header compilable?
18101echo "$as_me:$LINENO: checking regex.h usability" >&5
18102echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18103cat >conftest.$ac_ext <<_ACEOF
18104#line $LINENO "configure"
18105/* confdefs.h. */
18106_ACEOF
18107cat confdefs.h >>conftest.$ac_ext
18108cat >>conftest.$ac_ext <<_ACEOF
18109/* end confdefs.h. */
18110$ac_includes_default
247f5006 18111#include <regex.h>
e6cc62c6
VS
18112_ACEOF
18113rm -f conftest.$ac_objext
18114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -s conftest.$ac_objext'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_header_compiler=yes
18126else
18127 echo "$as_me: failed program was:" >&5
18128sed 's/^/| /' conftest.$ac_ext >&5
18129
18130ac_header_compiler=no
18131fi
18132rm -f conftest.$ac_objext conftest.$ac_ext
18133echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18134echo "${ECHO_T}$ac_header_compiler" >&6
18135
18136# Is the header present?
18137echo "$as_me:$LINENO: checking regex.h presence" >&5
18138echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18139cat >conftest.$ac_ext <<_ACEOF
18140#line $LINENO "configure"
18141/* confdefs.h. */
18142_ACEOF
18143cat confdefs.h >>conftest.$ac_ext
18144cat >>conftest.$ac_ext <<_ACEOF
18145/* end confdefs.h. */
18146#include <regex.h>
18147_ACEOF
18148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } >/dev/null; then
18156 if test -s conftest.err; then
18157 ac_cpp_err=$ac_c_preproc_warn_flag
18158 else
18159 ac_cpp_err=
18160 fi
18161else
18162 ac_cpp_err=yes
18163fi
18164if test -z "$ac_cpp_err"; then
18165 ac_header_preproc=yes
18166else
18167 echo "$as_me: failed program was:" >&5
18168sed 's/^/| /' conftest.$ac_ext >&5
18169
18170 ac_header_preproc=no
18171fi
18172rm -f conftest.err conftest.$ac_ext
18173echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18174echo "${ECHO_T}$ac_header_preproc" >&6
18175
18176# So? What about this header?
18177case $ac_header_compiler:$ac_header_preproc in
18178 yes:no )
18179 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18180echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18181 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18182echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18183 (
18184 cat <<\_ASBOX
18185## ------------------------------------ ##
18186## Report this to bug-autoconf@gnu.org. ##
18187## ------------------------------------ ##
18188_ASBOX
18189 ) |
18190 sed "s/^/$as_me: WARNING: /" >&2
18191 ;;
18192 no:yes )
18193 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18194echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18195 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18196echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18197 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18198echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18199 (
18200 cat <<\_ASBOX
18201## ------------------------------------ ##
18202## Report this to bug-autoconf@gnu.org. ##
18203## ------------------------------------ ##
18204_ASBOX
18205 ) |
18206 sed "s/^/$as_me: WARNING: /" >&2
18207 ;;
18208esac
18209echo "$as_me:$LINENO: checking for regex.h" >&5
18210echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18211if test "${ac_cv_header_regex_h+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18213else
18214 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18215fi
e6cc62c6
VS
18216echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18217echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18218
698dcdb6 18219fi
e6cc62c6
VS
18220if test $ac_cv_header_regex_h = yes; then
18221
18222for ac_func in regcomp
21d1c967 18223do
e6cc62c6
VS
18224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18225echo "$as_me:$LINENO: checking for $ac_func" >&5
18226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18227if eval "test \"\${$as_ac_var+set}\" = set"; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18229else
18230 cat >conftest.$ac_ext <<_ACEOF
18231#line $LINENO "configure"
18232/* confdefs.h. */
18233_ACEOF
18234cat confdefs.h >>conftest.$ac_ext
18235cat >>conftest.$ac_ext <<_ACEOF
18236/* end confdefs.h. */
a0b9e27f 18237/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18238 which can conflict with char $ac_func (); below.
18239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18240 <limits.h> exists even on freestanding compilers. */
18241#ifdef __STDC__
18242# include <limits.h>
18243#else
18244# include <assert.h>
18245#endif
21d1c967 18246/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18247#ifdef __cplusplus
18248extern "C"
18249{
18250#endif
21d1c967 18251/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18252 builtin and then its argument prototype would still apply. */
18253char $ac_func ();
21d1c967
GD
18254/* The GNU C library defines this for functions which it implements
18255 to always fail with ENOSYS. Some functions are actually named
18256 something starting with __ and the normal name is an alias. */
18257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18258choke me
18259#else
e6cc62c6
VS
18260char (*f) () = $ac_func;
18261#endif
18262#ifdef __cplusplus
18263}
21d1c967 18264#endif
90dd450c 18265
e6cc62c6
VS
18266int
18267main ()
18268{
18269return f != $ac_func;
18270 ;
18271 return 0;
18272}
18273_ACEOF
18274rm -f conftest.$ac_objext conftest$ac_exeext
18275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18276 (eval $ac_link) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -s conftest$ac_exeext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 eval "$as_ac_var=yes"
18287else
18288 echo "$as_me: failed program was:" >&5
18289sed 's/^/| /' conftest.$ac_ext >&5
18290
18291eval "$as_ac_var=no"
18292fi
18293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18294fi
18295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18296echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18297if test `eval echo '${'$as_ac_var'}'` = yes; then
18298 cat >>confdefs.h <<_ACEOF
18299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18300_ACEOF
5c6fa7d2 18301
698dcdb6 18302fi
21d1c967
GD
18303done
18304
ab9b9eab
VZ
18305fi
18306
8284b0c5 18307
e6cc62c6 18308
21d1c967
GD
18309 if test "x$ac_cv_func_regcomp" != "xyes"; then
18310 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18311 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18312echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18313 { (exit 1); exit 1; }; }
21d1c967 18314 else
e6cc62c6
VS
18315 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18316echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18317 wxUSE_REGEX=builtin
18318 fi
18319 else
18320 wxUSE_REGEX=sys
18321 fi
ab9b9eab 18322 fi
90dd450c 18323
21d1c967
GD
18324 if test "$wxUSE_REGEX" = "builtin" ; then
18325 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18326 fi
21d1c967 18327fi
90dd450c 18328
8284b0c5 18329
21d1c967
GD
18330ZLIB_INCLUDE=
18331ZLIB_LINK=
18332if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18333 cat >>confdefs.h <<\_ACEOF
21d1c967 18334#define wxUSE_ZLIB 1
e6cc62c6 18335_ACEOF
21d1c967 18336
8284b0c5 18337
21d1c967 18338 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18339 if test "$USE_DARWIN" = 1; then
18340 system_zlib_h_ok="yes"
18341 else
e6cc62c6
VS
18342 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18343echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18344if test "${ac_cv_header_zlib_h+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18346else
18347 if test "$cross_compiling" = yes; then
89e6bf6d 18348 unset ac_cv_header_zlib_h
e6cc62c6 18349
d643b80e 18350else
e6cc62c6
VS
18351 cat >conftest.$ac_ext <<_ACEOF
18352#line $LINENO "configure"
18353/* confdefs.h. */
18354_ACEOF
18355cat confdefs.h >>conftest.$ac_ext
18356cat >>conftest.$ac_ext <<_ACEOF
18357/* end confdefs.h. */
18358
ef33c576 18359 #include <zlib.h>
d775acfa 18360 #include <stdio.h>
d643b80e 18361
d775acfa
VZ
18362 int main()
18363 {
18364 FILE *f=fopen("conftestval", "w");
18365 if (!f) exit(1);
18366 fprintf(f, "%s",
18367 ZLIB_VERSION[0] == '1' &&
18368 (ZLIB_VERSION[2] > '1' ||
18369 (ZLIB_VERSION[2] == '1' &&
18370 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18371 exit(0);
18372 }
e6cc62c6
VS
18373
18374_ACEOF
18375rm -f conftest$ac_exeext
18376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18377 (eval $ac_link) 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
d643b80e
VZ
18386 ac_cv_header_zlib_h=`cat conftestval`
18387else
e6cc62c6
VS
18388 echo "$as_me: program exited with status $ac_status" >&5
18389echo "$as_me: failed program was:" >&5
18390sed 's/^/| /' conftest.$ac_ext >&5
18391
18392( exit $ac_status )
18393ac_cv_header_zlib_h=no
d643b80e 18394fi
e6cc62c6 18395rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18396fi
18397
d643b80e 18398fi
e6cc62c6
VS
18399echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18400echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18401 if test "${ac_cv_header_zlib_h+set}" = set; then
18402 echo "$as_me:$LINENO: checking for zlib.h" >&5
18403echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18404if test "${ac_cv_header_zlib_h+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18406fi
18407echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18408echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18409else
e6cc62c6
VS
18410 # Is the header compilable?
18411echo "$as_me:$LINENO: checking zlib.h usability" >&5
18412echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18413cat >conftest.$ac_ext <<_ACEOF
18414#line $LINENO "configure"
18415/* confdefs.h. */
18416_ACEOF
18417cat confdefs.h >>conftest.$ac_ext
18418cat >>conftest.$ac_ext <<_ACEOF
18419/* end confdefs.h. */
18420$ac_includes_default
89e6bf6d 18421#include <zlib.h>
e6cc62c6
VS
18422_ACEOF
18423rm -f conftest.$ac_objext
18424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18425 (eval $ac_compile) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
18429 { ac_try='test -s conftest.$ac_objext'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_header_compiler=yes
18436else
18437 echo "$as_me: failed program was:" >&5
18438sed 's/^/| /' conftest.$ac_ext >&5
18439
18440ac_header_compiler=no
18441fi
18442rm -f conftest.$ac_objext conftest.$ac_ext
18443echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18444echo "${ECHO_T}$ac_header_compiler" >&6
18445
18446# Is the header present?
18447echo "$as_me:$LINENO: checking zlib.h presence" >&5
18448echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18449cat >conftest.$ac_ext <<_ACEOF
18450#line $LINENO "configure"
18451/* confdefs.h. */
18452_ACEOF
18453cat confdefs.h >>conftest.$ac_ext
18454cat >>conftest.$ac_ext <<_ACEOF
18455/* end confdefs.h. */
18456#include <zlib.h>
18457_ACEOF
18458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18460 ac_status=$?
18461 grep -v '^ *+' conftest.er1 >conftest.err
18462 rm -f conftest.er1
18463 cat conftest.err >&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } >/dev/null; then
18466 if test -s conftest.err; then
18467 ac_cpp_err=$ac_c_preproc_warn_flag
18468 else
18469 ac_cpp_err=
18470 fi
18471else
18472 ac_cpp_err=yes
18473fi
18474if test -z "$ac_cpp_err"; then
18475 ac_header_preproc=yes
18476else
18477 echo "$as_me: failed program was:" >&5
18478sed 's/^/| /' conftest.$ac_ext >&5
18479
18480 ac_header_preproc=no
18481fi
18482rm -f conftest.err conftest.$ac_ext
18483echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18484echo "${ECHO_T}$ac_header_preproc" >&6
18485
18486# So? What about this header?
18487case $ac_header_compiler:$ac_header_preproc in
18488 yes:no )
18489 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18490echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18491 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18492echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18493 (
18494 cat <<\_ASBOX
18495## ------------------------------------ ##
18496## Report this to bug-autoconf@gnu.org. ##
18497## ------------------------------------ ##
18498_ASBOX
18499 ) |
18500 sed "s/^/$as_me: WARNING: /" >&2
18501 ;;
18502 no:yes )
18503 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18504echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18505 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18506echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18507 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18508echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18509 (
18510 cat <<\_ASBOX
18511## ------------------------------------ ##
18512## Report this to bug-autoconf@gnu.org. ##
18513## ------------------------------------ ##
18514_ASBOX
18515 ) |
18516 sed "s/^/$as_me: WARNING: /" >&2
18517 ;;
18518esac
18519echo "$as_me:$LINENO: checking for zlib.h" >&5
18520echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18521if test "${ac_cv_header_zlib_h+set}" = set; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18523else
e6cc62c6
VS
18524 ac_cv_header_zlib_h=$ac_header_preproc
18525fi
18526echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18527echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18528
89e6bf6d
VZ
18529fi
18530
d643b80e 18531
e6cc62c6 18532
d775acfa
VZ
18533 system_zlib_h_ok=$ac_cv_header_zlib_h
18534 fi
18535
18536 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18537 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18538echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18539if test "${ac_cv_lib_z_deflate+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18541else
e6cc62c6 18542 ac_check_lib_save_LIBS=$LIBS
21d1c967 18543LIBS="-lz $LIBS"
e6cc62c6
VS
18544cat >conftest.$ac_ext <<_ACEOF
18545#line $LINENO "configure"
18546/* confdefs.h. */
18547_ACEOF
18548cat confdefs.h >>conftest.$ac_ext
18549cat >>conftest.$ac_ext <<_ACEOF
18550/* end confdefs.h. */
18551
21d1c967 18552/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18553#ifdef __cplusplus
18554extern "C"
18555#endif
21d1c967 18556/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18557 builtin and then its argument prototype would still apply. */
18558char deflate ();
18559int
18560main ()
18561{
18562deflate ();
18563 ;
18564 return 0;
18565}
18566_ACEOF
18567rm -f conftest.$ac_objext conftest$ac_exeext
18568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18569 (eval $ac_link) 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } &&
18573 { ac_try='test -s conftest$ac_exeext'
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18579 ac_cv_lib_z_deflate=yes
18580else
18581 echo "$as_me: failed program was:" >&5
18582sed 's/^/| /' conftest.$ac_ext >&5
18583
18584ac_cv_lib_z_deflate=no
18585fi
18586rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18587LIBS=$ac_check_lib_save_LIBS
18588fi
18589echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18590echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18591if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18592 ZLIB_LINK=" -lz"
a0b9e27f 18593fi
698dcdb6 18594
d643b80e 18595 fi
247f5006 18596
21d1c967
GD
18597 if test "x$ZLIB_LINK" = "x" ; then
18598 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18599 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18600echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18601 { (exit 1); exit 1; }; }
21d1c967 18602 else
e6cc62c6
VS
18603 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18604echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18605 wxUSE_ZLIB=builtin
18606 fi
18607 else
18608 wxUSE_ZLIB=sys
18609 fi
18610 fi
18611
18612 if test "$wxUSE_ZLIB" = "builtin" ; then
18613 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18614 fi
ab9b9eab
VZ
18615fi
18616
8284b0c5 18617
21d1c967
GD
18618PNG_INCLUDE=
18619PNG_LINK=
18620if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18621 cat >>confdefs.h <<\_ACEOF
21d1c967 18622#define wxUSE_LIBPNG 1
e6cc62c6 18623_ACEOF
90dd450c 18624
8284b0c5 18625
21d1c967 18626 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18627 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18628echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18629 wxUSE_LIBPNG=sys
18630 fi
90dd450c 18631
21d1c967 18632 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18633 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18634echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18635 wxUSE_LIBPNG=builtin
18636 fi
18637
18638 if test "$wxUSE_MGL" != 1 ; then
18639 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18640 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18641echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18642if test "${ac_cv_header_png_h+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18644else
18645 if test "$cross_compiling" = yes; then
89e6bf6d 18646 unset ac_cv_header_png_h
e6cc62c6 18647
5d3f766d 18648else
e6cc62c6
VS
18649 cat >conftest.$ac_ext <<_ACEOF
18650#line $LINENO "configure"
18651/* confdefs.h. */
18652_ACEOF
18653cat confdefs.h >>conftest.$ac_ext
18654cat >>conftest.$ac_ext <<_ACEOF
18655/* end confdefs.h. */
18656
ef33c576 18657 #include <png.h>
5d3f766d
VZ
18658 #include <stdio.h>
18659
18660 int main()
18661 {
18662 FILE *f=fopen("conftestval", "w");
18663 if (!f) exit(1);
18664 fprintf(f, "%s",
18665 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18666 exit(0);
18667 }
e6cc62c6
VS
18668
18669_ACEOF
18670rm -f conftest$ac_exeext
18671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18672 (eval $ac_link) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
5d3f766d
VZ
18681 ac_cv_header_png_h=`cat conftestval`
18682else
e6cc62c6
VS
18683 echo "$as_me: program exited with status $ac_status" >&5
18684echo "$as_me: failed program was:" >&5
18685sed 's/^/| /' conftest.$ac_ext >&5
18686
18687( exit $ac_status )
18688ac_cv_header_png_h=no
5d3f766d 18689fi
e6cc62c6 18690rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18691fi
18692
5d3f766d 18693fi
e6cc62c6
VS
18694echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18695echo "${ECHO_T}$ac_cv_header_png_h" >&6
18696 if test "${ac_cv_header_png_h+set}" = set; then
18697 echo "$as_me:$LINENO: checking for png.h" >&5
18698echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18699if test "${ac_cv_header_png_h+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18701fi
18702echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18703echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18704else
e6cc62c6
VS
18705 # Is the header compilable?
18706echo "$as_me:$LINENO: checking png.h usability" >&5
18707echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18708cat >conftest.$ac_ext <<_ACEOF
18709#line $LINENO "configure"
18710/* confdefs.h. */
18711_ACEOF
18712cat confdefs.h >>conftest.$ac_ext
18713cat >>conftest.$ac_ext <<_ACEOF
18714/* end confdefs.h. */
18715$ac_includes_default
89e6bf6d 18716#include <png.h>
e6cc62c6
VS
18717_ACEOF
18718rm -f conftest.$ac_objext
18719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18720 (eval $ac_compile) 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } &&
18724 { ac_try='test -s conftest.$ac_objext'
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; }; then
18730 ac_header_compiler=yes
18731else
18732 echo "$as_me: failed program was:" >&5
18733sed 's/^/| /' conftest.$ac_ext >&5
18734
18735ac_header_compiler=no
18736fi
18737rm -f conftest.$ac_objext conftest.$ac_ext
18738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18739echo "${ECHO_T}$ac_header_compiler" >&6
18740
18741# Is the header present?
18742echo "$as_me:$LINENO: checking png.h presence" >&5
18743echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18744cat >conftest.$ac_ext <<_ACEOF
18745#line $LINENO "configure"
18746/* confdefs.h. */
18747_ACEOF
18748cat confdefs.h >>conftest.$ac_ext
18749cat >>conftest.$ac_ext <<_ACEOF
18750/* end confdefs.h. */
18751#include <png.h>
18752_ACEOF
18753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18755 ac_status=$?
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } >/dev/null; then
18761 if test -s conftest.err; then
18762 ac_cpp_err=$ac_c_preproc_warn_flag
18763 else
18764 ac_cpp_err=
18765 fi
18766else
18767 ac_cpp_err=yes
18768fi
18769if test -z "$ac_cpp_err"; then
18770 ac_header_preproc=yes
18771else
18772 echo "$as_me: failed program was:" >&5
18773sed 's/^/| /' conftest.$ac_ext >&5
18774
18775 ac_header_preproc=no
18776fi
18777rm -f conftest.err conftest.$ac_ext
18778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18779echo "${ECHO_T}$ac_header_preproc" >&6
18780
18781# So? What about this header?
18782case $ac_header_compiler:$ac_header_preproc in
18783 yes:no )
18784 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18785echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18786 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18787echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18788 (
18789 cat <<\_ASBOX
18790## ------------------------------------ ##
18791## Report this to bug-autoconf@gnu.org. ##
18792## ------------------------------------ ##
18793_ASBOX
18794 ) |
18795 sed "s/^/$as_me: WARNING: /" >&2
18796 ;;
18797 no:yes )
18798 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18799echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18800 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18801echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18802 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18803echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18804 (
18805 cat <<\_ASBOX
18806## ------------------------------------ ##
18807## Report this to bug-autoconf@gnu.org. ##
18808## ------------------------------------ ##
18809_ASBOX
18810 ) |
18811 sed "s/^/$as_me: WARNING: /" >&2
18812 ;;
18813esac
18814echo "$as_me:$LINENO: checking for png.h" >&5
18815echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18816if test "${ac_cv_header_png_h+set}" = set; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18818else
e6cc62c6
VS
18819 ac_cv_header_png_h=$ac_header_preproc
18820fi
18821echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18822echo "${ECHO_T}$ac_cv_header_png_h" >&6
18823
89e6bf6d
VZ
18824fi
18825
5d3f766d 18826
e6cc62c6 18827
5d3f766d 18828 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18829 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18830echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18831if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18832 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18833else
e6cc62c6 18834 ac_check_lib_save_LIBS=$LIBS
21d1c967 18835LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18836cat >conftest.$ac_ext <<_ACEOF
18837#line $LINENO "configure"
18838/* confdefs.h. */
18839_ACEOF
18840cat confdefs.h >>conftest.$ac_ext
18841cat >>conftest.$ac_ext <<_ACEOF
18842/* end confdefs.h. */
18843
21d1c967 18844/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18845#ifdef __cplusplus
18846extern "C"
18847#endif
21d1c967 18848/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18849 builtin and then its argument prototype would still apply. */
18850char png_check_sig ();
18851int
18852main ()
18853{
18854png_check_sig ();
18855 ;
18856 return 0;
18857}
18858_ACEOF
18859rm -f conftest.$ac_objext conftest$ac_exeext
18860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18861 (eval $ac_link) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
18865 { ac_try='test -s conftest$ac_exeext'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871 ac_cv_lib_png_png_check_sig=yes
18872else
18873 echo "$as_me: failed program was:" >&5
18874sed 's/^/| /' conftest.$ac_ext >&5
18875
18876ac_cv_lib_png_png_check_sig=no
18877fi
18878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18879LIBS=$ac_check_lib_save_LIBS
18880fi
18881echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18882echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18883if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18884 PNG_LINK=" -lpng"
a0b9e27f 18885fi
90dd450c 18886
5d3f766d 18887 fi
247f5006 18888
21d1c967
GD
18889 if test "x$PNG_LINK" = "x" ; then
18890 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18891 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18892echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18893 { (exit 1); exit 1; }; }
21d1c967 18894 else
e6cc62c6
VS
18895 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18896echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18897 wxUSE_LIBPNG=builtin
18898 fi
18899 else
2b5f62a0 18900 wxUSE_LIBPNG=sys
21d1c967
GD
18901 fi
18902 fi
18903 fi
90dd450c 18904
21d1c967
GD
18905 if test "$wxUSE_LIBPNG" = "builtin" ; then
18906 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18907 fi
90dd450c 18908
21d1c967 18909 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18910fi
18911
8284b0c5 18912
21d1c967
GD
18913JPEG_INCLUDE=
18914JPEG_LINK=
18915if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18916 cat >>confdefs.h <<\_ACEOF
21d1c967 18917#define wxUSE_LIBJPEG 1
e6cc62c6 18918_ACEOF
90dd450c 18919
8284b0c5 18920
21d1c967 18921 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18922 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18923echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18924 wxUSE_LIBJPEG=sys
18925 fi
90dd450c 18926
21d1c967
GD
18927 if test "$wxUSE_MGL" != 1 ; then
18928 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18929 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18930echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18931 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933else
18934 cat >conftest.$ac_ext <<_ACEOF
18935#line $LINENO "configure"
18936/* confdefs.h. */
18937_ACEOF
18938cat confdefs.h >>conftest.$ac_ext
18939cat >>conftest.$ac_ext <<_ACEOF
18940/* end confdefs.h. */
90dd450c 18941
21d1c967
GD
18942 #undef HAVE_STDLIB_H
18943 #include <stdio.h>
18944 #include <jpeglib.h>
90dd450c 18945
e6cc62c6
VS
18946int
18947main ()
18948{
18949
18950
18951 ;
18952 return 0;
18953}
18954_ACEOF
18955rm -f conftest.$ac_objext
18956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18957 (eval $ac_compile) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
18961 { ac_try='test -s conftest.$ac_objext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
21d1c967 18967 ac_cv_header_jpeglib_h=yes
90dd450c 18968else
e6cc62c6
VS
18969 echo "$as_me: failed program was:" >&5
18970sed 's/^/| /' conftest.$ac_ext >&5
18971
18972ac_cv_header_jpeglib_h=no
18973
90dd450c 18974fi
e6cc62c6
VS
18975rm -f conftest.$ac_objext conftest.$ac_ext
18976
90dd450c
VZ
18977fi
18978
e6cc62c6
VS
18979 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18980echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18981
21d1c967 18982 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18983 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18984echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18985if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18987else
e6cc62c6 18988 ac_check_lib_save_LIBS=$LIBS
21d1c967 18989LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18990cat >conftest.$ac_ext <<_ACEOF
18991#line $LINENO "configure"
18992/* confdefs.h. */
18993_ACEOF
18994cat confdefs.h >>conftest.$ac_ext
18995cat >>conftest.$ac_ext <<_ACEOF
18996/* end confdefs.h. */
18997
21d1c967 18998/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18999#ifdef __cplusplus
19000extern "C"
19001#endif
21d1c967 19002/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19003 builtin and then its argument prototype would still apply. */
19004char jpeg_read_header ();
19005int
19006main ()
19007{
19008jpeg_read_header ();
19009 ;
19010 return 0;
19011}
19012_ACEOF
19013rm -f conftest.$ac_objext conftest$ac_exeext
19014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19015 (eval $ac_link) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } &&
19019 { ac_try='test -s conftest$ac_exeext'
19020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19021 (eval $ac_try) 2>&5
19022 ac_status=$?
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; }; then
19025 ac_cv_lib_jpeg_jpeg_read_header=yes
19026else
19027 echo "$as_me: failed program was:" >&5
19028sed 's/^/| /' conftest.$ac_ext >&5
19029
19030ac_cv_lib_jpeg_jpeg_read_header=no
19031fi
19032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19033LIBS=$ac_check_lib_save_LIBS
19034fi
19035echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19036echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19037if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19038 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19039fi
19040
21d1c967 19041 fi
90dd450c 19042
21d1c967
GD
19043 if test "x$JPEG_LINK" = "x" ; then
19044 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19045 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19046echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19047 { (exit 1); exit 1; }; }
21d1c967 19048 else
e6cc62c6
VS
19049 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19050echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19051 wxUSE_LIBJPEG=builtin
19052 fi
19053 else
19054 wxUSE_LIBJPEG=sys
19055 fi
19056 fi
19057 fi
90dd450c 19058
21d1c967
GD
19059 if test "$wxUSE_LIBJPEG" = "builtin" ; then
19060 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
19061 fi
19062fi
90dd450c 19063
8284b0c5 19064
21d1c967
GD
19065TIFF_INCLUDE=
19066TIFF_LINK=
2b5f62a0 19067TIFF_PREREQ_LINKS=-lm
21d1c967 19068if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19069 cat >>confdefs.h <<\_ACEOF
21d1c967 19070#define wxUSE_LIBTIFF 1
e6cc62c6 19071_ACEOF
21d1c967 19072
8284b0c5 19073
21d1c967 19074 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19075 if test "$wxUSE_LIBJPEG" = "sys"; then
19076 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19077 fi
19078 if test "$wxUSE_ZLIB" = "sys"; then
19079 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19080 fi
e6cc62c6
VS
19081 if test "${ac_cv_header_tiffio_h+set}" = set; then
19082 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19083echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19084if test "${ac_cv_header_tiffio_h+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19086fi
19087echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19088echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19089else
19090 # Is the header compilable?
19091echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19092echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19093cat >conftest.$ac_ext <<_ACEOF
19094#line $LINENO "configure"
19095/* confdefs.h. */
19096_ACEOF
19097cat confdefs.h >>conftest.$ac_ext
19098cat >>conftest.$ac_ext <<_ACEOF
19099/* end confdefs.h. */
19100$ac_includes_default
247f5006 19101#include <tiffio.h>
e6cc62c6
VS
19102_ACEOF
19103rm -f conftest.$ac_objext
19104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105 (eval $ac_compile) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -s conftest.$ac_objext'
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_header_compiler=yes
19116else
19117 echo "$as_me: failed program was:" >&5
19118sed 's/^/| /' conftest.$ac_ext >&5
19119
19120ac_header_compiler=no
19121fi
19122rm -f conftest.$ac_objext conftest.$ac_ext
19123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19124echo "${ECHO_T}$ac_header_compiler" >&6
19125
19126# Is the header present?
19127echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19128echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19129cat >conftest.$ac_ext <<_ACEOF
19130#line $LINENO "configure"
19131/* confdefs.h. */
19132_ACEOF
19133cat confdefs.h >>conftest.$ac_ext
19134cat >>conftest.$ac_ext <<_ACEOF
19135/* end confdefs.h. */
19136#include <tiffio.h>
19137_ACEOF
19138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } >/dev/null; then
19146 if test -s conftest.err; then
19147 ac_cpp_err=$ac_c_preproc_warn_flag
19148 else
19149 ac_cpp_err=
19150 fi
19151else
19152 ac_cpp_err=yes
19153fi
19154if test -z "$ac_cpp_err"; then
19155 ac_header_preproc=yes
19156else
19157 echo "$as_me: failed program was:" >&5
19158sed 's/^/| /' conftest.$ac_ext >&5
19159
19160 ac_header_preproc=no
19161fi
19162rm -f conftest.err conftest.$ac_ext
19163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19164echo "${ECHO_T}$ac_header_preproc" >&6
19165
19166# So? What about this header?
19167case $ac_header_compiler:$ac_header_preproc in
19168 yes:no )
19169 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19170echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19171 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19172echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19173 (
19174 cat <<\_ASBOX
19175## ------------------------------------ ##
19176## Report this to bug-autoconf@gnu.org. ##
19177## ------------------------------------ ##
19178_ASBOX
19179 ) |
19180 sed "s/^/$as_me: WARNING: /" >&2
19181 ;;
19182 no:yes )
19183 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19184echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19185 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19186echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19187 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19188echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19189 (
19190 cat <<\_ASBOX
19191## ------------------------------------ ##
19192## Report this to bug-autoconf@gnu.org. ##
19193## ------------------------------------ ##
19194_ASBOX
19195 ) |
19196 sed "s/^/$as_me: WARNING: /" >&2
19197 ;;
19198esac
19199echo "$as_me:$LINENO: checking for tiffio.h" >&5
19200echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19201if test "${ac_cv_header_tiffio_h+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19203else
19204 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19205fi
e6cc62c6
VS
19206echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19207echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19208
21d1c967 19209fi
e6cc62c6
VS
19210if test $ac_cv_header_tiffio_h = yes; then
19211 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
19212echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19213if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19215else
e6cc62c6 19216 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19217LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
19218cat >conftest.$ac_ext <<_ACEOF
19219#line $LINENO "configure"
19220/* confdefs.h. */
19221_ACEOF
19222cat confdefs.h >>conftest.$ac_ext
19223cat >>conftest.$ac_ext <<_ACEOF
19224/* end confdefs.h. */
19225
ab9b9eab 19226/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19227#ifdef __cplusplus
19228extern "C"
19229#endif
ab9b9eab 19230/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19231 builtin and then its argument prototype would still apply. */
19232char TIFFError ();
19233int
19234main ()
19235{
19236TIFFError ();
19237 ;
19238 return 0;
19239}
19240_ACEOF
19241rm -f conftest.$ac_objext conftest$ac_exeext
19242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19243 (eval $ac_link) 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try='test -s conftest$ac_exeext'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19253 ac_cv_lib_tiff_TIFFError=yes
19254else
19255 echo "$as_me: failed program was:" >&5
19256sed 's/^/| /' conftest.$ac_ext >&5
19257
19258ac_cv_lib_tiff_TIFFError=no
19259fi
19260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19261LIBS=$ac_check_lib_save_LIBS
19262fi
19263echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19264echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19265if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19266 TIFF_LINK=" -ltiff"
a0b9e27f 19267fi
cd6d6d5b 19268
e6cc62c6 19269
a0b9e27f 19270fi
8284b0c5 19271
247f5006 19272
e6cc62c6 19273
21d1c967
GD
19274 if test "x$TIFF_LINK" = "x" ; then
19275 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19276 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19277echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19278 { (exit 1); exit 1; }; }
90dd450c 19279 else
e6cc62c6
VS
19280 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19281echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19282 wxUSE_LIBTIFF=builtin
d8356fa3 19283 fi
d8356fa3 19284 else
21d1c967 19285 wxUSE_LIBTIFF=sys
d8356fa3 19286 fi
21d1c967 19287 fi
d8356fa3 19288
21d1c967
GD
19289 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19290 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19291 fi
21d1c967 19292fi
10f2d63a 19293
8284b0c5 19294
672abd7a 19295if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19296 wxUSE_XML=yes
672abd7a
VS
19297 cat >>confdefs.h <<\_ACEOF
19298#define wxUSE_EXPAT 1
19299_ACEOF
19300
19301 cat >>confdefs.h <<\_ACEOF
19302#define wxUSE_XML 1
19303_ACEOF
19304
19305
19306 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19307 if test "${ac_cv_header_expat_h+set}" = set; then
19308 echo "$as_me:$LINENO: checking for expat.h" >&5
19309echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19310if test "${ac_cv_header_expat_h+set}" = set; then
19311 echo $ECHO_N "(cached) $ECHO_C" >&6
19312fi
19313echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19314echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19315else
19316 # Is the header compilable?
19317echo "$as_me:$LINENO: checking expat.h usability" >&5
19318echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19319cat >conftest.$ac_ext <<_ACEOF
19320#line $LINENO "configure"
19321/* confdefs.h. */
19322_ACEOF
19323cat confdefs.h >>conftest.$ac_ext
19324cat >>conftest.$ac_ext <<_ACEOF
19325/* end confdefs.h. */
19326$ac_includes_default
19327#include <expat.h>
19328_ACEOF
19329rm -f conftest.$ac_objext
19330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19331 (eval $ac_compile) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -s conftest.$ac_objext'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; }; then
19341 ac_header_compiler=yes
19342else
19343 echo "$as_me: failed program was:" >&5
19344sed 's/^/| /' conftest.$ac_ext >&5
19345
19346ac_header_compiler=no
19347fi
19348rm -f conftest.$ac_objext conftest.$ac_ext
19349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19350echo "${ECHO_T}$ac_header_compiler" >&6
19351
19352# Is the header present?
19353echo "$as_me:$LINENO: checking expat.h presence" >&5
19354echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19355cat >conftest.$ac_ext <<_ACEOF
19356#line $LINENO "configure"
19357/* confdefs.h. */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h. */
19362#include <expat.h>
19363_ACEOF
19364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } >/dev/null; then
19372 if test -s conftest.err; then
19373 ac_cpp_err=$ac_c_preproc_warn_flag
19374 else
19375 ac_cpp_err=
19376 fi
19377else
19378 ac_cpp_err=yes
19379fi
19380if test -z "$ac_cpp_err"; then
19381 ac_header_preproc=yes
19382else
19383 echo "$as_me: failed program was:" >&5
19384sed 's/^/| /' conftest.$ac_ext >&5
19385
19386 ac_header_preproc=no
19387fi
19388rm -f conftest.err conftest.$ac_ext
19389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19390echo "${ECHO_T}$ac_header_preproc" >&6
19391
19392# So? What about this header?
19393case $ac_header_compiler:$ac_header_preproc in
19394 yes:no )
19395 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19396echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19397 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19398echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19399 (
19400 cat <<\_ASBOX
19401## ------------------------------------ ##
19402## Report this to bug-autoconf@gnu.org. ##
19403## ------------------------------------ ##
19404_ASBOX
19405 ) |
19406 sed "s/^/$as_me: WARNING: /" >&2
19407 ;;
19408 no:yes )
19409 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19410echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19411 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19412echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19414echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19415 (
19416 cat <<\_ASBOX
19417## ------------------------------------ ##
19418## Report this to bug-autoconf@gnu.org. ##
19419## ------------------------------------ ##
19420_ASBOX
19421 ) |
19422 sed "s/^/$as_me: WARNING: /" >&2
19423 ;;
19424esac
19425echo "$as_me:$LINENO: checking for expat.h" >&5
19426echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19427if test "${ac_cv_header_expat_h+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19429else
19430 ac_cv_header_expat_h=$ac_header_preproc
19431fi
19432echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19433echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19434
19435fi
5f0b6dff
VS
19436if test $ac_cv_header_expat_h = yes; then
19437 found_expat_h=1
19438fi
19439
19440
19441 if test "x$found_expat_h" = "x1"; then
19442 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19443echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19444if test "${wx_cv_expat_is_not_broken+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19446else
19447
19448
672abd7a 19449
5f0b6dff
VS
19450 ac_ext=cc
19451ac_cpp='$CXXCPP $CPPFLAGS'
19452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19455
19456 cat >conftest.$ac_ext <<_ACEOF
19457#line $LINENO "configure"
19458/* confdefs.h. */
19459_ACEOF
19460cat confdefs.h >>conftest.$ac_ext
19461cat >>conftest.$ac_ext <<_ACEOF
19462/* end confdefs.h. */
19463#include <expat.h>
19464int
19465main ()
19466{
672abd7a 19467
5f0b6dff
VS
19468 ;
19469 return 0;
19470}
19471_ACEOF
19472rm -f conftest.$ac_objext
19473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474 (eval $ac_compile) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } &&
19478 { ac_try='test -s conftest.$ac_objext'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19481 ac_status=$?
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 wx_cv_expat_is_not_broken=yes
19485else
19486 echo "$as_me: failed program was:" >&5
19487sed 's/^/| /' conftest.$ac_ext >&5
19488
19489wx_cv_expat_is_not_broken=no
19490
19491fi
19492rm -f conftest.$ac_objext conftest.$ac_ext
19493 ac_ext=c
19494ac_cpp='$CPP $CPPFLAGS'
19495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497ac_compiler_gnu=$ac_cv_c_compiler_gnu
19498
19499
19500
19501fi
19502echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19503echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19504 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19505 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19506echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19507if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19509else
19510 ac_check_lib_save_LIBS=$LIBS
19511LIBS="-lexpat $LIBS"
19512cat >conftest.$ac_ext <<_ACEOF
19513#line $LINENO "configure"
19514/* confdefs.h. */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
19518/* end confdefs.h. */
19519
19520/* Override any gcc2 internal prototype to avoid an error. */
19521#ifdef __cplusplus
19522extern "C"
19523#endif
19524/* We use char because int might match the return type of a gcc2
19525 builtin and then its argument prototype would still apply. */
19526char XML_ParserCreate ();
19527int
19528main ()
19529{
19530XML_ParserCreate ();
19531 ;
19532 return 0;
19533}
19534_ACEOF
19535rm -f conftest.$ac_objext conftest$ac_exeext
19536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19537 (eval $ac_link) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try='test -s conftest$ac_exeext'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 ac_cv_lib_expat_XML_ParserCreate=yes
19548else
19549 echo "$as_me: failed program was:" >&5
19550sed 's/^/| /' conftest.$ac_ext >&5
19551
19552ac_cv_lib_expat_XML_ParserCreate=no
19553fi
19554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19555LIBS=$ac_check_lib_save_LIBS
19556fi
19557echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19558echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19559if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19560 EXPAT_LINK=" -lexpat"
19561fi
19562
5f0b6dff 19563 fi
672abd7a
VS
19564 fi
19565 if test "x$EXPAT_LINK" = "x" ; then
19566 if test "$wxUSE_EXPAT" = "sys" ; then
19567 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19568echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19569 { (exit 1); exit 1; }; }
19570 else
19571 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19572echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19573 wxUSE_EXPAT=builtin
19574 fi
19575 else
19576 wxUSE_EXPAT=sys
19577 fi
19578 fi
19579 if test "$wxUSE_EXPAT" = "builtin" ; then
19580
19581
19582subdirs="$subdirs src/expat"
19583
19584 fi
19585fi
19586
19587
19588
21d1c967 19589AFMINSTALL=
2b5f62a0 19590WIN32INSTALL=
90dd450c 19591
21d1c967
GD
19592TOOLKIT=
19593TOOLKIT_INCLUDE=
19594WIDGET_SET=
19595
19596if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19597
19598for ac_header in w32api.h
21d1c967 19599do
e6cc62c6
VS
19600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19601if eval "test \"\${$as_ac_Header+set}\" = set"; then
19602 echo "$as_me:$LINENO: checking for $ac_header" >&5
19603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19604if eval "test \"\${$as_ac_Header+set}\" = set"; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19606fi
19607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19609else
19610 # Is the header compilable?
19611echo "$as_me:$LINENO: checking $ac_header usability" >&5
19612echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19613cat >conftest.$ac_ext <<_ACEOF
19614#line $LINENO "configure"
19615/* confdefs.h. */
19616_ACEOF
19617cat confdefs.h >>conftest.$ac_ext
19618cat >>conftest.$ac_ext <<_ACEOF
19619/* end confdefs.h. */
19620$ac_includes_default
19621#include <$ac_header>
19622_ACEOF
19623rm -f conftest.$ac_objext
19624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19625 (eval $ac_compile) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -s conftest.$ac_objext'
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 ac_header_compiler=yes
19636else
19637 echo "$as_me: failed program was:" >&5
19638sed 's/^/| /' conftest.$ac_ext >&5
19639
19640ac_header_compiler=no
19641fi
19642rm -f conftest.$ac_objext conftest.$ac_ext
19643echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19644echo "${ECHO_T}$ac_header_compiler" >&6
19645
19646# Is the header present?
19647echo "$as_me:$LINENO: checking $ac_header presence" >&5
19648echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19649cat >conftest.$ac_ext <<_ACEOF
19650#line $LINENO "configure"
19651/* confdefs.h. */
19652_ACEOF
19653cat confdefs.h >>conftest.$ac_ext
19654cat >>conftest.$ac_ext <<_ACEOF
19655/* end confdefs.h. */
19656#include <$ac_header>
19657_ACEOF
19658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } >/dev/null; then
19666 if test -s conftest.err; then
19667 ac_cpp_err=$ac_c_preproc_warn_flag
19668 else
19669 ac_cpp_err=
19670 fi
19671else
19672 ac_cpp_err=yes
19673fi
19674if test -z "$ac_cpp_err"; then
19675 ac_header_preproc=yes
19676else
19677 echo "$as_me: failed program was:" >&5
19678sed 's/^/| /' conftest.$ac_ext >&5
19679
19680 ac_header_preproc=no
19681fi
19682rm -f conftest.err conftest.$ac_ext
19683echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19684echo "${ECHO_T}$ac_header_preproc" >&6
19685
19686# So? What about this header?
19687case $ac_header_compiler:$ac_header_preproc in
19688 yes:no )
19689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19693 (
19694 cat <<\_ASBOX
19695## ------------------------------------ ##
19696## Report this to bug-autoconf@gnu.org. ##
19697## ------------------------------------ ##
19698_ASBOX
19699 ) |
19700 sed "s/^/$as_me: WARNING: /" >&2
19701 ;;
19702 no:yes )
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19709 (
19710 cat <<\_ASBOX
19711## ------------------------------------ ##
19712## Report this to bug-autoconf@gnu.org. ##
19713## ------------------------------------ ##
19714_ASBOX
19715 ) |
19716 sed "s/^/$as_me: WARNING: /" >&2
19717 ;;
19718esac
19719echo "$as_me:$LINENO: checking for $ac_header" >&5
19720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19721if eval "test \"\${$as_ac_Header+set}\" = set"; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19723else
19724 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19725fi
e6cc62c6
VS
19726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19728
21d1c967 19729fi
e6cc62c6
VS
19730if test `eval echo '${'$as_ac_Header'}'` = yes; then
19731 cat >>confdefs.h <<_ACEOF
19732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19733_ACEOF
19734
21d1c967 19735fi
e6cc62c6 19736
21d1c967 19737done
f79bd02d 19738
e6cc62c6
VS
19739 if test "${ac_cv_header_windows_h+set}" = set; then
19740 echo "$as_me:$LINENO: checking for windows.h" >&5
19741echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19742if test "${ac_cv_header_windows_h+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19744fi
19745echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19746echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19747else
19748 # Is the header compilable?
19749echo "$as_me:$LINENO: checking windows.h usability" >&5
19750echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19751cat >conftest.$ac_ext <<_ACEOF
19752#line $LINENO "configure"
19753/* confdefs.h. */
19754_ACEOF
19755cat confdefs.h >>conftest.$ac_ext
19756cat >>conftest.$ac_ext <<_ACEOF
19757/* end confdefs.h. */
19758$ac_includes_default
247f5006 19759#include <windows.h>
e6cc62c6
VS
19760_ACEOF
19761rm -f conftest.$ac_objext
19762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19763 (eval $ac_compile) 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try='test -s conftest.$ac_objext'
19768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769 (eval $ac_try) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; }; then
19773 ac_header_compiler=yes
19774else
19775 echo "$as_me: failed program was:" >&5
19776sed 's/^/| /' conftest.$ac_ext >&5
19777
19778ac_header_compiler=no
19779fi
19780rm -f conftest.$ac_objext conftest.$ac_ext
19781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19782echo "${ECHO_T}$ac_header_compiler" >&6
19783
19784# Is the header present?
19785echo "$as_me:$LINENO: checking windows.h presence" >&5
19786echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19787cat >conftest.$ac_ext <<_ACEOF
19788#line $LINENO "configure"
19789/* confdefs.h. */
19790_ACEOF
19791cat confdefs.h >>conftest.$ac_ext
19792cat >>conftest.$ac_ext <<_ACEOF
19793/* end confdefs.h. */
19794#include <windows.h>
19795_ACEOF
19796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19798 ac_status=$?
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } >/dev/null; then
19804 if test -s conftest.err; then
19805 ac_cpp_err=$ac_c_preproc_warn_flag
19806 else
19807 ac_cpp_err=
19808 fi
19809else
19810 ac_cpp_err=yes
19811fi
19812if test -z "$ac_cpp_err"; then
19813 ac_header_preproc=yes
19814else
19815 echo "$as_me: failed program was:" >&5
19816sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 ac_header_preproc=no
19819fi
19820rm -f conftest.err conftest.$ac_ext
19821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19822echo "${ECHO_T}$ac_header_preproc" >&6
19823
19824# So? What about this header?
19825case $ac_header_compiler:$ac_header_preproc in
19826 yes:no )
19827 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19828echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19829 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19830echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19831 (
19832 cat <<\_ASBOX
19833## ------------------------------------ ##
19834## Report this to bug-autoconf@gnu.org. ##
19835## ------------------------------------ ##
19836_ASBOX
19837 ) |
19838 sed "s/^/$as_me: WARNING: /" >&2
19839 ;;
19840 no:yes )
19841 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19842echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19843 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19844echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19845 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19846echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19847 (
19848 cat <<\_ASBOX
19849## ------------------------------------ ##
19850## Report this to bug-autoconf@gnu.org. ##
19851## ------------------------------------ ##
19852_ASBOX
19853 ) |
19854 sed "s/^/$as_me: WARNING: /" >&2
19855 ;;
19856esac
19857echo "$as_me:$LINENO: checking for windows.h" >&5
19858echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19859if test "${ac_cv_header_windows_h+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19861else
19862 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19863fi
e6cc62c6
VS
19864echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19865echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19866
90dd450c 19867fi
e6cc62c6 19868if test $ac_cv_header_windows_h = yes; then
21d1c967 19869 :
90dd450c 19870else
21d1c967 19871
e6cc62c6
VS
19872 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19873echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19874 { (exit 1); exit 1; }; }
19875
5c6fa7d2 19876fi
7b4a847f 19877
5c6fa7d2 19878
e6cc62c6 19879
b3dfbbc9 19880 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19881
7bb2947d
MB
19882 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19883 LIBS="$LIBS -loleacc"
19884 fi
19885
21d1c967
GD
19886 case "${host}" in
19887 *-*-cygwin* )
b3dfbbc9 19888 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19889 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19890 esac
f79bd02d 19891
8647bec6
RG
19892 if test "$wxUSE_ODBC" = "sys" ; then
19893 wxUSE_ODBC = "yes"
21d1c967 19894 fi
8647bec6
RG
19895 if test "$wxUSE_ODBC" = "yes" ; then
19896 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19897 cat >>confdefs.h <<\_ACEOF
8647bec6 19898#define wxUSE_ODBC 1
e6cc62c6 19899_ACEOF
f79bd02d 19900
8647bec6 19901 fi
e6cc62c6 19902
21d1c967
GD
19903 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19904 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19905
19906 WIN32INSTALL=win32install
f79bd02d 19907fi
f79bd02d 19908
21d1c967
GD
19909if test "$wxUSE_GUI" = "yes"; then
19910 USE_GUI=1
f79bd02d 19911
21d1c967 19912 GUI_TK_LIBRARY=
f79bd02d 19913
21d1c967
GD
19914 WXGTK12=
19915 WXGTK127=
19916 WXGTK20=
f79bd02d 19917
21d1c967
GD
19918 if test "$wxUSE_MSW" = 1 ; then
19919 TOOLKIT=MSW
19920 GUIDIST=MSW_DIST
ffef10f6
VS
19921
19922 case "${host}" in
19923 *-*-mingw32* )
19924 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19925 esac
f79bd02d
JS
19926 fi
19927
21d1c967 19928 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19929 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19930echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19931
19932 gtk_version_cached=1
e6cc62c6
VS
19933 if test "${wx_cv_lib_gtk+set}" = set; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19935else
e6cc62c6 19936
21d1c967 19937 gtk_version_cached=0
e6cc62c6
VS
19938 echo "$as_me:$LINENO: result: " >&5
19939echo "${ECHO_T}" >&6
f79bd02d 19940
21d1c967
GD
19941 GTK_MODULES=
19942 if test "$wxUSE_THREADS" = "yes"; then
19943 GTK_MODULES=gthread
19944 fi
f79bd02d 19945
2b5f62a0 19946 wx_cv_lib_gtk=
21d1c967
GD
19947 if test "x$wxUSE_GTK2" = "xyes"; then
19948 # Check whether --enable-gtktest or --disable-gtktest was given.
19949if test "${enable_gtktest+set}" = set; then
19950 enableval="$enable_gtktest"
e6cc62c6 19951
f79bd02d 19952else
21d1c967 19953 enable_gtktest=yes
e6cc62c6 19954fi;
f79bd02d 19955
21d1c967
GD
19956 pkg_config_args=gtk+-2.0
19957 for module in . $GTK_MODULES
19958 do
19959 case "$module" in
e6cc62c6 19960 gthread)
21d1c967
GD
19961 pkg_config_args="$pkg_config_args gthread-2.0"
19962 ;;
19963 esac
19964 done
19965
19966 no_gtk=""
f79bd02d 19967
21d1c967
GD
19968 # Extract the first word of "pkg-config", so it can be a program name with args.
19969set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19970echo "$as_me:$LINENO: checking for $ac_word" >&5
19971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19972if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19974else
e6cc62c6
VS
19975 case $PKG_CONFIG in
19976 [\\/]* | ?:[\\/]*)
21d1c967
GD
19977 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19978 ;;
21d1c967 19979 *)
e6cc62c6
VS
19980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19981for as_dir in $PATH
19982do
19983 IFS=$as_save_IFS
19984 test -z "$as_dir" && as_dir=.
19985 for ac_exec_ext in '' $ac_executable_extensions; do
19986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19987 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19989 break 2
19990 fi
19991done
19992done
19993
21d1c967
GD
19994 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19995 ;;
19996esac
f79bd02d 19997fi
e6cc62c6
VS
19998PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19999
21d1c967 20000if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20001 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20002echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 20003else
e6cc62c6
VS
20004 echo "$as_me:$LINENO: result: no" >&5
20005echo "${ECHO_T}no" >&6
f79bd02d
JS
20006fi
20007
8284b0c5 20008
21d1c967
GD
20009 if test x$PKG_CONFIG != xno ; then
20010 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20011 :
20012 else
20013 echo *** pkg-config too old; version 0.7 or better required.
20014 no_gtk=yes
20015 PKG_CONFIG=no
20016 fi
20017 else
20018 no_gtk=yes
20019 fi
f79bd02d 20020
21d1c967 20021 min_gtk_version=2.0.0
e6cc62c6
VS
20022 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20023echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 20024
21d1c967
GD
20025 if test x$PKG_CONFIG != xno ; then
20026 ## don't try to run the test against uninstalled libtool libs
20027 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20028 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20029 enable_gtktest=no
20030 fi
f79bd02d 20031
21d1c967
GD
20032 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20033 :
20034 else
20035 no_gtk=yes
20036 fi
20037 fi
f79bd02d 20038
21d1c967
GD
20039 if test x"$no_gtk" = x ; then
20040 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20041 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20042 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20044 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20045 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20046 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20047 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20048 if test "x$enable_gtktest" = "xyes" ; then
20049 ac_save_CFLAGS="$CFLAGS"
20050 ac_save_LIBS="$LIBS"
20051 CFLAGS="$CFLAGS $GTK_CFLAGS"
20052 LIBS="$GTK_LIBS $LIBS"
20053 rm -f conf.gtktest
20054 if test "$cross_compiling" = yes; then
20055 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20056else
e6cc62c6
VS
20057 cat >conftest.$ac_ext <<_ACEOF
20058#line $LINENO "configure"
20059/* confdefs.h. */
20060_ACEOF
20061cat confdefs.h >>conftest.$ac_ext
20062cat >>conftest.$ac_ext <<_ACEOF
20063/* end confdefs.h. */
f79bd02d 20064
21d1c967
GD
20065#include <gtk/gtk.h>
20066#include <stdio.h>
20067#include <stdlib.h>
f79bd02d 20068
e6cc62c6 20069int
21d1c967
GD
20070main ()
20071{
20072 int major, minor, micro;
20073 char *tmp_version;
f79bd02d 20074
21d1c967 20075 system ("touch conf.gtktest");
f79bd02d 20076
21d1c967
GD
20077 /* HP/UX 9 (%@#!) writes to sscanf strings */
20078 tmp_version = g_strdup("$min_gtk_version");
20079 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20080 printf("%s, bad version string\n", "$min_gtk_version");
20081 exit(1);
20082 }
f79bd02d 20083
21d1c967
GD
20084 if ((gtk_major_version != $gtk_config_major_version) ||
20085 (gtk_minor_version != $gtk_config_minor_version) ||
20086 (gtk_micro_version != $gtk_config_micro_version))
20087 {
e6cc62c6 20088 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20089 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20090 gtk_major_version, gtk_minor_version, gtk_micro_version);
20091 printf ("*** was found! If pkg-config was correct, then it is best\n");
20092 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20093 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20094 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20095 printf("*** required on your system.\n");
20096 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20097 printf("*** to point to the correct configuration files\n");
e6cc62c6 20098 }
21d1c967
GD
20099 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20100 (gtk_minor_version != GTK_MINOR_VERSION) ||
20101 (gtk_micro_version != GTK_MICRO_VERSION))
20102 {
20103 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20104 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20105 printf("*** library (version %d.%d.%d)\n",
20106 gtk_major_version, gtk_minor_version, gtk_micro_version);
20107 }
20108 else
20109 {
20110 if ((gtk_major_version > major) ||
20111 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20112 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20113 {
20114 return 0;
20115 }
20116 else
20117 {
20118 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20119 gtk_major_version, gtk_minor_version, gtk_micro_version);
20120 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20121 major, minor, micro);
20122 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20123 printf("***\n");
20124 printf("*** If you have already installed a sufficiently new version, this error\n");
20125 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20126 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20127 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20128 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20129 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20130 printf("*** so that the correct libraries are found at run-time))\n");
20131 }
20132 }
20133 return 1;
20134}
f79bd02d 20135
e6cc62c6
VS
20136_ACEOF
20137rm -f conftest$ac_exeext
20138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20139 (eval $ac_link) 2>&5
20140 ac_status=$?
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
21d1c967 20148 :
f79bd02d 20149else
e6cc62c6
VS
20150 echo "$as_me: program exited with status $ac_status" >&5
20151echo "$as_me: failed program was:" >&5
20152sed 's/^/| /' conftest.$ac_ext >&5
20153
20154( exit $ac_status )
20155no_gtk=yes
f79bd02d 20156fi
e6cc62c6 20157rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20158fi
21d1c967
GD
20159 CFLAGS="$ac_save_CFLAGS"
20160 LIBS="$ac_save_LIBS"
20161 fi
20162 fi
20163 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20164 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20165echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20166 wx_cv_lib_gtk=2.0
21d1c967 20167 else
e6cc62c6
VS
20168 echo "$as_me:$LINENO: result: no" >&5
20169echo "${ECHO_T}no" >&6
21d1c967
GD
20170 if test "$PKG_CONFIG" = "no" ; then
20171 echo "*** A new enough version of pkg-config was not found."
20172 echo "*** See http://pkgconfig.sourceforge.net"
20173 else
20174 if test -f conf.gtktest ; then
20175 :
20176 else
20177 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20178 ac_save_CFLAGS="$CFLAGS"
20179 ac_save_LIBS="$LIBS"
21d1c967
GD
20180 CFLAGS="$CFLAGS $GTK_CFLAGS"
20181 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20182 cat >conftest.$ac_ext <<_ACEOF
20183#line $LINENO "configure"
20184/* confdefs.h. */
20185_ACEOF
20186cat confdefs.h >>conftest.$ac_ext
20187cat >>conftest.$ac_ext <<_ACEOF
20188/* end confdefs.h. */
21d1c967
GD
20189
20190#include <gtk/gtk.h>
20191#include <stdio.h>
f79bd02d 20192
e6cc62c6
VS
20193int
20194main ()
20195{
20196 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20197 ;
20198 return 0;
20199}
20200_ACEOF
20201rm -f conftest.$ac_objext conftest$ac_exeext
20202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203 (eval $ac_link) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } &&
20207 { ac_try='test -s conftest$ac_exeext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
21d1c967
GD
20213 echo "*** The test program compiled, but did not run. This usually means"
20214 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20215 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20216 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20217 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20218 echo "*** is required on your system"
20219 echo "***"
20220 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20221 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20222else
e6cc62c6
VS
20223 echo "$as_me: failed program was:" >&5
20224sed 's/^/| /' conftest.$ac_ext >&5
20225
20226 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20227 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20228fi
e6cc62c6 20229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20230 CFLAGS="$ac_save_CFLAGS"
20231 LIBS="$ac_save_LIBS"
20232 fi
20233 fi
20234 GTK_CFLAGS=""
20235 GTK_LIBS=""
20236 :
20237 fi
e6cc62c6
VS
20238
20239
21d1c967 20240 rm -f conf.gtktest
f79bd02d 20241
2b5f62a0 20242 else
e6cc62c6
VS
20243
20244# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20245if test "${with_gtk_prefix+set}" = set; then
20246 withval="$with_gtk_prefix"
20247 gtk_config_prefix="$withval"
20248else
20249 gtk_config_prefix=""
e6cc62c6 20250fi;
f79bd02d 20251
21d1c967
GD
20252# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20253if test "${with_gtk_exec_prefix+set}" = set; then
20254 withval="$with_gtk_exec_prefix"
20255 gtk_config_exec_prefix="$withval"
20256else
20257 gtk_config_exec_prefix=""
e6cc62c6 20258fi;
21d1c967
GD
20259# Check whether --enable-gtktest or --disable-gtktest was given.
20260if test "${enable_gtktest+set}" = set; then
20261 enableval="$enable_gtktest"
e6cc62c6 20262
21d1c967
GD
20263else
20264 enable_gtktest=yes
e6cc62c6 20265fi;
21d1c967
GD
20266
20267 for module in . $GTK_MODULES
20268 do
20269 case "$module" in
e6cc62c6 20270 gthread)
21d1c967
GD
20271 gtk_config_args="$gtk_config_args gthread"
20272 ;;
20273 esac
20274 done
20275
20276 if test x$gtk_config_exec_prefix != x ; then
20277 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20278 if test x${GTK_CONFIG+set} != xset ; then
20279 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20280 fi
20281 fi
20282 if test x$gtk_config_prefix != x ; then
20283 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20284 if test x${GTK_CONFIG+set} != xset ; then
20285 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20286 fi
20287 fi
20288
20289 # Extract the first word of "gtk-config", so it can be a program name with args.
20290set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20291echo "$as_me:$LINENO: checking for $ac_word" >&5
20292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20293if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20295else
e6cc62c6
VS
20296 case $GTK_CONFIG in
20297 [\\/]* | ?:[\\/]*)
21d1c967
GD
20298 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20299 ;;
21d1c967 20300 *)
e6cc62c6
VS
20301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20302for as_dir in $PATH
20303do
20304 IFS=$as_save_IFS
20305 test -z "$as_dir" && as_dir=.
20306 for ac_exec_ext in '' $ac_executable_extensions; do
20307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20308 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20310 break 2
20311 fi
20312done
20313done
20314
21d1c967
GD
20315 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20316 ;;
20317esac
20318fi
e6cc62c6
VS
20319GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20320
21d1c967 20321if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20322 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20323echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20324else
e6cc62c6
VS
20325 echo "$as_me:$LINENO: result: no" >&5
20326echo "${ECHO_T}no" >&6
21d1c967
GD
20327fi
20328
20329 min_gtk_version=1.2.7
e6cc62c6
VS
20330 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20331echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20332 no_gtk=""
20333 if test "$GTK_CONFIG" = "no" ; then
20334 no_gtk=yes
20335 else
20336 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20337 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20338 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20339 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20340 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20341 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20342 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20343 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20344 if test "x$enable_gtktest" = "xyes" ; then
20345 ac_save_CFLAGS="$CFLAGS"
20346 ac_save_LIBS="$LIBS"
20347 CFLAGS="$CFLAGS $GTK_CFLAGS"
20348 LIBS="$GTK_LIBS $LIBS"
20349 rm -f conf.gtktest
20350 if test "$cross_compiling" = yes; then
20351 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20352else
e6cc62c6
VS
20353 cat >conftest.$ac_ext <<_ACEOF
20354#line $LINENO "configure"
20355/* confdefs.h. */
20356_ACEOF
20357cat confdefs.h >>conftest.$ac_ext
20358cat >>conftest.$ac_ext <<_ACEOF
20359/* end confdefs.h. */
f79bd02d 20360
21d1c967
GD
20361#include <gtk/gtk.h>
20362#include <stdio.h>
20363#include <stdlib.h>
f79bd02d 20364
e6cc62c6 20365int
21d1c967
GD
20366main ()
20367{
20368 int major, minor, micro;
20369 char *tmp_version;
20370
20371 system ("touch conf.gtktest");
20372
20373 /* HP/UX 9 (%@#!) writes to sscanf strings */
20374 tmp_version = g_strdup("$min_gtk_version");
20375 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20376 printf("%s, bad version string\n", "$min_gtk_version");
20377 exit(1);
20378 }
90dd450c 20379
21d1c967
GD
20380 if ((gtk_major_version != $gtk_config_major_version) ||
20381 (gtk_minor_version != $gtk_config_minor_version) ||
20382 (gtk_micro_version != $gtk_config_micro_version))
20383 {
e6cc62c6 20384 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20385 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20386 gtk_major_version, gtk_minor_version, gtk_micro_version);
20387 printf ("*** was found! If gtk-config was correct, then it is best\n");
20388 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20389 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20390 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20391 printf("*** required on your system.\n");
20392 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20393 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20394 printf("*** before re-running configure\n");
e6cc62c6 20395 }
21d1c967
GD
20396#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20397 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20398 (gtk_minor_version != GTK_MINOR_VERSION) ||
20399 (gtk_micro_version != GTK_MICRO_VERSION))
20400 {
20401 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20402 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20403 printf("*** library (version %d.%d.%d)\n",
20404 gtk_major_version, gtk_minor_version, gtk_micro_version);
20405 }
20406#endif /* defined (GTK_MAJOR_VERSION) ... */
20407 else
20408 {
20409 if ((gtk_major_version > major) ||
20410 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20411 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20412 {
20413 return 0;
20414 }
20415 else
20416 {
20417 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20418 gtk_major_version, gtk_minor_version, gtk_micro_version);
20419 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20420 major, minor, micro);
20421 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20422 printf("***\n");
20423 printf("*** If you have already installed a sufficiently new version, this error\n");
20424 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20425 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20426 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20427 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20428 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20429 printf("*** so that the correct libraries are found at run-time))\n");
20430 }
20431 }
20432 return 1;
20433}
20434
e6cc62c6
VS
20435_ACEOF
20436rm -f conftest$ac_exeext
20437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20438 (eval $ac_link) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; }; then
21d1c967
GD
20447 :
20448else
e6cc62c6
VS
20449 echo "$as_me: program exited with status $ac_status" >&5
20450echo "$as_me: failed program was:" >&5
20451sed 's/^/| /' conftest.$ac_ext >&5
20452
20453( exit $ac_status )
20454no_gtk=yes
21d1c967 20455fi
e6cc62c6 20456rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20457fi
21d1c967
GD
20458 CFLAGS="$ac_save_CFLAGS"
20459 LIBS="$ac_save_LIBS"
20460 fi
20461 fi
20462 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20463 echo "$as_me:$LINENO: result: yes" >&5
20464echo "${ECHO_T}yes" >&6
20465 wx_cv_lib_gtk=1.2.7
21d1c967 20466 else
e6cc62c6
VS
20467 echo "$as_me:$LINENO: result: no" >&5
20468echo "${ECHO_T}no" >&6
21d1c967
GD
20469 if test "$GTK_CONFIG" = "no" ; then
20470 echo "*** The gtk-config script installed by GTK could not be found"
20471 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20472 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20473 echo "*** full path to gtk-config."
20474 else
20475 if test -f conf.gtktest ; then
20476 :
20477 else
20478 echo "*** Could not run GTK test program, checking why..."
20479 CFLAGS="$CFLAGS $GTK_CFLAGS"
20480 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20481 cat >conftest.$ac_ext <<_ACEOF
20482#line $LINENO "configure"
20483/* confdefs.h. */
20484_ACEOF
20485cat confdefs.h >>conftest.$ac_ext
20486cat >>conftest.$ac_ext <<_ACEOF
20487/* end confdefs.h. */
21d1c967
GD
20488
20489#include <gtk/gtk.h>
20490#include <stdio.h>
20491
e6cc62c6
VS
20492int
20493main ()
20494{
20495 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20496 ;
20497 return 0;
20498}
20499_ACEOF
20500rm -f conftest.$ac_objext conftest$ac_exeext
20501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502 (eval $ac_link) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } &&
20506 { ac_try='test -s conftest$ac_exeext'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; }; then
21d1c967
GD
20512 echo "*** The test program compiled, but did not run. This usually means"
20513 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20514 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20515 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20516 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20517 echo "*** is required on your system"
20518 echo "***"
20519 echo "*** If you have an old version installed, it is best to remove it, although"
20520 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20521 echo "***"
20522 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20523 echo "*** came with the system with the command"
20524 echo "***"
e6cc62c6 20525 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20526else
e6cc62c6
VS
20527 echo "$as_me: failed program was:" >&5
20528sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20531 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20532 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20533 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20534fi
e6cc62c6 20535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20536 CFLAGS="$ac_save_CFLAGS"
20537 LIBS="$ac_save_LIBS"
20538 fi
20539 fi
20540 GTK_CFLAGS=""
20541 GTK_LIBS=""
20542 :
20543 fi
e6cc62c6
VS
20544
20545
21d1c967
GD
20546 rm -f conf.gtktest
20547
21d1c967 20548
2b5f62a0 20549 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20550
20551# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20552if test "${with_gtk_prefix+set}" = set; then
20553 withval="$with_gtk_prefix"
20554 gtk_config_prefix="$withval"
20555else
20556 gtk_config_prefix=""
e6cc62c6 20557fi;
f79bd02d 20558
21d1c967
GD
20559# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20560if test "${with_gtk_exec_prefix+set}" = set; then
20561 withval="$with_gtk_exec_prefix"
20562 gtk_config_exec_prefix="$withval"
20563else
20564 gtk_config_exec_prefix=""
e6cc62c6 20565fi;
21d1c967
GD
20566# Check whether --enable-gtktest or --disable-gtktest was given.
20567if test "${enable_gtktest+set}" = set; then
20568 enableval="$enable_gtktest"
e6cc62c6 20569
90dd450c 20570else
21d1c967 20571 enable_gtktest=yes
e6cc62c6 20572fi;
21d1c967
GD
20573
20574 for module in . $GTK_MODULES
20575 do
20576 case "$module" in
e6cc62c6 20577 gthread)
21d1c967
GD
20578 gtk_config_args="$gtk_config_args gthread"
20579 ;;
20580 esac
20581 done
20582
20583 if test x$gtk_config_exec_prefix != x ; then
20584 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20585 if test x${GTK_CONFIG+set} != xset ; then
20586 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20587 fi
20588 fi
20589 if test x$gtk_config_prefix != x ; then
20590 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20591 if test x${GTK_CONFIG+set} != xset ; then
20592 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20593 fi
20594 fi
20595
20596 # Extract the first word of "gtk-config", so it can be a program name with args.
20597set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20598echo "$as_me:$LINENO: checking for $ac_word" >&5
20599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20600if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20602else
e6cc62c6
VS
20603 case $GTK_CONFIG in
20604 [\\/]* | ?:[\\/]*)
21d1c967
GD
20605 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20606 ;;
21d1c967 20607 *)
e6cc62c6
VS
20608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20609for as_dir in $PATH
20610do
20611 IFS=$as_save_IFS
20612 test -z "$as_dir" && as_dir=.
20613 for ac_exec_ext in '' $ac_executable_extensions; do
20614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20615 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20617 break 2
20618 fi
20619done
20620done
20621
21d1c967
GD
20622 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20623 ;;
20624esac
20625fi
e6cc62c6
VS
20626GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20627
21d1c967 20628if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20629 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20630echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20631else
e6cc62c6
VS
20632 echo "$as_me:$LINENO: result: no" >&5
20633echo "${ECHO_T}no" >&6
21d1c967
GD
20634fi
20635
20636 min_gtk_version=1.2.3
e6cc62c6
VS
20637 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20638echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20639 no_gtk=""
20640 if test "$GTK_CONFIG" = "no" ; then
20641 no_gtk=yes
20642 else
20643 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20644 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20645 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20646 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20647 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20648 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20649 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20650 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20651 if test "x$enable_gtktest" = "xyes" ; then
20652 ac_save_CFLAGS="$CFLAGS"
20653 ac_save_LIBS="$LIBS"
20654 CFLAGS="$CFLAGS $GTK_CFLAGS"
20655 LIBS="$GTK_LIBS $LIBS"
20656 rm -f conf.gtktest
20657 if test "$cross_compiling" = yes; then
20658 echo $ac_n "cross compiling; assumed OK... $ac_c"
20659else
e6cc62c6
VS
20660 cat >conftest.$ac_ext <<_ACEOF
20661#line $LINENO "configure"
20662/* confdefs.h. */
20663_ACEOF
20664cat confdefs.h >>conftest.$ac_ext
20665cat >>conftest.$ac_ext <<_ACEOF
20666/* end confdefs.h. */
21d1c967
GD
20667
20668#include <gtk/gtk.h>
20669#include <stdio.h>
20670#include <stdlib.h>
20671
e6cc62c6 20672int
21d1c967
GD
20673main ()
20674{
20675 int major, minor, micro;
20676 char *tmp_version;
20677
20678 system ("touch conf.gtktest");
20679
20680 /* HP/UX 9 (%@#!) writes to sscanf strings */
20681 tmp_version = g_strdup("$min_gtk_version");
20682 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20683 printf("%s, bad version string\n", "$min_gtk_version");
20684 exit(1);
20685 }
20686
20687 if ((gtk_major_version != $gtk_config_major_version) ||
20688 (gtk_minor_version != $gtk_config_minor_version) ||
20689 (gtk_micro_version != $gtk_config_micro_version))
20690 {
e6cc62c6 20691 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20692 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20693 gtk_major_version, gtk_minor_version, gtk_micro_version);
20694 printf ("*** was found! If gtk-config was correct, then it is best\n");
20695 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20696 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20697 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20698 printf("*** required on your system.\n");
20699 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20700 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20701 printf("*** before re-running configure\n");
e6cc62c6 20702 }
21d1c967
GD
20703#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20704 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20705 (gtk_minor_version != GTK_MINOR_VERSION) ||
20706 (gtk_micro_version != GTK_MICRO_VERSION))
20707 {
20708 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20709 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20710 printf("*** library (version %d.%d.%d)\n",
20711 gtk_major_version, gtk_minor_version, gtk_micro_version);
20712 }
20713#endif /* defined (GTK_MAJOR_VERSION) ... */
20714 else
20715 {
20716 if ((gtk_major_version > major) ||
20717 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20718 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20719 {
20720 return 0;
20721 }
20722 else
20723 {
20724 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20725 gtk_major_version, gtk_minor_version, gtk_micro_version);
20726 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20727 major, minor, micro);
20728 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20729 printf("***\n");
20730 printf("*** If you have already installed a sufficiently new version, this error\n");
20731 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20732 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20733 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20734 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20735 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20736 printf("*** so that the correct libraries are found at run-time))\n");
20737 }
20738 }
20739 return 1;
20740}
20741
e6cc62c6
VS
20742_ACEOF
20743rm -f conftest$ac_exeext
20744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20745 (eval $ac_link) 2>&5
20746 ac_status=$?
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
21d1c967
GD
20754 :
20755else
e6cc62c6
VS
20756 echo "$as_me: program exited with status $ac_status" >&5
20757echo "$as_me: failed program was:" >&5
20758sed 's/^/| /' conftest.$ac_ext >&5
20759
20760( exit $ac_status )
20761no_gtk=yes
21d1c967 20762fi
e6cc62c6 20763rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20764fi
21d1c967
GD
20765 CFLAGS="$ac_save_CFLAGS"
20766 LIBS="$ac_save_LIBS"
20767 fi
20768 fi
20769 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20770 echo "$as_me:$LINENO: result: yes" >&5
20771echo "${ECHO_T}yes" >&6
20772 wx_cv_lib_gtk=1.2.3
21d1c967 20773 else
e6cc62c6
VS
20774 echo "$as_me:$LINENO: result: no" >&5
20775echo "${ECHO_T}no" >&6
21d1c967
GD
20776 if test "$GTK_CONFIG" = "no" ; then
20777 echo "*** The gtk-config script installed by GTK could not be found"
20778 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20779 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20780 echo "*** full path to gtk-config."
20781 else
20782 if test -f conf.gtktest ; then
20783 :
20784 else
20785 echo "*** Could not run GTK test program, checking why..."
20786 CFLAGS="$CFLAGS $GTK_CFLAGS"
20787 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20788 cat >conftest.$ac_ext <<_ACEOF
20789#line $LINENO "configure"
20790/* confdefs.h. */
20791_ACEOF
20792cat confdefs.h >>conftest.$ac_ext
20793cat >>conftest.$ac_ext <<_ACEOF
20794/* end confdefs.h. */
21d1c967
GD
20795
20796#include <gtk/gtk.h>
20797#include <stdio.h>
f79bd02d 20798
e6cc62c6
VS
20799int
20800main ()
20801{
20802 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20803 ;
20804 return 0;
20805}
20806_ACEOF
20807rm -f conftest.$ac_objext conftest$ac_exeext
20808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20809 (eval $ac_link) 2>&5
20810 ac_status=$?
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
20813 { ac_try='test -s conftest$ac_exeext'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20816 ac_status=$?
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; }; then
21d1c967
GD
20819 echo "*** The test program compiled, but did not run. This usually means"
20820 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20821 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20822 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20823 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20824 echo "*** is required on your system"
20825 echo "***"
20826 echo "*** If you have an old version installed, it is best to remove it, although"
20827 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20828 echo "***"
20829 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20830 echo "*** came with the system with the command"
20831 echo "***"
e6cc62c6 20832 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20833else
e6cc62c6
VS
20834 echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20838 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20839 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20840 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20841fi
e6cc62c6 20842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20843 CFLAGS="$ac_save_CFLAGS"
20844 LIBS="$ac_save_LIBS"
20845 fi
20846 fi
20847 GTK_CFLAGS=""
20848 GTK_LIBS=""
20849 :
20850 fi
e6cc62c6
VS
20851
20852
21d1c967 20853 rm -f conf.gtktest
f79bd02d 20854
2b5f62a0 20855 fi
21d1c967
GD
20856 fi
20857
20858 if test -z "$wx_cv_lib_gtk"; then
20859 wx_cv_lib_gtk=none
20860 else
20861 wx_cv_cflags_gtk=$GTK_CFLAGS
20862 wx_cv_libs_gtk=$GTK_LIBS
20863 fi
e6cc62c6
VS
20864
20865
5c6fa7d2 20866fi
52127426 20867
8284b0c5 20868
21d1c967 20869 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20870 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20871echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20872 fi
20873
20874 case "$wx_cv_lib_gtk" in
20875 2.0) WXGTK20=1
2b5f62a0 20876 TOOLKIT_VERSION=2
21d1c967
GD
20877 ;;
20878 1.2.7) WXGTK127=1
20879 WXGTK12=1
20880 ;;
20881 1.2.3) WXGTK12=1
20882 ;;
e6cc62c6
VS
20883 *) { { echo "$as_me:$LINENO: error:
20884Please check that gtk-config is in path, the directory
20885where GTK+ libraries are installed (returned by
20886'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20887equivalent variable and GTK+ is version 1.2.3 or above.
20888 " >&5
20889echo "$as_me: error:
247f5006
VZ
20890Please check that gtk-config is in path, the directory
20891where GTK+ libraries are installed (returned by
20892'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20893equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20894 " >&2;}
20895 { (exit 1); exit 1; }; }
21d1c967
GD
20896 ;;
20897 esac
20898
b13cd66e
VZ
20899 if test "$WXGTK20" = 1; then
20900 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20901
f09359cf
VS
20902 succeeded=no
20903
20904 if test -z "$PKG_CONFIG"; then
20905 # Extract the first word of "pkg-config", so it can be a program name with args.
20906set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20907echo "$as_me:$LINENO: checking for $ac_word" >&5
20908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20909if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20911else
e6cc62c6
VS
20912 case $PKG_CONFIG in
20913 [\\/]* | ?:[\\/]*)
f09359cf
VS
20914 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20915 ;;
f09359cf 20916 *)
e6cc62c6
VS
20917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20918for as_dir in $PATH
20919do
20920 IFS=$as_save_IFS
20921 test -z "$as_dir" && as_dir=.
20922 for ac_exec_ext in '' $ac_executable_extensions; do
20923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20924 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20926 break 2
20927 fi
20928done
20929done
20930
f09359cf
VS
20931 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20932 ;;
20933esac
20934fi
e6cc62c6
VS
20935PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20936
f09359cf 20937if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20938 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20939echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20940else
e6cc62c6
VS
20941 echo "$as_me:$LINENO: result: no" >&5
20942echo "${ECHO_T}no" >&6
f09359cf
VS
20943fi
20944
20945 fi
20946
20947 if test "$PKG_CONFIG" = "no" ; then
20948 echo "*** The pkg-config script could not be found. Make sure it is"
20949 echo "*** in your path, or set the PKG_CONFIG environment variable"
20950 echo "*** to the full path to pkg-config."
20951 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20952 else
20953 PKG_CONFIG_MIN_VERSION=0.9.0
20954 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20955 echo "$as_me:$LINENO: checking for pangoft2" >&5
20956echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20957
20958 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20959 echo "$as_me:$LINENO: result: yes" >&5
20960echo "${ECHO_T}yes" >&6
f09359cf
VS
20961 succeeded=yes
20962
e6cc62c6
VS
20963 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20964echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20965 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20966 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20967echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20968
e6cc62c6
VS
20969 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20970echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20971 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20972 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20973echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20974 else
20975 PANGOFT2_CFLAGS=""
20976 PANGOFT2_LIBS=""
e6cc62c6 20977 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20978 ## do set a variable so people can do so.
20979 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20980
f09359cf
VS
20981 fi
20982
e6cc62c6
VS
20983
20984
f09359cf
VS
20985 else
20986 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20987 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20988 fi
20989 fi
20990
20991 if test $succeeded = yes; then
e6cc62c6 20992
b13cd66e 20993 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20994 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20995
f09359cf 20996 else
e6cc62c6
VS
20997
20998 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20999echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 21000 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
21001
21002
f09359cf
VS
21003 fi
21004
b13cd66e 21005 fi
2b5f62a0
VZ
21006 else
21007 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
21008 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21009echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
21010 wxUSE_UNICODE=no
21011 fi
21012 fi
21013
21014 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
21015
21016for ac_func in poll
2b5f62a0 21017do
e6cc62c6
VS
21018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21019echo "$as_me:$LINENO: checking for $ac_func" >&5
21020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21021if eval "test \"\${$as_ac_var+set}\" = set"; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21023else
21024 cat >conftest.$ac_ext <<_ACEOF
21025#line $LINENO "configure"
21026/* confdefs.h. */
21027_ACEOF
21028cat confdefs.h >>conftest.$ac_ext
21029cat >>conftest.$ac_ext <<_ACEOF
21030/* end confdefs.h. */
2b5f62a0 21031/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21032 which can conflict with char $ac_func (); below.
21033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21034 <limits.h> exists even on freestanding compilers. */
21035#ifdef __STDC__
21036# include <limits.h>
21037#else
21038# include <assert.h>
21039#endif
2b5f62a0 21040/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21041#ifdef __cplusplus
21042extern "C"
21043{
21044#endif
2b5f62a0 21045/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21046 builtin and then its argument prototype would still apply. */
21047char $ac_func ();
2b5f62a0
VZ
21048/* The GNU C library defines this for functions which it implements
21049 to always fail with ENOSYS. Some functions are actually named
21050 something starting with __ and the normal name is an alias. */
21051#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21052choke me
21053#else
e6cc62c6
VS
21054char (*f) () = $ac_func;
21055#endif
21056#ifdef __cplusplus
21057}
2b5f62a0
VZ
21058#endif
21059
e6cc62c6
VS
21060int
21061main ()
21062{
21063return f != $ac_func;
21064 ;
21065 return 0;
21066}
21067_ACEOF
21068rm -f conftest.$ac_objext conftest$ac_exeext
21069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21070 (eval $ac_link) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
21074 { ac_try='test -s conftest$ac_exeext'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21077 ac_status=$?
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; }; then
21080 eval "$as_ac_var=yes"
21081else
21082 echo "$as_me: failed program was:" >&5
21083sed 's/^/| /' conftest.$ac_ext >&5
21084
21085eval "$as_ac_var=no"
21086fi
21087rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21088fi
21089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21090echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21091if test `eval echo '${'$as_ac_var'}'` = yes; then
21092 cat >>confdefs.h <<_ACEOF
21093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21094_ACEOF
2b5f62a0 21095
2b5f62a0
VZ
21096fi
21097done
21098
f09359cf
VS
21099 fi
21100
21d1c967 21101 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21102 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21103
21104 AFMINSTALL=afminstall
21105 TOOLKIT=GTK
21106 GUIDIST=GTK_DIST
21107
e6cc62c6
VS
21108 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21109echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21110if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21112else
e6cc62c6 21113 ac_check_lib_save_LIBS=$LIBS
21d1c967 21114LIBS="-lgdk $LIBS"
e6cc62c6
VS
21115cat >conftest.$ac_ext <<_ACEOF
21116#line $LINENO "configure"
21117/* confdefs.h. */
21118_ACEOF
21119cat confdefs.h >>conftest.$ac_ext
21120cat >>conftest.$ac_ext <<_ACEOF
21121/* end confdefs.h. */
21122
5c6fa7d2 21123/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21124#ifdef __cplusplus
21125extern "C"
21126#endif
5c6fa7d2 21127/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21128 builtin and then its argument prototype would still apply. */
21129char gdk_im_open ();
21130int
21131main ()
21132{
21133gdk_im_open ();
21134 ;
21135 return 0;
21136}
21137_ACEOF
21138rm -f conftest.$ac_objext conftest$ac_exeext
21139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21140 (eval $ac_link) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } &&
21144 { ac_try='test -s conftest$ac_exeext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 ac_cv_lib_gdk_gdk_im_open=yes
21151else
21152 echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
21155ac_cv_lib_gdk_gdk_im_open=no
21156fi
21157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21158LIBS=$ac_check_lib_save_LIBS
21159fi
21160echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21161echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21162if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21163 cat >>confdefs.h <<\_ACEOF
21d1c967 21164#define HAVE_XIM 1
e6cc62c6 21165_ACEOF
21d1c967 21166
90dd450c 21167fi
1e6feb95 21168
21d1c967 21169 fi
1e6feb95 21170
21d1c967 21171 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21172 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21173echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21174 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21175 echo "$as_me:$LINENO: result: not found" >&5
21176echo "${ECHO_T}not found" >&6
21177 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21178echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21179 { (exit 1); exit 1; }; }
21d1c967 21180 else
e6cc62c6
VS
21181 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21182echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21183 fi
21184
e6cc62c6
VS
21185 echo "$as_me:$LINENO: checking for libmgl location" >&5
21186echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
21187 case "${host}" in
21188 *-*-linux* )
63a76696
VS
21189 if test "x$wxUSE_SHARED" = xyes ; then
21190 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
21191 else
21192 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
21193 fi
21d1c967
GD
21194 ;;
21195 *-pc-msdosdjgpp )
63a76696 21196 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21197 ;;
21198 *)
e6cc62c6
VS
21199 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21200echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21201 { (exit 1); exit 1; }; }
21d1c967 21202 esac
1e6feb95 21203
21d1c967 21204 mgl_lib_type=""
63a76696
VS
21205 mgl_os=""
21206
21207 for mgl_os_i in $mgl_os_candidates ; do
21208 if test "x$mgl_os" = x ; then
21209 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21210 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21211 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21212 mgl_lib_type=debug
21213 mgl_os=$mgl_os_i
21214 fi
21215 fi
21216 if test "x$mgl_lib_type" = x ; then
21217 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21218 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21219 mgl_lib_type=release
21220 mgl_os=$mgl_os_i
21221 fi
21222 fi
21d1c967 21223 fi
63a76696 21224 done
2224580a 21225
63a76696 21226 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21227 echo "$as_me:$LINENO: result: not found" >&5
21228echo "${ECHO_T}not found" >&6
21229 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21230echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21231 { (exit 1); exit 1; }; }
63a76696 21232 fi
e6cc62c6
VS
21233 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21234echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21235
1d1b75ac
VZ
21236 wxUSE_UNIVERSAL="yes"
21237
21d1c967
GD
21238 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21239 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21240
90dd450c 21241 AFMINSTALL=afminstall
21d1c967
GD
21242 TOOLKIT=MGL
21243 GUIDIST=MGL_DIST
21244 fi
dad6c0ea 21245
21d1c967 21246 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21247 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21248echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21249 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21250 echo "$as_me:$LINENO: result: not found" >&5
21251echo "${ECHO_T}not found" >&6
21252 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21253echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21254 { (exit 1); exit 1; }; }
21d1c967 21255 else
e6cc62c6
VS
21256 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21257echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21258 fi
f6bcfd97 21259
21d1c967 21260 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21261 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21262echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21263 else
e6cc62c6
VS
21264 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21265echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21266 { (exit 1); exit 1; }; }
90dd450c 21267 fi
0b2effe9 21268
21d1c967
GD
21269 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21270 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21271
1d1b75ac
VZ
21272 wxUSE_UNIVERSAL="yes"
21273
21d1c967
GD
21274 AFMINSTALL=afminstall
21275 TOOLKIT=MICROWIN
21276 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21277
21278 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21279 fi
f6bcfd97 21280
21d1c967 21281 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21282 echo "$as_me:$LINENO: checking for X" >&5
21283echo $ECHO_N "checking for X... $ECHO_C" >&6
21284
d8356fa3 21285
21d1c967
GD
21286# Check whether --with-x or --without-x was given.
21287if test "${with_x+set}" = set; then
21288 withval="$with_x"
2224580a 21289
e6cc62c6 21290fi;
21d1c967
GD
21291# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21292if test "x$with_x" = xno; then
21293 # The user explicitly disabled X.
21294 have_x=disabled
21295else
21296 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21297 # Both variables are already set.
21298 have_x=yes
21299 else
e6cc62c6
VS
21300 if test "${ac_cv_have_x+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21302else
21303 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21304ac_x_includes=no ac_x_libraries=no
21305rm -fr conftest.dir
21306if mkdir conftest.dir; then
21307 cd conftest.dir
21d1c967 21308 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21309 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21310acfindx:
21311 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21312_ACEOF
21d1c967
GD
21313 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21315 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21316 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21317 for ac_extension in a so sl; do
21318 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21319 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21320 ac_im_usrlibdir=$ac_im_libdir; break
21321 fi
21322 done
21323 # Screen out bogus values from the imake configuration. They are
21324 # bogus both because they are the default anyway, and because
21325 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21326 case $ac_im_incroot in
21d1c967 21327 /usr/include) ;;
e6cc62c6 21328 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21329 esac
e6cc62c6 21330 case $ac_im_usrlibdir in
21d1c967 21331 /usr/lib | /lib) ;;
e6cc62c6 21332 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21333 esac
21334 fi
21335 cd ..
e6cc62c6 21336 rm -fr conftest.dir
21d1c967 21337fi
10f2d63a 21338
e6cc62c6
VS
21339# Standard set of common directories for X headers.
21340# Check X11 before X11Rn because it is often a symlink to the current release.
21341ac_x_header_dirs='
21342/usr/X11/include
21343/usr/X11R6/include
21344/usr/X11R5/include
21345/usr/X11R4/include
21346
21347/usr/include/X11
21348/usr/include/X11R6
21349/usr/include/X11R5
21350/usr/include/X11R4
21351
21352/usr/local/X11/include
21353/usr/local/X11R6/include
21354/usr/local/X11R5/include
21355/usr/local/X11R4/include
21356
21357/usr/local/include/X11
21358/usr/local/include/X11R6
21359/usr/local/include/X11R5
21360/usr/local/include/X11R4
21361
21362/usr/X386/include
21363/usr/x386/include
21364/usr/XFree86/include/X11
21365
21366/usr/include
21367/usr/local/include
21368/usr/unsupported/include
21369/usr/athena/include
21370/usr/local/x11r5/include
21371/usr/lpp/Xamples/include
21372
21373/usr/openwin/include
21374/usr/openwin/share/include'
21375
21376if test "$ac_x_includes" = no; then
21377 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21378 # First, try using that file with no special directory specified.
e6cc62c6
VS
21379 cat >conftest.$ac_ext <<_ACEOF
21380#line $LINENO "configure"
21381/* confdefs.h. */
21382_ACEOF
21383cat confdefs.h >>conftest.$ac_ext
21384cat >>conftest.$ac_ext <<_ACEOF
21385/* end confdefs.h. */
21386#include <X11/Intrinsic.h>
21387_ACEOF
21388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } >/dev/null; then
21396 if test -s conftest.err; then
21397 ac_cpp_err=$ac_c_preproc_warn_flag
21398 else
21399 ac_cpp_err=
21400 fi
21401else
21402 ac_cpp_err=yes
21403fi
21404if test -z "$ac_cpp_err"; then
21d1c967
GD
21405 # We can compile using X headers with no special include directory.
21406ac_x_includes=
90dd450c 21407else
e6cc62c6
VS
21408 echo "$as_me: failed program was:" >&5
21409sed 's/^/| /' conftest.$ac_ext >&5
21410
21411 for ac_dir in $ac_x_header_dirs; do
21412 if test -r "$ac_dir/X11/Intrinsic.h"; then
21413 ac_x_includes=$ac_dir
21414 break
21415 fi
21416done
3a922bb4 21417fi
e6cc62c6
VS
21418rm -f conftest.err conftest.$ac_ext
21419fi # $ac_x_includes = no
10f2d63a 21420
e6cc62c6 21421if test "$ac_x_libraries" = no; then
21d1c967 21422 # Check for the libraries.
21d1c967
GD
21423 # See if we find them without any special options.
21424 # Don't add to $LIBS permanently.
e6cc62c6
VS
21425 ac_save_LIBS=$LIBS
21426 LIBS="-lXt $LIBS"
21427 cat >conftest.$ac_ext <<_ACEOF
21428#line $LINENO "configure"
21429/* confdefs.h. */
21430_ACEOF
21431cat confdefs.h >>conftest.$ac_ext
21432cat >>conftest.$ac_ext <<_ACEOF
21433/* end confdefs.h. */
21434#include <X11/Intrinsic.h>
21435int
21436main ()
21437{
21438XtMalloc (0)
21439 ;
21440 return 0;
21441}
21442_ACEOF
21443rm -f conftest.$ac_objext conftest$ac_exeext
21444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21445 (eval $ac_link) 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
21449 { ac_try='test -s conftest$ac_exeext'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then
21455 LIBS=$ac_save_LIBS
21d1c967
GD
21456# We can link X programs with no special library path.
21457ac_x_libraries=
3a922bb4 21458else
e6cc62c6
VS
21459 echo "$as_me: failed program was:" >&5
21460sed 's/^/| /' conftest.$ac_ext >&5
21461
21462LIBS=$ac_save_LIBS
21463for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21464do
e6cc62c6 21465 # Don't even attempt the hair of trying to link an X program!
21d1c967 21466 for ac_extension in a so sl; do
e6cc62c6 21467 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21468 ac_x_libraries=$ac_dir
21469 break 2
21470 fi
21471 done
21472done
3a922bb4 21473fi
e6cc62c6
VS
21474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21475fi # $ac_x_libraries = no
90dd450c 21476
e6cc62c6 21477if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21478 # Didn't find X anywhere. Cache the known absence of X.
21479 ac_cv_have_x="have_x=no"
21480else
21481 # Record where we found X for the cache.
21482 ac_cv_have_x="have_x=yes \
21483 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21484fi
21d1c967 21485fi
e6cc62c6 21486
21d1c967
GD
21487 fi
21488 eval "$ac_cv_have_x"
21489fi # $with_x != no
90dd450c 21490
21d1c967 21491if test "$have_x" != yes; then
e6cc62c6
VS
21492 echo "$as_me:$LINENO: result: $have_x" >&5
21493echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21494 no_x=yes
21495else
21496 # If each of the values was on the command line, it overrides each guess.
21497 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21498 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21499 # Update the cache value to reflect the command line values.
21500 ac_cv_have_x="have_x=yes \
21501 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21502 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21503echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21504fi
90dd450c 21505
21d1c967 21506if test "$no_x" = yes; then
90dd450c 21507 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21508
21509cat >>confdefs.h <<\_ACEOF
90dd450c 21510#define X_DISPLAY_MISSING 1
e6cc62c6 21511_ACEOF
90dd450c
VZ
21512
21513 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21514else
21515 if test -n "$x_includes"; then
21516 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21517 fi
3a922bb4 21518
90dd450c
VZ
21519 # It would also be nice to do this for all -L options, not just this one.
21520 if test -n "$x_libraries"; then
21521 X_LIBS="$X_LIBS -L$x_libraries"
21522 # For Solaris; some versions of Sun CC require a space after -R and
21523 # others require no space. Words are not sufficient . . . .
e6cc62c6 21524 case `(uname -sr) 2>/dev/null` in
90dd450c 21525 "SunOS 5"*)
e6cc62c6
VS
21526 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21527echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21528 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21529 cat >conftest.$ac_ext <<_ACEOF
21530#line $LINENO "configure"
21531/* confdefs.h. */
21532_ACEOF
21533cat confdefs.h >>conftest.$ac_ext
21534cat >>conftest.$ac_ext <<_ACEOF
21535/* end confdefs.h. */
21536
21537int
21538main ()
21539{
90dd450c 21540
e6cc62c6
VS
21541 ;
21542 return 0;
21543}
21544_ACEOF
21545rm -f conftest.$ac_objext conftest$ac_exeext
21546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21547 (eval $ac_link) 2>&5
21548 ac_status=$?
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } &&
21551 { ac_try='test -s conftest$ac_exeext'
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; }; then
90dd450c 21557 ac_R_nospace=yes
3a922bb4 21558else
e6cc62c6
VS
21559 echo "$as_me: failed program was:" >&5
21560sed 's/^/| /' conftest.$ac_ext >&5
21561
21562ac_R_nospace=no
3a922bb4 21563fi
e6cc62c6 21564rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21565 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21566 echo "$as_me:$LINENO: result: no" >&5
21567echo "${ECHO_T}no" >&6
90dd450c
VZ
21568 X_LIBS="$X_LIBS -R$x_libraries"
21569 else
21570 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21571 cat >conftest.$ac_ext <<_ACEOF
21572#line $LINENO "configure"
21573/* confdefs.h. */
21574_ACEOF
21575cat confdefs.h >>conftest.$ac_ext
21576cat >>conftest.$ac_ext <<_ACEOF
21577/* end confdefs.h. */
21578
21579int
21580main ()
21581{
6f754473 21582
e6cc62c6
VS
21583 ;
21584 return 0;
21585}
21586_ACEOF
21587rm -f conftest.$ac_objext conftest$ac_exeext
21588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21589 (eval $ac_link) 2>&5
21590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } &&
21593 { ac_try='test -s conftest$ac_exeext'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; }; then
90dd450c
VZ
21599 ac_R_space=yes
21600else
e6cc62c6
VS
21601 echo "$as_me: failed program was:" >&5
21602sed 's/^/| /' conftest.$ac_ext >&5
21603
21604ac_R_space=no
90dd450c 21605fi
e6cc62c6 21606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21607 if test $ac_R_space = yes; then
e6cc62c6
VS
21608 echo "$as_me:$LINENO: result: yes" >&5
21609echo "${ECHO_T}yes" >&6
90dd450c
VZ
21610 X_LIBS="$X_LIBS -R $x_libraries"
21611 else
e6cc62c6
VS
21612 echo "$as_me:$LINENO: result: neither works" >&5
21613echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21614 fi
21615 fi
e6cc62c6 21616 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21617 esac
21618 fi
21619
21620 # Check for system-dependent libraries X programs must link with.
21621 # Do this before checking for the system-independent R6 libraries
21622 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21623
90dd450c
VZ
21624 if test "$ISC" = yes; then
21625 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21626 else
e6cc62c6
VS
21627 # Martyn Johnson says this is needed for Ultrix, if the X
21628 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21629 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21630 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21631 cat >conftest.$ac_ext <<_ACEOF
21632#line $LINENO "configure"
21633/* confdefs.h. */
21634_ACEOF
21635cat confdefs.h >>conftest.$ac_ext
21636cat >>conftest.$ac_ext <<_ACEOF
21637/* end confdefs.h. */
21638
247f5006 21639/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21640#ifdef __cplusplus
21641extern "C"
21642#endif
247f5006 21643/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21644 builtin and then its argument prototype would still apply. */
21645char XOpenDisplay ();
21646int
21647main ()
21648{
21649XOpenDisplay ();
21650 ;
21651 return 0;
21652}
21653_ACEOF
21654rm -f conftest.$ac_objext conftest$ac_exeext
21655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21656 (eval $ac_link) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } &&
21660 { ac_try='test -s conftest$ac_exeext'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 :
21667else
21668 echo "$as_me: failed program was:" >&5
21669sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21670
e6cc62c6
VS
21671echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21672echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21673if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21675else
e6cc62c6
VS
21676 ac_check_lib_save_LIBS=$LIBS
21677LIBS="-ldnet $LIBS"
21678cat >conftest.$ac_ext <<_ACEOF
21679#line $LINENO "configure"
21680/* confdefs.h. */
21681_ACEOF
21682cat confdefs.h >>conftest.$ac_ext
21683cat >>conftest.$ac_ext <<_ACEOF
21684/* end confdefs.h. */
a0b9e27f 21685
e6cc62c6
VS
21686/* Override any gcc2 internal prototype to avoid an error. */
21687#ifdef __cplusplus
21688extern "C"
21689#endif
21690/* We use char because int might match the return type of a gcc2
21691 builtin and then its argument prototype would still apply. */
21692char dnet_ntoa ();
21693int
21694main ()
21695{
21696dnet_ntoa ();
21697 ;
21698 return 0;
21699}
21700_ACEOF
21701rm -f conftest.$ac_objext conftest$ac_exeext
21702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21703 (eval $ac_link) 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } &&
21707 { ac_try='test -s conftest$ac_exeext'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 ac_cv_lib_dnet_dnet_ntoa=yes
21714else
21715 echo "$as_me: failed program was:" >&5
21716sed 's/^/| /' conftest.$ac_ext >&5
21717
21718ac_cv_lib_dnet_dnet_ntoa=no
21719fi
21720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21721LIBS=$ac_check_lib_save_LIBS
21722fi
21723echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21724echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21725if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21726 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21727fi
21728
90dd450c 21729 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21730 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21731echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21732if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21733 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21734else
e6cc62c6 21735 ac_check_lib_save_LIBS=$LIBS
90dd450c 21736LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21737cat >conftest.$ac_ext <<_ACEOF
21738#line $LINENO "configure"
21739/* confdefs.h. */
21740_ACEOF
21741cat confdefs.h >>conftest.$ac_ext
21742cat >>conftest.$ac_ext <<_ACEOF
21743/* end confdefs.h. */
21744
90dd450c 21745/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21746#ifdef __cplusplus
21747extern "C"
21748#endif
90dd450c 21749/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21750 builtin and then its argument prototype would still apply. */
21751char dnet_ntoa ();
21752int
21753main ()
21754{
21755dnet_ntoa ();
21756 ;
21757 return 0;
21758}
21759_ACEOF
21760rm -f conftest.$ac_objext conftest$ac_exeext
21761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21762 (eval $ac_link) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
21766 { ac_try='test -s conftest$ac_exeext'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21769 ac_status=$?
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21772 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21773else
21774 echo "$as_me: failed program was:" >&5
21775sed 's/^/| /' conftest.$ac_ext >&5
21776
21777ac_cv_lib_dnet_stub_dnet_ntoa=no
21778fi
21779rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21780LIBS=$ac_check_lib_save_LIBS
21781fi
21782echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21783echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21784if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21785 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21786fi
21787
90dd450c 21788 fi
e6cc62c6
VS
21789fi
21790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21791 LIBS="$ac_xsave_LIBS"
978f1259 21792
90dd450c
VZ
21793 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21794 # to get the SysV transport functions.
e6cc62c6 21795 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21796 # needs -lnsl.
21797 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21798 # on Irix 5.2, according to T.E. Dickey.
21799 # The functions gethostbyname, getservbyname, and inet_addr are
21800 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21801 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21802echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21803if test "${ac_cv_func_gethostbyname+set}" = set; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21805else
21806 cat >conftest.$ac_ext <<_ACEOF
21807#line $LINENO "configure"
21808/* confdefs.h. */
21809_ACEOF
21810cat confdefs.h >>conftest.$ac_ext
21811cat >>conftest.$ac_ext <<_ACEOF
21812/* end confdefs.h. */
90dd450c 21813/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21814 which can conflict with char gethostbyname (); below.
21815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21816 <limits.h> exists even on freestanding compilers. */
21817#ifdef __STDC__
21818# include <limits.h>
21819#else
21820# include <assert.h>
21821#endif
90dd450c 21822/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21823#ifdef __cplusplus
21824extern "C"
21825{
21826#endif
90dd450c 21827/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21828 builtin and then its argument prototype would still apply. */
21829char gethostbyname ();
90dd450c
VZ
21830/* The GNU C library defines this for functions which it implements
21831 to always fail with ENOSYS. Some functions are actually named
21832 something starting with __ and the normal name is an alias. */
21833#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21834choke me
21835#else
e6cc62c6
VS
21836char (*f) () = gethostbyname;
21837#endif
21838#ifdef __cplusplus
21839}
90dd450c 21840#endif
978f1259 21841
e6cc62c6
VS
21842int
21843main ()
21844{
21845return f != gethostbyname;
21846 ;
21847 return 0;
21848}
21849_ACEOF
21850rm -f conftest.$ac_objext conftest$ac_exeext
21851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21852 (eval $ac_link) 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } &&
21856 { ac_try='test -s conftest$ac_exeext'
21857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858 (eval $ac_try) 2>&5
21859 ac_status=$?
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; }; then
21862 ac_cv_func_gethostbyname=yes
21863else
21864 echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
21866
21867ac_cv_func_gethostbyname=no
21868fi
21869rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21870fi
21871echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21872echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21873
90dd450c 21874 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21875 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21876echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21877if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21878 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21879else
e6cc62c6 21880 ac_check_lib_save_LIBS=$LIBS
90dd450c 21881LIBS="-lnsl $LIBS"
e6cc62c6
VS
21882cat >conftest.$ac_ext <<_ACEOF
21883#line $LINENO "configure"
21884/* confdefs.h. */
21885_ACEOF
21886cat confdefs.h >>conftest.$ac_ext
21887cat >>conftest.$ac_ext <<_ACEOF
21888/* end confdefs.h. */
21889
90dd450c 21890/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21891#ifdef __cplusplus
21892extern "C"
21893#endif
90dd450c 21894/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21895 builtin and then its argument prototype would still apply. */
21896char gethostbyname ();
21897int
21898main ()
21899{
21900gethostbyname ();
21901 ;
21902 return 0;
21903}
21904_ACEOF
21905rm -f conftest.$ac_objext conftest$ac_exeext
21906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21907 (eval $ac_link) 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); } &&
21911 { ac_try='test -s conftest$ac_exeext'
21912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913 (eval $ac_try) 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; }; then
21917 ac_cv_lib_nsl_gethostbyname=yes
21918else
21919 echo "$as_me: failed program was:" >&5
21920sed 's/^/| /' conftest.$ac_ext >&5
21921
21922ac_cv_lib_nsl_gethostbyname=no
21923fi
21924rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21925LIBS=$ac_check_lib_save_LIBS
21926fi
21927echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21928echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21929if test $ac_cv_lib_nsl_gethostbyname = yes; then
21930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21931fi
247f5006 21932
e6cc62c6
VS
21933 if test $ac_cv_lib_nsl_gethostbyname = no; then
21934 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21935echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21936if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21938else
e6cc62c6
VS
21939 ac_check_lib_save_LIBS=$LIBS
21940LIBS="-lbsd $LIBS"
21941cat >conftest.$ac_ext <<_ACEOF
21942#line $LINENO "configure"
21943/* confdefs.h. */
21944_ACEOF
21945cat confdefs.h >>conftest.$ac_ext
21946cat >>conftest.$ac_ext <<_ACEOF
21947/* end confdefs.h. */
21948
21949/* Override any gcc2 internal prototype to avoid an error. */
21950#ifdef __cplusplus
21951extern "C"
21952#endif
21953/* We use char because int might match the return type of a gcc2
21954 builtin and then its argument prototype would still apply. */
21955char gethostbyname ();
21956int
21957main ()
21958{
21959gethostbyname ();
21960 ;
21961 return 0;
21962}
21963_ACEOF
21964rm -f conftest.$ac_objext conftest$ac_exeext
21965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21966 (eval $ac_link) 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } &&
21970 { ac_try='test -s conftest$ac_exeext'
21971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972 (eval $ac_try) 2>&5
21973 ac_status=$?
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; }; then
21976 ac_cv_lib_bsd_gethostbyname=yes
21977else
21978 echo "$as_me: failed program was:" >&5
21979sed 's/^/| /' conftest.$ac_ext >&5
21980
21981ac_cv_lib_bsd_gethostbyname=no
21982fi
21983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21984LIBS=$ac_check_lib_save_LIBS
21985fi
21986echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21987echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21988if test $ac_cv_lib_bsd_gethostbyname = yes; then
21989 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21990fi
b12915c1 21991
e6cc62c6 21992 fi
90dd450c
VZ
21993 fi
21994
21995 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21996 # socket/setsockopt and other routines are undefined under SCO ODT
21997 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21998 # on later versions), says Simon Leinen: it contains gethostby*
21999 # variants that don't use the name server (or something). -lsocket
22000 # must be given before -lnsl if both are needed. We assume that
22001 # if connect needs -lnsl, so does gethostbyname.
22002 echo "$as_me:$LINENO: checking for connect" >&5
22003echo $ECHO_N "checking for connect... $ECHO_C" >&6
22004if test "${ac_cv_func_connect+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22006else
22007 cat >conftest.$ac_ext <<_ACEOF
22008#line $LINENO "configure"
22009/* confdefs.h. */
22010_ACEOF
22011cat confdefs.h >>conftest.$ac_ext
22012cat >>conftest.$ac_ext <<_ACEOF
22013/* end confdefs.h. */
90dd450c 22014/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22015 which can conflict with char connect (); below.
22016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22017 <limits.h> exists even on freestanding compilers. */
22018#ifdef __STDC__
22019# include <limits.h>
22020#else
22021# include <assert.h>
22022#endif
90dd450c 22023/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22024#ifdef __cplusplus
22025extern "C"
22026{
22027#endif
90dd450c 22028/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22029 builtin and then its argument prototype would still apply. */
22030char connect ();
90dd450c
VZ
22031/* The GNU C library defines this for functions which it implements
22032 to always fail with ENOSYS. Some functions are actually named
22033 something starting with __ and the normal name is an alias. */
22034#if defined (__stub_connect) || defined (__stub___connect)
22035choke me
22036#else
e6cc62c6
VS
22037char (*f) () = connect;
22038#endif
22039#ifdef __cplusplus
22040}
90dd450c
VZ
22041#endif
22042
e6cc62c6
VS
22043int
22044main ()
22045{
22046return f != connect;
22047 ;
22048 return 0;
22049}
22050_ACEOF
22051rm -f conftest.$ac_objext conftest$ac_exeext
22052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22053 (eval $ac_link) 2>&5
22054 ac_status=$?
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } &&
22057 { ac_try='test -s conftest$ac_exeext'
22058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059 (eval $ac_try) 2>&5
22060 ac_status=$?
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; }; then
22063 ac_cv_func_connect=yes
22064else
22065 echo "$as_me: failed program was:" >&5
22066sed 's/^/| /' conftest.$ac_ext >&5
22067
22068ac_cv_func_connect=no
22069fi
22070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22071fi
22072echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22073echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 22074
90dd450c 22075 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
22076 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22077echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22078if test "${ac_cv_lib_socket_connect+set}" = set; then
22079 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22080else
e6cc62c6 22081 ac_check_lib_save_LIBS=$LIBS
90dd450c 22082LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22083cat >conftest.$ac_ext <<_ACEOF
22084#line $LINENO "configure"
22085/* confdefs.h. */
22086_ACEOF
22087cat confdefs.h >>conftest.$ac_ext
22088cat >>conftest.$ac_ext <<_ACEOF
22089/* end confdefs.h. */
22090
90dd450c 22091/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22092#ifdef __cplusplus
22093extern "C"
22094#endif
90dd450c 22095/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22096 builtin and then its argument prototype would still apply. */
22097char connect ();
22098int
22099main ()
22100{
22101connect ();
22102 ;
22103 return 0;
22104}
22105_ACEOF
22106rm -f conftest.$ac_objext conftest$ac_exeext
22107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22108 (eval $ac_link) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try='test -s conftest$ac_exeext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ac_cv_lib_socket_connect=yes
22119else
22120 echo "$as_me: failed program was:" >&5
22121sed 's/^/| /' conftest.$ac_ext >&5
22122
22123ac_cv_lib_socket_connect=no
22124fi
22125rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22126LIBS=$ac_check_lib_save_LIBS
22127fi
22128echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22129echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22130if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22131 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22132fi
77e13408 22133
90dd450c 22134 fi
25d0687a 22135
e6cc62c6
VS
22136 # Guillermo Gomez says -lposix is necessary on A/UX.
22137 echo "$as_me:$LINENO: checking for remove" >&5
22138echo $ECHO_N "checking for remove... $ECHO_C" >&6
22139if test "${ac_cv_func_remove+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22141else
22142 cat >conftest.$ac_ext <<_ACEOF
22143#line $LINENO "configure"
22144/* confdefs.h. */
22145_ACEOF
22146cat confdefs.h >>conftest.$ac_ext
22147cat >>conftest.$ac_ext <<_ACEOF
22148/* end confdefs.h. */
90dd450c 22149/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22150 which can conflict with char remove (); below.
22151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22152 <limits.h> exists even on freestanding compilers. */
22153#ifdef __STDC__
22154# include <limits.h>
22155#else
22156# include <assert.h>
22157#endif
90dd450c 22158/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22159#ifdef __cplusplus
22160extern "C"
22161{
22162#endif
90dd450c 22163/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22164 builtin and then its argument prototype would still apply. */
22165char remove ();
90dd450c
VZ
22166/* The GNU C library defines this for functions which it implements
22167 to always fail with ENOSYS. Some functions are actually named
22168 something starting with __ and the normal name is an alias. */
22169#if defined (__stub_remove) || defined (__stub___remove)
22170choke me
22171#else
e6cc62c6
VS
22172char (*f) () = remove;
22173#endif
22174#ifdef __cplusplus
22175}
90dd450c 22176#endif
55e80573 22177
e6cc62c6
VS
22178int
22179main ()
22180{
22181return f != remove;
22182 ;
22183 return 0;
22184}
22185_ACEOF
22186rm -f conftest.$ac_objext conftest$ac_exeext
22187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22188 (eval $ac_link) 2>&5
22189 ac_status=$?
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } &&
22192 { ac_try='test -s conftest$ac_exeext'
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22195 ac_status=$?
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; }; then
22198 ac_cv_func_remove=yes
22199else
22200 echo "$as_me: failed program was:" >&5
22201sed 's/^/| /' conftest.$ac_ext >&5
22202
22203ac_cv_func_remove=no
22204fi
22205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22206fi
22207echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22208echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22209
90dd450c 22210 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22211 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22212echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22213if test "${ac_cv_lib_posix_remove+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22215else
e6cc62c6 22216 ac_check_lib_save_LIBS=$LIBS
90dd450c 22217LIBS="-lposix $LIBS"
e6cc62c6
VS
22218cat >conftest.$ac_ext <<_ACEOF
22219#line $LINENO "configure"
22220/* confdefs.h. */
22221_ACEOF
22222cat confdefs.h >>conftest.$ac_ext
22223cat >>conftest.$ac_ext <<_ACEOF
22224/* end confdefs.h. */
22225
90dd450c 22226/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22227#ifdef __cplusplus
22228extern "C"
22229#endif
90dd450c 22230/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22231 builtin and then its argument prototype would still apply. */
22232char remove ();
22233int
22234main ()
22235{
22236remove ();
22237 ;
22238 return 0;
22239}
22240_ACEOF
22241rm -f conftest.$ac_objext conftest$ac_exeext
22242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22243 (eval $ac_link) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } &&
22247 { ac_try='test -s conftest$ac_exeext'
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; }; then
22253 ac_cv_lib_posix_remove=yes
22254else
22255 echo "$as_me: failed program was:" >&5
22256sed 's/^/| /' conftest.$ac_ext >&5
22257
22258ac_cv_lib_posix_remove=no
22259fi
22260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22261LIBS=$ac_check_lib_save_LIBS
22262fi
22263echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22264echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22265if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22266 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22267fi
f6bcfd97 22268
6fa882bd
RR
22269 fi
22270
90dd450c 22271 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22272 echo "$as_me:$LINENO: checking for shmat" >&5
22273echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22274if test "${ac_cv_func_shmat+set}" = set; then
22275 echo $ECHO_N "(cached) $ECHO_C" >&6
22276else
22277 cat >conftest.$ac_ext <<_ACEOF
22278#line $LINENO "configure"
22279/* confdefs.h. */
22280_ACEOF
22281cat confdefs.h >>conftest.$ac_ext
22282cat >>conftest.$ac_ext <<_ACEOF
22283/* end confdefs.h. */
90dd450c 22284/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22285 which can conflict with char shmat (); below.
22286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22287 <limits.h> exists even on freestanding compilers. */
22288#ifdef __STDC__
22289# include <limits.h>
22290#else
22291# include <assert.h>
22292#endif
90dd450c 22293/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22294#ifdef __cplusplus
22295extern "C"
22296{
22297#endif
90dd450c 22298/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22299 builtin and then its argument prototype would still apply. */
22300char shmat ();
90dd450c
VZ
22301/* The GNU C library defines this for functions which it implements
22302 to always fail with ENOSYS. Some functions are actually named
22303 something starting with __ and the normal name is an alias. */
22304#if defined (__stub_shmat) || defined (__stub___shmat)
22305choke me
22306#else
e6cc62c6
VS
22307char (*f) () = shmat;
22308#endif
22309#ifdef __cplusplus
22310}
90dd450c 22311#endif
10f2d63a 22312
e6cc62c6
VS
22313int
22314main ()
22315{
22316return f != shmat;
22317 ;
22318 return 0;
22319}
22320_ACEOF
22321rm -f conftest.$ac_objext conftest$ac_exeext
22322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22323 (eval $ac_link) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } &&
22327 { ac_try='test -s conftest$ac_exeext'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; }; then
22333 ac_cv_func_shmat=yes
22334else
22335 echo "$as_me: failed program was:" >&5
22336sed 's/^/| /' conftest.$ac_ext >&5
22337
22338ac_cv_func_shmat=no
22339fi
22340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22341fi
22342echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22343echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22344
90dd450c 22345 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22346 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22347echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22348if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22350else
e6cc62c6 22351 ac_check_lib_save_LIBS=$LIBS
90dd450c 22352LIBS="-lipc $LIBS"
e6cc62c6
VS
22353cat >conftest.$ac_ext <<_ACEOF
22354#line $LINENO "configure"
22355/* confdefs.h. */
22356_ACEOF
22357cat confdefs.h >>conftest.$ac_ext
22358cat >>conftest.$ac_ext <<_ACEOF
22359/* end confdefs.h. */
22360
8284b0c5 22361/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22362#ifdef __cplusplus
22363extern "C"
22364#endif
90dd450c 22365/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22366 builtin and then its argument prototype would still apply. */
22367char shmat ();
22368int
22369main ()
22370{
22371shmat ();
22372 ;
22373 return 0;
22374}
22375_ACEOF
22376rm -f conftest.$ac_objext conftest$ac_exeext
22377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22378 (eval $ac_link) 2>&5
22379 ac_status=$?
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); } &&
22382 { ac_try='test -s conftest$ac_exeext'
22383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384 (eval $ac_try) 2>&5
22385 ac_status=$?
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; }; then
22388 ac_cv_lib_ipc_shmat=yes
22389else
22390 echo "$as_me: failed program was:" >&5
22391sed 's/^/| /' conftest.$ac_ext >&5
22392
22393ac_cv_lib_ipc_shmat=no
22394fi
22395rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22396LIBS=$ac_check_lib_save_LIBS
22397fi
22398echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22399echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22400if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22402fi
22403
d558c907 22404 fi
90dd450c 22405 fi
3a922bb4 22406
90dd450c 22407 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22408 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22409 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22410 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22411 # check for ICE first), but we must link in the order -lSM -lICE or
22412 # we get undefined symbols. So assume we have SM if we have ICE.
22413 # These have to be linked with before -lX11, unlike the other
22414 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22415 # John Interrante, Karl Berry
22416 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22417echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22418if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22420else
22421 ac_check_lib_save_LIBS=$LIBS
f09359cf 22422LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22423cat >conftest.$ac_ext <<_ACEOF
22424#line $LINENO "configure"
22425/* confdefs.h. */
22426_ACEOF
22427cat confdefs.h >>conftest.$ac_ext
22428cat >>conftest.$ac_ext <<_ACEOF
22429/* end confdefs.h. */
22430
90dd450c 22431/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22432#ifdef __cplusplus
22433extern "C"
22434#endif
90dd450c 22435/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22436 builtin and then its argument prototype would still apply. */
22437char IceConnectionNumber ();
22438int
22439main ()
22440{
22441IceConnectionNumber ();
22442 ;
22443 return 0;
22444}
22445_ACEOF
22446rm -f conftest.$ac_objext conftest$ac_exeext
22447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22448 (eval $ac_link) 2>&5
22449 ac_status=$?
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); } &&
22452 { ac_try='test -s conftest$ac_exeext'
22453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454 (eval $ac_try) 2>&5
22455 ac_status=$?
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); }; }; then
22458 ac_cv_lib_ICE_IceConnectionNumber=yes
22459else
22460 echo "$as_me: failed program was:" >&5
22461sed 's/^/| /' conftest.$ac_ext >&5
22462
22463ac_cv_lib_ICE_IceConnectionNumber=no
22464fi
22465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22466LIBS=$ac_check_lib_save_LIBS
22467fi
22468echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22469echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22470if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22471 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22472fi
10f2d63a 22473
e6cc62c6 22474 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22475
22476fi
22477
8284b0c5 22478
90dd450c 22479 if test "$no_x" = "yes"; then
e6cc62c6
VS
22480 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22481echo "$as_me: error: X11 not found" >&2;}
22482 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22483 fi
22484
22485 GUI_TK_LIBRARY="$X_LIBS"
22486 TOOLKIT_INCLUDE="$X_CFLAGS"
22487 AFMINSTALL=afminstall
22488 COMPILED_X_PROGRAM=0
22489
21d1c967 22490 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22491 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22492echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22493 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22494 echo "$as_me:$LINENO: result: not found" >&5
22495echo "${ECHO_T}not found" >&6
22496 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22497echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22498 { (exit 1); exit 1; }; }
90dd450c 22499 else
e6cc62c6
VS
22500 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22501echo "${ECHO_T}$MICROWIN" >&6
22502 cat >>confdefs.h <<\_ACEOF
21d1c967 22503#define wxUSE_NANOX 1
e6cc62c6 22504_ACEOF
21d1c967 22505
90dd450c
VZ
22506 fi
22507 fi
22508
22509 xpm_link=
e6cc62c6
VS
22510 echo "$as_me:$LINENO: checking for Xpm library" >&5
22511echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22512
90dd450c 22513ac_find_libraries=
2b5f62a0 22514for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22515 do
22516 for ac_extension in a so sl dylib; do
22517 if test -f "$ac_dir/libXpm.$ac_extension"; then
22518 ac_find_libraries=$ac_dir
22519 break 2
22520 fi
22521 done
22522 done
22523
22524 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22525
90dd450c
VZ
22526 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22527 result=$?
22528 if test $result = 0; then
22529 ac_path_to_link=""
22530 else
22531 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22532 fi
90dd450c 22533
21d1c967
GD
22534 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22535 xpm_link=" -lXpm"
e6cc62c6 22536 cat >>confdefs.h <<\_ACEOF
21d1c967 22537#define wxHAVE_LIB_XPM 1
e6cc62c6 22538_ACEOF
90dd450c 22539
e6cc62c6
VS
22540 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22541echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22542 else
e6cc62c6
VS
22543 cat >conftest.$ac_ext <<_ACEOF
22544#line $LINENO "configure"
22545/* confdefs.h. */
22546_ACEOF
22547cat confdefs.h >>conftest.$ac_ext
22548cat >>conftest.$ac_ext <<_ACEOF
22549/* end confdefs.h. */
90dd450c 22550
21d1c967 22551 #include <X11/xpm.h>
e6cc62c6
VS
22552
22553int
22554main ()
22555{
6f72b082 22556
21d1c967
GD
22557 int version;
22558 version = XpmLibraryVersion();
e6cc62c6
VS
22559
22560 ;
22561 return 0;
22562}
22563_ACEOF
22564rm -f conftest.$ac_objext
22565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22566 (eval $ac_compile) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } &&
22570 { ac_try='test -s conftest.$ac_objext'
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576
21d1c967 22577 xpm_link=" -lXpm"
e6cc62c6 22578 cat >>confdefs.h <<\_ACEOF
21d1c967 22579#define wxHAVE_LIB_XPM 1
e6cc62c6 22580_ACEOF
90dd450c 22581
e6cc62c6
VS
22582 echo "$as_me:$LINENO: result: found in default search path" >&5
22583echo "${ECHO_T}found in default search path" >&6
21d1c967 22584 COMPILED_X_PROGRAM=0
e6cc62c6 22585
21d1c967 22586else
e6cc62c6
VS
22587 echo "$as_me: failed program was:" >&5
22588sed 's/^/| /' conftest.$ac_ext >&5
22589
22590
22591 echo "$as_me:$LINENO: result: no" >&5
22592echo "${ECHO_T}no" >&6
22593 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22594echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22595
22596
6f72b082 22597fi
e6cc62c6 22598rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22599 fi
90dd450c 22600
e6cc62c6
VS
22601 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22602echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22603if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22605else
e6cc62c6 22606 ac_check_lib_save_LIBS=$LIBS
f7f78039 22607LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22608cat >conftest.$ac_ext <<_ACEOF
22609#line $LINENO "configure"
22610/* confdefs.h. */
22611_ACEOF
22612cat confdefs.h >>conftest.$ac_ext
22613cat >>conftest.$ac_ext <<_ACEOF
22614/* end confdefs.h. */
22615
f7f78039 22616/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22617#ifdef __cplusplus
22618extern "C"
22619#endif
f7f78039 22620/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22621 builtin and then its argument prototype would still apply. */
22622char XShapeQueryExtension ();
22623int
22624main ()
22625{
22626XShapeQueryExtension ();
22627 ;
22628 return 0;
22629}
22630_ACEOF
22631rm -f conftest.$ac_objext conftest$ac_exeext
22632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22633 (eval $ac_link) 2>&5
22634 ac_status=$?
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } &&
22637 { ac_try='test -s conftest$ac_exeext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 ac_cv_lib_Xext_XShapeQueryExtension=yes
22644else
22645 echo "$as_me: failed program was:" >&5
22646sed 's/^/| /' conftest.$ac_ext >&5
22647
22648ac_cv_lib_Xext_XShapeQueryExtension=no
22649fi
22650rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22651LIBS=$ac_check_lib_save_LIBS
22652fi
22653echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22654echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22655if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22656
f7f78039
MB
22657 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22658 wxHAVE_XEXT_LIB=1
e6cc62c6 22659
f7f78039
MB
22660fi
22661
22662
2b5f62a0 22663 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22664
2b5f62a0 22665 succeeded=no
90dd450c 22666
2b5f62a0
VZ
22667 if test -z "$PKG_CONFIG"; then
22668 # Extract the first word of "pkg-config", so it can be a program name with args.
22669set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22670echo "$as_me:$LINENO: checking for $ac_word" >&5
22671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22672if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22673 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22674else
e6cc62c6
VS
22675 case $PKG_CONFIG in
22676 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22677 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22678 ;;
2b5f62a0 22679 *)
e6cc62c6
VS
22680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22681for as_dir in $PATH
22682do
22683 IFS=$as_save_IFS
22684 test -z "$as_dir" && as_dir=.
22685 for ac_exec_ext in '' $ac_executable_extensions; do
22686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22687 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22689 break 2
22690 fi
22691done
22692done
22693
2b5f62a0
VZ
22694 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22695 ;;
22696esac
22697fi
e6cc62c6
VS
22698PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22699
2b5f62a0 22700if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22701 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22702echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22703else
e6cc62c6
VS
22704 echo "$as_me:$LINENO: result: no" >&5
22705echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22706fi
22707
22708 fi
22709
22710 if test "$PKG_CONFIG" = "no" ; then
22711 echo "*** The pkg-config script could not be found. Make sure it is"
22712 echo "*** in your path, or set the PKG_CONFIG environment variable"
22713 echo "*** to the full path to pkg-config."
22714 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22715 else
22716 PKG_CONFIG_MIN_VERSION=0.9.0
22717 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22718 echo "$as_me:$LINENO: checking for pangox" >&5
22719echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22720
22721 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22722 echo "$as_me:$LINENO: result: yes" >&5
22723echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22724 succeeded=yes
22725
e6cc62c6
VS
22726 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22727echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22728 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22729 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22730echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22731
e6cc62c6
VS
22732 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22733echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22734 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22735 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22736echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22737 else
22738 PANGOX_CFLAGS=""
22739 PANGOX_LIBS=""
e6cc62c6 22740 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22741 ## do set a variable so people can do so.
22742 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22743
2b5f62a0
VZ
22744 fi
22745
e6cc62c6
VS
22746
22747
2b5f62a0
VZ
22748 else
22749 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22750 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22751 fi
22752 fi
22753
22754 if test $succeeded = yes; then
e6cc62c6 22755
2b5f62a0 22756 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22757 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22758
2b5f62a0 22759 else
e6cc62c6
VS
22760
22761 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22762echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22763 { (exit 1); exit 1; }; }
22764
22765
2b5f62a0
VZ
22766 fi
22767
e6cc62c6 22768
2b5f62a0
VZ
22769 succeeded=no
22770
22771 if test -z "$PKG_CONFIG"; then
22772 # Extract the first word of "pkg-config", so it can be a program name with args.
22773set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22774echo "$as_me:$LINENO: checking for $ac_word" >&5
22775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22776if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22777 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22778else
e6cc62c6
VS
22779 case $PKG_CONFIG in
22780 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22781 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22782 ;;
2b5f62a0 22783 *)
e6cc62c6
VS
22784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22785for as_dir in $PATH
22786do
22787 IFS=$as_save_IFS
22788 test -z "$as_dir" && as_dir=.
22789 for ac_exec_ext in '' $ac_executable_extensions; do
22790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22791 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22793 break 2
22794 fi
22795done
22796done
22797
2b5f62a0
VZ
22798 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22799 ;;
22800esac
22801fi
e6cc62c6
VS
22802PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22803
2b5f62a0 22804if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22805 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22806echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22807else
e6cc62c6
VS
22808 echo "$as_me:$LINENO: result: no" >&5
22809echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22810fi
22811
22812 fi
22813
22814 if test "$PKG_CONFIG" = "no" ; then
22815 echo "*** The pkg-config script could not be found. Make sure it is"
22816 echo "*** in your path, or set the PKG_CONFIG environment variable"
22817 echo "*** to the full path to pkg-config."
22818 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22819 else
22820 PKG_CONFIG_MIN_VERSION=0.9.0
22821 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22822 echo "$as_me:$LINENO: checking for pangoft2" >&5
22823echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22824
22825 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22826 echo "$as_me:$LINENO: result: yes" >&5
22827echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22828 succeeded=yes
22829
e6cc62c6
VS
22830 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22831echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22832 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22833 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22834echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22835
e6cc62c6
VS
22836 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22837echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22838 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22839 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22840echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22841 else
22842 PANGOFT2_CFLAGS=""
22843 PANGOFT2_LIBS=""
e6cc62c6 22844 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22845 ## do set a variable so people can do so.
22846 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22847
2b5f62a0
VZ
22848 fi
22849
e6cc62c6
VS
22850
22851
2b5f62a0
VZ
22852 else
22853 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22854 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22855 fi
22856 fi
22857
22858 if test $succeeded = yes; then
e6cc62c6 22859
2b5f62a0 22860 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22861 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22862
2b5f62a0 22863 else
e6cc62c6
VS
22864
22865 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22866echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22867 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22868
22869
2b5f62a0
VZ
22870 fi
22871
e6cc62c6 22872
2b5f62a0
VZ
22873 succeeded=no
22874
22875 if test -z "$PKG_CONFIG"; then
22876 # Extract the first word of "pkg-config", so it can be a program name with args.
22877set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22878echo "$as_me:$LINENO: checking for $ac_word" >&5
22879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22880if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22882else
e6cc62c6
VS
22883 case $PKG_CONFIG in
22884 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22885 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22886 ;;
2b5f62a0 22887 *)
e6cc62c6
VS
22888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22889for as_dir in $PATH
22890do
22891 IFS=$as_save_IFS
22892 test -z "$as_dir" && as_dir=.
22893 for ac_exec_ext in '' $ac_executable_extensions; do
22894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22895 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22897 break 2
22898 fi
22899done
22900done
22901
2b5f62a0
VZ
22902 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22903 ;;
22904esac
22905fi
e6cc62c6
VS
22906PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22907
2b5f62a0 22908if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22909 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22910echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22911else
e6cc62c6
VS
22912 echo "$as_me:$LINENO: result: no" >&5
22913echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22914fi
22915
22916 fi
22917
22918 if test "$PKG_CONFIG" = "no" ; then
22919 echo "*** The pkg-config script could not be found. Make sure it is"
22920 echo "*** in your path, or set the PKG_CONFIG environment variable"
22921 echo "*** to the full path to pkg-config."
22922 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22923 else
22924 PKG_CONFIG_MIN_VERSION=0.9.0
22925 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22926 echo "$as_me:$LINENO: checking for pangoxft" >&5
22927echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22928
22929 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22930 echo "$as_me:$LINENO: result: yes" >&5
22931echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22932 succeeded=yes
22933
e6cc62c6
VS
22934 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22935echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22936 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22937 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22938echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22939
e6cc62c6
VS
22940 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22941echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22942 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22943 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22944echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22945 else
22946 PANGOXFT_CFLAGS=""
22947 PANGOXFT_LIBS=""
e6cc62c6 22948 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22949 ## do set a variable so people can do so.
22950 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22951
2b5f62a0
VZ
22952 fi
22953
e6cc62c6
VS
22954
22955
2b5f62a0
VZ
22956 else
22957 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22958 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22959 fi
22960 fi
22961
22962 if test $succeeded = yes; then
e6cc62c6 22963
2b5f62a0 22964 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22965 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22966
2b5f62a0 22967 else
e6cc62c6
VS
22968
22969 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22970echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22971
22972
2b5f62a0
VZ
22973 fi
22974
22975 fi
22976
22977 wxUSE_UNIVERSAL="yes"
22978
22979 if test "$wxUSE_NANOX" = "yes"; then
22980 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22981 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
22982 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22983 else
22984 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22985 fi
22986
22987 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22988 TOOLKIT=X11
22989 GUIDIST=X11_DIST
22990 fi
22991
21d1c967
GD
22992 if test "$wxUSE_MOTIF" = 1; then
22993 if test "$no_x" = yes; then
22994 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22995
22996cat >>confdefs.h <<\_ACEOF
21d1c967 22997#define X_DISPLAY_MISSING 1
e6cc62c6 22998_ACEOF
21d1c967
GD
22999
23000 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23001else
23002 if test -n "$x_includes"; then
23003 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
23004 fi
23005
21d1c967
GD
23006 # It would also be nice to do this for all -L options, not just this one.
23007 if test -n "$x_libraries"; then
23008 X_LIBS="$X_LIBS -L$x_libraries"
23009 # For Solaris; some versions of Sun CC require a space after -R and
23010 # others require no space. Words are not sufficient . . . .
e6cc62c6 23011 case `(uname -sr) 2>/dev/null` in
21d1c967 23012 "SunOS 5"*)
e6cc62c6
VS
23013 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23014echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23015 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23016 cat >conftest.$ac_ext <<_ACEOF
23017#line $LINENO "configure"
23018/* confdefs.h. */
23019_ACEOF
23020cat confdefs.h >>conftest.$ac_ext
23021cat >>conftest.$ac_ext <<_ACEOF
23022/* end confdefs.h. */
23023
23024int
23025main ()
23026{
21d1c967 23027
e6cc62c6
VS
23028 ;
23029 return 0;
23030}
23031_ACEOF
23032rm -f conftest.$ac_objext conftest$ac_exeext
23033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23034 (eval $ac_link) 2>&5
23035 ac_status=$?
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } &&
23038 { ac_try='test -s conftest$ac_exeext'
23039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
23041 ac_status=$?
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; }; then
21d1c967 23044 ac_R_nospace=yes
698dcdb6 23045else
e6cc62c6
VS
23046 echo "$as_me: failed program was:" >&5
23047sed 's/^/| /' conftest.$ac_ext >&5
23048
23049ac_R_nospace=no
10f2d63a 23050fi
e6cc62c6 23051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23052 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23053 echo "$as_me:$LINENO: result: no" >&5
23054echo "${ECHO_T}no" >&6
21d1c967
GD
23055 X_LIBS="$X_LIBS -R$x_libraries"
23056 else
23057 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
23058 cat >conftest.$ac_ext <<_ACEOF
23059#line $LINENO "configure"
23060/* confdefs.h. */
23061_ACEOF
23062cat confdefs.h >>conftest.$ac_ext
23063cat >>conftest.$ac_ext <<_ACEOF
23064/* end confdefs.h. */
23065
23066int
23067main ()
23068{
f0c87536 23069
e6cc62c6
VS
23070 ;
23071 return 0;
23072}
23073_ACEOF
23074rm -f conftest.$ac_objext conftest$ac_exeext
23075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23076 (eval $ac_link) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } &&
23080 { ac_try='test -s conftest$ac_exeext'
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23083 ac_status=$?
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
21d1c967
GD
23086 ac_R_space=yes
23087else
e6cc62c6
VS
23088 echo "$as_me: failed program was:" >&5
23089sed 's/^/| /' conftest.$ac_ext >&5
23090
23091ac_R_space=no
21d1c967 23092fi
e6cc62c6 23093rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23094 if test $ac_R_space = yes; then
e6cc62c6
VS
23095 echo "$as_me:$LINENO: result: yes" >&5
23096echo "${ECHO_T}yes" >&6
21d1c967
GD
23097 X_LIBS="$X_LIBS -R $x_libraries"
23098 else
e6cc62c6
VS
23099 echo "$as_me:$LINENO: result: neither works" >&5
23100echo "${ECHO_T}neither works" >&6
21d1c967
GD
23101 fi
23102 fi
e6cc62c6 23103 LIBS=$ac_xsave_LIBS
21d1c967
GD
23104 esac
23105 fi
90dd450c 23106
21d1c967
GD
23107 # Check for system-dependent libraries X programs must link with.
23108 # Do this before checking for the system-independent R6 libraries
23109 # (-lICE), since we may need -lsocket or whatever for X linking.
23110
23111 if test "$ISC" = yes; then
23112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23113 else
e6cc62c6
VS
23114 # Martyn Johnson says this is needed for Ultrix, if the X
23115 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23116 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23117 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23118 cat >conftest.$ac_ext <<_ACEOF
23119#line $LINENO "configure"
23120/* confdefs.h. */
23121_ACEOF
23122cat confdefs.h >>conftest.$ac_ext
23123cat >>conftest.$ac_ext <<_ACEOF
23124/* end confdefs.h. */
23125
247f5006 23126/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23127#ifdef __cplusplus
23128extern "C"
23129#endif
247f5006 23130/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23131 builtin and then its argument prototype would still apply. */
23132char XOpenDisplay ();
23133int
23134main ()
23135{
23136XOpenDisplay ();
23137 ;
23138 return 0;
23139}
23140_ACEOF
23141rm -f conftest.$ac_objext conftest$ac_exeext
23142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23143 (eval $ac_link) 2>&5
23144 ac_status=$?
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } &&
23147 { ac_try='test -s conftest$ac_exeext'
23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149 (eval $ac_try) 2>&5
23150 ac_status=$?
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); }; }; then
23153 :
23154else
23155 echo "$as_me: failed program was:" >&5
23156sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23157
e6cc62c6
VS
23158echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23159echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23160if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23161 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23162else
e6cc62c6
VS
23163 ac_check_lib_save_LIBS=$LIBS
23164LIBS="-ldnet $LIBS"
23165cat >conftest.$ac_ext <<_ACEOF
23166#line $LINENO "configure"
23167/* confdefs.h. */
23168_ACEOF
23169cat confdefs.h >>conftest.$ac_ext
23170cat >>conftest.$ac_ext <<_ACEOF
23171/* end confdefs.h. */
a0b9e27f 23172
e6cc62c6
VS
23173/* Override any gcc2 internal prototype to avoid an error. */
23174#ifdef __cplusplus
23175extern "C"
23176#endif
23177/* We use char because int might match the return type of a gcc2
23178 builtin and then its argument prototype would still apply. */
23179char dnet_ntoa ();
23180int
23181main ()
23182{
23183dnet_ntoa ();
23184 ;
23185 return 0;
23186}
23187_ACEOF
23188rm -f conftest.$ac_objext conftest$ac_exeext
23189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23190 (eval $ac_link) 2>&5
23191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); } &&
23194 { ac_try='test -s conftest$ac_exeext'
23195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196 (eval $ac_try) 2>&5
23197 ac_status=$?
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); }; }; then
23200 ac_cv_lib_dnet_dnet_ntoa=yes
23201else
23202 echo "$as_me: failed program was:" >&5
23203sed 's/^/| /' conftest.$ac_ext >&5
23204
23205ac_cv_lib_dnet_dnet_ntoa=no
23206fi
23207rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23208LIBS=$ac_check_lib_save_LIBS
23209fi
23210echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23211echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23212if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23213 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23214fi
0fb0dd83 23215
21d1c967 23216 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23217 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23218echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23219if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23220 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23221else
e6cc62c6 23222 ac_check_lib_save_LIBS=$LIBS
21d1c967 23223LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
23224cat >conftest.$ac_ext <<_ACEOF
23225#line $LINENO "configure"
23226/* confdefs.h. */
23227_ACEOF
23228cat confdefs.h >>conftest.$ac_ext
23229cat >>conftest.$ac_ext <<_ACEOF
23230/* end confdefs.h. */
23231
21d1c967 23232/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23233#ifdef __cplusplus
23234extern "C"
23235#endif
21d1c967 23236/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23237 builtin and then its argument prototype would still apply. */
23238char dnet_ntoa ();
23239int
23240main ()
23241{
23242dnet_ntoa ();
23243 ;
23244 return 0;
23245}
23246_ACEOF
23247rm -f conftest.$ac_objext conftest$ac_exeext
23248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23249 (eval $ac_link) 2>&5
23250 ac_status=$?
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); } &&
23253 { ac_try='test -s conftest$ac_exeext'
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23256 ac_status=$?
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; }; then
23259 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23260else
23261 echo "$as_me: failed program was:" >&5
23262sed 's/^/| /' conftest.$ac_ext >&5
23263
23264ac_cv_lib_dnet_stub_dnet_ntoa=no
23265fi
23266rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23267LIBS=$ac_check_lib_save_LIBS
23268fi
23269echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23270echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23271if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23272 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23273fi
23274
21d1c967 23275 fi
e6cc62c6
VS
23276fi
23277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23278 LIBS="$ac_xsave_LIBS"
90dd450c 23279
21d1c967
GD
23280 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23281 # to get the SysV transport functions.
e6cc62c6 23282 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23283 # needs -lnsl.
23284 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23285 # on Irix 5.2, according to T.E. Dickey.
23286 # The functions gethostbyname, getservbyname, and inet_addr are
23287 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23288 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23289echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23290if test "${ac_cv_func_gethostbyname+set}" = set; then
23291 echo $ECHO_N "(cached) $ECHO_C" >&6
23292else
23293 cat >conftest.$ac_ext <<_ACEOF
23294#line $LINENO "configure"
23295/* confdefs.h. */
23296_ACEOF
23297cat confdefs.h >>conftest.$ac_ext
23298cat >>conftest.$ac_ext <<_ACEOF
23299/* end confdefs.h. */
21d1c967 23300/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23301 which can conflict with char gethostbyname (); below.
23302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23303 <limits.h> exists even on freestanding compilers. */
23304#ifdef __STDC__
23305# include <limits.h>
23306#else
23307# include <assert.h>
23308#endif
21d1c967 23309/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23310#ifdef __cplusplus
23311extern "C"
23312{
23313#endif
21d1c967 23314/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23315 builtin and then its argument prototype would still apply. */
23316char gethostbyname ();
21d1c967
GD
23317/* The GNU C library defines this for functions which it implements
23318 to always fail with ENOSYS. Some functions are actually named
23319 something starting with __ and the normal name is an alias. */
23320#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23321choke me
23322#else
e6cc62c6
VS
23323char (*f) () = gethostbyname;
23324#endif
23325#ifdef __cplusplus
23326}
21d1c967 23327#endif
90dd450c 23328
e6cc62c6
VS
23329int
23330main ()
23331{
23332return f != gethostbyname;
23333 ;
23334 return 0;
23335}
23336_ACEOF
23337rm -f conftest.$ac_objext conftest$ac_exeext
23338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23339 (eval $ac_link) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } &&
23343 { ac_try='test -s conftest$ac_exeext'
23344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23346 ac_status=$?
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; }; then
23349 ac_cv_func_gethostbyname=yes
23350else
23351 echo "$as_me: failed program was:" >&5
23352sed 's/^/| /' conftest.$ac_ext >&5
23353
23354ac_cv_func_gethostbyname=no
23355fi
23356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23357fi
23358echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23359echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23360
21d1c967 23361 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23362 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23363echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23364if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23365 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23366else
e6cc62c6 23367 ac_check_lib_save_LIBS=$LIBS
21d1c967 23368LIBS="-lnsl $LIBS"
e6cc62c6
VS
23369cat >conftest.$ac_ext <<_ACEOF
23370#line $LINENO "configure"
23371/* confdefs.h. */
23372_ACEOF
23373cat confdefs.h >>conftest.$ac_ext
23374cat >>conftest.$ac_ext <<_ACEOF
23375/* end confdefs.h. */
23376
21d1c967 23377/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23378#ifdef __cplusplus
23379extern "C"
23380#endif
21d1c967 23381/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23382 builtin and then its argument prototype would still apply. */
23383char gethostbyname ();
23384int
23385main ()
23386{
23387gethostbyname ();
23388 ;
23389 return 0;
23390}
23391_ACEOF
23392rm -f conftest.$ac_objext conftest$ac_exeext
23393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23394 (eval $ac_link) 2>&5
23395 ac_status=$?
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } &&
23398 { ac_try='test -s conftest$ac_exeext'
23399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400 (eval $ac_try) 2>&5
23401 ac_status=$?
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); }; }; then
23404 ac_cv_lib_nsl_gethostbyname=yes
23405else
23406 echo "$as_me: failed program was:" >&5
23407sed 's/^/| /' conftest.$ac_ext >&5
23408
23409ac_cv_lib_nsl_gethostbyname=no
23410fi
23411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23412LIBS=$ac_check_lib_save_LIBS
23413fi
23414echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23415echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23416if test $ac_cv_lib_nsl_gethostbyname = yes; then
23417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23418fi
247f5006 23419
e6cc62c6
VS
23420 if test $ac_cv_lib_nsl_gethostbyname = no; then
23421 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23422echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23423if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23424 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23425else
e6cc62c6
VS
23426 ac_check_lib_save_LIBS=$LIBS
23427LIBS="-lbsd $LIBS"
23428cat >conftest.$ac_ext <<_ACEOF
23429#line $LINENO "configure"
23430/* confdefs.h. */
23431_ACEOF
23432cat confdefs.h >>conftest.$ac_ext
23433cat >>conftest.$ac_ext <<_ACEOF
23434/* end confdefs.h. */
23435
23436/* Override any gcc2 internal prototype to avoid an error. */
23437#ifdef __cplusplus
23438extern "C"
23439#endif
23440/* We use char because int might match the return type of a gcc2
23441 builtin and then its argument prototype would still apply. */
23442char gethostbyname ();
23443int
23444main ()
23445{
23446gethostbyname ();
23447 ;
23448 return 0;
23449}
23450_ACEOF
23451rm -f conftest.$ac_objext conftest$ac_exeext
23452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23453 (eval $ac_link) 2>&5
23454 ac_status=$?
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } &&
23457 { ac_try='test -s conftest$ac_exeext'
23458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459 (eval $ac_try) 2>&5
23460 ac_status=$?
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); }; }; then
23463 ac_cv_lib_bsd_gethostbyname=yes
23464else
23465 echo "$as_me: failed program was:" >&5
23466sed 's/^/| /' conftest.$ac_ext >&5
23467
23468ac_cv_lib_bsd_gethostbyname=no
23469fi
23470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23471LIBS=$ac_check_lib_save_LIBS
23472fi
23473echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23474echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23475if test $ac_cv_lib_bsd_gethostbyname = yes; then
23476 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23477fi
90dd450c 23478
e6cc62c6 23479 fi
90dd450c
VZ
23480 fi
23481
21d1c967
GD
23482 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23483 # socket/setsockopt and other routines are undefined under SCO ODT
23484 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23485 # on later versions), says Simon Leinen: it contains gethostby*
23486 # variants that don't use the name server (or something). -lsocket
23487 # must be given before -lnsl if both are needed. We assume that
23488 # if connect needs -lnsl, so does gethostbyname.
23489 echo "$as_me:$LINENO: checking for connect" >&5
23490echo $ECHO_N "checking for connect... $ECHO_C" >&6
23491if test "${ac_cv_func_connect+set}" = set; then
23492 echo $ECHO_N "(cached) $ECHO_C" >&6
23493else
23494 cat >conftest.$ac_ext <<_ACEOF
23495#line $LINENO "configure"
23496/* confdefs.h. */
23497_ACEOF
23498cat confdefs.h >>conftest.$ac_ext
23499cat >>conftest.$ac_ext <<_ACEOF
23500/* end confdefs.h. */
21d1c967 23501/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23502 which can conflict with char connect (); below.
23503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23504 <limits.h> exists even on freestanding compilers. */
23505#ifdef __STDC__
23506# include <limits.h>
23507#else
23508# include <assert.h>
23509#endif
21d1c967 23510/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23511#ifdef __cplusplus
23512extern "C"
23513{
23514#endif
21d1c967 23515/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23516 builtin and then its argument prototype would still apply. */
23517char connect ();
21d1c967
GD
23518/* The GNU C library defines this for functions which it implements
23519 to always fail with ENOSYS. Some functions are actually named
23520 something starting with __ and the normal name is an alias. */
23521#if defined (__stub_connect) || defined (__stub___connect)
23522choke me
23523#else
e6cc62c6
VS
23524char (*f) () = connect;
23525#endif
23526#ifdef __cplusplus
23527}
21d1c967 23528#endif
90dd450c 23529
e6cc62c6
VS
23530int
23531main ()
23532{
23533return f != connect;
23534 ;
23535 return 0;
23536}
23537_ACEOF
23538rm -f conftest.$ac_objext conftest$ac_exeext
23539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23540 (eval $ac_link) 2>&5
23541 ac_status=$?
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } &&
23544 { ac_try='test -s conftest$ac_exeext'
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; }; then
23550 ac_cv_func_connect=yes
23551else
23552 echo "$as_me: failed program was:" >&5
23553sed 's/^/| /' conftest.$ac_ext >&5
23554
23555ac_cv_func_connect=no
23556fi
23557rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23558fi
23559echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23560echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23561
21d1c967 23562 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23563 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23564echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23565if test "${ac_cv_lib_socket_connect+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23567else
e6cc62c6 23568 ac_check_lib_save_LIBS=$LIBS
21d1c967 23569LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23570cat >conftest.$ac_ext <<_ACEOF
23571#line $LINENO "configure"
23572/* confdefs.h. */
23573_ACEOF
23574cat confdefs.h >>conftest.$ac_ext
23575cat >>conftest.$ac_ext <<_ACEOF
23576/* end confdefs.h. */
23577
21d1c967 23578/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23579#ifdef __cplusplus
23580extern "C"
23581#endif
21d1c967 23582/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23583 builtin and then its argument prototype would still apply. */
23584char connect ();
23585int
23586main ()
23587{
23588connect ();
23589 ;
23590 return 0;
23591}
23592_ACEOF
23593rm -f conftest.$ac_objext conftest$ac_exeext
23594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23595 (eval $ac_link) 2>&5
23596 ac_status=$?
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); } &&
23599 { ac_try='test -s conftest$ac_exeext'
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23602 ac_status=$?
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
23605 ac_cv_lib_socket_connect=yes
23606else
23607 echo "$as_me: failed program was:" >&5
23608sed 's/^/| /' conftest.$ac_ext >&5
23609
23610ac_cv_lib_socket_connect=no
23611fi
23612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23613LIBS=$ac_check_lib_save_LIBS
23614fi
23615echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23616echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23617if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23618 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23619fi
90dd450c 23620
21d1c967 23621 fi
90dd450c 23622
e6cc62c6
VS
23623 # Guillermo Gomez says -lposix is necessary on A/UX.
23624 echo "$as_me:$LINENO: checking for remove" >&5
23625echo $ECHO_N "checking for remove... $ECHO_C" >&6
23626if test "${ac_cv_func_remove+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23628else
23629 cat >conftest.$ac_ext <<_ACEOF
23630#line $LINENO "configure"
23631/* confdefs.h. */
23632_ACEOF
23633cat confdefs.h >>conftest.$ac_ext
23634cat >>conftest.$ac_ext <<_ACEOF
23635/* end confdefs.h. */
21d1c967 23636/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23637 which can conflict with char remove (); below.
23638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23639 <limits.h> exists even on freestanding compilers. */
23640#ifdef __STDC__
23641# include <limits.h>
23642#else
23643# include <assert.h>
23644#endif
21d1c967 23645/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23646#ifdef __cplusplus
23647extern "C"
23648{
23649#endif
21d1c967 23650/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23651 builtin and then its argument prototype would still apply. */
23652char remove ();
21d1c967
GD
23653/* The GNU C library defines this for functions which it implements
23654 to always fail with ENOSYS. Some functions are actually named
23655 something starting with __ and the normal name is an alias. */
23656#if defined (__stub_remove) || defined (__stub___remove)
23657choke me
23658#else
e6cc62c6
VS
23659char (*f) () = remove;
23660#endif
23661#ifdef __cplusplus
23662}
21d1c967 23663#endif
90dd450c 23664
e6cc62c6
VS
23665int
23666main ()
23667{
23668return f != remove;
23669 ;
23670 return 0;
23671}
23672_ACEOF
23673rm -f conftest.$ac_objext conftest$ac_exeext
23674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23675 (eval $ac_link) 2>&5
23676 ac_status=$?
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } &&
23679 { ac_try='test -s conftest$ac_exeext'
23680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681 (eval $ac_try) 2>&5
23682 ac_status=$?
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; }; then
23685 ac_cv_func_remove=yes
23686else
23687 echo "$as_me: failed program was:" >&5
23688sed 's/^/| /' conftest.$ac_ext >&5
23689
23690ac_cv_func_remove=no
23691fi
23692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23693fi
23694echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23695echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23696
21d1c967 23697 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23698 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23699echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23700if test "${ac_cv_lib_posix_remove+set}" = set; then
23701 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23702else
e6cc62c6 23703 ac_check_lib_save_LIBS=$LIBS
21d1c967 23704LIBS="-lposix $LIBS"
e6cc62c6
VS
23705cat >conftest.$ac_ext <<_ACEOF
23706#line $LINENO "configure"
23707/* confdefs.h. */
23708_ACEOF
23709cat confdefs.h >>conftest.$ac_ext
23710cat >>conftest.$ac_ext <<_ACEOF
23711/* end confdefs.h. */
23712
21d1c967 23713/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23714#ifdef __cplusplus
23715extern "C"
23716#endif
21d1c967 23717/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23718 builtin and then its argument prototype would still apply. */
23719char remove ();
23720int
23721main ()
23722{
23723remove ();
23724 ;
23725 return 0;
23726}
23727_ACEOF
23728rm -f conftest.$ac_objext conftest$ac_exeext
23729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23730 (eval $ac_link) 2>&5
23731 ac_status=$?
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); } &&
23734 { ac_try='test -s conftest$ac_exeext'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; }; then
23740 ac_cv_lib_posix_remove=yes
23741else
23742 echo "$as_me: failed program was:" >&5
23743sed 's/^/| /' conftest.$ac_ext >&5
23744
23745ac_cv_lib_posix_remove=no
23746fi
23747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23748LIBS=$ac_check_lib_save_LIBS
23749fi
23750echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23751echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23752if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23754fi
19bc6aad 23755
90dd450c 23756 fi
19bc6aad 23757
21d1c967 23758 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23759 echo "$as_me:$LINENO: checking for shmat" >&5
23760echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23761if test "${ac_cv_func_shmat+set}" = set; then
23762 echo $ECHO_N "(cached) $ECHO_C" >&6
23763else
23764 cat >conftest.$ac_ext <<_ACEOF
23765#line $LINENO "configure"
23766/* confdefs.h. */
23767_ACEOF
23768cat confdefs.h >>conftest.$ac_ext
23769cat >>conftest.$ac_ext <<_ACEOF
23770/* end confdefs.h. */
21d1c967 23771/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23772 which can conflict with char shmat (); below.
23773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23774 <limits.h> exists even on freestanding compilers. */
23775#ifdef __STDC__
23776# include <limits.h>
23777#else
23778# include <assert.h>
23779#endif
21d1c967 23780/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23781#ifdef __cplusplus
23782extern "C"
23783{
23784#endif
21d1c967 23785/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23786 builtin and then its argument prototype would still apply. */
23787char shmat ();
21d1c967
GD
23788/* The GNU C library defines this for functions which it implements
23789 to always fail with ENOSYS. Some functions are actually named
23790 something starting with __ and the normal name is an alias. */
23791#if defined (__stub_shmat) || defined (__stub___shmat)
23792choke me
23793#else
e6cc62c6
VS
23794char (*f) () = shmat;
23795#endif
23796#ifdef __cplusplus
23797}
21d1c967 23798#endif
90dd450c 23799
e6cc62c6
VS
23800int
23801main ()
23802{
23803return f != shmat;
23804 ;
23805 return 0;
23806}
23807_ACEOF
23808rm -f conftest.$ac_objext conftest$ac_exeext
23809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23810 (eval $ac_link) 2>&5
23811 ac_status=$?
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } &&
23814 { ac_try='test -s conftest$ac_exeext'
23815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816 (eval $ac_try) 2>&5
23817 ac_status=$?
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); }; }; then
23820 ac_cv_func_shmat=yes
23821else
23822 echo "$as_me: failed program was:" >&5
23823sed 's/^/| /' conftest.$ac_ext >&5
23824
23825ac_cv_func_shmat=no
23826fi
23827rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23828fi
23829echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23830echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23831
21d1c967 23832 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23833 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23834echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23835if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23836 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23837else
e6cc62c6 23838 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23839LIBS="-lipc $LIBS"
e6cc62c6
VS
23840cat >conftest.$ac_ext <<_ACEOF
23841#line $LINENO "configure"
23842/* confdefs.h. */
23843_ACEOF
23844cat confdefs.h >>conftest.$ac_ext
23845cat >>conftest.$ac_ext <<_ACEOF
23846/* end confdefs.h. */
23847
5c6fa7d2 23848/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23849#ifdef __cplusplus
23850extern "C"
23851#endif
5c6fa7d2 23852/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23853 builtin and then its argument prototype would still apply. */
23854char shmat ();
23855int
23856main ()
23857{
23858shmat ();
23859 ;
23860 return 0;
23861}
23862_ACEOF
23863rm -f conftest.$ac_objext conftest$ac_exeext
23864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23865 (eval $ac_link) 2>&5
23866 ac_status=$?
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); } &&
23869 { ac_try='test -s conftest$ac_exeext'
23870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871 (eval $ac_try) 2>&5
23872 ac_status=$?
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; }; then
23875 ac_cv_lib_ipc_shmat=yes
23876else
23877 echo "$as_me: failed program was:" >&5
23878sed 's/^/| /' conftest.$ac_ext >&5
23879
23880ac_cv_lib_ipc_shmat=no
23881fi
23882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23883LIBS=$ac_check_lib_save_LIBS
23884fi
23885echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23886echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23887if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23888 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23889fi
90dd450c 23890
90dd450c 23891 fi
21d1c967 23892 fi
10f2d63a 23893
21d1c967 23894 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23895 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23896 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23897 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23898 # check for ICE first), but we must link in the order -lSM -lICE or
23899 # we get undefined symbols. So assume we have SM if we have ICE.
23900 # These have to be linked with before -lX11, unlike the other
23901 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23902 # John Interrante, Karl Berry
23903 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23904echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23905if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23906 echo $ECHO_N "(cached) $ECHO_C" >&6
23907else
23908 ac_check_lib_save_LIBS=$LIBS
f09359cf 23909LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23910cat >conftest.$ac_ext <<_ACEOF
23911#line $LINENO "configure"
23912/* confdefs.h. */
23913_ACEOF
23914cat confdefs.h >>conftest.$ac_ext
23915cat >>conftest.$ac_ext <<_ACEOF
23916/* end confdefs.h. */
23917
21d1c967 23918/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23919#ifdef __cplusplus
23920extern "C"
23921#endif
21d1c967 23922/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23923 builtin and then its argument prototype would still apply. */
23924char IceConnectionNumber ();
23925int
23926main ()
23927{
23928IceConnectionNumber ();
23929 ;
23930 return 0;
23931}
23932_ACEOF
23933rm -f conftest.$ac_objext conftest$ac_exeext
23934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23935 (eval $ac_link) 2>&5
23936 ac_status=$?
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); } &&
23939 { ac_try='test -s conftest$ac_exeext'
23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941 (eval $ac_try) 2>&5
23942 ac_status=$?
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; }; then
23945 ac_cv_lib_ICE_IceConnectionNumber=yes
23946else
23947 echo "$as_me: failed program was:" >&5
23948sed 's/^/| /' conftest.$ac_ext >&5
23949
23950ac_cv_lib_ICE_IceConnectionNumber=no
23951fi
23952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23953LIBS=$ac_check_lib_save_LIBS
23954fi
23955echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23956echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23957if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23958 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23959fi
21d1c967 23960
e6cc62c6 23961 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23962
10f2d63a
VZ
23963fi
23964
8284b0c5 23965
21d1c967 23966 if test "$no_x" = "yes"; then
e6cc62c6
VS
23967 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23968echo "$as_me: error: X11 not found" >&2;}
23969 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23970 fi
23971
2b5f62a0
VZ
23972 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23973 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23974 AFMINSTALL=afminstall
23975 COMPILED_X_PROGRAM=0
23976
e6cc62c6
VS
23977 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23978echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23979
21d1c967 23980ac_find_includes=
2b5f62a0 23981for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23982 do
23983 if test -f "$ac_dir/Xm/Xm.h"; then
23984 ac_find_includes=$ac_dir
23985 break
23986 fi
23987 done
23988
23989 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23990 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23991echo "${ECHO_T}found in $ac_find_includes" >&6
23992
2b5f62a0 23993 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23994 ac_path_to_include=""
23995 else
2b5f62a0
VZ
23996 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23997 result=$?
23998 if test $result = 0; then
23999 ac_path_to_include=""
24000 else
24001 ac_path_to_include=" -I$ac_find_includes"
24002 fi
dd0e4a90
VZ
24003 fi
24004
24005 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 24006 else
e6cc62c6
VS
24007 cat >conftest.$ac_ext <<_ACEOF
24008#line $LINENO "configure"
24009/* confdefs.h. */
24010_ACEOF
24011cat confdefs.h >>conftest.$ac_ext
24012cat >>conftest.$ac_ext <<_ACEOF
24013/* end confdefs.h. */
21d1c967
GD
24014
24015 #include <Xm/Xm.h>
e6cc62c6
VS
24016
24017int
24018main ()
24019{
21d1c967
GD
24020
24021 int version;
24022 version = xmUseVersion;
e6cc62c6
VS
24023
24024 ;
24025 return 0;
24026}
24027_ACEOF
24028rm -f conftest.$ac_objext
24029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24030 (eval $ac_compile) 2>&5
24031 ac_status=$?
24032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); } &&
24034 { ac_try='test -s conftest.$ac_objext'
24035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24036 (eval $ac_try) 2>&5
24037 ac_status=$?
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); }; }; then
24040
24041 echo "$as_me:$LINENO: result: found in default search path" >&5
24042echo "${ECHO_T}found in default search path" >&6
21d1c967 24043 COMPILED_X_PROGRAM=1
e6cc62c6 24044
10f2d63a 24045else
e6cc62c6
VS
24046 echo "$as_me: failed program was:" >&5
24047sed 's/^/| /' conftest.$ac_ext >&5
24048
24049
24050 echo "$as_me:$LINENO: result: no" >&5
24051echo "${ECHO_T}no" >&6
24052 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24053echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24054 { (exit 1); exit 1; }; }
24055
24056
10f2d63a 24057fi
e6cc62c6 24058rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 24059 fi
10f2d63a 24060
21d1c967 24061 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
24062 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24063echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24064
21d1c967 24065ac_find_libraries=
2b5f62a0 24066for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24067 do
24068 for ac_extension in a so sl dylib; do
24069 if test -f "$ac_dir/libXm.$ac_extension"; then
24070 ac_find_libraries=$ac_dir
24071 break 2
24072 fi
24073 done
24074 done
24075
24076 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
24077 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24078echo "${ECHO_T}found at $ac_find_libraries" >&6
24079
21d1c967 24080
21d1c967
GD
24081 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24082 result=$?
24083 if test $result = 0; then
24084 ac_path_to_link=""
24085 else
24086 ac_path_to_link=" -L$ac_find_libraries"
24087 fi
24088
21d1c967 24089 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 24090 else
dd0e4a90
VZ
24091 save_CFLAGS=$CFLAGS
24092 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24093
e6cc62c6
VS
24094 cat >conftest.$ac_ext <<_ACEOF
24095#line $LINENO "configure"
24096/* confdefs.h. */
24097_ACEOF
24098cat confdefs.h >>conftest.$ac_ext
24099cat >>conftest.$ac_ext <<_ACEOF
24100/* end confdefs.h. */
21d1c967
GD
24101
24102 #include <Xm/Xm.h>
e6cc62c6
VS
24103
24104int
24105main ()
24106{
21d1c967
GD
24107
24108 int version;
24109 version = xmUseVersion;
e6cc62c6
VS
24110
24111 ;
24112 return 0;
24113}
24114_ACEOF
24115rm -f conftest.$ac_objext
24116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24117 (eval $ac_compile) 2>&5
24118 ac_status=$?
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } &&
24121 { ac_try='test -s conftest.$ac_objext'
24122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123 (eval $ac_try) 2>&5
24124 ac_status=$?
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); }; }; then
24127
24128 echo "$as_me:$LINENO: result: found in default search path" >&5
24129echo "${ECHO_T}found in default search path" >&6
21d1c967 24130 COMPILED_X_PROGRAM=1
e6cc62c6 24131
d836ee96 24132else
e6cc62c6
VS
24133 echo "$as_me: failed program was:" >&5
24134sed 's/^/| /' conftest.$ac_ext >&5
24135
24136
24137 echo "$as_me:$LINENO: result: no" >&5
24138echo "${ECHO_T}no" >&6
24139 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24140echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24141 { (exit 1); exit 1; }; }
24142
24143
d836ee96 24144fi
e6cc62c6 24145rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24146
24147 CFLAGS=$save_CFLAGS
21d1c967
GD
24148 fi
24149 fi
24150
24151 xpm_link=
e6cc62c6
VS
24152 echo "$as_me:$LINENO: checking for Xpm library" >&5
24153echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24154
21d1c967 24155ac_find_libraries=
2b5f62a0 24156for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24157 do
24158 for ac_extension in a so sl dylib; do
24159 if test -f "$ac_dir/libXpm.$ac_extension"; then
24160 ac_find_libraries=$ac_dir
24161 break 2
24162 fi
24163 done
24164 done
24165
24166 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24167
21d1c967
GD
24168 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24169 result=$?
24170 if test $result = 0; then
24171 ac_path_to_link=""
24172 else
24173 ac_path_to_link=" -L$ac_find_libraries"
24174 fi
24175
24176 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 24177
21d1c967 24178 xpm_link=" -lXpm"
e6cc62c6 24179 cat >>confdefs.h <<\_ACEOF
21d1c967 24180#define wxHAVE_LIB_XPM 1
e6cc62c6 24181_ACEOF
90dd450c 24182
e6cc62c6
VS
24183 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24184echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 24185 else
dd0e4a90
VZ
24186 save_CFLAGS=$CFLAGS
24187 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24188
e6cc62c6
VS
24189 cat >conftest.$ac_ext <<_ACEOF
24190#line $LINENO "configure"
24191/* confdefs.h. */
24192_ACEOF
24193cat confdefs.h >>conftest.$ac_ext
24194cat >>conftest.$ac_ext <<_ACEOF
24195/* end confdefs.h. */
21d1c967
GD
24196
24197 #include <X11/xpm.h>
e6cc62c6
VS
24198
24199int
24200main ()
24201{
21d1c967
GD
24202
24203 int version;
24204 version = XpmLibraryVersion();
e6cc62c6
VS
24205
24206 ;
24207 return 0;
24208}
24209_ACEOF
24210rm -f conftest.$ac_objext
24211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24212 (eval $ac_compile) 2>&5
24213 ac_status=$?
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } &&
24216 { ac_try='test -s conftest.$ac_objext'
24217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24218 (eval $ac_try) 2>&5
24219 ac_status=$?
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); }; }; then
24222
21d1c967 24223 xpm_link=" -lXpm"
e6cc62c6 24224 cat >>confdefs.h <<\_ACEOF
21d1c967 24225#define wxHAVE_LIB_XPM 1
e6cc62c6 24226_ACEOF
21d1c967 24227
e6cc62c6
VS
24228 echo "$as_me:$LINENO: result: found in default search path" >&5
24229echo "${ECHO_T}found in default search path" >&6
21d1c967 24230 COMPILED_X_PROGRAM=0
e6cc62c6 24231
d836ee96 24232else
e6cc62c6
VS
24233 echo "$as_me: failed program was:" >&5
24234sed 's/^/| /' conftest.$ac_ext >&5
24235
24236
24237 echo "$as_me:$LINENO: result: no" >&5
24238echo "${ECHO_T}no" >&6
24239 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24240echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24241
24242
d836ee96 24243fi
e6cc62c6 24244rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24245
24246 CFLAGS=$save_CFLAGS
21d1c967
GD
24247 fi
24248
e6cc62c6
VS
24249 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24250echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24251 libp_link=""
24252 libsm_ice_link=""
24253 libs_found=0
24254 for libp in "" " -lXp"; do
24255 if test "$libs_found" = "0"; then
24256 for libsm_ice in " -lSM -lICE"; do
e26c13cf 24257 if test "$libs_found" = "0"; then
6a30f1c8
MB
24258 save_LIBS="$LIBS"
24259 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24260 save_CFLAGS=$CFLAGS
24261 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24262
e6cc62c6
VS
24263 cat >conftest.$ac_ext <<_ACEOF
24264#line $LINENO "configure"
24265/* confdefs.h. */
24266_ACEOF
24267cat confdefs.h >>conftest.$ac_ext
24268cat >>conftest.$ac_ext <<_ACEOF
24269/* end confdefs.h. */
17234b26 24270
6a30f1c8
MB
24271 #include <Xm/Xm.h>
24272 #include <Xm/List.h>
e6cc62c6
VS
24273
24274int
24275main ()
24276{
6a30f1c8
MB
24277
24278 XmString string = NULL;
24279 Widget w = NULL;
24280 int position = 0;
24281 XmListAddItem(w, string, position);
e6cc62c6
VS
24282
24283 ;
24284 return 0;
24285}
24286_ACEOF
24287rm -f conftest.$ac_objext conftest$ac_exeext
24288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24289 (eval $ac_link) 2>&5
24290 ac_status=$?
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); } &&
24293 { ac_try='test -s conftest$ac_exeext'
24294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; }; then
24299
6a30f1c8
MB
24300 libp_link="$libp"
24301 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24302 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24303echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24304 libs_found=1
e6cc62c6 24305
6a30f1c8 24306else
e6cc62c6
VS
24307 echo "$as_me: failed program was:" >&5
24308sed 's/^/| /' conftest.$ac_ext >&5
24309
24310
24311
6a30f1c8 24312fi
e6cc62c6 24313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24314
6a30f1c8 24315 LIBS="$save_LIBS"
dd0e4a90 24316 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24317 fi
24318 done
24319 fi
24320 done
24321
24322 if test "$libs_found" = "0"; then
e6cc62c6
VS
24323 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24324echo "${ECHO_T}can't find the right libraries" >&6
24325 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24326echo "$as_me: error: can't link a simple motif program" >&2;}
24327 { (exit 1); exit 1; }; }
6a30f1c8
MB
24328 fi
24329
da494b40
MB
24330 save_CFLAGS=$CFLAGS
24331 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24332 echo "$as_me:$LINENO: checking for Motif 2" >&5
24333echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24334 cat >conftest.$ac_ext <<_ACEOF
24335#line $LINENO "configure"
24336/* confdefs.h. */
24337_ACEOF
24338cat confdefs.h >>conftest.$ac_ext
24339cat >>conftest.$ac_ext <<_ACEOF
24340/* end confdefs.h. */
da494b40
MB
24341
24342 #include <Xm/Xm.h>
e6cc62c6
VS
24343
24344int
24345main ()
24346{
da494b40
MB
24347
24348 #if XmVersion < 2000
24349 #error "Not Motif 2"
24350 #endif
e6cc62c6
VS
24351
24352 ;
24353 return 0;
24354}
24355_ACEOF
24356rm -f conftest.$ac_objext
24357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24358 (eval $ac_compile) 2>&5
24359 ac_status=$?
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } &&
24362 { ac_try='test -s conftest.$ac_objext'
24363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24364 (eval $ac_try) 2>&5
24365 ac_status=$?
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); }; }; then
24368
24369 cat >>confdefs.h <<\_ACEOF
da494b40 24370#define __WXMOTIF20__ 1
e6cc62c6
VS
24371_ACEOF
24372
24373 echo "$as_me:$LINENO: result: found" >&5
24374echo "${ECHO_T}found" >&6
da494b40 24375
da494b40 24376else
e6cc62c6
VS
24377 echo "$as_me: failed program was:" >&5
24378sed 's/^/| /' conftest.$ac_ext >&5
24379
24380
24381 cat >>confdefs.h <<\_ACEOF
da494b40 24382#define __WXMOTIF20__ 0
e6cc62c6
VS
24383_ACEOF
24384
24385 echo "$as_me:$LINENO: result: not found" >&5
24386echo "${ECHO_T}not found" >&6
da494b40 24387
da494b40 24388fi
e6cc62c6 24389rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24390 CFLAGS=$save_CFLAGS
24391
6a30f1c8 24392 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24393 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24394 TOOLKIT=MOTIF
24395 GUIDIST=MOTIF_DIST
f7f78039
MB
24396 wxHAVE_XEXT_LIB=1
24397 fi
24398
24399 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24400 test "$wxHAVE_XEXT_LIB" = 1; then
24401 save_CFLAGS="$CFLAGS"
24402 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24403
e6cc62c6
VS
24404 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24405echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24406 cat >conftest.$ac_ext <<_ACEOF
24407#line $LINENO "configure"
24408/* confdefs.h. */
24409_ACEOF
24410cat confdefs.h >>conftest.$ac_ext
24411cat >>conftest.$ac_ext <<_ACEOF
24412/* end confdefs.h. */
24413
24414 #include <X11/Xlib.h>
f7f78039 24415 #include <X11/extensions/shape.h>
e6cc62c6
VS
24416
24417int
24418main ()
24419{
f7f78039
MB
24420
24421 int dummy1, dummy2;
24422 XShapeQueryExtension((Display*)NULL,
24423 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24424
24425 ;
24426 return 0;
24427}
24428_ACEOF
24429rm -f conftest.$ac_objext
24430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24431 (eval $ac_compile) 2>&5
24432 ac_status=$?
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); } &&
24435 { ac_try='test -s conftest.$ac_objext'
24436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437 (eval $ac_try) 2>&5
24438 ac_status=$?
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); }; }; then
24441
24442 cat >>confdefs.h <<\_ACEOF
f7f78039 24443#define HAVE_XSHAPE 1
e6cc62c6
VS
24444_ACEOF
24445
24446 echo "$as_me:$LINENO: result: found" >&5
24447echo "${ECHO_T}found" >&6
f7f78039 24448
f7f78039 24449else
e6cc62c6
VS
24450 echo "$as_me: failed program was:" >&5
24451sed 's/^/| /' conftest.$ac_ext >&5
24452
24453
24454 echo "$as_me:$LINENO: result: not found" >&5
24455echo "${ECHO_T}not found" >&6
24456
f7f78039 24457fi
e6cc62c6 24458rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24459 CFLAGS="$save_CFLAGS"
21d1c967
GD
24460 fi
24461
24462 if test "$wxUSE_MAC" = 1; then
0c98a14e 24463 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24464
0c98a14e 24465 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24466 TOOLKIT=MAC
24467 GUIDIST=MACX_DIST
cf615ebb 24468 WXBASEPORT="_carbon"
21d1c967
GD
24469 fi
24470
ac0c4cc3
DE
24471 if test "$wxUSE_COCOA" = 1; then
24472 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24473 TOOLKIT=COCOA
24474 GUIDIST=COCOA_DIST
24475 fi
24476
21d1c967
GD
24477 if test "$wxUSE_PM" = 1; then
24478 TOOLKIT=PM
24479 GUIDIST=GTK_DIST
e6cc62c6
VS
24480 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24481echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 24482 wxUSE_THREADS="no"
21d1c967
GD
24483 fi
24484
24485 if test "$TOOLKIT" = "PM" ; then
24486 TOOLKIT_DIR="os2"
24487 else
24488 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24489 fi
24490
24491 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24492
24493 if test "$wxUSE_UNIVERSAL" = "yes"; then
24494 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24495
24496 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24497 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24498
24499 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24500 if test "$wxUSE_X11" = 1; then
24501 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24502 else
24503 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24504 fi
24505 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24506 WIDGET_SET=univ
24507 else
24508 ALL_OBJECTS="\$(GUIOBJS)"
24509 ALL_SOURCES="\$(ALL_SOURCES)"
24510 ALL_HEADERS="\$(ALL_HEADERS)"
24511 fi
24512
24513 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24514
24515 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24516 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24517 fi
24518
24519 if test "$wxUSE_HTML" = "yes"; then
24520 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24521 fi
24522
24523 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24524 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24525 fi
24526 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24527 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24528 fi
24529 if test "$wxUSE_LIBPNG" = "builtin" ; then
24530 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24531 fi
24532
24533 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24534 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24535else
21d1c967
GD
24536 USE_GUI=0
24537
24538 TOOLKIT_DIR="base"
24539
24540 if test "$USE_WIN32" = 1 ; then
24541 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24542 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24543
24544 TOOLKIT="MSW"
24545 else
24546 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24547 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24548 fi
24549
24550 ALL_SOURCES="\$(ALL_SOURCES)"
24551 ALL_HEADERS="\$(ALL_HEADERS)"
24552
24553 PORT_FILES="\${top_srcdir}/src/files.lst"
24554
24555 GUIDIST="BASE_DIST"
24556 DISTDIR="wxBase"
d836ee96
VZ
24557fi
24558
8284b0c5 24559
8647bec6
RG
24560
24561
24562IODBC_C_SRC=""
24563
24564
24565if test "$TOOLKIT" != "MSW" ; then
24566
bb41dcbe 24567 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24568
bb41dcbe 24569 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24570 echo "$as_me:$LINENO: checking for sql.h" >&5
24571echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24572if test "${ac_cv_header_sql_h+set}" = set; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24574fi
24575echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24576echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24577else
24578 # Is the header compilable?
24579echo "$as_me:$LINENO: checking sql.h usability" >&5
24580echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24581cat >conftest.$ac_ext <<_ACEOF
24582#line $LINENO "configure"
24583/* confdefs.h. */
24584_ACEOF
24585cat confdefs.h >>conftest.$ac_ext
24586cat >>conftest.$ac_ext <<_ACEOF
24587/* end confdefs.h. */
24588$ac_includes_default
8647bec6 24589#include <sql.h>
e6cc62c6
VS
24590_ACEOF
24591rm -f conftest.$ac_objext
24592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24593 (eval $ac_compile) 2>&5
24594 ac_status=$?
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); } &&
24597 { ac_try='test -s conftest.$ac_objext'
24598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599 (eval $ac_try) 2>&5
24600 ac_status=$?
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; }; then
24603 ac_header_compiler=yes
24604else
24605 echo "$as_me: failed program was:" >&5
24606sed 's/^/| /' conftest.$ac_ext >&5
24607
24608ac_header_compiler=no
24609fi
24610rm -f conftest.$ac_objext conftest.$ac_ext
24611echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24612echo "${ECHO_T}$ac_header_compiler" >&6
24613
24614# Is the header present?
24615echo "$as_me:$LINENO: checking sql.h presence" >&5
24616echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24617cat >conftest.$ac_ext <<_ACEOF
24618#line $LINENO "configure"
24619/* confdefs.h. */
24620_ACEOF
24621cat confdefs.h >>conftest.$ac_ext
24622cat >>conftest.$ac_ext <<_ACEOF
24623/* end confdefs.h. */
24624#include <sql.h>
24625_ACEOF
24626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24628 ac_status=$?
24629 grep -v '^ *+' conftest.er1 >conftest.err
24630 rm -f conftest.er1
24631 cat conftest.err >&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); } >/dev/null; then
24634 if test -s conftest.err; then
24635 ac_cpp_err=$ac_c_preproc_warn_flag
24636 else
24637 ac_cpp_err=
24638 fi
24639else
24640 ac_cpp_err=yes
24641fi
24642if test -z "$ac_cpp_err"; then
24643 ac_header_preproc=yes
24644else
24645 echo "$as_me: failed program was:" >&5
24646sed 's/^/| /' conftest.$ac_ext >&5
24647
24648 ac_header_preproc=no
24649fi
24650rm -f conftest.err conftest.$ac_ext
24651echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24652echo "${ECHO_T}$ac_header_preproc" >&6
24653
24654# So? What about this header?
24655case $ac_header_compiler:$ac_header_preproc in
24656 yes:no )
24657 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24658echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24659 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24660echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24661 (
24662 cat <<\_ASBOX
24663## ------------------------------------ ##
24664## Report this to bug-autoconf@gnu.org. ##
24665## ------------------------------------ ##
24666_ASBOX
24667 ) |
24668 sed "s/^/$as_me: WARNING: /" >&2
24669 ;;
24670 no:yes )
24671 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24672echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24673 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24674echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24675 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24676echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24677 (
24678 cat <<\_ASBOX
24679## ------------------------------------ ##
24680## Report this to bug-autoconf@gnu.org. ##
24681## ------------------------------------ ##
24682_ASBOX
24683 ) |
24684 sed "s/^/$as_me: WARNING: /" >&2
24685 ;;
24686esac
24687echo "$as_me:$LINENO: checking for sql.h" >&5
24688echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24689if test "${ac_cv_header_sql_h+set}" = set; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24691else
e6cc62c6
VS
24692 ac_cv_header_sql_h=$ac_header_preproc
24693fi
24694echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24695echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24696
bb41dcbe
VS
24697fi
24698if test $ac_cv_header_sql_h = yes; then
24699 found_sql_h=1
8647bec6
RG
24700fi
24701
e6cc62c6 24702
bb41dcbe
VS
24703 if test "x$found_sql_h" = "x1" ; then
24704 echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5
24705echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6
24706if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then
e6cc62c6 24707 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24708else
bb41dcbe
VS
24709 ac_check_lib_save_LIBS=$LIBS
24710LIBS="-lSQLAllocEnv $LIBS"
e6cc62c6
VS
24711cat >conftest.$ac_ext <<_ACEOF
24712#line $LINENO "configure"
24713/* confdefs.h. */
24714_ACEOF
24715cat confdefs.h >>conftest.$ac_ext
24716cat >>conftest.$ac_ext <<_ACEOF
24717/* end confdefs.h. */
24718
8647bec6 24719/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24720#ifdef __cplusplus
24721extern "C"
24722#endif
8647bec6 24723/* We use char because int might match the return type of a gcc2
e6cc62c6 24724 builtin and then its argument prototype would still apply. */
bb41dcbe 24725char iodbc ();
e6cc62c6
VS
24726int
24727main ()
24728{
bb41dcbe 24729iodbc ();
e6cc62c6
VS
24730 ;
24731 return 0;
24732}
24733_ACEOF
24734rm -f conftest.$ac_objext conftest$ac_exeext
24735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24736 (eval $ac_link) 2>&5
24737 ac_status=$?
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); } &&
24740 { ac_try='test -s conftest$ac_exeext'
24741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24742 (eval $ac_try) 2>&5
24743 ac_status=$?
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); }; }; then
bb41dcbe 24746 ac_cv_lib_SQLAllocEnv_iodbc=yes
8647bec6 24747else
e6cc62c6
VS
24748 echo "$as_me: failed program was:" >&5
24749sed 's/^/| /' conftest.$ac_ext >&5
24750
bb41dcbe 24751ac_cv_lib_SQLAllocEnv_iodbc=no
8647bec6 24752fi
e6cc62c6 24753rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24754LIBS=$ac_check_lib_save_LIBS
24755fi
24756echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5
24757echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6
24758if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then
24759 ODBC_LINK=" -liodbc"
24760else
24761
24762 echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5
24763echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6
24764if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then
24765 echo $ECHO_N "(cached) $ECHO_C" >&6
24766else
24767 ac_check_lib_save_LIBS=$LIBS
24768LIBS="-lSQLAllocEnv $LIBS"
24769cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24770#line $LINENO "configure"
24771/* confdefs.h. */
24772_ACEOF
24773cat confdefs.h >>conftest.$ac_ext
24774cat >>conftest.$ac_ext <<_ACEOF
24775/* end confdefs.h. */
24776
8647bec6 24777/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24778#ifdef __cplusplus
24779extern "C"
24780#endif
8647bec6 24781/* We use char because int might match the return type of a gcc2
e6cc62c6 24782 builtin and then its argument prototype would still apply. */
bb41dcbe 24783char unixodbc ();
e6cc62c6
VS
24784int
24785main ()
24786{
bb41dcbe 24787unixodbc ();
e6cc62c6
VS
24788 ;
24789 return 0;
24790}
24791_ACEOF
24792rm -f conftest.$ac_objext conftest$ac_exeext
24793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24794 (eval $ac_link) 2>&5
24795 ac_status=$?
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); } &&
24798 { ac_try='test -s conftest$ac_exeext'
24799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800 (eval $ac_try) 2>&5
24801 ac_status=$?
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); }; }; then
bb41dcbe 24804 ac_cv_lib_SQLAllocEnv_unixodbc=yes
8647bec6 24805else
e6cc62c6
VS
24806 echo "$as_me: failed program was:" >&5
24807sed 's/^/| /' conftest.$ac_ext >&5
24808
bb41dcbe 24809ac_cv_lib_SQLAllocEnv_unixodbc=no
8647bec6 24810fi
e6cc62c6 24811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24812LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24813fi
bb41dcbe
VS
24814echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5
24815echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6
24816if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then
24817 ODBC_LINK=" -lunixodbc"
24818else
24819
24820 echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5
24821echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6
24822if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then
24823 echo $ECHO_N "(cached) $ECHO_C" >&6
24824else
24825 ac_check_lib_save_LIBS=$LIBS
24826LIBS="-lSQLAllocEnv $LIBS"
24827cat >conftest.$ac_ext <<_ACEOF
24828#line $LINENO "configure"
24829/* confdefs.h. */
24830_ACEOF
24831cat confdefs.h >>conftest.$ac_ext
24832cat >>conftest.$ac_ext <<_ACEOF
24833/* end confdefs.h. */
e6cc62c6 24834
bb41dcbe
VS
24835/* Override any gcc2 internal prototype to avoid an error. */
24836#ifdef __cplusplus
24837extern "C"
24838#endif
24839/* We use char because int might match the return type of a gcc2
24840 builtin and then its argument prototype would still apply. */
24841char odbc ();
24842int
24843main ()
24844{
24845odbc ();
24846 ;
24847 return 0;
24848}
24849_ACEOF
24850rm -f conftest.$ac_objext conftest$ac_exeext
24851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24852 (eval $ac_link) 2>&5
24853 ac_status=$?
24854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } &&
24856 { ac_try='test -s conftest$ac_exeext'
24857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24858 (eval $ac_try) 2>&5
24859 ac_status=$?
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); }; }; then
24862 ac_cv_lib_SQLAllocEnv_odbc=yes
e6cc62c6 24863else
bb41dcbe
VS
24864 echo "$as_me: failed program was:" >&5
24865sed 's/^/| /' conftest.$ac_ext >&5
24866
24867ac_cv_lib_SQLAllocEnv_odbc=no
24868fi
24869rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24870LIBS=$ac_check_lib_save_LIBS
24871fi
24872echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5
24873echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6
24874if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then
24875 ODBC_LINK=" -lodbc"
24876fi
24877
24878
24879fi
e6cc62c6 24880
e6cc62c6 24881
8647bec6 24882fi
e6cc62c6 24883
fd3d7534 24884 fi
bb41dcbe
VS
24885 if test "x$ODBC_LINK" = "x" ; then
24886 if test "$wxUSE_ODBC" = "sys" ; then
24887 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24888echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24889 { (exit 1); exit 1; }; }
24890 else
24891 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24892echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24893 wxUSE_ODBC=builtin
24894 fi
24895 else
24896 wxUSE_ODBC=sys
8647bec6 24897 fi
8647bec6 24898 fi
bb41dcbe
VS
24899 if test "$wxUSE_ODBC" != "no" ; then
24900 cat >>confdefs.h <<\_ACEOF
24901#define wxUSE_ODBC 1
24902_ACEOF
e6cc62c6 24903
bb41dcbe
VS
24904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24905
24906 WXODBCFLAG="-D_IODBC_"
24907 fi
6232543b 24908fi
21d1c967
GD
24909
24910if test "$wxUSE_REGEX" = "builtin" ; then
24911 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24912fi
21d1c967
GD
24913if test "$wxUSE_ZLIB" = "builtin" ; then
24914 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24915fi
24916
8284b0c5 24917
4d264332 24918USE_OPENGL=0
21d1c967 24919if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24920 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24921 OPENGL_LIBS="-framework OpenGL -framework AGL"
24922 elif test "$wxUSE_MSW" = 1; then
24923 OPENGL_LIBS="-lopengl32 -lglu32"
24924 else
01aa5863
VS
24925
24926
24927ac_find_includes=
24928for ac_dir in $SEARCH_INCLUDE /usr/include;
24929 do
24930 if test -f "$ac_dir/GL/gl.h"; then
24931 ac_find_includes=$ac_dir
24932 break
24933 fi
24934 done
24935
24936 if test "$ac_find_includes" != "" ; then
24937 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24938echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
24939
24940 if test "x$ac_find_includes" = "x/usr/include"; then
24941 ac_path_to_include=""
24942 else
24943 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24944 result=$?
24945 if test $result = 0; then
24946 ac_path_to_include=""
24947 else
24948 ac_path_to_include=" -I$ac_find_includes"
24949 fi
24950 fi
24951
24952 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
24953 fi
24954
e6cc62c6
VS
24955 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24956 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24957echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24958if test "${ac_cv_header_GL_gl_h+set}" = set; then
24959 echo $ECHO_N "(cached) $ECHO_C" >&6
24960fi
24961echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24962echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24963else
24964 # Is the header compilable?
24965echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24966echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24967cat >conftest.$ac_ext <<_ACEOF
24968#line $LINENO "configure"
24969/* confdefs.h. */
24970_ACEOF
24971cat confdefs.h >>conftest.$ac_ext
24972cat >>conftest.$ac_ext <<_ACEOF
24973/* end confdefs.h. */
24974$ac_includes_default
21d1c967 24975#include <GL/gl.h>
e6cc62c6
VS
24976_ACEOF
24977rm -f conftest.$ac_objext
24978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24979 (eval $ac_compile) 2>&5
24980 ac_status=$?
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } &&
24983 { ac_try='test -s conftest.$ac_objext'
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24986 ac_status=$?
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; }; then
24989 ac_header_compiler=yes
24990else
24991 echo "$as_me: failed program was:" >&5
24992sed 's/^/| /' conftest.$ac_ext >&5
24993
24994ac_header_compiler=no
24995fi
24996rm -f conftest.$ac_objext conftest.$ac_ext
24997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24998echo "${ECHO_T}$ac_header_compiler" >&6
24999
25000# Is the header present?
25001echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
25002echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
25003cat >conftest.$ac_ext <<_ACEOF
25004#line $LINENO "configure"
25005/* confdefs.h. */
25006_ACEOF
25007cat confdefs.h >>conftest.$ac_ext
25008cat >>conftest.$ac_ext <<_ACEOF
25009/* end confdefs.h. */
25010#include <GL/gl.h>
25011_ACEOF
25012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25014 ac_status=$?
25015 grep -v '^ *+' conftest.er1 >conftest.err
25016 rm -f conftest.er1
25017 cat conftest.err >&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } >/dev/null; then
25020 if test -s conftest.err; then
25021 ac_cpp_err=$ac_c_preproc_warn_flag
25022 else
25023 ac_cpp_err=
25024 fi
25025else
25026 ac_cpp_err=yes
25027fi
25028if test -z "$ac_cpp_err"; then
25029 ac_header_preproc=yes
25030else
25031 echo "$as_me: failed program was:" >&5
25032sed 's/^/| /' conftest.$ac_ext >&5
25033
25034 ac_header_preproc=no
25035fi
25036rm -f conftest.err conftest.$ac_ext
25037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25038echo "${ECHO_T}$ac_header_preproc" >&6
25039
25040# So? What about this header?
25041case $ac_header_compiler:$ac_header_preproc in
25042 yes:no )
25043 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25044echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25045 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25046echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25047 (
25048 cat <<\_ASBOX
25049## ------------------------------------ ##
25050## Report this to bug-autoconf@gnu.org. ##
25051## ------------------------------------ ##
25052_ASBOX
25053 ) |
25054 sed "s/^/$as_me: WARNING: /" >&2
25055 ;;
25056 no:yes )
25057 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25058echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
25059 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25060echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
25061 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25062echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25063 (
25064 cat <<\_ASBOX
25065## ------------------------------------ ##
25066## Report this to bug-autoconf@gnu.org. ##
25067## ------------------------------------ ##
25068_ASBOX
25069 ) |
25070 sed "s/^/$as_me: WARNING: /" >&2
25071 ;;
25072esac
25073echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25074echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25075if test "${ac_cv_header_GL_gl_h+set}" = set; then
25076 echo $ECHO_N "(cached) $ECHO_C" >&6
25077else
25078 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 25079fi
e6cc62c6
VS
25080echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25081echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25082
698dcdb6 25083fi
e6cc62c6
VS
25084if test $ac_cv_header_GL_gl_h = yes; then
25085
89e3b3e4
VZ
25086 found_gl=0
25087
e6cc62c6
VS
25088 echo "$as_me:$LINENO: checking for -lGL" >&5
25089echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25090
21d1c967 25091ac_find_libraries=
2b5f62a0 25092for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25093 do
25094 for ac_extension in a so sl dylib; do
25095 if test -f "$ac_dir/libGL.$ac_extension"; then
25096 ac_find_libraries=$ac_dir
25097 break 2
25098 fi
25099 done
25100 done
25101
25102 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25103
21d1c967
GD
25104 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25105 result=$?
25106 if test $result = 0; then
25107 ac_path_to_link=""
25108 else
25109 ac_path_to_link=" -L$ac_find_libraries"
25110 fi
25111
89e3b3e4
VZ
25112 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25113 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25114 fi
89e3b3e4 25115
e6cc62c6 25116
89e3b3e4
VZ
25117ac_find_libraries=
25118for ac_dir in $SEARCH_LIB /usr/lib;
25119 do
25120 for ac_extension in a so sl dylib; do
25121 if test -f "$ac_dir/libGLU.$ac_extension"; then
25122 ac_find_libraries=$ac_dir
25123 break 2
25124 fi
25125 done
25126 done
25127
25128 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25129
89e3b3e4
VZ
25130 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25131 result=$?
25132 if test $result = 0; then
25133 ac_path_to_link=""
25134 else
25135 ac_path_to_link=" -L$ac_find_libraries"
25136 fi
25137
25138 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25139 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25140 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25141 fi
25142
25143 found_gl=1
25144 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25145 echo "$as_me:$LINENO: result: yes" >&5
25146echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25147 fi
25148 fi
25149
bb41dcbe 25150 if test "$found_gl" != 1; then
e6cc62c6
VS
25151 echo "$as_me:$LINENO: result: no" >&5
25152echo "${ECHO_T}no" >&6
25153 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25154echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25155
21d1c967 25156ac_find_libraries=
2b5f62a0 25157for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25158 do
25159 for ac_extension in a so sl dylib; do
25160 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25161 ac_find_libraries=$ac_dir
25162 break 2
25163 fi
25164 done
25165 done
25166
25167 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25168
21d1c967
GD
25169 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25170 result=$?
25171 if test $result = 0; then
25172 ac_path_to_link=""
25173 else
25174 ac_path_to_link=" -L$ac_find_libraries"
25175 fi
25176
25177 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25178 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25179 echo "$as_me:$LINENO: result: yes" >&5
25180echo "${ECHO_T}yes" >&6
21d1c967 25181 else
e6cc62c6
VS
25182 echo "$as_me:$LINENO: result: no" >&5
25183echo "${ECHO_T}no" >&6
21d1c967
GD
25184 fi
25185 fi
e6cc62c6 25186
5c6fa7d2 25187fi
52127426 25188
8284b0c5 25189
e6cc62c6 25190
21d1c967 25191 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25192 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25193echo "$as_me: error: OpenGL libraries not available" >&2;}
25194 { (exit 1); exit 1; }; }
21d1c967
GD
25195 fi
25196 fi
90dd450c 25197
21d1c967 25198 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25199 USE_OPENGL=1
e6cc62c6 25200 cat >>confdefs.h <<\_ACEOF
21d1c967 25201#define wxUSE_OPENGL 1
e6cc62c6 25202_ACEOF
21d1c967 25203
e6cc62c6 25204 cat >>confdefs.h <<\_ACEOF
21d1c967 25205#define wxUSE_GLCANVAS 1
e6cc62c6 25206_ACEOF
21d1c967 25207
520755bb 25208 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25209 fi
10f2d63a 25210fi
21d1c967
GD
25211
25212if test -z "$TOOLKIT_VPATH" ; then
25213 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25214fi
21d1c967
GD
25215
25216if test -n "$TOOLKIT" ; then
25217 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25218fi
25219
fe0895cf 25220UNICODE=0
21d1c967
GD
25221lib_unicode_suffix=
25222if test "$wxUSE_UNICODE" = "yes"; then
25223 lib_unicode_suffix=u
fe0895cf 25224 UNICODE=1
90dd450c 25225fi
698dcdb6 25226
21d1c967 25227lib_debug_suffix=
6c67131a 25228DEBUG_FLAG=0
21d1c967
GD
25229if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25230 lib_debug_suffix=d
6c67131a
VS
25231 DEBUG_FLAG=1
25232fi
25233
25234DEBUG_INFO=0
25235if test "$wxUSE_DEBUG_INFO" = "yes"; then
25236 DEBUG_INFO=1
21d1c967 25237fi
698dcdb6 25238
1cbb95a2 25239WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25240
25241TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25242TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25243
25244if test "$cross_compiling" = "yes"; then
25245 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25246 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25247 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25248fi
25249
25250WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25251WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25252WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25253WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25254
25255WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25256WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25257
25258WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25259WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25260WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25261WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25262
25263case "${host}" in
25264 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25265 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25266 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25267 ;;
25268
25269 *-*-darwin* )
e6cc62c6 25270
05159a27
GD
25271 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25272 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25273
25274 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25275 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25276 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25277 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25278
21d1c967 25279 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25280 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25281 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25282 fi
25283 ;;
25284esac
25285
25286WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25287WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25288
25289WXCONFIG_LIBS="-l${WX_LIBRARY}"
25290WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25291
25292if test "$wxUSE_OPENGL" = "yes"; then
25293 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25294 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25295fi
25296
8284b0c5
MB
25297
25298
21d1c967
GD
25299if test "$wxUSE_SHARED" = "yes"; then
25300 case "${host}" in
25301 *-pc-os2_emx | *-pc-os2-emx | \
25302 *-pc-msdosdjgpp )
25303 wxUSE_SHARED=no
e6cc62c6
VS
25304 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25305echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25306 ;;
25307 esac
25308fi
25309
fe0895cf 25310SHARED=0
2b5f62a0 25311if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25312 SHARED=1
2b5f62a0 25313
e6cc62c6 25314
2b5f62a0
VZ
25315 found_versioning=no
25316
e6cc62c6 25317
2b5f62a0 25318 if test $found_versioning = no ; then
e6cc62c6
VS
25319 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25320echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25321if test "${wx_cv_version_script+set}" = set; then
25322 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25323else
e6cc62c6 25324
2b5f62a0
VZ
25325 echo "VER_1 { *; };" >conftest.sym
25326 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25327
2b5f62a0
VZ
25328 if { ac_try='
25329 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25330 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25333 ac_status=$?
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25336 if test -s conftest.stderr ; then
25337 wx_cv_version_script=no
25338 else
25339 wx_cv_version_script=yes
25340 fi
25341 else
25342 wx_cv_version_script=no
25343 fi
25344 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25345
e6cc62c6
VS
25346fi
25347echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25348echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25349 if test $wx_cv_version_script = yes ; then
e6cc62c6 25350 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25351 fi
25352 fi
21d1c967 25353
21d1c967 25354
21d1c967 25355 case "${host}" in
fe0895cf 25356 *-*-linux* | *-*-gnu* )
e6cc62c6 25357 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 25358 ;;
21d1c967
GD
25359
25360 *-*-solaris2* )
25361 if test "$GCC" = yes ; then
25362 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25363
25364 saveLdflags="$LDFLAGS"
25365 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25366 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25367echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25368 cat >conftest.$ac_ext <<_ACEOF
25369#line $LINENO "configure"
25370/* confdefs.h. */
25371_ACEOF
25372cat confdefs.h >>conftest.$ac_ext
25373cat >>conftest.$ac_ext <<_ACEOF
25374/* end confdefs.h. */
25375
25376int
25377main ()
25378{
fe0895cf 25379
e6cc62c6
VS
25380 ;
25381 return 0;
25382}
25383_ACEOF
25384rm -f conftest.$ac_objext conftest$ac_exeext
25385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25386 (eval $ac_link) 2>&5
25387 ac_status=$?
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); } &&
25390 { ac_try='test -s conftest$ac_exeext'
25391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392 (eval $ac_try) 2>&5
25393 ac_status=$?
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; }; then
25396
25397 echo "$as_me:$LINENO: result: yes" >&5
25398echo "${ECHO_T}yes" >&6
25399 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25400
25401else
25402 echo "$as_me: failed program was:" >&5
25403sed 's/^/| /' conftest.$ac_ext >&5
25404
25405
25406 echo "$as_me:$LINENO: result: no" >&5
25407echo "${ECHO_T}no" >&6
25408 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25409echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25410 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25411 cat >conftest.$ac_ext <<_ACEOF
25412#line $LINENO "configure"
25413/* confdefs.h. */
25414_ACEOF
25415cat confdefs.h >>conftest.$ac_ext
25416cat >>conftest.$ac_ext <<_ACEOF
25417/* end confdefs.h. */
25418
25419int
25420main ()
25421{
25422
25423 ;
25424 return 0;
25425}
25426_ACEOF
25427rm -f conftest.$ac_objext conftest$ac_exeext
25428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25429 (eval $ac_link) 2>&5
25430 ac_status=$?
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } &&
25433 { ac_try='test -s conftest$ac_exeext'
25434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25435 (eval $ac_try) 2>&5
25436 ac_status=$?
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); }; }; then
25439
25440 echo "$as_me:$LINENO: result: yes" >&5
25441echo "${ECHO_T}yes" >&6
25442 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25443else
25444 echo "$as_me: failed program was:" >&5
25445sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25446
fe0895cf 25447
e6cc62c6
VS
25448 echo "$as_me:$LINENO: result: no" >&5
25449echo "${ECHO_T}no" >&6
25450
fe0895cf 25451fi
e6cc62c6
VS
25452rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25453
25454fi
25455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25456 LDFLAGS="$saveLdflags"
21d1c967
GD
25457 else
25458 SHARED_LD="${CXX} -G -o"
25459 PIC_FLAG="-KPIC"
e6cc62c6 25460 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25461 fi
25462 ;;
0f1bc9c2
VS
25463
25464 powerpc-*-darwin* )
ef0add05
VS
25465 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25466 cat <<EOF >change-install-names
25467#!/bin/sh
25468libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25469inst_cmd="install_name_tool "
25470for i in \${libnames} ; do
25471 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25472done
25473\${inst_cmd} \${3}
25474EOF
25475 chmod +x change-install-names
0f1bc9c2
VS
25476 ;;
25477
21d1c967
GD
25478 esac
25479
25480 if test "x$WX_TARGET_LIBRARY" = "x"; then
25481 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25482 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25483 fi
25484
25485 WX_TARGET_LIBRARY_TYPE="so"
25486 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25487fi
10f2d63a 25488
21d1c967
GD
25489if test "$wxUSE_SHARED" = "no"; then
25490
25491 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25492 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25493 fi
25494
ac0c4cc3 25495 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25496 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25497 fi
25498
25499 if test "$wxUSE_OPENGL" = "yes"; then
25500 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25501 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25502 else
25503 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25504 fi
25505
25506 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25507 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25508
25509 WX_TARGET_LIBRARY_TYPE="a"
25510 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25511
25512 STATIC_FLAG="yes"
25513else
25514 STATIC_FLAG="no"
90dd450c 25515fi
1e487827 25516
93fac604
VZ
25517MACRESCOMP="@#"
25518MACSETFILE="@#"
36825681 25519MACRESWXCONFIG="#"
21d1c967 25520if test "$wxUSE_MAC" = 1; then
e6cc62c6 25521 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25522 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25523 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25524 # Extract the first word of "Rez", so it can be a program name with args.
25525set dummy Rez; ac_word=$2
e6cc62c6
VS
25526echo "$as_me:$LINENO: checking for $ac_word" >&5
25527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25528if test "${ac_cv_prog_RESCOMP+set}" = set; then
25529 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25530else
21d1c967
GD
25531 if test -n "$RESCOMP"; then
25532 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25533else
e6cc62c6
VS
25534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25535for as_dir in $PATH
25536do
25537 IFS=$as_save_IFS
25538 test -z "$as_dir" && as_dir=.
25539 for ac_exec_ext in '' $ac_executable_extensions; do
25540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25541 ac_cv_prog_RESCOMP="Rez"
25542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25543 break 2
25544 fi
25545done
25546done
25547
21d1c967 25548 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25549fi
b93d0d08 25550fi
e6cc62c6 25551RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25552if test -n "$RESCOMP"; then
e6cc62c6
VS
25553 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25554echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25555else
e6cc62c6
VS
25556 echo "$as_me:$LINENO: result: no" >&5
25557echo "${ECHO_T}no" >&6
90dd450c 25558fi
b93d0d08 25559
21d1c967
GD
25560 # Extract the first word of "DeRez", so it can be a program name with args.
25561set dummy DeRez; ac_word=$2
e6cc62c6
VS
25562echo "$as_me:$LINENO: checking for $ac_word" >&5
25563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25564if test "${ac_cv_prog_DEREZ+set}" = set; then
25565 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25566else
21d1c967
GD
25567 if test -n "$DEREZ"; then
25568 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25569else
e6cc62c6
VS
25570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25571for as_dir in $PATH
25572do
25573 IFS=$as_save_IFS
25574 test -z "$as_dir" && as_dir=.
25575 for ac_exec_ext in '' $ac_executable_extensions; do
25576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25577 ac_cv_prog_DEREZ="DeRez"
25578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25579 break 2
25580 fi
25581done
25582done
25583
21d1c967 25584 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25585fi
90dd450c 25586fi
e6cc62c6 25587DEREZ=$ac_cv_prog_DEREZ
21d1c967 25588if test -n "$DEREZ"; then
e6cc62c6
VS
25589 echo "$as_me:$LINENO: result: $DEREZ" >&5
25590echo "${ECHO_T}$DEREZ" >&6
90dd450c 25591else
e6cc62c6
VS
25592 echo "$as_me:$LINENO: result: no" >&5
25593echo "${ECHO_T}no" >&6
3a922bb4 25594fi
698dcdb6 25595
36825681
GD
25596 # Extract the first word of "SetFile", so it can be a program name with args.
25597set dummy SetFile; ac_word=$2
e6cc62c6
VS
25598echo "$as_me:$LINENO: checking for $ac_word" >&5
25599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25600if test "${ac_cv_prog_SETFILE+set}" = set; then
25601 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25602else
25603 if test -n "$SETFILE"; then
25604 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25605else
e6cc62c6
VS
25606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25607for as_dir in $PATH
25608do
25609 IFS=$as_save_IFS
25610 test -z "$as_dir" && as_dir=.
25611 for ac_exec_ext in '' $ac_executable_extensions; do
25612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25613 ac_cv_prog_SETFILE="SetFile"
25614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25615 break 2
25616 fi
25617done
25618done
25619
36825681
GD
25620 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25621fi
25622fi
e6cc62c6 25623SETFILE=$ac_cv_prog_SETFILE
36825681 25624if test -n "$SETFILE"; then
e6cc62c6
VS
25625 echo "$as_me:$LINENO: result: $SETFILE" >&5
25626echo "${ECHO_T}$SETFILE" >&6
36825681 25627else
e6cc62c6
VS
25628 echo "$as_me:$LINENO: result: no" >&5
25629echo "${ECHO_T}no" >&6
36825681
GD
25630fi
25631
21d1c967 25632 MACOSX_BUNDLE="bundle"
36825681
GD
25633 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25634 MACSETFILE="\$(SETFILE)"
9711d31e 25635 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25636elif test "$wxUSE_COCOA" = 1; then
25637 # Extract the first word of "Rez", so it can be a program name with args.
25638set dummy Rez; ac_word=$2
e6cc62c6
VS
25639echo "$as_me:$LINENO: checking for $ac_word" >&5
25640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25641if test "${ac_cv_prog_RESCOMP+set}" = set; then
25642 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25643else
25644 if test -n "$RESCOMP"; then
25645 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25646else
e6cc62c6
VS
25647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25648for as_dir in $PATH
25649do
25650 IFS=$as_save_IFS
25651 test -z "$as_dir" && as_dir=.
25652 for ac_exec_ext in '' $ac_executable_extensions; do
25653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25654 ac_cv_prog_RESCOMP="Rez"
25655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25656 break 2
25657 fi
25658done
25659done
25660
64440d77
DE
25661 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25662fi
25663fi
e6cc62c6 25664RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25665if test -n "$RESCOMP"; then
e6cc62c6
VS
25666 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25667echo "${ECHO_T}$RESCOMP" >&6
64440d77 25668else
e6cc62c6
VS
25669 echo "$as_me:$LINENO: result: no" >&5
25670echo "${ECHO_T}no" >&6
64440d77
DE
25671fi
25672
25673 # Extract the first word of "DeRez", so it can be a program name with args.
25674set dummy DeRez; ac_word=$2
e6cc62c6
VS
25675echo "$as_me:$LINENO: checking for $ac_word" >&5
25676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25677if test "${ac_cv_prog_DEREZ+set}" = set; then
25678 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25679else
25680 if test -n "$DEREZ"; then
25681 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25682else
e6cc62c6
VS
25683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25684for as_dir in $PATH
25685do
25686 IFS=$as_save_IFS
25687 test -z "$as_dir" && as_dir=.
25688 for ac_exec_ext in '' $ac_executable_extensions; do
25689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25690 ac_cv_prog_DEREZ="DeRez"
25691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25692 break 2
25693 fi
25694done
25695done
25696
64440d77
DE
25697 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25698fi
25699fi
e6cc62c6 25700DEREZ=$ac_cv_prog_DEREZ
64440d77 25701if test -n "$DEREZ"; then
e6cc62c6
VS
25702 echo "$as_me:$LINENO: result: $DEREZ" >&5
25703echo "${ECHO_T}$DEREZ" >&6
64440d77 25704else
e6cc62c6
VS
25705 echo "$as_me:$LINENO: result: no" >&5
25706echo "${ECHO_T}no" >&6
64440d77
DE
25707fi
25708
25709 # Extract the first word of "SetFile", so it can be a program name with args.
25710set dummy SetFile; ac_word=$2
e6cc62c6
VS
25711echo "$as_me:$LINENO: checking for $ac_word" >&5
25712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25713if test "${ac_cv_prog_SETFILE+set}" = set; then
25714 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25715else
25716 if test -n "$SETFILE"; then
25717 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25718else
e6cc62c6
VS
25719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25720for as_dir in $PATH
25721do
25722 IFS=$as_save_IFS
25723 test -z "$as_dir" && as_dir=.
25724 for ac_exec_ext in '' $ac_executable_extensions; do
25725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25726 ac_cv_prog_SETFILE="SetFile"
25727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25728 break 2
25729 fi
25730done
25731done
25732
64440d77
DE
25733 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25734fi
25735fi
e6cc62c6 25736SETFILE=$ac_cv_prog_SETFILE
64440d77 25737if test -n "$SETFILE"; then
e6cc62c6
VS
25738 echo "$as_me:$LINENO: result: $SETFILE" >&5
25739echo "${ECHO_T}$SETFILE" >&6
64440d77 25740else
e6cc62c6
VS
25741 echo "$as_me:$LINENO: result: no" >&5
25742echo "${ECHO_T}no" >&6
64440d77
DE
25743fi
25744
25745 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25746 MACSETFILE="\$(SETFILE)"
9711d31e 25747 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25748else
25749 if test "$wxUSE_PM" = 1; then
36825681 25750 MACRESCOMP="emxbind -ep"
90dd450c 25751 fi
4f14bcd8 25752fi
10f2d63a 25753
8284b0c5 25754
e6cc62c6
VS
25755echo "$as_me:$LINENO: checking for mode_t" >&5
25756echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25757if test "${ac_cv_type_mode_t+set}" = set; then
25758 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25759else
e6cc62c6
VS
25760 cat >conftest.$ac_ext <<_ACEOF
25761#line $LINENO "configure"
25762/* confdefs.h. */
25763_ACEOF
25764cat confdefs.h >>conftest.$ac_ext
25765cat >>conftest.$ac_ext <<_ACEOF
25766/* end confdefs.h. */
25767$ac_includes_default
25768int
25769main ()
25770{
25771if ((mode_t *) 0)
25772 return 0;
25773if (sizeof (mode_t))
25774 return 0;
25775 ;
25776 return 0;
25777}
25778_ACEOF
25779rm -f conftest.$ac_objext
25780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25781 (eval $ac_compile) 2>&5
25782 ac_status=$?
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); } &&
25785 { ac_try='test -s conftest.$ac_objext'
25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787 (eval $ac_try) 2>&5
25788 ac_status=$?
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; }; then
25791 ac_cv_type_mode_t=yes
a0b9e27f 25792else
e6cc62c6
VS
25793 echo "$as_me: failed program was:" >&5
25794sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25795
e6cc62c6 25796ac_cv_type_mode_t=no
a0b9e27f 25797fi
e6cc62c6 25798rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25799fi
e6cc62c6
VS
25800echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25801echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25802if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25803 :
25804else
a0b9e27f 25805
e6cc62c6
VS
25806cat >>confdefs.h <<_ACEOF
25807#define mode_t int
25808_ACEOF
8284b0c5
MB
25809
25810fi
25811
e6cc62c6
VS
25812echo "$as_me:$LINENO: checking for off_t" >&5
25813echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25814if test "${ac_cv_type_off_t+set}" = set; then
25815 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25816else
e6cc62c6
VS
25817 cat >conftest.$ac_ext <<_ACEOF
25818#line $LINENO "configure"
25819/* confdefs.h. */
25820_ACEOF
25821cat confdefs.h >>conftest.$ac_ext
25822cat >>conftest.$ac_ext <<_ACEOF
25823/* end confdefs.h. */
25824$ac_includes_default
25825int
25826main ()
25827{
25828if ((off_t *) 0)
25829 return 0;
25830if (sizeof (off_t))
25831 return 0;
25832 ;
25833 return 0;
25834}
25835_ACEOF
25836rm -f conftest.$ac_objext
25837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25838 (eval $ac_compile) 2>&5
25839 ac_status=$?
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); } &&
25842 { ac_try='test -s conftest.$ac_objext'
25843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844 (eval $ac_try) 2>&5
25845 ac_status=$?
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); }; }; then
25848 ac_cv_type_off_t=yes
5c6fa7d2 25849else
e6cc62c6
VS
25850 echo "$as_me: failed program was:" >&5
25851sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25852
e6cc62c6 25853ac_cv_type_off_t=no
8284b0c5 25854fi
e6cc62c6 25855rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25856fi
e6cc62c6
VS
25857echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25858echo "${ECHO_T}$ac_cv_type_off_t" >&6
25859if test $ac_cv_type_off_t = yes; then
25860 :
247f5006
VZ
25861else
25862
e6cc62c6 25863cat >>confdefs.h <<_ACEOF
90dd450c 25864#define off_t long
e6cc62c6 25865_ACEOF
10f2d63a 25866
90dd450c 25867fi
10f2d63a 25868
e6cc62c6
VS
25869echo "$as_me:$LINENO: checking for pid_t" >&5
25870echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25871if test "${ac_cv_type_pid_t+set}" = set; then
25872 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25873else
e6cc62c6
VS
25874 cat >conftest.$ac_ext <<_ACEOF
25875#line $LINENO "configure"
25876/* confdefs.h. */
25877_ACEOF
25878cat confdefs.h >>conftest.$ac_ext
25879cat >>conftest.$ac_ext <<_ACEOF
25880/* end confdefs.h. */
25881$ac_includes_default
25882int
25883main ()
25884{
25885if ((pid_t *) 0)
25886 return 0;
25887if (sizeof (pid_t))
25888 return 0;
25889 ;
25890 return 0;
25891}
25892_ACEOF
25893rm -f conftest.$ac_objext
25894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25895 (eval $ac_compile) 2>&5
25896 ac_status=$?
25897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898 (exit $ac_status); } &&
25899 { ac_try='test -s conftest.$ac_objext'
25900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25901 (eval $ac_try) 2>&5
25902 ac_status=$?
25903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904 (exit $ac_status); }; }; then
90dd450c 25905 ac_cv_type_pid_t=yes
698dcdb6 25906else
e6cc62c6
VS
25907 echo "$as_me: failed program was:" >&5
25908sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25909
e6cc62c6
VS
25910ac_cv_type_pid_t=no
25911fi
25912rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25913fi
e6cc62c6
VS
25914echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25915echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25916if test $ac_cv_type_pid_t = yes; then
25917 :
25918else
25919
25920cat >>confdefs.h <<_ACEOF
90dd450c 25921#define pid_t int
e6cc62c6 25922_ACEOF
10f2d63a 25923
7b4a847f
RR
25924fi
25925
e6cc62c6
VS
25926echo "$as_me:$LINENO: checking for size_t" >&5
25927echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25928if test "${ac_cv_type_size_t+set}" = set; then
25929 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25930else
e6cc62c6
VS
25931 cat >conftest.$ac_ext <<_ACEOF
25932#line $LINENO "configure"
25933/* confdefs.h. */
25934_ACEOF
25935cat confdefs.h >>conftest.$ac_ext
25936cat >>conftest.$ac_ext <<_ACEOF
25937/* end confdefs.h. */
25938$ac_includes_default
25939int
25940main ()
25941{
25942if ((size_t *) 0)
25943 return 0;
25944if (sizeof (size_t))
25945 return 0;
25946 ;
25947 return 0;
25948}
25949_ACEOF
25950rm -f conftest.$ac_objext
25951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25952 (eval $ac_compile) 2>&5
25953 ac_status=$?
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } &&
25956 { ac_try='test -s conftest.$ac_objext'
25957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958 (eval $ac_try) 2>&5
25959 ac_status=$?
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); }; }; then
90dd450c 25962 ac_cv_type_size_t=yes
18dbb1f6 25963else
e6cc62c6
VS
25964 echo "$as_me: failed program was:" >&5
25965sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25966
e6cc62c6 25967ac_cv_type_size_t=no
a0b9e27f 25968fi
e6cc62c6
VS
25969rm -f conftest.$ac_objext conftest.$ac_ext
25970fi
25971echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25972echo "${ECHO_T}$ac_cv_type_size_t" >&6
25973if test $ac_cv_type_size_t = yes; then
25974 :
25975else
25976
25977cat >>confdefs.h <<_ACEOF
90dd450c 25978#define size_t unsigned
e6cc62c6 25979_ACEOF
90dd450c
VZ
25980
25981fi
25982
e6cc62c6
VS
25983echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25984echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25985if test "${ac_cv_type_uid_t+set}" = set; then
25986 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25987else
e6cc62c6
VS
25988 cat >conftest.$ac_ext <<_ACEOF
25989#line $LINENO "configure"
25990/* confdefs.h. */
25991_ACEOF
25992cat confdefs.h >>conftest.$ac_ext
25993cat >>conftest.$ac_ext <<_ACEOF
25994/* end confdefs.h. */
90dd450c 25995#include <sys/types.h>
e6cc62c6
VS
25996
25997_ACEOF
90dd450c 25998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25999 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 26000 ac_cv_type_uid_t=yes
b3e8d00a 26001else
90dd450c 26002 ac_cv_type_uid_t=no
b3e8d00a 26003fi
90dd450c 26004rm -f conftest*
b3e8d00a 26005
4f14bcd8 26006fi
e6cc62c6
VS
26007echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26008echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 26009if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
26010
26011cat >>confdefs.h <<\_ACEOF
90dd450c 26012#define uid_t int
e6cc62c6 26013_ACEOF
247f5006 26014
e6cc62c6
VS
26015
26016cat >>confdefs.h <<\_ACEOF
90dd450c 26017#define gid_t int
e6cc62c6 26018_ACEOF
4f14bcd8 26019
b3e8d00a 26020fi
b3e8d00a 26021
8284b0c5
MB
26022
26023
e6cc62c6
VS
26024
26025ac_ext=cc
4f14bcd8 26026ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26030
26031echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26032echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26033if test "${wx_cv_size_t_is_uint+set}" = set; then
26034 echo $ECHO_N "(cached) $ECHO_C" >&6
26035else
26036
26037 cat >conftest.$ac_ext <<_ACEOF
26038#line $LINENO "configure"
26039/* confdefs.h. */
26040_ACEOF
26041cat confdefs.h >>conftest.$ac_ext
26042cat >>conftest.$ac_ext <<_ACEOF
26043/* end confdefs.h. */
90dd450c 26044#include <stddef.h>
e6cc62c6
VS
26045int
26046main ()
26047{
90dd450c
VZ
26048
26049 return 0; }
26050
26051 struct Foo { void foo(size_t); void foo(unsigned int); };
26052
26053 int bar() {
e6cc62c6
VS
26054
26055 ;
26056 return 0;
26057}
26058_ACEOF
26059rm -f conftest.$ac_objext
26060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26061 (eval $ac_compile) 2>&5
26062 ac_status=$?
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); } &&
26065 { ac_try='test -s conftest.$ac_objext'
26066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26067 (eval $ac_try) 2>&5
26068 ac_status=$?
26069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070 (exit $ac_status); }; }; then
90dd450c 26071 wx_cv_size_t_is_uint=no
698dcdb6 26072else
e6cc62c6
VS
26073 echo "$as_me: failed program was:" >&5
26074sed 's/^/| /' conftest.$ac_ext >&5
26075
26076wx_cv_size_t_is_uint=yes
8284b0c5 26077
247f5006 26078fi
e6cc62c6
VS
26079rm -f conftest.$ac_objext conftest.$ac_ext
26080
a0b9e27f 26081
e6cc62c6
VS
26082fi
26083echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26084echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 26085
90dd450c 26086if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 26087 cat >>confdefs.h <<\_ACEOF
90dd450c 26088#define wxSIZE_T_IS_UINT 1
e6cc62c6 26089_ACEOF
698dcdb6 26090
90dd450c 26091else
e6cc62c6
VS
26092 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26093echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26094if test "${wx_cv_size_t_is_ulong+set}" = set; then
26095 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26096else
e6cc62c6
VS
26097 cat >conftest.$ac_ext <<_ACEOF
26098#line $LINENO "configure"
26099/* confdefs.h. */
26100_ACEOF
26101cat confdefs.h >>conftest.$ac_ext
26102cat >>conftest.$ac_ext <<_ACEOF
26103/* end confdefs.h. */
90dd450c 26104#include <stddef.h>
e6cc62c6
VS
26105int
26106main ()
26107{
90dd450c
VZ
26108
26109 return 0; }
26110
26111 struct Foo { void foo(size_t); void foo(unsigned long); };
26112
26113 int bar() {
e6cc62c6
VS
26114
26115 ;
26116 return 0;
26117}
26118_ACEOF
26119rm -f conftest.$ac_objext
26120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26121 (eval $ac_compile) 2>&5
26122 ac_status=$?
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); } &&
26125 { ac_try='test -s conftest.$ac_objext'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; }; then
90dd450c 26131 wx_cv_size_t_is_ulong=no
698dcdb6 26132else
e6cc62c6
VS
26133 echo "$as_me: failed program was:" >&5
26134sed 's/^/| /' conftest.$ac_ext >&5
26135
26136wx_cv_size_t_is_ulong=yes
26137
247f5006 26138fi
e6cc62c6 26139rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26140
e6cc62c6
VS
26141fi
26142echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26143echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26144
90dd450c 26145 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26146 cat >>confdefs.h <<\_ACEOF
90dd450c 26147#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26148_ACEOF
4f14bcd8
GD
26149
26150 fi
90dd450c 26151fi
1e487827 26152
90dd450c 26153ac_ext=c
4f14bcd8 26154ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26157ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26158
5c6fa7d2 26159
8284b0c5 26160
e6cc62c6
VS
26161echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26162echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26163if test "${wx_cv_struct_pw_gecos+set}" = set; then
26164 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26165else
e6cc62c6
VS
26166
26167 cat >conftest.$ac_ext <<_ACEOF
26168#line $LINENO "configure"
26169/* confdefs.h. */
26170_ACEOF
26171cat confdefs.h >>conftest.$ac_ext
26172cat >>conftest.$ac_ext <<_ACEOF
26173/* end confdefs.h. */
90dd450c 26174#include <pwd.h>
e6cc62c6
VS
26175int
26176main ()
26177{
f6bcfd97 26178
90dd450c
VZ
26179 char *p;
26180 struct passwd *pw;
26181 p = pw->pw_gecos;
e6cc62c6
VS
26182
26183 ;
26184 return 0;
26185}
26186_ACEOF
26187rm -f conftest.$ac_objext
26188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26189 (eval $ac_compile) 2>&5
26190 ac_status=$?
26191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); } &&
26193 { ac_try='test -s conftest.$ac_objext'
26194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195 (eval $ac_try) 2>&5
26196 ac_status=$?
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); }; }; then
26199
90dd450c 26200 wx_cv_struct_pw_gecos=yes
e6cc62c6 26201
10f2d63a 26202else
e6cc62c6
VS
26203 echo "$as_me: failed program was:" >&5
26204sed 's/^/| /' conftest.$ac_ext >&5
26205
26206
90dd450c 26207 wx_cv_struct_pw_gecos=no
e6cc62c6 26208
247f5006
VZ
26209
26210fi
e6cc62c6 26211rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26212
e6cc62c6
VS
26213
26214fi
26215echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26216echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26217
90dd450c 26218if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26219 cat >>confdefs.h <<\_ACEOF
90dd450c 26220#define HAVE_PW_GECOS 1
e6cc62c6 26221_ACEOF
c521c494 26222
90dd450c 26223fi
4f14bcd8 26224
8284b0c5 26225
d29b553b 26226if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26227 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26228#define wxUSE_WCHAR_T 1
e6cc62c6 26229_ACEOF
d74f4b5a 26230
8284b0c5 26231
d74f4b5a
VZ
26232 WCSLEN_FOUND=0
26233 WCHAR_LINK=
e6cc62c6
VS
26234
26235for ac_func in wcslen
7a30264c 26236do
e6cc62c6
VS
26237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26238echo "$as_me:$LINENO: checking for $ac_func" >&5
26239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26240if eval "test \"\${$as_ac_var+set}\" = set"; then
26241 echo $ECHO_N "(cached) $ECHO_C" >&6
26242else
26243 cat >conftest.$ac_ext <<_ACEOF
26244#line $LINENO "configure"
26245/* confdefs.h. */
26246_ACEOF
26247cat confdefs.h >>conftest.$ac_ext
26248cat >>conftest.$ac_ext <<_ACEOF
26249/* end confdefs.h. */
7a30264c 26250/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26251 which can conflict with char $ac_func (); below.
26252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26253 <limits.h> exists even on freestanding compilers. */
26254#ifdef __STDC__
26255# include <limits.h>
26256#else
26257# include <assert.h>
26258#endif
4f14bcd8 26259/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26260#ifdef __cplusplus
26261extern "C"
26262{
26263#endif
4f14bcd8 26264/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26265 builtin and then its argument prototype would still apply. */
26266char $ac_func ();
7a30264c
VZ
26267/* The GNU C library defines this for functions which it implements
26268 to always fail with ENOSYS. Some functions are actually named
26269 something starting with __ and the normal name is an alias. */
26270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26271choke me
26272#else
e6cc62c6
VS
26273char (*f) () = $ac_func;
26274#endif
26275#ifdef __cplusplus
26276}
7a30264c
VZ
26277#endif
26278
e6cc62c6
VS
26279int
26280main ()
26281{
26282return f != $ac_func;
26283 ;
26284 return 0;
26285}
26286_ACEOF
26287rm -f conftest.$ac_objext conftest$ac_exeext
26288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26289 (eval $ac_link) 2>&5
26290 ac_status=$?
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); } &&
26293 { ac_try='test -s conftest$ac_exeext'
26294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26295 (eval $ac_try) 2>&5
26296 ac_status=$?
26297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298 (exit $ac_status); }; }; then
26299 eval "$as_ac_var=yes"
26300else
26301 echo "$as_me: failed program was:" >&5
26302sed 's/^/| /' conftest.$ac_ext >&5
26303
26304eval "$as_ac_var=no"
26305fi
26306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26307fi
26308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26309echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26310if test `eval echo '${'$as_ac_var'}'` = yes; then
26311 cat >>confdefs.h <<_ACEOF
26312#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26313_ACEOF
d74f4b5a 26314 WCSLEN_FOUND=1
7a30264c
VZ
26315fi
26316done
9d8deca0 26317
8284b0c5 26318
d74f4b5a 26319 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26320 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26321 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26322echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26323if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26324 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26325else
e6cc62c6 26326 ac_check_lib_save_LIBS=$LIBS
7a30264c 26327LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26328cat >conftest.$ac_ext <<_ACEOF
26329#line $LINENO "configure"
26330/* confdefs.h. */
26331_ACEOF
26332cat confdefs.h >>conftest.$ac_ext
26333cat >>conftest.$ac_ext <<_ACEOF
26334/* end confdefs.h. */
26335
4f14bcd8 26336/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26337#ifdef __cplusplus
26338extern "C"
26339#endif
4f14bcd8 26340/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26341 builtin and then its argument prototype would still apply. */
26342char wcslen ();
26343int
26344main ()
26345{
26346wcslen ();
26347 ;
26348 return 0;
26349}
26350_ACEOF
26351rm -f conftest.$ac_objext conftest$ac_exeext
26352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26353 (eval $ac_link) 2>&5
26354 ac_status=$?
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); } &&
26357 { ac_try='test -s conftest$ac_exeext'
26358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359 (eval $ac_try) 2>&5
26360 ac_status=$?
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); }; }; then
26363 ac_cv_lib_msvcrt_wcslen=yes
26364else
26365 echo "$as_me: failed program was:" >&5
26366sed 's/^/| /' conftest.$ac_ext >&5
26367
26368ac_cv_lib_msvcrt_wcslen=no
26369fi
26370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26371LIBS=$ac_check_lib_save_LIBS
26372fi
26373echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26374echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26375if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26376 WCHAR_OK=1
d29b553b 26377fi
698dcdb6 26378
7a30264c 26379 else
e6cc62c6
VS
26380 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26381echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26382if test "${ac_cv_lib_w_wcslen+set}" = set; then
26383 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26384else
e6cc62c6 26385 ac_check_lib_save_LIBS=$LIBS
7a30264c 26386LIBS="-lw $LIBS"
e6cc62c6
VS
26387cat >conftest.$ac_ext <<_ACEOF
26388#line $LINENO "configure"
26389/* confdefs.h. */
26390_ACEOF
26391cat confdefs.h >>conftest.$ac_ext
26392cat >>conftest.$ac_ext <<_ACEOF
26393/* end confdefs.h. */
26394
4f14bcd8 26395/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26396#ifdef __cplusplus
26397extern "C"
26398#endif
4f14bcd8 26399/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26400 builtin and then its argument prototype would still apply. */
26401char wcslen ();
26402int
26403main ()
26404{
26405wcslen ();
26406 ;
26407 return 0;
26408}
26409_ACEOF
26410rm -f conftest.$ac_objext conftest$ac_exeext
26411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26412 (eval $ac_link) 2>&5
26413 ac_status=$?
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); } &&
26416 { ac_try='test -s conftest$ac_exeext'
26417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26419 ac_status=$?
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); }; }; then
26422 ac_cv_lib_w_wcslen=yes
26423else
26424 echo "$as_me: failed program was:" >&5
26425sed 's/^/| /' conftest.$ac_ext >&5
26426
26427ac_cv_lib_w_wcslen=no
26428fi
26429rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26430LIBS=$ac_check_lib_save_LIBS
26431fi
26432echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26433echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26434if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26435
7a30264c 26436 WCHAR_LINK=" -lw"
d74f4b5a 26437 WCSLEN_FOUND=1
e6cc62c6 26438
4f14bcd8 26439fi
10f2d63a 26440
7a30264c 26441 fi
d29b553b 26442 fi
95c8801c 26443
d74f4b5a 26444 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26445 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26446#define HAVE_WCSLEN 1
e6cc62c6 26447_ACEOF
10f2d63a 26448
d74f4b5a 26449 fi
52127426 26450
e6cc62c6
VS
26451
26452for ac_func in wcsrtombs
eb4efbdc 26453do
e6cc62c6
VS
26454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26455echo "$as_me:$LINENO: checking for $ac_func" >&5
26456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26457if eval "test \"\${$as_ac_var+set}\" = set"; then
26458 echo $ECHO_N "(cached) $ECHO_C" >&6
26459else
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. */
eb4efbdc 26467/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26468 which can conflict with char $ac_func (); below.
26469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26470 <limits.h> exists even on freestanding compilers. */
26471#ifdef __STDC__
26472# include <limits.h>
26473#else
26474# include <assert.h>
26475#endif
eb4efbdc 26476/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26477#ifdef __cplusplus
26478extern "C"
26479{
26480#endif
4f14bcd8 26481/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26482 builtin and then its argument prototype would still apply. */
26483char $ac_func ();
10f2d63a
VZ
26484/* The GNU C library defines this for functions which it implements
26485 to always fail with ENOSYS. Some functions are actually named
26486 something starting with __ and the normal name is an alias. */
247f5006 26487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26488choke me
26489#else
e6cc62c6
VS
26490char (*f) () = $ac_func;
26491#endif
26492#ifdef __cplusplus
26493}
10f2d63a
VZ
26494#endif
26495
e6cc62c6
VS
26496int
26497main ()
26498{
26499return f != $ac_func;
26500 ;
26501 return 0;
26502}
26503_ACEOF
26504rm -f conftest.$ac_objext conftest$ac_exeext
26505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26506 (eval $ac_link) 2>&5
26507 ac_status=$?
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } &&
26510 { ac_try='test -s conftest$ac_exeext'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; }; then
26516 eval "$as_ac_var=yes"
26517else
26518 echo "$as_me: failed program was:" >&5
26519sed 's/^/| /' conftest.$ac_ext >&5
26520
26521eval "$as_ac_var=no"
26522fi
26523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26524fi
26525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26527if test `eval echo '${'$as_ac_var'}'` = yes; then
26528 cat >>confdefs.h <<_ACEOF
26529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26530_ACEOF
270a909e 26531
4f14bcd8 26532fi
247f5006 26533done
1e487827 26534
af15babd 26535else
e6cc62c6
VS
26536 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26537echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26538fi
52127426 26539
8284b0c5 26540
e6cc62c6
VS
26541
26542ac_ext=cc
247f5006 26543ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26547
af15babd 26548
247f5006
VZ
26549
26550for ac_func in vsnprintf
26551do
e6cc62c6
VS
26552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26553echo "$as_me:$LINENO: checking for $ac_func" >&5
26554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26555if eval "test \"\${$as_ac_var+set}\" = set"; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
26557else
26558 cat >conftest.$ac_ext <<_ACEOF
26559#line $LINENO "configure"
26560/* confdefs.h. */
26561_ACEOF
26562cat confdefs.h >>conftest.$ac_ext
26563cat >>conftest.$ac_ext <<_ACEOF
26564/* end confdefs.h. */
247f5006 26565/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26566 which can conflict with char $ac_func (); below.
26567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26568 <limits.h> exists even on freestanding compilers. */
26569#ifdef __STDC__
26570# include <limits.h>
26571#else
26572# include <assert.h>
26573#endif
247f5006
VZ
26574/* Override any gcc2 internal prototype to avoid an error. */
26575#ifdef __cplusplus
26576extern "C"
e6cc62c6 26577{
247f5006
VZ
26578#endif
26579/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26580 builtin and then its argument prototype would still apply. */
26581char $ac_func ();
247f5006
VZ
26582/* The GNU C library defines this for functions which it implements
26583 to always fail with ENOSYS. Some functions are actually named
26584 something starting with __ and the normal name is an alias. */
26585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26586choke me
26587#else
e6cc62c6
VS
26588char (*f) () = $ac_func;
26589#endif
26590#ifdef __cplusplus
26591}
247f5006 26592#endif
af15babd 26593
e6cc62c6
VS
26594int
26595main ()
26596{
26597return f != $ac_func;
26598 ;
26599 return 0;
26600}
26601_ACEOF
26602rm -f conftest.$ac_objext conftest$ac_exeext
26603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26604 (eval $ac_link) 2>&5
26605 ac_status=$?
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); } &&
26608 { ac_try='test -s conftest$ac_exeext'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; }; then
26614 eval "$as_ac_var=yes"
26615else
26616 echo "$as_me: failed program was:" >&5
26617sed 's/^/| /' conftest.$ac_ext >&5
26618
26619eval "$as_ac_var=no"
26620fi
26621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26622fi
26623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26624echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26625if test `eval echo '${'$as_ac_var'}'` = yes; then
26626 cat >>confdefs.h <<_ACEOF
26627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26628_ACEOF
52127426 26629
5c6fa7d2 26630fi
247f5006 26631done
8284b0c5 26632
4f14bcd8 26633
8d90d2f2 26634if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26635 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26636echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26637if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26638 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26639else
e6cc62c6
VS
26640
26641 cat >conftest.$ac_ext <<_ACEOF
26642#line $LINENO "configure"
26643/* confdefs.h. */
26644_ACEOF
26645cat confdefs.h >>conftest.$ac_ext
26646cat >>conftest.$ac_ext <<_ACEOF
26647/* end confdefs.h. */
8d90d2f2
VZ
26648
26649 #include <stdio.h>
26650 #include <stdarg.h>
e6cc62c6
VS
26651
26652int
26653main ()
26654{
8d90d2f2
VZ
26655
26656 char *buf;
26657 va_list ap;
26658 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26659
26660 ;
26661 return 0;
26662}
26663_ACEOF
26664rm -f conftest.$ac_objext
26665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26666 (eval $ac_compile) 2>&5
26667 ac_status=$?
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); } &&
26670 { ac_try='test -s conftest.$ac_objext'
26671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672 (eval $ac_try) 2>&5
26673 ac_status=$?
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); }; }; then
8d90d2f2
VZ
26676 wx_cv_func_vsnprintf_decl=yes
26677else
e6cc62c6
VS
26678 echo "$as_me: failed program was:" >&5
26679sed 's/^/| /' conftest.$ac_ext >&5
26680
26681wx_cv_func_vsnprintf_decl=no
26682
8d90d2f2 26683fi
e6cc62c6
VS
26684rm -f conftest.$ac_objext conftest.$ac_ext
26685
8d90d2f2 26686
e6cc62c6
VS
26687fi
26688echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26689echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26690
26691 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26692 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26693#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26694_ACEOF
8d90d2f2
VZ
26695
26696 fi
26697fi
26698
247f5006 26699if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26700
26701
26702
26703for ac_func in fputwc wprintf vswprintf
d74f4b5a 26704do
e6cc62c6
VS
26705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26706echo "$as_me:$LINENO: checking for $ac_func" >&5
26707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26708if eval "test \"\${$as_ac_var+set}\" = set"; then
26709 echo $ECHO_N "(cached) $ECHO_C" >&6
26710else
26711 cat >conftest.$ac_ext <<_ACEOF
26712#line $LINENO "configure"
26713/* confdefs.h. */
26714_ACEOF
26715cat confdefs.h >>conftest.$ac_ext
26716cat >>conftest.$ac_ext <<_ACEOF
26717/* end confdefs.h. */
d74f4b5a 26718/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26719 which can conflict with char $ac_func (); below.
26720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26721 <limits.h> exists even on freestanding compilers. */
26722#ifdef __STDC__
26723# include <limits.h>
26724#else
26725# include <assert.h>
26726#endif
d74f4b5a 26727/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26728#ifdef __cplusplus
26729extern "C"
e6cc62c6 26730{
247f5006 26731#endif
d74f4b5a 26732/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26733 builtin and then its argument prototype would still apply. */
26734char $ac_func ();
d74f4b5a
VZ
26735/* The GNU C library defines this for functions which it implements
26736 to always fail with ENOSYS. Some functions are actually named
26737 something starting with __ and the normal name is an alias. */
26738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26739choke me
26740#else
e6cc62c6
VS
26741char (*f) () = $ac_func;
26742#endif
26743#ifdef __cplusplus
26744}
d74f4b5a
VZ
26745#endif
26746
e6cc62c6
VS
26747int
26748main ()
26749{
26750return f != $ac_func;
26751 ;
26752 return 0;
26753}
26754_ACEOF
26755rm -f conftest.$ac_objext conftest$ac_exeext
26756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26757 (eval $ac_link) 2>&5
26758 ac_status=$?
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } &&
26761 { ac_try='test -s conftest$ac_exeext'
26762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26763 (eval $ac_try) 2>&5
26764 ac_status=$?
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); }; }; then
26767 eval "$as_ac_var=yes"
26768else
26769 echo "$as_me: failed program was:" >&5
26770sed 's/^/| /' conftest.$ac_ext >&5
26771
26772eval "$as_ac_var=no"
26773fi
26774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26775fi
26776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26777echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26778if test `eval echo '${'$as_ac_var'}'` = yes; then
26779 cat >>confdefs.h <<_ACEOF
26780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26781_ACEOF
d74f4b5a 26782
d74f4b5a
VZ
26783fi
26784done
26785
8d90d2f2 26786
e6cc62c6
VS
26787 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26788echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26789 cat >conftest.$ac_ext <<_ACEOF
26790#line $LINENO "configure"
26791/* confdefs.h. */
26792_ACEOF
26793cat confdefs.h >>conftest.$ac_ext
26794cat >>conftest.$ac_ext <<_ACEOF
26795/* end confdefs.h. */
79668cae 26796#include <wchar.h>
e6cc62c6
VS
26797int
26798main ()
26799{
79668cae 26800&_vsnwprintf;
e6cc62c6
VS
26801 ;
26802 return 0;
26803}
26804_ACEOF
26805rm -f conftest.$ac_objext
26806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26807 (eval $ac_compile) 2>&5
26808 ac_status=$?
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } &&
26811 { ac_try='test -s conftest.$ac_objext'
26812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26813 (eval $ac_try) 2>&5
26814 ac_status=$?
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); }; }; then
26817 echo "$as_me:$LINENO: result: yes" >&5
26818echo "${ECHO_T}yes" >&6
26819 cat >>confdefs.h <<\_ACEOF
79668cae 26820#define HAVE__VSNWPRINTF 1
e6cc62c6 26821_ACEOF
79668cae
MB
26822
26823else
e6cc62c6
VS
26824 echo "$as_me: failed program was:" >&5
26825sed 's/^/| /' conftest.$ac_ext >&5
26826
26827echo "$as_me:$LINENO: result: no" >&5
26828echo "${ECHO_T}no" >&6
79668cae 26829fi
e6cc62c6 26830rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26831fi
26832
247f5006
VZ
26833ac_ext=c
26834ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26837ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26838
26839
26840
26841
4f14bcd8 26842if test "$TOOLKIT" != "MSW"; then
af15babd 26843
8284b0c5
MB
26844
26845
e6cc62c6
VS
26846
26847ac_ext=cc
4f14bcd8 26848ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26852
52127426 26853
e6cc62c6
VS
26854
26855
26856# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26857if test "${with_libiconv_prefix+set}" = set; then
26858 withval="$with_libiconv_prefix"
e6cc62c6 26859
b040e242
VS
26860 for dir in `echo "$withval" | tr : ' '`; do
26861 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26862 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26863 done
b040e242 26864
e6cc62c6 26865fi;
b040e242 26866
e6cc62c6
VS
26867 echo "$as_me:$LINENO: checking for iconv" >&5
26868echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26869if test "${am_cv_func_iconv+set}" = set; then
26870 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26871else
e6cc62c6 26872
b040e242
VS
26873 am_cv_func_iconv="no, consider installing GNU libiconv"
26874 am_cv_lib_iconv=no
e6cc62c6
VS
26875 cat >conftest.$ac_ext <<_ACEOF
26876#line $LINENO "configure"
26877/* confdefs.h. */
26878_ACEOF
26879cat confdefs.h >>conftest.$ac_ext
26880cat >>conftest.$ac_ext <<_ACEOF
26881/* end confdefs.h. */
b040e242 26882#include <stdlib.h>
4f14bcd8 26883#include <iconv.h>
e6cc62c6
VS
26884int
26885main ()
26886{
b040e242
VS
26887iconv_t cd = iconv_open("","");
26888 iconv(cd,NULL,NULL,NULL,NULL);
26889 iconv_close(cd);
e6cc62c6
VS
26890 ;
26891 return 0;
26892}
26893_ACEOF
26894rm -f conftest.$ac_objext conftest$ac_exeext
26895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26896 (eval $ac_link) 2>&5
26897 ac_status=$?
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } &&
26900 { ac_try='test -s conftest$ac_exeext'
26901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26902 (eval $ac_try) 2>&5
26903 ac_status=$?
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); }; }; then
b040e242 26906 am_cv_func_iconv=yes
af15babd 26907else
e6cc62c6
VS
26908 echo "$as_me: failed program was:" >&5
26909sed 's/^/| /' conftest.$ac_ext >&5
26910
b040e242 26911fi
e6cc62c6 26912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26913 if test "$am_cv_func_iconv" != yes; then
26914 am_save_LIBS="$LIBS"
26915 LIBS="$LIBS -liconv"
e6cc62c6
VS
26916 cat >conftest.$ac_ext <<_ACEOF
26917#line $LINENO "configure"
26918/* confdefs.h. */
26919_ACEOF
26920cat confdefs.h >>conftest.$ac_ext
26921cat >>conftest.$ac_ext <<_ACEOF
26922/* end confdefs.h. */
b040e242
VS
26923#include <stdlib.h>
26924#include <iconv.h>
e6cc62c6
VS
26925int
26926main ()
26927{
b040e242
VS
26928iconv_t cd = iconv_open("","");
26929 iconv(cd,NULL,NULL,NULL,NULL);
26930 iconv_close(cd);
e6cc62c6
VS
26931 ;
26932 return 0;
26933}
26934_ACEOF
26935rm -f conftest.$ac_objext conftest$ac_exeext
26936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26937 (eval $ac_link) 2>&5
26938 ac_status=$?
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); } &&
26941 { ac_try='test -s conftest$ac_exeext'
26942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943 (eval $ac_try) 2>&5
26944 ac_status=$?
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); }; }; then
b040e242
VS
26947 am_cv_lib_iconv=yes
26948 am_cv_func_iconv=yes
26949else
e6cc62c6
VS
26950 echo "$as_me: failed program was:" >&5
26951sed 's/^/| /' conftest.$ac_ext >&5
26952
af15babd 26953fi
e6cc62c6 26954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26955 LIBS="$am_save_LIBS"
26956 fi
247f5006 26957
e6cc62c6
VS
26958fi
26959echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26960echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26961 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26962
26963cat >>confdefs.h <<\_ACEOF
b040e242 26964#define HAVE_ICONV 1
e6cc62c6 26965_ACEOF
b040e242 26966
e6cc62c6
VS
26967 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26968echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26969if test "${wx_cv_func_iconv_const+set}" = set; then
26970 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26971else
e6cc62c6
VS
26972 cat >conftest.$ac_ext <<_ACEOF
26973#line $LINENO "configure"
26974/* confdefs.h. */
26975_ACEOF
26976cat confdefs.h >>conftest.$ac_ext
26977cat >>conftest.$ac_ext <<_ACEOF
26978/* end confdefs.h. */
b040e242
VS
26979
26980#include <stdlib.h>
26981#include <iconv.h>
26982extern
26983#ifdef __cplusplus
26984"C"
26985#endif
26986#if defined(__STDC__) || defined(__cplusplus)
26987size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26988#else
26989size_t iconv();
26990#endif
af15babd 26991
e6cc62c6
VS
26992int
26993main ()
26994{
26995
26996 ;
26997 return 0;
26998}
26999_ACEOF
27000rm -f conftest.$ac_objext
27001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27002 (eval $ac_compile) 2>&5
27003 ac_status=$?
27004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 (exit $ac_status); } &&
27006 { ac_try='test -s conftest.$ac_objext'
27007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27008 (eval $ac_try) 2>&5
27009 ac_status=$?
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); }; }; then
b7043674 27012 wx_cv_func_iconv_const="no"
b040e242 27013else
e6cc62c6
VS
27014 echo "$as_me: failed program was:" >&5
27015sed 's/^/| /' conftest.$ac_ext >&5
27016
27017wx_cv_func_iconv_const="yes"
27018
247f5006 27019fi
e6cc62c6 27020rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27021
e6cc62c6
VS
27022fi
27023echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27024echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
27025
27026 iconv_const=
1c405bb5 27027 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
27028 iconv_const="const"
27029 fi
27030
e6cc62c6
VS
27031
27032cat >>confdefs.h <<_ACEOF
f09359cf 27033#define ICONV_CONST $iconv_const
e6cc62c6 27034_ACEOF
b040e242
VS
27035
27036 fi
27037 LIBICONV=
27038 if test "$am_cv_lib_iconv" = yes; then
27039 LIBICONV="-liconv"
27040 fi
e6cc62c6 27041
b040e242
VS
27042
27043LIBS="$LIBICONV $LIBS"
4f14bcd8 27044ac_ext=c
4f14bcd8 27045ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27048ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27049
5c6fa7d2 27050
8284b0c5 27051if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
27052
27053for ac_func in sigaction
af15babd 27054do
e6cc62c6
VS
27055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27056echo "$as_me:$LINENO: checking for $ac_func" >&5
27057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27058if eval "test \"\${$as_ac_var+set}\" = set"; then
27059 echo $ECHO_N "(cached) $ECHO_C" >&6
27060else
27061 cat >conftest.$ac_ext <<_ACEOF
27062#line $LINENO "configure"
27063/* confdefs.h. */
27064_ACEOF
27065cat confdefs.h >>conftest.$ac_ext
27066cat >>conftest.$ac_ext <<_ACEOF
27067/* end confdefs.h. */
af15babd 27068/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27069 which can conflict with char $ac_func (); below.
27070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27071 <limits.h> exists even on freestanding compilers. */
27072#ifdef __STDC__
27073# include <limits.h>
27074#else
27075# include <assert.h>
27076#endif
af15babd 27077/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27078#ifdef __cplusplus
27079extern "C"
27080{
27081#endif
af15babd 27082/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27083 builtin and then its argument prototype would still apply. */
27084char $ac_func ();
af15babd
VZ
27085/* The GNU C library defines this for functions which it implements
27086 to always fail with ENOSYS. Some functions are actually named
27087 something starting with __ and the normal name is an alias. */
27088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27089choke me
27090#else
e6cc62c6
VS
27091char (*f) () = $ac_func;
27092#endif
27093#ifdef __cplusplus
27094}
af15babd
VZ
27095#endif
27096
e6cc62c6
VS
27097int
27098main ()
27099{
27100return f != $ac_func;
27101 ;
27102 return 0;
27103}
27104_ACEOF
27105rm -f conftest.$ac_objext conftest$ac_exeext
27106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27107 (eval $ac_link) 2>&5
27108 ac_status=$?
27109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110 (exit $ac_status); } &&
27111 { ac_try='test -s conftest$ac_exeext'
27112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27113 (eval $ac_try) 2>&5
27114 ac_status=$?
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); }; }; then
27117 eval "$as_ac_var=yes"
27118else
27119 echo "$as_me: failed program was:" >&5
27120sed 's/^/| /' conftest.$ac_ext >&5
27121
27122eval "$as_ac_var=no"
27123fi
27124rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27125fi
27126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27127echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27128if test `eval echo '${'$as_ac_var'}'` = yes; then
27129 cat >>confdefs.h <<_ACEOF
27130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27131_ACEOF
7b4a847f 27132
4f14bcd8
GD
27133fi
27134done
27135
8284b0c5 27136
4f14bcd8 27137 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27138 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27139echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27140 wxUSE_ON_FATAL_EXCEPTION=no
27141 fi
27142
27143 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27144
27145
27146 ac_ext=cc
5c6fa7d2 27147ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27151
5c6fa7d2 27152
e6cc62c6
VS
27153 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27154echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27155if test "${wx_cv_type_sa_handler+set}" = set; then
27156 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27157else
e6cc62c6
VS
27158
27159 cat >conftest.$ac_ext <<_ACEOF
27160#line $LINENO "configure"
27161/* confdefs.h. */
27162_ACEOF
27163cat confdefs.h >>conftest.$ac_ext
27164cat >>conftest.$ac_ext <<_ACEOF
27165/* end confdefs.h. */
4f14bcd8 27166#include <signal.h>
e6cc62c6
VS
27167int
27168main ()
27169{
4f14bcd8
GD
27170
27171 extern void testSigHandler(int);
27172
27173 struct sigaction sa;
27174 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27175
27176 ;
27177 return 0;
27178}
27179_ACEOF
27180rm -f conftest.$ac_objext
27181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182 (eval $ac_compile) 2>&5
27183 ac_status=$?
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } &&
27186 { ac_try='test -s conftest.$ac_objext'
27187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188 (eval $ac_try) 2>&5
27189 ac_status=$?
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); }; }; then
27192
4f14bcd8 27193 wx_cv_type_sa_handler=int
e6cc62c6 27194
af15babd 27195else
e6cc62c6
VS
27196 echo "$as_me: failed program was:" >&5
27197sed 's/^/| /' conftest.$ac_ext >&5
27198
27199
4f14bcd8 27200 wx_cv_type_sa_handler=void
e6cc62c6 27201
247f5006 27202fi
e6cc62c6 27203rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27204
e6cc62c6
VS
27205fi
27206echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27207echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27208
27209 ac_ext=c
4f14bcd8 27210ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27213ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27214
8284b0c5 27215
e6cc62c6 27216 cat >>confdefs.h <<_ACEOF
4f14bcd8 27217#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27218_ACEOF
af15babd 27219
4f14bcd8
GD
27220 fi
27221fi
af15babd 27222
e6cc62c6
VS
27223
27224
a1d22ad7 27225for ac_func in mkstemp mktemp
af15babd 27226do
e6cc62c6
VS
27227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27228echo "$as_me:$LINENO: checking for $ac_func" >&5
27229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27230if eval "test \"\${$as_ac_var+set}\" = set"; then
27231 echo $ECHO_N "(cached) $ECHO_C" >&6
27232else
27233 cat >conftest.$ac_ext <<_ACEOF
27234#line $LINENO "configure"
27235/* confdefs.h. */
27236_ACEOF
27237cat confdefs.h >>conftest.$ac_ext
27238cat >>conftest.$ac_ext <<_ACEOF
27239/* end confdefs.h. */
af15babd 27240/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27241 which can conflict with char $ac_func (); below.
27242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27243 <limits.h> exists even on freestanding compilers. */
27244#ifdef __STDC__
27245# include <limits.h>
27246#else
27247# include <assert.h>
27248#endif
af15babd 27249/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27250#ifdef __cplusplus
27251extern "C"
27252{
27253#endif
af15babd 27254/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27255 builtin and then its argument prototype would still apply. */
27256char $ac_func ();
af15babd
VZ
27257/* The GNU C library defines this for functions which it implements
27258 to always fail with ENOSYS. Some functions are actually named
27259 something starting with __ and the normal name is an alias. */
27260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27261choke me
27262#else
e6cc62c6
VS
27263char (*f) () = $ac_func;
27264#endif
27265#ifdef __cplusplus
27266}
af15babd
VZ
27267#endif
27268
e6cc62c6
VS
27269int
27270main ()
27271{
27272return f != $ac_func;
27273 ;
27274 return 0;
27275}
27276_ACEOF
27277rm -f conftest.$ac_objext conftest$ac_exeext
27278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27279 (eval $ac_link) 2>&5
27280 ac_status=$?
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); } &&
27283 { ac_try='test -s conftest$ac_exeext'
27284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27285 (eval $ac_try) 2>&5
27286 ac_status=$?
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); }; }; then
27289 eval "$as_ac_var=yes"
27290else
27291 echo "$as_me: failed program was:" >&5
27292sed 's/^/| /' conftest.$ac_ext >&5
27293
27294eval "$as_ac_var=no"
27295fi
27296rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27297fi
27298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27299echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27300if test `eval echo '${'$as_ac_var'}'` = yes; then
27301 cat >>confdefs.h <<_ACEOF
27302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27303_ACEOF
ade35f11 27304 break
ade35f11
VZ
27305fi
27306done
27307
8284b0c5 27308
e6cc62c6
VS
27309echo "$as_me:$LINENO: checking for statfs" >&5
27310echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27311if test "${wx_cv_func_statfs+set}" = set; then
27312 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27313else
e6cc62c6
VS
27314 cat >conftest.$ac_ext <<_ACEOF
27315#line $LINENO "configure"
27316/* confdefs.h. */
27317_ACEOF
27318cat confdefs.h >>conftest.$ac_ext
27319cat >>conftest.$ac_ext <<_ACEOF
27320/* end confdefs.h. */
4f14bcd8
GD
27321
27322 #if defined(__BSD__)
27323 #include <sys/param.h>
27324 #include <sys/mount.h>
27325 #else
27326 #include <sys/vfs.h>
27327 #endif
e6cc62c6
VS
27328
27329int
27330main ()
27331{
4f14bcd8
GD
27332
27333 long l;
27334 struct statfs fs;
27335 statfs("/", &fs);
27336 l = fs.f_bsize;
27337 l += fs.f_blocks;
27338 l += fs.f_bavail;
e6cc62c6
VS
27339
27340 ;
27341 return 0;
27342}
27343_ACEOF
27344rm -f conftest.$ac_objext
27345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27346 (eval $ac_compile) 2>&5
27347 ac_status=$?
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); } &&
27350 { ac_try='test -s conftest.$ac_objext'
27351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27352 (eval $ac_try) 2>&5
27353 ac_status=$?
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); }; }; then
27356
4f14bcd8 27357 wx_cv_func_statfs=yes
e6cc62c6 27358
4f14bcd8 27359else
e6cc62c6
VS
27360 echo "$as_me: failed program was:" >&5
27361sed 's/^/| /' conftest.$ac_ext >&5
27362
27363
4f14bcd8 27364 wx_cv_func_statfs=no
e6cc62c6 27365
8284b0c5 27366
247f5006 27367fi
e6cc62c6 27368rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27369
e6cc62c6
VS
27370fi
27371echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27372echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27373
27374if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27375 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27376 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27377#define HAVE_STATFS 1
e6cc62c6 27378_ACEOF
4f14bcd8
GD
27379
27380else
e6cc62c6
VS
27381 echo "$as_me:$LINENO: checking for statvfs" >&5
27382echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27383if test "${wx_cv_func_statvfs+set}" = set; then
27384 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27385else
e6cc62c6
VS
27386 cat >conftest.$ac_ext <<_ACEOF
27387#line $LINENO "configure"
27388/* confdefs.h. */
27389_ACEOF
27390cat confdefs.h >>conftest.$ac_ext
27391cat >>conftest.$ac_ext <<_ACEOF
27392/* end confdefs.h. */
af15babd 27393
54ab82b3
VZ
27394 #include <stddef.h>
27395 #include <sys/statvfs.h>
e6cc62c6
VS
27396
27397int
27398main ()
27399{
af15babd 27400
54ab82b3 27401 statvfs("/", NULL);
e6cc62c6
VS
27402
27403 ;
27404 return 0;
27405}
27406_ACEOF
27407rm -f conftest.$ac_objext
27408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27409 (eval $ac_compile) 2>&5
27410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); } &&
27413 { ac_try='test -s conftest.$ac_objext'
27414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27415 (eval $ac_try) 2>&5
27416 ac_status=$?
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; }; then
54ab82b3 27419 wx_cv_func_statvfs=yes
af15babd 27420else
e6cc62c6
VS
27421 echo "$as_me: failed program was:" >&5
27422sed 's/^/| /' conftest.$ac_ext >&5
27423
27424wx_cv_func_statvfs=no
27425
247f5006 27426fi
e6cc62c6 27427rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27428
e6cc62c6
VS
27429fi
27430echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27431echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27432
4f14bcd8 27433 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27434
27435
27436 ac_ext=cc
54ab82b3 27437ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27441
27442
e6cc62c6
VS
27443 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27444echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27445if test "${wx_cv_type_statvfs_t+set}" = set; then
27446 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27447else
e6cc62c6
VS
27448 cat >conftest.$ac_ext <<_ACEOF
27449#line $LINENO "configure"
27450/* confdefs.h. */
27451_ACEOF
27452cat confdefs.h >>conftest.$ac_ext
27453cat >>conftest.$ac_ext <<_ACEOF
27454/* end confdefs.h. */
54ab82b3
VZ
27455
27456 #include <sys/statvfs.h>
e6cc62c6
VS
27457
27458int
27459main ()
27460{
54ab82b3
VZ
27461
27462 long l;
27463 statvfs_t fs;
27464 statvfs("/", &fs);
27465 l = fs.f_bsize;
27466 l += fs.f_blocks;
27467 l += fs.f_bavail;
e6cc62c6
VS
27468
27469 ;
27470 return 0;
27471}
27472_ACEOF
27473rm -f conftest.$ac_objext
27474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27475 (eval $ac_compile) 2>&5
27476 ac_status=$?
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); } &&
27479 { ac_try='test -s conftest.$ac_objext'
27480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; }; then
54ab82b3
VZ
27485 wx_cv_type_statvfs_t=statvfs_t
27486else
e6cc62c6
VS
27487 echo "$as_me: failed program was:" >&5
27488sed 's/^/| /' conftest.$ac_ext >&5
27489
27490
27491 cat >conftest.$ac_ext <<_ACEOF
27492#line $LINENO "configure"
27493/* confdefs.h. */
27494_ACEOF
27495cat confdefs.h >>conftest.$ac_ext
27496cat >>conftest.$ac_ext <<_ACEOF
27497/* end confdefs.h. */
54ab82b3
VZ
27498
27499 #include <sys/statvfs.h>
e6cc62c6
VS
27500
27501int
27502main ()
27503{
54ab82b3
VZ
27504
27505 long l;
65d8ef1e 27506 struct statvfs fs;
54ab82b3
VZ
27507 statvfs("/", &fs);
27508 l = fs.f_bsize;
27509 l += fs.f_blocks;
27510 l += fs.f_bavail;
e6cc62c6
VS
27511
27512 ;
27513 return 0;
27514}
27515_ACEOF
27516rm -f conftest.$ac_objext
27517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27518 (eval $ac_compile) 2>&5
27519 ac_status=$?
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); } &&
27522 { ac_try='test -s conftest.$ac_objext'
27523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524 (eval $ac_try) 2>&5
27525 ac_status=$?
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); }; }; then
54ab82b3
VZ
27528 wx_cv_type_statvfs_t="struct statvfs"
27529else
e6cc62c6
VS
27530 echo "$as_me: failed program was:" >&5
27531sed 's/^/| /' conftest.$ac_ext >&5
27532
27533wx_cv_type_statvfs_t="unknown"
27534
54ab82b3 27535fi
e6cc62c6
VS
27536rm -f conftest.$ac_objext conftest.$ac_ext
27537
27538
54ab82b3 27539fi
e6cc62c6 27540rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27541
e6cc62c6
VS
27542fi
27543echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27544echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27545
27546 ac_ext=c
54ab82b3 27547ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27550ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27551
27552
27553 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27554 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27555#define HAVE_STATVFS 1
e6cc62c6 27556_ACEOF
af15babd 27557
54ab82b3 27558 fi
4f14bcd8 27559 else
54ab82b3 27560 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27561 fi
27562fi
af15babd 27563
54ab82b3 27564if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27565 cat >>confdefs.h <<_ACEOF
54ab82b3 27566#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27567_ACEOF
54ab82b3
VZ
27568
27569else
e6cc62c6
VS
27570 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27571echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27572fi
27573
4f14bcd8 27574if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27575
27576
27577for ac_func in fcntl flock
af15babd 27578do
e6cc62c6
VS
27579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27580echo "$as_me:$LINENO: checking for $ac_func" >&5
27581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27582if eval "test \"\${$as_ac_var+set}\" = set"; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
27584else
27585 cat >conftest.$ac_ext <<_ACEOF
27586#line $LINENO "configure"
27587/* confdefs.h. */
27588_ACEOF
27589cat confdefs.h >>conftest.$ac_ext
27590cat >>conftest.$ac_ext <<_ACEOF
27591/* end confdefs.h. */
af15babd 27592/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27593 which can conflict with char $ac_func (); below.
27594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27595 <limits.h> exists even on freestanding compilers. */
27596#ifdef __STDC__
27597# include <limits.h>
27598#else
27599# include <assert.h>
27600#endif
af15babd 27601/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27602#ifdef __cplusplus
27603extern "C"
27604{
27605#endif
af15babd 27606/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27607 builtin and then its argument prototype would still apply. */
27608char $ac_func ();
af15babd
VZ
27609/* The GNU C library defines this for functions which it implements
27610 to always fail with ENOSYS. Some functions are actually named
27611 something starting with __ and the normal name is an alias. */
27612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27613choke me
27614#else
e6cc62c6
VS
27615char (*f) () = $ac_func;
27616#endif
27617#ifdef __cplusplus
27618}
af15babd
VZ
27619#endif
27620
e6cc62c6
VS
27621int
27622main ()
27623{
27624return f != $ac_func;
27625 ;
27626 return 0;
27627}
27628_ACEOF
27629rm -f conftest.$ac_objext conftest$ac_exeext
27630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27631 (eval $ac_link) 2>&5
27632 ac_status=$?
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); } &&
27635 { ac_try='test -s conftest$ac_exeext'
27636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637 (eval $ac_try) 2>&5
27638 ac_status=$?
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); }; }; then
27641 eval "$as_ac_var=yes"
27642else
27643 echo "$as_me: failed program was:" >&5
27644sed 's/^/| /' conftest.$ac_ext >&5
27645
27646eval "$as_ac_var=no"
27647fi
27648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27649fi
27650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27651echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27652if test `eval echo '${'$as_ac_var'}'` = yes; then
27653 cat >>confdefs.h <<_ACEOF
27654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27655_ACEOF
4f14bcd8 27656 break
af15babd
VZ
27657fi
27658done
27659
8284b0c5 27660
4f14bcd8 27661 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27662 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27663echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27664 wxUSE_SNGLINST_CHECKER=no
27665 fi
27666fi
af15babd 27667
e6cc62c6 27668
4f14bcd8 27669for ac_func in timegm
af15babd 27670do
e6cc62c6
VS
27671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27672echo "$as_me:$LINENO: checking for $ac_func" >&5
27673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27674if eval "test \"\${$as_ac_var+set}\" = set"; then
27675 echo $ECHO_N "(cached) $ECHO_C" >&6
27676else
27677 cat >conftest.$ac_ext <<_ACEOF
27678#line $LINENO "configure"
27679/* confdefs.h. */
27680_ACEOF
27681cat confdefs.h >>conftest.$ac_ext
27682cat >>conftest.$ac_ext <<_ACEOF
27683/* end confdefs.h. */
af15babd 27684/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27685 which can conflict with char $ac_func (); below.
27686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27687 <limits.h> exists even on freestanding compilers. */
27688#ifdef __STDC__
27689# include <limits.h>
27690#else
27691# include <assert.h>
27692#endif
af15babd 27693/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27694#ifdef __cplusplus
27695extern "C"
27696{
27697#endif
af15babd 27698/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27699 builtin and then its argument prototype would still apply. */
27700char $ac_func ();
af15babd
VZ
27701/* The GNU C library defines this for functions which it implements
27702 to always fail with ENOSYS. Some functions are actually named
27703 something starting with __ and the normal name is an alias. */
247f5006
VZ
27704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27705choke me
27706#else
e6cc62c6
VS
27707char (*f) () = $ac_func;
27708#endif
27709#ifdef __cplusplus
27710}
247f5006
VZ
27711#endif
27712
e6cc62c6
VS
27713int
27714main ()
27715{
27716return f != $ac_func;
27717 ;
27718 return 0;
27719}
27720_ACEOF
27721rm -f conftest.$ac_objext conftest$ac_exeext
27722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27723 (eval $ac_link) 2>&5
27724 ac_status=$?
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); } &&
27727 { ac_try='test -s conftest$ac_exeext'
27728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729 (eval $ac_try) 2>&5
27730 ac_status=$?
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; }; then
27733 eval "$as_ac_var=yes"
27734else
27735 echo "$as_me: failed program was:" >&5
27736sed 's/^/| /' conftest.$ac_ext >&5
27737
27738eval "$as_ac_var=no"
27739fi
27740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27741fi
27742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27744if test `eval echo '${'$as_ac_var'}'` = yes; then
27745 cat >>confdefs.h <<_ACEOF
27746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27747_ACEOF
703e0a69 27748
af15babd
VZ
27749fi
27750done
27751
8284b0c5 27752
e6cc62c6
VS
27753
27754
4f14bcd8 27755for ac_func in putenv setenv
10f2d63a 27756do
e6cc62c6
VS
27757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27758echo "$as_me:$LINENO: checking for $ac_func" >&5
27759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27760if eval "test \"\${$as_ac_var+set}\" = set"; then
27761 echo $ECHO_N "(cached) $ECHO_C" >&6
27762else
27763 cat >conftest.$ac_ext <<_ACEOF
27764#line $LINENO "configure"
27765/* confdefs.h. */
27766_ACEOF
27767cat confdefs.h >>conftest.$ac_ext
27768cat >>conftest.$ac_ext <<_ACEOF
27769/* end confdefs.h. */
af15babd 27770/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27771 which can conflict with char $ac_func (); below.
27772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27773 <limits.h> exists even on freestanding compilers. */
27774#ifdef __STDC__
27775# include <limits.h>
27776#else
27777# include <assert.h>
27778#endif
af15babd 27779/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27780#ifdef __cplusplus
27781extern "C"
27782{
27783#endif
af15babd 27784/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27785 builtin and then its argument prototype would still apply. */
27786char $ac_func ();
af15babd
VZ
27787/* The GNU C library defines this for functions which it implements
27788 to always fail with ENOSYS. Some functions are actually named
27789 something starting with __ and the normal name is an alias. */
27790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27791choke me
27792#else
e6cc62c6
VS
27793char (*f) () = $ac_func;
27794#endif
27795#ifdef __cplusplus
27796}
af15babd
VZ
27797#endif
27798
e6cc62c6
VS
27799int
27800main ()
27801{
27802return f != $ac_func;
27803 ;
27804 return 0;
27805}
27806_ACEOF
27807rm -f conftest.$ac_objext conftest$ac_exeext
27808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27809 (eval $ac_link) 2>&5
27810 ac_status=$?
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); } &&
27813 { ac_try='test -s conftest$ac_exeext'
27814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27815 (eval $ac_try) 2>&5
27816 ac_status=$?
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); }; }; then
27819 eval "$as_ac_var=yes"
27820else
27821 echo "$as_me: failed program was:" >&5
27822sed 's/^/| /' conftest.$ac_ext >&5
27823
27824eval "$as_ac_var=no"
27825fi
27826rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27827fi
27828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27829echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27830if test `eval echo '${'$as_ac_var'}'` = yes; then
27831 cat >>confdefs.h <<_ACEOF
27832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27833_ACEOF
4f14bcd8 27834 break
af15babd 27835fi
af15babd
VZ
27836done
27837
8284b0c5 27838
4f14bcd8
GD
27839HAVE_SOME_SLEEP_FUNC=0
27840if test "$USE_BEOS" = 1; then
e6cc62c6 27841 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27842#define HAVE_SLEEP 1
e6cc62c6 27843_ACEOF
af15babd 27844
4f14bcd8 27845 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27846fi
27847
4f14bcd8 27848if test "$USE_DARWIN" = 1; then
e6cc62c6 27849 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27850#define HAVE_USLEEP 1
e6cc62c6 27851_ACEOF
10f2d63a 27852
4f14bcd8 27853 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27854fi
27855
4f14bcd8
GD
27856if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27857 POSIX4_LINK=
e6cc62c6
VS
27858
27859for ac_func in nanosleep
4f14bcd8 27860do
e6cc62c6
VS
27861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27862echo "$as_me:$LINENO: checking for $ac_func" >&5
27863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27864if eval "test \"\${$as_ac_var+set}\" = set"; then
27865 echo $ECHO_N "(cached) $ECHO_C" >&6
27866else
27867 cat >conftest.$ac_ext <<_ACEOF
27868#line $LINENO "configure"
27869/* confdefs.h. */
27870_ACEOF
27871cat confdefs.h >>conftest.$ac_ext
27872cat >>conftest.$ac_ext <<_ACEOF
27873/* end confdefs.h. */
4f14bcd8 27874/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27875 which can conflict with char $ac_func (); below.
27876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27877 <limits.h> exists even on freestanding compilers. */
27878#ifdef __STDC__
27879# include <limits.h>
27880#else
27881# include <assert.h>
27882#endif
10f2d63a 27883/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27884#ifdef __cplusplus
27885extern "C"
27886{
27887#endif
10f2d63a 27888/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27889 builtin and then its argument prototype would still apply. */
27890char $ac_func ();
4f14bcd8
GD
27891/* The GNU C library defines this for functions which it implements
27892 to always fail with ENOSYS. Some functions are actually named
27893 something starting with __ and the normal name is an alias. */
27894#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27895choke me
27896#else
e6cc62c6
VS
27897char (*f) () = $ac_func;
27898#endif
27899#ifdef __cplusplus
27900}
4f14bcd8
GD
27901#endif
27902
e6cc62c6
VS
27903int
27904main ()
27905{
27906return f != $ac_func;
27907 ;
27908 return 0;
27909}
27910_ACEOF
27911rm -f conftest.$ac_objext conftest$ac_exeext
27912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27913 (eval $ac_link) 2>&5
27914 ac_status=$?
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); } &&
27917 { ac_try='test -s conftest$ac_exeext'
27918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27919 (eval $ac_try) 2>&5
27920 ac_status=$?
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; }; then
27923 eval "$as_ac_var=yes"
27924else
27925 echo "$as_me: failed program was:" >&5
27926sed 's/^/| /' conftest.$ac_ext >&5
27927
27928eval "$as_ac_var=no"
27929fi
27930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27931fi
27932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27933echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27934if test `eval echo '${'$as_ac_var'}'` = yes; then
27935 cat >>confdefs.h <<_ACEOF
27936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27937_ACEOF
27938 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27939#define HAVE_NANOSLEEP 1
e6cc62c6 27940_ACEOF
4f14bcd8 27941
10f2d63a 27942else
e6cc62c6
VS
27943
27944 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27945echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27946if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27947 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27948else
e6cc62c6 27949 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27950LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27951cat >conftest.$ac_ext <<_ACEOF
27952#line $LINENO "configure"
27953/* confdefs.h. */
27954_ACEOF
27955cat confdefs.h >>conftest.$ac_ext
27956cat >>conftest.$ac_ext <<_ACEOF
27957/* end confdefs.h. */
27958
10f2d63a 27959/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27960#ifdef __cplusplus
27961extern "C"
27962#endif
10f2d63a 27963/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27964 builtin and then its argument prototype would still apply. */
27965char nanosleep ();
27966int
27967main ()
27968{
27969nanosleep ();
27970 ;
27971 return 0;
27972}
27973_ACEOF
27974rm -f conftest.$ac_objext conftest$ac_exeext
27975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27976 (eval $ac_link) 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } &&
27980 { ac_try='test -s conftest$ac_exeext'
27981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27982 (eval $ac_try) 2>&5
27983 ac_status=$?
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; }; then
27986 ac_cv_lib_posix4_nanosleep=yes
27987else
27988 echo "$as_me: failed program was:" >&5
27989sed 's/^/| /' conftest.$ac_ext >&5
27990
27991ac_cv_lib_posix4_nanosleep=no
27992fi
27993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27994LIBS=$ac_check_lib_save_LIBS
27995fi
27996echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27997echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27998if test $ac_cv_lib_posix4_nanosleep = yes; then
27999
28000 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28001#define HAVE_NANOSLEEP 1
e6cc62c6 28002_ACEOF
4f14bcd8 28003
3d63bc3a 28004 POSIX4_LINK=" -lposix4"
e6cc62c6 28005
10f2d63a 28006else
10f2d63a 28007
e6cc62c6
VS
28008
28009for ac_func in usleep
4f14bcd8 28010do
e6cc62c6
VS
28011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28012echo "$as_me:$LINENO: checking for $ac_func" >&5
28013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28014if eval "test \"\${$as_ac_var+set}\" = set"; then
28015 echo $ECHO_N "(cached) $ECHO_C" >&6
28016else
28017 cat >conftest.$ac_ext <<_ACEOF
28018#line $LINENO "configure"
28019/* confdefs.h. */
28020_ACEOF
28021cat confdefs.h >>conftest.$ac_ext
28022cat >>conftest.$ac_ext <<_ACEOF
28023/* end confdefs.h. */
4f14bcd8 28024/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28025 which can conflict with char $ac_func (); below.
28026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28027 <limits.h> exists even on freestanding compilers. */
28028#ifdef __STDC__
28029# include <limits.h>
28030#else
28031# include <assert.h>
28032#endif
4f14bcd8 28033/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28034#ifdef __cplusplus
28035extern "C"
28036{
28037#endif
4f14bcd8 28038/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28039 builtin and then its argument prototype would still apply. */
28040char $ac_func ();
4f14bcd8
GD
28041/* The GNU C library defines this for functions which it implements
28042 to always fail with ENOSYS. Some functions are actually named
28043 something starting with __ and the normal name is an alias. */
28044#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28045choke me
28046#else
e6cc62c6
VS
28047char (*f) () = $ac_func;
28048#endif
28049#ifdef __cplusplus
28050}
4f14bcd8
GD
28051#endif
28052
e6cc62c6
VS
28053int
28054main ()
28055{
28056return f != $ac_func;
28057 ;
28058 return 0;
28059}
28060_ACEOF
28061rm -f conftest.$ac_objext conftest$ac_exeext
28062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28063 (eval $ac_link) 2>&5
28064 ac_status=$?
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } &&
28067 { ac_try='test -s conftest$ac_exeext'
28068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069 (eval $ac_try) 2>&5
28070 ac_status=$?
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; }; then
28073 eval "$as_ac_var=yes"
28074else
28075 echo "$as_me: failed program was:" >&5
28076sed 's/^/| /' conftest.$ac_ext >&5
28077
28078eval "$as_ac_var=no"
28079fi
28080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28081fi
28082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28084if test `eval echo '${'$as_ac_var'}'` = yes; then
28085 cat >>confdefs.h <<_ACEOF
28086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28087_ACEOF
28088 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28089#define HAVE_USLEEP 1
e6cc62c6 28090_ACEOF
4f14bcd8 28091
698dcdb6 28092else
e6cc62c6
VS
28093 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28094echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28095
10f2d63a 28096fi
4f14bcd8 28097done
10f2d63a 28098
e6cc62c6
VS
28099
28100
6232543b 28101fi
10f2d63a 28102
e6cc62c6
VS
28103
28104
1e487827 28105fi
4f14bcd8 28106done
703e0a69 28107
10f2d63a
VZ
28108fi
28109
e6cc62c6
VS
28110
28111
4f14bcd8 28112for ac_func in uname gethostname
70846f0a 28113do
e6cc62c6
VS
28114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28115echo "$as_me:$LINENO: checking for $ac_func" >&5
28116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28117if eval "test \"\${$as_ac_var+set}\" = set"; then
28118 echo $ECHO_N "(cached) $ECHO_C" >&6
28119else
28120 cat >conftest.$ac_ext <<_ACEOF
28121#line $LINENO "configure"
28122/* confdefs.h. */
28123_ACEOF
28124cat confdefs.h >>conftest.$ac_ext
28125cat >>conftest.$ac_ext <<_ACEOF
28126/* end confdefs.h. */
70846f0a 28127/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28128 which can conflict with char $ac_func (); below.
28129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28130 <limits.h> exists even on freestanding compilers. */
28131#ifdef __STDC__
28132# include <limits.h>
28133#else
28134# include <assert.h>
28135#endif
70846f0a 28136/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28137#ifdef __cplusplus
28138extern "C"
28139{
28140#endif
70846f0a 28141/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28142 builtin and then its argument prototype would still apply. */
28143char $ac_func ();
70846f0a
VZ
28144/* The GNU C library defines this for functions which it implements
28145 to always fail with ENOSYS. Some functions are actually named
28146 something starting with __ and the normal name is an alias. */
28147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28148choke me
28149#else
e6cc62c6
VS
28150char (*f) () = $ac_func;
28151#endif
28152#ifdef __cplusplus
28153}
70846f0a
VZ
28154#endif
28155
e6cc62c6
VS
28156int
28157main ()
28158{
28159return f != $ac_func;
28160 ;
28161 return 0;
28162}
28163_ACEOF
28164rm -f conftest.$ac_objext conftest$ac_exeext
28165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28166 (eval $ac_link) 2>&5
28167 ac_status=$?
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); } &&
28170 { ac_try='test -s conftest$ac_exeext'
28171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28172 (eval $ac_try) 2>&5
28173 ac_status=$?
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); }; }; then
28176 eval "$as_ac_var=yes"
28177else
28178 echo "$as_me: failed program was:" >&5
28179sed 's/^/| /' conftest.$ac_ext >&5
28180
28181eval "$as_ac_var=no"
28182fi
28183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28184fi
28185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28186echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28187if test `eval echo '${'$as_ac_var'}'` = yes; then
28188 cat >>confdefs.h <<_ACEOF
28189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28190_ACEOF
4f14bcd8 28191 break
70846f0a
VZ
28192fi
28193done
28194
8284b0c5
MB
28195
28196
e6cc62c6
VS
28197
28198ac_ext=cc
4f14bcd8 28199ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28203
8284b0c5 28204
4f14bcd8
GD
28205
28206for ac_func in strtok_r
10f2d63a 28207do
e6cc62c6
VS
28208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28209echo "$as_me:$LINENO: checking for $ac_func" >&5
28210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28211if eval "test \"\${$as_ac_var+set}\" = set"; then
28212 echo $ECHO_N "(cached) $ECHO_C" >&6
28213else
28214 cat >conftest.$ac_ext <<_ACEOF
28215#line $LINENO "configure"
28216/* confdefs.h. */
28217_ACEOF
28218cat confdefs.h >>conftest.$ac_ext
28219cat >>conftest.$ac_ext <<_ACEOF
28220/* end confdefs.h. */
4f14bcd8 28221/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28222 which can conflict with char $ac_func (); below.
28223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28224 <limits.h> exists even on freestanding compilers. */
28225#ifdef __STDC__
28226# include <limits.h>
28227#else
28228# include <assert.h>
28229#endif
4f14bcd8
GD
28230/* Override any gcc2 internal prototype to avoid an error. */
28231#ifdef __cplusplus
28232extern "C"
e6cc62c6 28233{
4f14bcd8
GD
28234#endif
28235/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28236 builtin and then its argument prototype would still apply. */
28237char $ac_func ();
4f14bcd8
GD
28238/* The GNU C library defines this for functions which it implements
28239 to always fail with ENOSYS. Some functions are actually named
28240 something starting with __ and the normal name is an alias. */
28241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28242choke me
28243#else
e6cc62c6
VS
28244char (*f) () = $ac_func;
28245#endif
28246#ifdef __cplusplus
28247}
4f14bcd8
GD
28248#endif
28249
e6cc62c6
VS
28250int
28251main ()
28252{
28253return f != $ac_func;
28254 ;
28255 return 0;
28256}
28257_ACEOF
28258rm -f conftest.$ac_objext conftest$ac_exeext
28259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28260 (eval $ac_link) 2>&5
28261 ac_status=$?
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); } &&
28264 { ac_try='test -s conftest$ac_exeext'
28265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266 (eval $ac_try) 2>&5
28267 ac_status=$?
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); }; }; then
28270 eval "$as_ac_var=yes"
28271else
28272 echo "$as_me: failed program was:" >&5
28273sed 's/^/| /' conftest.$ac_ext >&5
28274
28275eval "$as_ac_var=no"
28276fi
28277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28278fi
28279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28281if test `eval echo '${'$as_ac_var'}'` = yes; then
28282 cat >>confdefs.h <<_ACEOF
28283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28284_ACEOF
4f14bcd8 28285
10f2d63a
VZ
28286fi
28287done
28288
8284b0c5 28289
4f14bcd8 28290ac_ext=c
4f14bcd8 28291ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28294ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28295
5c6fa7d2 28296
8284b0c5 28297INET_LINK=
e6cc62c6 28298
4f14bcd8
GD
28299for ac_func in inet_addr
28300do
e6cc62c6
VS
28301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28302echo "$as_me:$LINENO: checking for $ac_func" >&5
28303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28304if eval "test \"\${$as_ac_var+set}\" = set"; then
28305 echo $ECHO_N "(cached) $ECHO_C" >&6
28306else
28307 cat >conftest.$ac_ext <<_ACEOF
28308#line $LINENO "configure"
28309/* confdefs.h. */
28310_ACEOF
28311cat confdefs.h >>conftest.$ac_ext
28312cat >>conftest.$ac_ext <<_ACEOF
28313/* end confdefs.h. */
4f14bcd8 28314/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28315 which can conflict with char $ac_func (); below.
28316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28317 <limits.h> exists even on freestanding compilers. */
28318#ifdef __STDC__
28319# include <limits.h>
28320#else
28321# include <assert.h>
28322#endif
10f2d63a 28323/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28324#ifdef __cplusplus
28325extern "C"
28326{
28327#endif
10f2d63a 28328/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28329 builtin and then its argument prototype would still apply. */
28330char $ac_func ();
4f14bcd8
GD
28331/* The GNU C library defines this for functions which it implements
28332 to always fail with ENOSYS. Some functions are actually named
28333 something starting with __ and the normal name is an alias. */
28334#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28335choke me
28336#else
e6cc62c6
VS
28337char (*f) () = $ac_func;
28338#endif
28339#ifdef __cplusplus
28340}
4f14bcd8
GD
28341#endif
28342
e6cc62c6
VS
28343int
28344main ()
28345{
28346return f != $ac_func;
28347 ;
28348 return 0;
28349}
28350_ACEOF
28351rm -f conftest.$ac_objext conftest$ac_exeext
28352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28353 (eval $ac_link) 2>&5
28354 ac_status=$?
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); } &&
28357 { ac_try='test -s conftest$ac_exeext'
28358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359 (eval $ac_try) 2>&5
28360 ac_status=$?
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; }; then
28363 eval "$as_ac_var=yes"
28364else
28365 echo "$as_me: failed program was:" >&5
28366sed 's/^/| /' conftest.$ac_ext >&5
28367
28368eval "$as_ac_var=no"
28369fi
28370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28371fi
28372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28374if test `eval echo '${'$as_ac_var'}'` = yes; then
28375 cat >>confdefs.h <<_ACEOF
28376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28377_ACEOF
28378 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28379#define HAVE_INET_ADDR 1
e6cc62c6 28380_ACEOF
10f2d63a
VZ
28381
28382else
e6cc62c6
VS
28383
28384 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28385echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28386if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28387 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28388else
e6cc62c6 28389 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28390LIBS="-lnsl $LIBS"
e6cc62c6
VS
28391cat >conftest.$ac_ext <<_ACEOF
28392#line $LINENO "configure"
28393/* confdefs.h. */
28394_ACEOF
28395cat confdefs.h >>conftest.$ac_ext
28396cat >>conftest.$ac_ext <<_ACEOF
28397/* end confdefs.h. */
28398
10f2d63a 28399/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28400#ifdef __cplusplus
28401extern "C"
28402#endif
10f2d63a 28403/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28404 builtin and then its argument prototype would still apply. */
28405char inet_addr ();
28406int
28407main ()
28408{
28409inet_addr ();
28410 ;
28411 return 0;
28412}
28413_ACEOF
28414rm -f conftest.$ac_objext conftest$ac_exeext
28415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28416 (eval $ac_link) 2>&5
28417 ac_status=$?
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); } &&
28420 { ac_try='test -s conftest$ac_exeext'
28421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28422 (eval $ac_try) 2>&5
28423 ac_status=$?
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; }; then
28426 ac_cv_lib_nsl_inet_addr=yes
28427else
28428 echo "$as_me: failed program was:" >&5
28429sed 's/^/| /' conftest.$ac_ext >&5
28430
28431ac_cv_lib_nsl_inet_addr=no
28432fi
28433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28434LIBS=$ac_check_lib_save_LIBS
28435fi
28436echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28437echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28438if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28439 INET_LINK="nsl"
10f2d63a 28440else
e6cc62c6
VS
28441 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28442echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28443if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28444 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28445else
e6cc62c6 28446 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28447LIBS="-lresolv $LIBS"
e6cc62c6
VS
28448cat >conftest.$ac_ext <<_ACEOF
28449#line $LINENO "configure"
28450/* confdefs.h. */
28451_ACEOF
28452cat confdefs.h >>conftest.$ac_ext
28453cat >>conftest.$ac_ext <<_ACEOF
28454/* end confdefs.h. */
28455
5c6fa7d2 28456/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28457#ifdef __cplusplus
28458extern "C"
28459#endif
5c6fa7d2 28460/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28461 builtin and then its argument prototype would still apply. */
28462char inet_addr ();
28463int
28464main ()
28465{
28466inet_addr ();
28467 ;
28468 return 0;
28469}
28470_ACEOF
28471rm -f conftest.$ac_objext conftest$ac_exeext
28472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28473 (eval $ac_link) 2>&5
28474 ac_status=$?
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); } &&
28477 { ac_try='test -s conftest$ac_exeext'
28478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479 (eval $ac_try) 2>&5
28480 ac_status=$?
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); }; }; then
28483 ac_cv_lib_resolv_inet_addr=yes
28484else
28485 echo "$as_me: failed program was:" >&5
28486sed 's/^/| /' conftest.$ac_ext >&5
28487
28488ac_cv_lib_resolv_inet_addr=no
28489fi
28490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28491LIBS=$ac_check_lib_save_LIBS
28492fi
28493echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28494echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28495if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28496 INET_LINK="resolv"
698dcdb6 28497else
e6cc62c6
VS
28498 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28499echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28500if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28501 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28502else
e6cc62c6 28503 ac_check_lib_save_LIBS=$LIBS
3c011993 28504LIBS="-lsocket $LIBS"
e6cc62c6
VS
28505cat >conftest.$ac_ext <<_ACEOF
28506#line $LINENO "configure"
28507/* confdefs.h. */
28508_ACEOF
28509cat confdefs.h >>conftest.$ac_ext
28510cat >>conftest.$ac_ext <<_ACEOF
28511/* end confdefs.h. */
28512
3c011993 28513/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28514#ifdef __cplusplus
28515extern "C"
28516#endif
3c011993 28517/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28518 builtin and then its argument prototype would still apply. */
28519char inet_addr ();
28520int
28521main ()
28522{
28523inet_addr ();
28524 ;
28525 return 0;
28526}
28527_ACEOF
28528rm -f conftest.$ac_objext conftest$ac_exeext
28529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28530 (eval $ac_link) 2>&5
28531 ac_status=$?
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); } &&
28534 { ac_try='test -s conftest$ac_exeext'
28535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536 (eval $ac_try) 2>&5
28537 ac_status=$?
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; }; then
28540 ac_cv_lib_socket_inet_addr=yes
28541else
28542 echo "$as_me: failed program was:" >&5
28543sed 's/^/| /' conftest.$ac_ext >&5
28544
28545ac_cv_lib_socket_inet_addr=no
28546fi
28547rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28548LIBS=$ac_check_lib_save_LIBS
28549fi
28550echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28551echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28552if test $ac_cv_lib_socket_inet_addr = yes; then
28553 INET_LINK="socket"
4f14bcd8 28554
8284b0c5 28555fi
e6cc62c6 28556
698dcdb6 28557
7b4a847f 28558fi
e6cc62c6
VS
28559
28560
a0b9e27f 28561fi
579d8138 28562
e6cc62c6
VS
28563
28564
5c6fa7d2 28565fi
e6cc62c6
VS
28566done
28567
28568
28569
28570for ac_func in inet_aton
28571do
28572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28573echo "$as_me:$LINENO: checking for $ac_func" >&5
28574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28575if eval "test \"\${$as_ac_var+set}\" = set"; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28577else
28578 cat >conftest.$ac_ext <<_ACEOF
28579#line $LINENO "configure"
28580/* confdefs.h. */
28581_ACEOF
28582cat confdefs.h >>conftest.$ac_ext
28583cat >>conftest.$ac_ext <<_ACEOF
28584/* end confdefs.h. */
28585/* System header to define __stub macros and hopefully few prototypes,
28586 which can conflict with char $ac_func (); below.
28587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28588 <limits.h> exists even on freestanding compilers. */
28589#ifdef __STDC__
28590# include <limits.h>
28591#else
28592# include <assert.h>
28593#endif
28594/* Override any gcc2 internal prototype to avoid an error. */
28595#ifdef __cplusplus
28596extern "C"
28597{
28598#endif
28599/* We use char because int might match the return type of a gcc2
28600 builtin and then its argument prototype would still apply. */
28601char $ac_func ();
28602/* The GNU C library defines this for functions which it implements
28603 to always fail with ENOSYS. Some functions are actually named
28604 something starting with __ and the normal name is an alias. */
28605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28606choke me
28607#else
28608char (*f) () = $ac_func;
28609#endif
28610#ifdef __cplusplus
28611}
28612#endif
28613
28614int
28615main ()
28616{
28617return f != $ac_func;
28618 ;
28619 return 0;
28620}
28621_ACEOF
28622rm -f conftest.$ac_objext conftest$ac_exeext
28623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28624 (eval $ac_link) 2>&5
28625 ac_status=$?
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); } &&
28628 { ac_try='test -s conftest$ac_exeext'
28629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28630 (eval $ac_try) 2>&5
28631 ac_status=$?
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); }; }; then
28634 eval "$as_ac_var=yes"
28635else
28636 echo "$as_me: failed program was:" >&5
28637sed 's/^/| /' conftest.$ac_ext >&5
28638
28639eval "$as_ac_var=no"
28640fi
28641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28642fi
28643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28645if test `eval echo '${'$as_ac_var'}'` = yes; then
28646 cat >>confdefs.h <<_ACEOF
28647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28648_ACEOF
28649 cat >>confdefs.h <<\_ACEOF
28650#define HAVE_INET_ATON 1
28651_ACEOF
28652
28653else
28654
28655 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28656echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28657echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28658if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28659 echo $ECHO_N "(cached) $ECHO_C" >&6
28660else
28661 ac_check_lib_save_LIBS=$LIBS
28662LIBS="-l$INET_LINK $LIBS"
28663cat >conftest.$ac_ext <<_ACEOF
28664#line $LINENO "configure"
28665/* confdefs.h. */
28666_ACEOF
28667cat confdefs.h >>conftest.$ac_ext
28668cat >>conftest.$ac_ext <<_ACEOF
28669/* end confdefs.h. */
28670
28671/* Override any gcc2 internal prototype to avoid an error. */
28672#ifdef __cplusplus
28673extern "C"
28674#endif
28675/* We use char because int might match the return type of a gcc2
28676 builtin and then its argument prototype would still apply. */
28677char inet_aton ();
28678int
28679main ()
28680{
28681inet_aton ();
28682 ;
28683 return 0;
28684}
28685_ACEOF
28686rm -f conftest.$ac_objext conftest$ac_exeext
28687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28688 (eval $ac_link) 2>&5
28689 ac_status=$?
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); } &&
28692 { ac_try='test -s conftest$ac_exeext'
28693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694 (eval $ac_try) 2>&5
28695 ac_status=$?
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; }; then
28698 eval "$as_ac_Lib=yes"
28699else
28700 echo "$as_me: failed program was:" >&5
28701sed 's/^/| /' conftest.$ac_ext >&5
28702
28703eval "$as_ac_Lib=no"
28704fi
28705rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28706LIBS=$ac_check_lib_save_LIBS
28707fi
28708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28709echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28710if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28711 cat >>confdefs.h <<\_ACEOF
28712#define HAVE_INET_ATON 1
28713_ACEOF
52127426 28714
a0b9e27f 28715fi
247f5006 28716
8284b0c5 28717
698dcdb6 28718fi
4f14bcd8
GD
28719done
28720
8284b0c5 28721
e6cc62c6
VS
28722if test "x$INET_LINK" != "x"; then
28723 cat >>confdefs.h <<\_ACEOF
28724#define HAVE_INET_ADDR 1
28725_ACEOF
28726
28727 INET_LINK=" -l$INET_LINK"
28728fi
28729
28730fi
a0b9e27f 28731
a0b9e27f 28732
4f14bcd8 28733
edd891e2
VS
28734EXTRALIBS_ESD=
28735echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28736echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28737if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28738 echo $ECHO_N "(cached) $ECHO_C" >&6
28739else
28740 ac_check_lib_save_LIBS=$LIBS
28741LIBS="-lesd $LIBS"
28742cat >conftest.$ac_ext <<_ACEOF
28743#line $LINENO "configure"
28744/* confdefs.h. */
28745_ACEOF
28746cat confdefs.h >>conftest.$ac_ext
28747cat >>conftest.$ac_ext <<_ACEOF
28748/* end confdefs.h. */
28749
28750/* Override any gcc2 internal prototype to avoid an error. */
28751#ifdef __cplusplus
28752extern "C"
28753#endif
28754/* We use char because int might match the return type of a gcc2
28755 builtin and then its argument prototype would still apply. */
28756char esd_close ();
28757int
28758main ()
28759{
28760esd_close ();
28761 ;
28762 return 0;
28763}
28764_ACEOF
28765rm -f conftest.$ac_objext conftest$ac_exeext
28766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28767 (eval $ac_link) 2>&5
28768 ac_status=$?
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } &&
28771 { ac_try='test -s conftest$ac_exeext'
28772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773 (eval $ac_try) 2>&5
28774 ac_status=$?
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); }; }; then
28777 ac_cv_lib_esd_esd_close=yes
28778else
28779 echo "$as_me: failed program was:" >&5
28780sed 's/^/| /' conftest.$ac_ext >&5
28781
28782ac_cv_lib_esd_esd_close=no
28783fi
28784rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28785LIBS=$ac_check_lib_save_LIBS
28786fi
28787echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28788echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28789if test $ac_cv_lib_esd_esd_close = yes; then
28790
28791
28792for ac_header in esd.h
28793do
28794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28795if eval "test \"\${$as_ac_Header+set}\" = set"; then
28796 echo "$as_me:$LINENO: checking for $ac_header" >&5
28797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28798if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28799 echo $ECHO_N "(cached) $ECHO_C" >&6
28800fi
edd891e2
VS
28801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28803else
28804 # Is the header compilable?
edd891e2
VS
28805echo "$as_me:$LINENO: checking $ac_header usability" >&5
28806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6
VS
28807cat >conftest.$ac_ext <<_ACEOF
28808#line $LINENO "configure"
28809/* confdefs.h. */
28810_ACEOF
28811cat confdefs.h >>conftest.$ac_ext
28812cat >>conftest.$ac_ext <<_ACEOF
28813/* end confdefs.h. */
28814$ac_includes_default
edd891e2 28815#include <$ac_header>
e6cc62c6
VS
28816_ACEOF
28817rm -f conftest.$ac_objext
28818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28819 (eval $ac_compile) 2>&5
28820 ac_status=$?
28821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822 (exit $ac_status); } &&
28823 { ac_try='test -s conftest.$ac_objext'
28824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825 (eval $ac_try) 2>&5
28826 ac_status=$?
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; }; then
28829 ac_header_compiler=yes
28830else
28831 echo "$as_me: failed program was:" >&5
28832sed 's/^/| /' conftest.$ac_ext >&5
28833
28834ac_header_compiler=no
28835fi
28836rm -f conftest.$ac_objext conftest.$ac_ext
28837echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28838echo "${ECHO_T}$ac_header_compiler" >&6
28839
28840# Is the header present?
edd891e2
VS
28841echo "$as_me:$LINENO: checking $ac_header presence" >&5
28842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6
VS
28843cat >conftest.$ac_ext <<_ACEOF
28844#line $LINENO "configure"
28845/* confdefs.h. */
28846_ACEOF
28847cat confdefs.h >>conftest.$ac_ext
28848cat >>conftest.$ac_ext <<_ACEOF
28849/* end confdefs.h. */
edd891e2 28850#include <$ac_header>
e6cc62c6
VS
28851_ACEOF
28852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28854 ac_status=$?
28855 grep -v '^ *+' conftest.er1 >conftest.err
28856 rm -f conftest.er1
28857 cat conftest.err >&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } >/dev/null; then
28860 if test -s conftest.err; then
28861 ac_cpp_err=$ac_c_preproc_warn_flag
28862 else
28863 ac_cpp_err=
28864 fi
a0b9e27f 28865else
e6cc62c6
VS
28866 ac_cpp_err=yes
28867fi
28868if test -z "$ac_cpp_err"; then
28869 ac_header_preproc=yes
28870else
28871 echo "$as_me: failed program was:" >&5
28872sed 's/^/| /' conftest.$ac_ext >&5
28873
28874 ac_header_preproc=no
28875fi
28876rm -f conftest.err conftest.$ac_ext
28877echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28878echo "${ECHO_T}$ac_header_preproc" >&6
28879
28880# So? What about this header?
28881case $ac_header_compiler:$ac_header_preproc in
28882 yes:no )
edd891e2
VS
28883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28886echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28887 (
28888 cat <<\_ASBOX
28889## ------------------------------------ ##
28890## Report this to bug-autoconf@gnu.org. ##
28891## ------------------------------------ ##
28892_ASBOX
28893 ) |
28894 sed "s/^/$as_me: WARNING: /" >&2
28895 ;;
28896 no:yes )
edd891e2
VS
28897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28902echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28903 (
28904 cat <<\_ASBOX
28905## ------------------------------------ ##
28906## Report this to bug-autoconf@gnu.org. ##
28907## ------------------------------------ ##
28908_ASBOX
28909 ) |
28910 sed "s/^/$as_me: WARNING: /" >&2
28911 ;;
28912esac
edd891e2
VS
28913echo "$as_me:$LINENO: checking for $ac_header" >&5
28914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28915if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28916 echo $ECHO_N "(cached) $ECHO_C" >&6
28917else
edd891e2 28918 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 28919fi
edd891e2
VS
28920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 28922
e6cc62c6 28923fi
edd891e2
VS
28924if test `eval echo '${'$as_ac_Header'}'` = yes; then
28925 cat >>confdefs.h <<_ACEOF
28926#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 28927_ACEOF
e6cc62c6 28928
edd891e2 28929 EXTRALIBS_ESD="-lesd"
4f14bcd8 28930
a0b9e27f 28931fi
247f5006 28932
edd891e2 28933done
8284b0c5 28934
4f14bcd8 28935
6232543b 28936fi
10f2d63a 28937
703e0a69 28938
8284b0c5 28939
e6cc62c6
VS
28940
28941
28942cat >confcache <<\_ACEOF
4f14bcd8
GD
28943# This file is a shell script that caches the results of configure
28944# tests run on this system so they can be shared between configure
e6cc62c6
VS
28945# scripts and configure runs, see configure's option --config-cache.
28946# It is not useful on other systems. If it contains results you don't
28947# want to keep, you may remove or edit it.
4f14bcd8 28948#
e6cc62c6
VS
28949# config.status only pays attention to the cache file if you give it
28950# the --recheck option to rerun configure.
4f14bcd8 28951#
e6cc62c6
VS
28952# `ac_cv_env_foo' variables (set or unset) will be overridden when
28953# loading this file, other *unset* `ac_cv_foo' will be assigned the
28954# following values.
28955
28956_ACEOF
28957
4f14bcd8
GD
28958# The following way of writing the cache mishandles newlines in values,
28959# but we know of no workaround that is simple, portable, and efficient.
28960# So, don't put newlines in cache variables' values.
28961# Ultrix sh set writes to stderr and can't be redirected directly,
28962# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28963{
28964 (set) 2>&1 |
28965 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28966 *ac_space=\ *)
28967 # `set' does not quote correctly, so add quotes (double-quote
28968 # substitution turns \\\\ into \\, and sed turns \\ into \).
28969 sed -n \
28970 "s/'/'\\\\''/g;
28971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28972 ;;
28973 *)
28974 # `set' quotes correctly as required by POSIX, so do not add quotes.
28975 sed -n \
28976 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28977 ;;
28978 esac;
28979} |
28980 sed '
28981 t clear
28982 : clear
28983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28984 t end
28985 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28986 : end' >>confcache
28987if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28988 if test -w $cache_file; then
e6cc62c6
VS
28989 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28990 cat confcache >$cache_file
f6bcfd97 28991 else
4f14bcd8 28992 echo "not updating unwritable cache $cache_file"
f6bcfd97 28993 fi
4f14bcd8
GD
28994fi
28995rm -f confcache
f6bcfd97 28996
8284b0c5 28997
009fead0 28998CPP_MT_FLAG=
4f14bcd8
GD
28999if test "$TOOLKIT" != "MSW"; then
29000
e6cc62c6 29001
7274f1c7 29002 THREADS_LINK=
009fead0 29003 THREADS_CFLAGS=
7274f1c7
RL
29004
29005 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 29006 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
29007 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29008echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
29009 wxUSE_THREADS="no"
29010 fi
4f14bcd8 29011 fi
4f14bcd8 29012
7274f1c7 29013 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29014
29015
009fead0
VZ
29016 THREAD_OPTS="-pthread"
29017 case "${host}" in
29018 *-*-solaris2* | *-*-sunos4* )
29019 if test "x$GCC" = "xyes"; then
126be6b4 29020 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
29021 else
29022 THREAD_OPTS="-mt $THREAD_OPTS"
29023 fi
29024 ;;
29025 *-*-freebsd*)
29026 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29027 ;;
17234b26
MB
29028 *-*-darwin* | *-*-cygwin* )
29029 THREAD_OPTS=""
4101db81 29030 ;;
8f4a9a10 29031 *-*-aix*)
009fead0
VZ
29032 THREAD_OPTS="pthreads"
29033 ;;
4f5a7f74
VZ
29034 *-hp-hpux* )
29035 if test "x$GCC" != "xyes"; then
29036 THREAD_OPTS=""
29037 fi
89e3b3e4
VZ
29038 ;;
29039
29040 *-*-irix* )
29041 if test "x$GCC" = "xyes"; then
29042 THREAD_OPTS=""
29043 fi
29044 ;;
29045
29046 *-*-*UnixWare*)
29047 if test "x$GCC" != "xyes"; then
29048 THREAD_OPTS="-Ethread"
29049 fi
29050 ;;
009fead0 29051 esac
4f14bcd8 29052
02a1dfba 29053 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 29054
009fead0
VZ
29055 THREADS_OK=no
29056 for flag in $THREAD_OPTS; do
29057 case $flag in
29058 none)
e6cc62c6
VS
29059 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29060echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 29061 ;;
698dcdb6 29062
009fead0 29063 -*)
e6cc62c6
VS
29064 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29065echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
29066 THREADS_CFLAGS="$flag"
29067 ;;
698dcdb6 29068
009fead0 29069 *)
e6cc62c6
VS
29070 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29071echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
29072 THREADS_LINK="-l$flag"
29073 ;;
29074 esac
10f2d63a 29075
009fead0
VZ
29076 save_LIBS="$LIBS"
29077 save_CFLAGS="$CFLAGS"
29078 LIBS="$THREADS_LINK $LIBS"
04727afd 29079 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29080
e6cc62c6
VS
29081 cat >conftest.$ac_ext <<_ACEOF
29082#line $LINENO "configure"
29083/* confdefs.h. */
29084_ACEOF
29085cat confdefs.h >>conftest.$ac_ext
29086cat >>conftest.$ac_ext <<_ACEOF
29087/* end confdefs.h. */
009fead0 29088#include <pthread.h>
e6cc62c6
VS
29089int
29090main ()
29091{
009fead0 29092pthread_create(0,0,0,0);
e6cc62c6
VS
29093 ;
29094 return 0;
29095}
29096_ACEOF
29097rm -f conftest.$ac_objext conftest$ac_exeext
29098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29099 (eval $ac_link) 2>&5
29100 ac_status=$?
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); } &&
29103 { ac_try='test -s conftest$ac_exeext'
29104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105 (eval $ac_try) 2>&5
29106 ac_status=$?
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; }; then
009fead0 29109 THREADS_OK=yes
10f2d63a 29110else
e6cc62c6
VS
29111 echo "$as_me: failed program was:" >&5
29112sed 's/^/| /' conftest.$ac_ext >&5
29113
6232543b 29114fi
e6cc62c6 29115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29116
009fead0
VZ
29117 LIBS="$save_LIBS"
29118 CFLAGS="$save_CFLAGS"
d9b9876f 29119
e6cc62c6
VS
29120 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29121echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29122 if test "x$THREADS_OK" = "xyes"; then
29123 break;
29124 fi
d9b9876f 29125
009fead0
VZ
29126 THREADS_LINK=""
29127 THREADS_CFLAGS=""
29128 done
4f14bcd8 29129
009fead0
VZ
29130 if test "x$THREADS_OK" != "xyes"; then
29131 wxUSE_THREADS=no
e6cc62c6
VS
29132 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29133echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29134 else
db82f09e
VZ
29135 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29136 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29137
e6cc62c6
VS
29138 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29139echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29140 flag=no
29141 case "${host}" in
2b5f62a0
VZ
29142 *-aix*)
29143 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29144 flag="-D_THREAD_SAFE"
29145 ;;
29146 *-freebsd*)
009fead0
VZ
29147 flag="-D_THREAD_SAFE"
29148 ;;
06313569
GD
29149 *-hp-hpux* )
29150 flag="-D_REENTRANT"
4f5a7f74
VZ
29151 if test "x$GCC" != "xyes"; then
29152 flag="$flag -D_RWSTD_MULTI_THREAD"
29153 fi
06313569 29154 ;;
009fead0
VZ
29155 *solaris* | alpha*-osf*)
29156 flag="-D_REENTRANT"
29157 ;;
29158 esac
e6cc62c6
VS
29159 echo "$as_me:$LINENO: result: ${flag}" >&5
29160echo "${ECHO_T}${flag}" >&6
009fead0 29161 if test "x$flag" != xno; then
04727afd 29162 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29163 fi
29164
009fead0 29165 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29166 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29167 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29168 fi
29169 fi
4f14bcd8 29170 fi
4f14bcd8 29171
7274f1c7 29172 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29173
29174for ac_func in thr_setconcurrency
4f14bcd8 29175do
e6cc62c6
VS
29176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29177echo "$as_me:$LINENO: checking for $ac_func" >&5
29178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29179if eval "test \"\${$as_ac_var+set}\" = set"; then
29180 echo $ECHO_N "(cached) $ECHO_C" >&6
29181else
29182 cat >conftest.$ac_ext <<_ACEOF
29183#line $LINENO "configure"
29184/* confdefs.h. */
29185_ACEOF
29186cat confdefs.h >>conftest.$ac_ext
29187cat >>conftest.$ac_ext <<_ACEOF
29188/* end confdefs.h. */
4f14bcd8 29189/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29190 which can conflict with char $ac_func (); below.
29191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29192 <limits.h> exists even on freestanding compilers. */
29193#ifdef __STDC__
29194# include <limits.h>
29195#else
29196# include <assert.h>
29197#endif
4f14bcd8 29198/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29199#ifdef __cplusplus
29200extern "C"
29201{
29202#endif
4f14bcd8 29203/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29204 builtin and then its argument prototype would still apply. */
29205char $ac_func ();
4f14bcd8
GD
29206/* The GNU C library defines this for functions which it implements
29207 to always fail with ENOSYS. Some functions are actually named
29208 something starting with __ and the normal name is an alias. */
29209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29210choke me
29211#else
e6cc62c6
VS
29212char (*f) () = $ac_func;
29213#endif
29214#ifdef __cplusplus
29215}
4f14bcd8
GD
29216#endif
29217
e6cc62c6
VS
29218int
29219main ()
29220{
29221return f != $ac_func;
29222 ;
29223 return 0;
29224}
29225_ACEOF
29226rm -f conftest.$ac_objext conftest$ac_exeext
29227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29228 (eval $ac_link) 2>&5
29229 ac_status=$?
29230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231 (exit $ac_status); } &&
29232 { ac_try='test -s conftest$ac_exeext'
29233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29234 (eval $ac_try) 2>&5
29235 ac_status=$?
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; }; then
29238 eval "$as_ac_var=yes"
29239else
29240 echo "$as_me: failed program was:" >&5
29241sed 's/^/| /' conftest.$ac_ext >&5
29242
29243eval "$as_ac_var=no"
29244fi
29245rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29246fi
29247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29248echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29249if test `eval echo '${'$as_ac_var'}'` = yes; then
29250 cat >>confdefs.h <<_ACEOF
29251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29252_ACEOF
698dcdb6 29253
10f2d63a 29254fi
4f14bcd8 29255done
10f2d63a 29256
8284b0c5 29257
e6cc62c6
VS
29258
29259for ac_header in sched.h
4f14bcd8 29260do
e6cc62c6
VS
29261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29262if eval "test \"\${$as_ac_Header+set}\" = set"; then
29263 echo "$as_me:$LINENO: checking for $ac_header" >&5
29264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29265if eval "test \"\${$as_ac_Header+set}\" = set"; then
29266 echo $ECHO_N "(cached) $ECHO_C" >&6
29267fi
29268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29270else
29271 # Is the header compilable?
29272echo "$as_me:$LINENO: checking $ac_header usability" >&5
29273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29274cat >conftest.$ac_ext <<_ACEOF
29275#line $LINENO "configure"
29276/* confdefs.h. */
29277_ACEOF
29278cat confdefs.h >>conftest.$ac_ext
29279cat >>conftest.$ac_ext <<_ACEOF
29280/* end confdefs.h. */
29281$ac_includes_default
29282#include <$ac_header>
29283_ACEOF
29284rm -f conftest.$ac_objext
29285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29286 (eval $ac_compile) 2>&5
29287 ac_status=$?
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); } &&
29290 { ac_try='test -s conftest.$ac_objext'
29291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29292 (eval $ac_try) 2>&5
29293 ac_status=$?
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); }; }; then
29296 ac_header_compiler=yes
29297else
29298 echo "$as_me: failed program was:" >&5
29299sed 's/^/| /' conftest.$ac_ext >&5
29300
29301ac_header_compiler=no
29302fi
29303rm -f conftest.$ac_objext conftest.$ac_ext
29304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29305echo "${ECHO_T}$ac_header_compiler" >&6
29306
29307# Is the header present?
29308echo "$as_me:$LINENO: checking $ac_header presence" >&5
29309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29310cat >conftest.$ac_ext <<_ACEOF
29311#line $LINENO "configure"
29312/* confdefs.h. */
29313_ACEOF
29314cat confdefs.h >>conftest.$ac_ext
29315cat >>conftest.$ac_ext <<_ACEOF
29316/* end confdefs.h. */
29317#include <$ac_header>
29318_ACEOF
29319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29321 ac_status=$?
29322 grep -v '^ *+' conftest.er1 >conftest.err
29323 rm -f conftest.er1
29324 cat conftest.err >&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); } >/dev/null; then
29327 if test -s conftest.err; then
29328 ac_cpp_err=$ac_c_preproc_warn_flag
29329 else
29330 ac_cpp_err=
29331 fi
29332else
29333 ac_cpp_err=yes
29334fi
29335if test -z "$ac_cpp_err"; then
29336 ac_header_preproc=yes
29337else
29338 echo "$as_me: failed program was:" >&5
29339sed 's/^/| /' conftest.$ac_ext >&5
29340
29341 ac_header_preproc=no
29342fi
29343rm -f conftest.err conftest.$ac_ext
29344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29345echo "${ECHO_T}$ac_header_preproc" >&6
29346
29347# So? What about this header?
29348case $ac_header_compiler:$ac_header_preproc in
29349 yes:no )
29350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29354 (
29355 cat <<\_ASBOX
29356## ------------------------------------ ##
29357## Report this to bug-autoconf@gnu.org. ##
29358## ------------------------------------ ##
29359_ASBOX
29360 ) |
29361 sed "s/^/$as_me: WARNING: /" >&2
29362 ;;
29363 no:yes )
29364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29365echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29367echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29370 (
29371 cat <<\_ASBOX
29372## ------------------------------------ ##
29373## Report this to bug-autoconf@gnu.org. ##
29374## ------------------------------------ ##
29375_ASBOX
29376 ) |
29377 sed "s/^/$as_me: WARNING: /" >&2
29378 ;;
29379esac
29380echo "$as_me:$LINENO: checking for $ac_header" >&5
29381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29382if eval "test \"\${$as_ac_Header+set}\" = set"; then
29383 echo $ECHO_N "(cached) $ECHO_C" >&6
29384else
29385 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29386fi
e6cc62c6
VS
29387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29389
10f2d63a 29390fi
e6cc62c6
VS
29391if test `eval echo '${'$as_ac_Header'}'` = yes; then
29392 cat >>confdefs.h <<_ACEOF
29393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29394_ACEOF
29395
f6bcfd97 29396fi
e6cc62c6 29397
4f14bcd8 29398done
f6bcfd97 29399
009fead0 29400 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29401 echo "$as_me:$LINENO: checking for sched_yield" >&5
29402echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29403if test "${ac_cv_func_sched_yield+set}" = set; then
29404 echo $ECHO_N "(cached) $ECHO_C" >&6
29405else
29406 cat >conftest.$ac_ext <<_ACEOF
29407#line $LINENO "configure"
29408/* confdefs.h. */
29409_ACEOF
29410cat confdefs.h >>conftest.$ac_ext
29411cat >>conftest.$ac_ext <<_ACEOF
29412/* end confdefs.h. */
009fead0 29413/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29414 which can conflict with char sched_yield (); below.
29415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29416 <limits.h> exists even on freestanding compilers. */
29417#ifdef __STDC__
29418# include <limits.h>
29419#else
29420# include <assert.h>
29421#endif
4f14bcd8 29422/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29423#ifdef __cplusplus
29424extern "C"
29425{
29426#endif
4f14bcd8 29427/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29428 builtin and then its argument prototype would still apply. */
29429char sched_yield ();
009fead0
VZ
29430/* The GNU C library defines this for functions which it implements
29431 to always fail with ENOSYS. Some functions are actually named
29432 something starting with __ and the normal name is an alias. */
29433#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29434choke me
29435#else
e6cc62c6
VS
29436char (*f) () = sched_yield;
29437#endif
29438#ifdef __cplusplus
29439}
009fead0
VZ
29440#endif
29441
e6cc62c6
VS
29442int
29443main ()
29444{
29445return f != sched_yield;
29446 ;
29447 return 0;
29448}
29449_ACEOF
29450rm -f conftest.$ac_objext conftest$ac_exeext
29451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29452 (eval $ac_link) 2>&5
29453 ac_status=$?
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); } &&
29456 { ac_try='test -s conftest$ac_exeext'
29457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29458 (eval $ac_try) 2>&5
29459 ac_status=$?
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); }; }; then
29462 ac_cv_func_sched_yield=yes
29463else
29464 echo "$as_me: failed program was:" >&5
29465sed 's/^/| /' conftest.$ac_ext >&5
29466
29467ac_cv_func_sched_yield=no
29468fi
29469rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29470fi
29471echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29472echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29473if test $ac_cv_func_sched_yield = yes; then
29474 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29475#define HAVE_SCHED_YIELD 1
e6cc62c6 29476_ACEOF
10f2d63a 29477
4f14bcd8 29478else
009fead0 29479
e6cc62c6
VS
29480 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29481echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29482if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29483 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29484else
e6cc62c6 29485 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29486LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29487cat >conftest.$ac_ext <<_ACEOF
29488#line $LINENO "configure"
29489/* confdefs.h. */
29490_ACEOF
29491cat confdefs.h >>conftest.$ac_ext
29492cat >>conftest.$ac_ext <<_ACEOF
29493/* end confdefs.h. */
29494
4f14bcd8 29495/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29496#ifdef __cplusplus
29497extern "C"
29498#endif
4f14bcd8 29499/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29500 builtin and then its argument prototype would still apply. */
29501char sched_yield ();
29502int
29503main ()
29504{
29505sched_yield ();
29506 ;
29507 return 0;
29508}
29509_ACEOF
29510rm -f conftest.$ac_objext conftest$ac_exeext
29511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29512 (eval $ac_link) 2>&5
29513 ac_status=$?
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } &&
29516 { ac_try='test -s conftest$ac_exeext'
29517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29518 (eval $ac_try) 2>&5
29519 ac_status=$?
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); }; }; then
29522 ac_cv_lib_posix4_sched_yield=yes
29523else
29524 echo "$as_me: failed program was:" >&5
29525sed 's/^/| /' conftest.$ac_ext >&5
29526
29527ac_cv_lib_posix4_sched_yield=no
29528fi
29529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29530LIBS=$ac_check_lib_save_LIBS
29531fi
29532echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29533echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29534if test $ac_cv_lib_posix4_sched_yield = yes; then
29535 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29536#define HAVE_SCHED_YIELD 1
e6cc62c6 29537_ACEOF
3d63bc3a 29538 POSIX4_LINK=" -lposix4"
4f14bcd8 29539else
e6cc62c6
VS
29540 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29541echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29542
54276ccf
VZ
29543fi
29544
e6cc62c6
VS
29545
29546
4f14bcd8 29547fi
698dcdb6 29548
009fead0 29549 fi
10f2d63a 29550
7274f1c7 29551 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29552 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29553echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29554if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29555 echo $ECHO_N "(cached) $ECHO_C" >&6
29556else
29557 cat >conftest.$ac_ext <<_ACEOF
29558#line $LINENO "configure"
29559/* confdefs.h. */
29560_ACEOF
29561cat confdefs.h >>conftest.$ac_ext
29562cat >>conftest.$ac_ext <<_ACEOF
29563/* end confdefs.h. */
009fead0 29564/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29565 which can conflict with char pthread_attr_getschedpolicy (); below.
29566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29567 <limits.h> exists even on freestanding compilers. */
29568#ifdef __STDC__
29569# include <limits.h>
29570#else
29571# include <assert.h>
29572#endif
4f14bcd8 29573/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29574#ifdef __cplusplus
29575extern "C"
29576{
29577#endif
4f14bcd8 29578/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29579 builtin and then its argument prototype would still apply. */
29580char pthread_attr_getschedpolicy ();
009fead0
VZ
29581/* The GNU C library defines this for functions which it implements
29582 to always fail with ENOSYS. Some functions are actually named
29583 something starting with __ and the normal name is an alias. */
29584#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29585choke me
29586#else
e6cc62c6
VS
29587char (*f) () = pthread_attr_getschedpolicy;
29588#endif
29589#ifdef __cplusplus
29590}
009fead0
VZ
29591#endif
29592
e6cc62c6
VS
29593int
29594main ()
29595{
29596return f != pthread_attr_getschedpolicy;
29597 ;
29598 return 0;
29599}
29600_ACEOF
29601rm -f conftest.$ac_objext conftest$ac_exeext
29602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29603 (eval $ac_link) 2>&5
29604 ac_status=$?
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); } &&
29607 { ac_try='test -s conftest$ac_exeext'
29608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609 (eval $ac_try) 2>&5
29610 ac_status=$?
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); }; }; then
29613 ac_cv_func_pthread_attr_getschedpolicy=yes
29614else
29615 echo "$as_me: failed program was:" >&5
29616sed 's/^/| /' conftest.$ac_ext >&5
29617
29618ac_cv_func_pthread_attr_getschedpolicy=no
29619fi
29620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29621fi
29622echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29623echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29624if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29625 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29626echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29627if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29628 echo $ECHO_N "(cached) $ECHO_C" >&6
29629else
29630 cat >conftest.$ac_ext <<_ACEOF
29631#line $LINENO "configure"
29632/* confdefs.h. */
29633_ACEOF
29634cat confdefs.h >>conftest.$ac_ext
29635cat >>conftest.$ac_ext <<_ACEOF
29636/* end confdefs.h. */
a0b9e27f 29637/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29638 which can conflict with char pthread_attr_setschedparam (); below.
29639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29640 <limits.h> exists even on freestanding compilers. */
29641#ifdef __STDC__
29642# include <limits.h>
29643#else
29644# include <assert.h>
29645#endif
422107f9 29646/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29647#ifdef __cplusplus
29648extern "C"
29649{
29650#endif
422107f9 29651/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29652 builtin and then its argument prototype would still apply. */
29653char pthread_attr_setschedparam ();
009fead0
VZ
29654/* The GNU C library defines this for functions which it implements
29655 to always fail with ENOSYS. Some functions are actually named
29656 something starting with __ and the normal name is an alias. */
29657#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29658choke me
29659#else
e6cc62c6
VS
29660char (*f) () = pthread_attr_setschedparam;
29661#endif
29662#ifdef __cplusplus
29663}
009fead0
VZ
29664#endif
29665
e6cc62c6
VS
29666int
29667main ()
29668{
29669return f != pthread_attr_setschedparam;
29670 ;
29671 return 0;
29672}
29673_ACEOF
29674rm -f conftest.$ac_objext conftest$ac_exeext
29675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29676 (eval $ac_link) 2>&5
29677 ac_status=$?
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); } &&
29680 { ac_try='test -s conftest$ac_exeext'
29681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682 (eval $ac_try) 2>&5
29683 ac_status=$?
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); }; }; then
29686 ac_cv_func_pthread_attr_setschedparam=yes
29687else
29688 echo "$as_me: failed program was:" >&5
29689sed 's/^/| /' conftest.$ac_ext >&5
29690
29691ac_cv_func_pthread_attr_setschedparam=no
29692fi
29693rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29694fi
29695echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29696echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29697if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29698 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29699echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29700if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29701 echo $ECHO_N "(cached) $ECHO_C" >&6
29702else
29703 cat >conftest.$ac_ext <<_ACEOF
29704#line $LINENO "configure"
29705/* confdefs.h. */
29706_ACEOF
29707cat confdefs.h >>conftest.$ac_ext
29708cat >>conftest.$ac_ext <<_ACEOF
29709/* end confdefs.h. */
ef33c576 29710/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29711 which can conflict with char sched_get_priority_max (); below.
29712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29713 <limits.h> exists even on freestanding compilers. */
29714#ifdef __STDC__
29715# include <limits.h>
29716#else
29717# include <assert.h>
29718#endif
4f14bcd8 29719/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29720#ifdef __cplusplus
29721extern "C"
29722{
29723#endif
4f14bcd8 29724/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29725 builtin and then its argument prototype would still apply. */
29726char sched_get_priority_max ();
009fead0
VZ
29727/* The GNU C library defines this for functions which it implements
29728 to always fail with ENOSYS. Some functions are actually named
29729 something starting with __ and the normal name is an alias. */
29730#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29731choke me
29732#else
e6cc62c6
VS
29733char (*f) () = sched_get_priority_max;
29734#endif
29735#ifdef __cplusplus
29736}
009fead0
VZ
29737#endif
29738
e6cc62c6
VS
29739int
29740main ()
29741{
29742return f != sched_get_priority_max;
29743 ;
29744 return 0;
29745}
29746_ACEOF
29747rm -f conftest.$ac_objext conftest$ac_exeext
29748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29749 (eval $ac_link) 2>&5
29750 ac_status=$?
29751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); } &&
29753 { ac_try='test -s conftest$ac_exeext'
29754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29755 (eval $ac_try) 2>&5
29756 ac_status=$?
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758 (exit $ac_status); }; }; then
29759 ac_cv_func_sched_get_priority_max=yes
29760else
29761 echo "$as_me: failed program was:" >&5
29762sed 's/^/| /' conftest.$ac_ext >&5
29763
29764ac_cv_func_sched_get_priority_max=no
29765fi
29766rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29767fi
29768echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29769echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29770if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29771 HAVE_PRIOR_FUNCS=1
29772else
e6cc62c6
VS
29773 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29774echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29775if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29776 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29777else
e6cc62c6 29778 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29779LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29780cat >conftest.$ac_ext <<_ACEOF
29781#line $LINENO "configure"
29782/* confdefs.h. */
29783_ACEOF
29784cat confdefs.h >>conftest.$ac_ext
29785cat >>conftest.$ac_ext <<_ACEOF
29786/* end confdefs.h. */
29787
422107f9 29788/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29789#ifdef __cplusplus
29790extern "C"
29791#endif
422107f9 29792/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29793 builtin and then its argument prototype would still apply. */
29794char sched_get_priority_max ();
29795int
29796main ()
29797{
29798sched_get_priority_max ();
29799 ;
29800 return 0;
29801}
29802_ACEOF
29803rm -f conftest.$ac_objext conftest$ac_exeext
29804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29805 (eval $ac_link) 2>&5
29806 ac_status=$?
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); } &&
29809 { ac_try='test -s conftest$ac_exeext'
29810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29811 (eval $ac_try) 2>&5
29812 ac_status=$?
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); }; }; then
29815 ac_cv_lib_posix4_sched_get_priority_max=yes
29816else
29817 echo "$as_me: failed program was:" >&5
29818sed 's/^/| /' conftest.$ac_ext >&5
29819
29820ac_cv_lib_posix4_sched_get_priority_max=no
29821fi
29822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29823LIBS=$ac_check_lib_save_LIBS
29824fi
29825echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29826echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29827if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29828
7274f1c7
RL
29829 HAVE_PRIOR_FUNCS=1
29830 POSIX4_LINK=" -lposix4"
e6cc62c6 29831
4f14bcd8 29832fi
463abc64 29833
e6cc62c6 29834
328a083c 29835fi
463abc64 29836
e6cc62c6 29837
7b4a847f 29838fi
579d8138 29839
e6cc62c6 29840
5c6fa7d2 29841fi
52127426 29842
8284b0c5 29843
7274f1c7 29844 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29845 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29846#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29847_ACEOF
463abc64 29848
7274f1c7 29849 else
e6cc62c6
VS
29850 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29851echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29852 fi
463abc64 29853
e6cc62c6
VS
29854 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29855echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29856if test "${ac_cv_func_pthread_cancel+set}" = set; then
29857 echo $ECHO_N "(cached) $ECHO_C" >&6
29858else
29859 cat >conftest.$ac_ext <<_ACEOF
29860#line $LINENO "configure"
29861/* confdefs.h. */
29862_ACEOF
29863cat confdefs.h >>conftest.$ac_ext
29864cat >>conftest.$ac_ext <<_ACEOF
29865/* end confdefs.h. */
009fead0 29866/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29867 which can conflict with char pthread_cancel (); below.
29868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29869 <limits.h> exists even on freestanding compilers. */
29870#ifdef __STDC__
29871# include <limits.h>
29872#else
29873# include <assert.h>
29874#endif
422107f9 29875/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29876#ifdef __cplusplus
29877extern "C"
29878{
29879#endif
422107f9 29880/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29881 builtin and then its argument prototype would still apply. */
29882char pthread_cancel ();
009fead0
VZ
29883/* The GNU C library defines this for functions which it implements
29884 to always fail with ENOSYS. Some functions are actually named
29885 something starting with __ and the normal name is an alias. */
29886#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29887choke me
29888#else
e6cc62c6
VS
29889char (*f) () = pthread_cancel;
29890#endif
29891#ifdef __cplusplus
29892}
009fead0
VZ
29893#endif
29894
e6cc62c6
VS
29895int
29896main ()
29897{
29898return f != pthread_cancel;
29899 ;
29900 return 0;
29901}
29902_ACEOF
29903rm -f conftest.$ac_objext conftest$ac_exeext
29904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29905 (eval $ac_link) 2>&5
29906 ac_status=$?
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); } &&
29909 { ac_try='test -s conftest$ac_exeext'
29910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29911 (eval $ac_try) 2>&5
29912 ac_status=$?
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); }; }; then
29915 ac_cv_func_pthread_cancel=yes
29916else
29917 echo "$as_me: failed program was:" >&5
29918sed 's/^/| /' conftest.$ac_ext >&5
29919
29920ac_cv_func_pthread_cancel=no
29921fi
29922rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29923fi
29924echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29925echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29926if test $ac_cv_func_pthread_cancel = yes; then
29927 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29928#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29929_ACEOF
4f14bcd8 29930
698dcdb6 29931else
e6cc62c6
VS
29932 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29933echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29934fi
29935
5c6fa7d2 29936
e6cc62c6
VS
29937 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29938echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29939if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29940 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29941else
e6cc62c6
VS
29942
29943 cat >conftest.$ac_ext <<_ACEOF
29944#line $LINENO "configure"
29945/* confdefs.h. */
29946_ACEOF
29947cat confdefs.h >>conftest.$ac_ext
29948cat >>conftest.$ac_ext <<_ACEOF
29949/* end confdefs.h. */
4f14bcd8 29950#include <pthread.h>
e6cc62c6
VS
29951int
29952main ()
29953{
4f14bcd8 29954
7274f1c7
RL
29955 pthread_cleanup_push(NULL, NULL);
29956 pthread_cleanup_pop(0);
e6cc62c6
VS
29957
29958 ;
29959 return 0;
29960}
29961_ACEOF
29962rm -f conftest.$ac_objext
29963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29964 (eval $ac_compile) 2>&5
29965 ac_status=$?
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); } &&
29968 { ac_try='test -s conftest.$ac_objext'
29969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29970 (eval $ac_try) 2>&5
29971 ac_status=$?
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); }; }; then
29974
7274f1c7 29975 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29976
4f14bcd8 29977else
e6cc62c6
VS
29978 echo "$as_me: failed program was:" >&5
29979sed 's/^/| /' conftest.$ac_ext >&5
29980
29981
7274f1c7 29982 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29983
247f5006 29984fi
e6cc62c6 29985rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29986
e6cc62c6
VS
29987fi
29988echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29989echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29990
7274f1c7 29991 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29992 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29993#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29994_ACEOF
c7a2bf27 29995
7274f1c7 29996 fi
4f14bcd8 29997
e6cc62c6
VS
29998
29999 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
30000echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
30001if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
30002 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 30003else
e6cc62c6
VS
30004
30005 cat >conftest.$ac_ext <<_ACEOF
30006#line $LINENO "configure"
30007/* confdefs.h. */
30008_ACEOF
30009cat confdefs.h >>conftest.$ac_ext
30010cat >>conftest.$ac_ext <<_ACEOF
30011/* end confdefs.h. */
4f14bcd8 30012#include <pthread.h>
e6cc62c6
VS
30013int
30014main ()
30015{
4f14bcd8 30016
7274f1c7
RL
30017 pthread_mutexattr_t attr;
30018 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
30019
30020 ;
30021 return 0;
30022}
30023_ACEOF
30024rm -f conftest.$ac_objext
30025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30026 (eval $ac_compile) 2>&5
30027 ac_status=$?
30028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029 (exit $ac_status); } &&
30030 { ac_try='test -s conftest.$ac_objext'
30031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30032 (eval $ac_try) 2>&5
30033 ac_status=$?
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; }; then
30036
7274f1c7 30037 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 30038
3fed1840 30039else
e6cc62c6
VS
30040 echo "$as_me: failed program was:" >&5
30041sed 's/^/| /' conftest.$ac_ext >&5
30042
30043
7274f1c7 30044 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
30045
30046
247f5006 30047fi
e6cc62c6 30048rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30049
e6cc62c6
VS
30050fi
30051echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30052echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 30053
7274f1c7 30054 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 30055 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30056#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 30057_ACEOF
4f14bcd8 30058
7274f1c7 30059 else
e6cc62c6
VS
30060 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30061echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30062if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30063 echo $ECHO_N "(cached) $ECHO_C" >&6
30064else
30065
30066 cat >conftest.$ac_ext <<_ACEOF
30067#line $LINENO "configure"
30068/* confdefs.h. */
30069_ACEOF
30070cat confdefs.h >>conftest.$ac_ext
30071cat >>conftest.$ac_ext <<_ACEOF
30072/* end confdefs.h. */
4f14bcd8 30073#include <pthread.h>
e6cc62c6
VS
30074int
30075main ()
30076{
4f14bcd8 30077
7274f1c7 30078 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
30079
30080 ;
30081 return 0;
30082}
30083_ACEOF
30084rm -f conftest.$ac_objext
30085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30086 (eval $ac_compile) 2>&5
30087 ac_status=$?
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); } &&
30090 { ac_try='test -s conftest.$ac_objext'
30091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092 (eval $ac_try) 2>&5
30093 ac_status=$?
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); }; }; then
30096
7274f1c7 30097 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30098
698dcdb6 30099else
e6cc62c6
VS
30100 echo "$as_me: failed program was:" >&5
30101sed 's/^/| /' conftest.$ac_ext >&5
30102
30103
7274f1c7 30104 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30105
30106
247f5006 30107fi
e6cc62c6 30108rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30109
e6cc62c6
VS
30110fi
30111echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30112echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30113 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30114 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30115#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30116_ACEOF
3fed1840 30117
7274f1c7 30118 else
e6cc62c6
VS
30119 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30120echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30121 fi
30122 fi
7274f1c7 30123 fi
3fed1840 30124
a0b9e27f
MB
30125else
30126 if test "$wxUSE_THREADS" = "yes" ; then
30127 case "${host}" in
30128 *-*-mingw32* )
e6cc62c6
VS
30129 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30130echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30131if test "${wx_cv_cflags_mthread+set}" = set; then
30132 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30133else
e6cc62c6 30134
ca8e52b3
VZ
30135 CFLAGS_OLD="$CFLAGS"
30136 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
30137 cat >conftest.$ac_ext <<_ACEOF
30138#line $LINENO "configure"
30139/* confdefs.h. */
30140_ACEOF
30141cat confdefs.h >>conftest.$ac_ext
30142cat >>conftest.$ac_ext <<_ACEOF
30143/* end confdefs.h. */
30144
30145int
30146main ()
30147{
ca8e52b3 30148
e6cc62c6
VS
30149 ;
30150 return 0;
30151}
30152_ACEOF
30153rm -f conftest.$ac_objext
30154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30155 (eval $ac_compile) 2>&5
30156 ac_status=$?
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); } &&
30159 { ac_try='test -s conftest.$ac_objext'
30160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30161 (eval $ac_try) 2>&5
30162 ac_status=$?
30163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164 (exit $ac_status); }; }; then
ca8e52b3
VZ
30165 wx_cv_cflags_mthread=yes
30166else
e6cc62c6
VS
30167 echo "$as_me: failed program was:" >&5
30168sed 's/^/| /' conftest.$ac_ext >&5
30169
30170wx_cv_cflags_mthread=no
30171
ca8e52b3 30172fi
e6cc62c6
VS
30173rm -f conftest.$ac_objext conftest.$ac_ext
30174
ca8e52b3 30175
e6cc62c6
VS
30176fi
30177echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30178echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30179
30180 if test "$wx_cv_cflags_mthread" = "yes"; then
30181 CXXFLAGS="$CXXFLAGS -mthreads"
30182 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30183 LDFLAGS="$LDFLAGS -mthreads"
30184 else
30185 CFLAGS="$CFLAGS_OLD"
30186 fi
a0b9e27f
MB
30187 ;;
30188 esac
30189 fi
4f14bcd8
GD
30190fi
30191
30192if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30193 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30194#define wxUSE_THREADS 1
e6cc62c6 30195_ACEOF
7b6058cd 30196
8284b0c5 30197
4f14bcd8 30198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30199else
4f14bcd8 30200 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30201 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30202echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30203 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30204 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30205 echo "$as_me:$LINENO: result: yes" >&5
30206echo "${ECHO_T}yes" >&6
4f14bcd8 30207 else
e6cc62c6
VS
30208 echo "$as_me:$LINENO: result: no" >&5
30209echo "${ECHO_T}no" >&6
4f14bcd8
GD
30210 fi
30211 fi
30212fi
30213
30214if test "$WXGTK20" = 1 ; then
e6cc62c6 30215 cat >>confdefs.h <<_ACEOF
4f14bcd8 30216#define __WXGTK20__ $WXGTK20
e6cc62c6 30217_ACEOF
4f14bcd8
GD
30218
30219 WXGTK12=1
10f2d63a 30220fi
4f14bcd8
GD
30221
30222if test "$WXGTK12" = 1 ; then
e6cc62c6 30223 cat >>confdefs.h <<_ACEOF
4f14bcd8 30224#define __WXGTK12__ $WXGTK12
e6cc62c6 30225_ACEOF
4f14bcd8 30226
10f2d63a 30227fi
698dcdb6 30228
4f14bcd8 30229if test "$WXGTK127" = 1 ; then
e6cc62c6 30230 cat >>confdefs.h <<_ACEOF
4f14bcd8 30231#define __WXGTK127__ $WXGTK127
e6cc62c6 30232_ACEOF
4f14bcd8 30233
698dcdb6 30234fi
10f2d63a 30235
4f14bcd8
GD
30236WXDEBUG=
30237
30238if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30239 WXDEBUG="-g"
30240 wxUSE_OPTIMISE=no
698dcdb6 30241fi
4f14bcd8
GD
30242
30243if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30244 wxUSE_DEBUG_INFO=yes
30245 WXDEBUG="-ggdb"
10f2d63a
VZ
30246fi
30247
4f14bcd8 30248if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30249 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30250#define WXDEBUG 1
e6cc62c6 30251_ACEOF
4f14bcd8
GD
30252
30253 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30254else
4f14bcd8
GD
30255 if test "$wxUSE_GTK" = 1 ; then
30256 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30257 fi
30258fi
30259
30260if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30261 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30262#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30263_ACEOF
4f14bcd8 30264
e6cc62c6 30265 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30266#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30267_ACEOF
4f14bcd8 30268
e6cc62c6 30269 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30270#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30271_ACEOF
4f14bcd8
GD
30272
30273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30274fi
30275
30276if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30277 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30278fi
30279
30280PROFILE=
30281if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30282 PROFILE=" -pg"
10f2d63a
VZ
30283fi
30284
009fead0
VZ
30285CODE_GEN_FLAGS=
30286CODE_GEN_FLAGS_CXX=
88e30f2b 30287if test "$GCC" = "yes" ; then
4f14bcd8
GD
30288 if test "$wxUSE_NO_RTTI" = "yes" ; then
30289 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30290 fi
4f14bcd8
GD
30291 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30292 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30293 fi
30294 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30295 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30296 fi
1d1b75ac 30297
2b5f62a0 30298 case "${host}" in
1d1b75ac
VZ
30299 powerpc*-*-aix* )
30300 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30301 ;;
2b5f62a0
VZ
30302 *-hppa* )
30303 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30304 ;;
1d1b75ac 30305 esac
4f14bcd8
GD
30306fi
30307
af7b5345 30308OPTIMISE=
4f14bcd8 30309if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30310 if test "$GCC" = yes ; then
30311 OPTIMISE="-O0"
30312 fi
4f14bcd8
GD
30313else
30314 if test "$GCC" = yes ; then
30315 OPTIMISE="-O2"
af7b5345
VZ
30316
30317 case "${host}" in
4f14bcd8
GD
30318 i586-*-*|i686-*-* )
30319 OPTIMISE="${OPTIMISE} "
30320 ;;
30321 esac
30322 else
30323 OPTIMISE="-O"
30324 fi
30325fi
30326
8d90d2f2 30327
4f14bcd8 30328if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
e6cc62c6 30329 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30330#define WXWIN_COMPATIBILITY_2 1
e6cc62c6 30331_ACEOF
4f14bcd8 30332
8284b0c5 30333
4f14bcd8
GD
30334 WXWIN_COMPATIBILITY_2_2="yes"
30335fi
30336
65d8ef1e 30337if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30338 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30339#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30340_ACEOF
4f14bcd8 30341
8d90d2f2
VZ
30342
30343 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30344fi
30345
65d8ef1e 30346if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30347 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30348#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30349_ACEOF
65d8ef1e
VS
30350
30351fi
30352
8284b0c5 30353
10f2d63a 30354if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30355 cat >>confdefs.h <<\_ACEOF
10f2d63a 30356#define wxUSE_GUI 1
e6cc62c6 30357_ACEOF
10f2d63a 30358
8284b0c5 30359
10f2d63a 30360 else
e6cc62c6 30361 cat >>confdefs.h <<\_ACEOF
10f2d63a 30362#define wxUSE_NOGUI 1
e6cc62c6 30363_ACEOF
10f2d63a
VZ
30364
30365fi
30366
8284b0c5 30367
10f2d63a 30368if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30369 cat >>confdefs.h <<\_ACEOF
10f2d63a 30370#define wxUSE_UNIX 1
e6cc62c6 30371_ACEOF
10f2d63a
VZ
30372
30373fi
30374
8284b0c5 30375
df5168c4
MB
30376if test "$wxUSE_STL" = "yes"; then
30377 cat >>confdefs.h <<\_ACEOF
30378#define wxUSE_STL 1
30379_ACEOF
30380
30381fi
30382
10f2d63a 30383if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30384 cat >>confdefs.h <<\_ACEOF
10f2d63a 30385#define wxUSE_APPLE_IEEE 1
e6cc62c6 30386_ACEOF
10f2d63a
VZ
30387
30388fi
30389
1e6feb95 30390if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30391 cat >>confdefs.h <<\_ACEOF
1e6feb95 30392#define wxUSE_TIMER 1
e6cc62c6 30393_ACEOF
1e6feb95
VZ
30394
30395fi
30396
10f2d63a 30397if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30398 cat >>confdefs.h <<\_ACEOF
10f2d63a 30399#define wxUSE_WAVE 1
e6cc62c6 30400_ACEOF
10f2d63a
VZ
30401
30402fi
30403
1e6feb95 30404if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30405 cat >>confdefs.h <<\_ACEOF
1e6feb95 30406#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30407_ACEOF
1e6feb95
VZ
30408
30409fi
30410
30411if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30412 cat >>confdefs.h <<\_ACEOF
1e6feb95 30413#define wxUSE_STOPWATCH 1
e6cc62c6 30414_ACEOF
1e6feb95
VZ
30415
30416fi
30417
30418if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30419 cat >>confdefs.h <<\_ACEOF
1e6feb95 30420#define wxUSE_DATETIME 1
e6cc62c6 30421_ACEOF
1e6feb95
VZ
30422
30423fi
30424
10f2d63a 30425if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30426 cat >>confdefs.h <<\_ACEOF
10f2d63a 30427#define wxUSE_FILE 1
e6cc62c6 30428_ACEOF
10f2d63a
VZ
30429
30430fi
30431
1e6feb95 30432if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30433 cat >>confdefs.h <<\_ACEOF
1e6feb95 30434#define wxUSE_FFILE 1
e6cc62c6 30435_ACEOF
1e6feb95
VZ
30436
30437fi
30438
24528b0c 30439if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30440 cat >>confdefs.h <<\_ACEOF
24528b0c 30441#define wxUSE_FILESYSTEM 1
e6cc62c6 30442_ACEOF
24528b0c
VS
30443
30444fi
30445
10f2d63a 30446if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30447 cat >>confdefs.h <<\_ACEOF
10f2d63a 30448#define wxUSE_FS_ZIP 1
e6cc62c6 30449_ACEOF
10f2d63a
VZ
30450
30451fi
30452
30453if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30454 cat >>confdefs.h <<\_ACEOF
10f2d63a 30455#define wxUSE_ZIPSTREAM 1
e6cc62c6 30456_ACEOF
10f2d63a
VZ
30457
30458fi
30459
eb4efbdc 30460if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30461 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30462#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30463_ACEOF
eb4efbdc
VZ
30464
30465fi
30466
4f3c5f06 30467if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30468 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30469#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30470_ACEOF
4f3c5f06
VZ
30471
30472fi
30473
10f2d63a 30474if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30475 cat >>confdefs.h <<\_ACEOF
10f2d63a 30476#define wxUSE_BUSYINFO 1
e6cc62c6 30477_ACEOF
10f2d63a
VZ
30478
30479fi
30480
30481if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30482 cat >>confdefs.h <<\_ACEOF
10f2d63a 30483#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30484_ACEOF
10f2d63a
VZ
30485
30486fi
30487
a3a584a7 30488if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30489 cat >>confdefs.h <<\_ACEOF
a3a584a7 30490#define wxUSE_TEXTBUFFER 1
e6cc62c6 30491_ACEOF
a3a584a7
VZ
30492
30493fi
30494
10f2d63a 30495if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30496 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30497 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30498echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30499 else
e6cc62c6 30500 cat >>confdefs.h <<\_ACEOF
10f2d63a 30501#define wxUSE_TEXTFILE 1
e6cc62c6 30502_ACEOF
10f2d63a
VZ
30503
30504 fi
30505fi
30506
30507if test "$wxUSE_CONFIG" = "yes" ; then
30508 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30509 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30510echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30511 else
e6cc62c6 30512 cat >>confdefs.h <<\_ACEOF
10f2d63a 30513#define wxUSE_CONFIG 1
e6cc62c6 30514_ACEOF
10f2d63a
VZ
30515
30516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30517 fi
30518fi
30519
30520if test "$wxUSE_INTL" = "yes" ; then
30521 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30522 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30523echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30524 else
e6cc62c6 30525 cat >>confdefs.h <<\_ACEOF
10f2d63a 30526#define wxUSE_INTL 1
e6cc62c6 30527_ACEOF
10f2d63a
VZ
30528
30529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30530 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30531 fi
30532fi
30533
30534if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30535 cat >>confdefs.h <<\_ACEOF
10f2d63a 30536#define wxUSE_LOG 1
e6cc62c6 30537_ACEOF
10f2d63a 30538
8284b0c5 30539
d73be714 30540 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30541 cat >>confdefs.h <<\_ACEOF
d73be714 30542#define wxUSE_LOGGUI 1
e6cc62c6 30543_ACEOF
d73be714
VZ
30544
30545 fi
30546
30547 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30548 cat >>confdefs.h <<\_ACEOF
d73be714 30549#define wxUSE_LOGWINDOW 1
e6cc62c6 30550_ACEOF
69d27ff7
MB
30551
30552 fi
30553
30554 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30555 cat >>confdefs.h <<\_ACEOF
69d27ff7 30556#define wxUSE_LOG_DIALOG 1
e6cc62c6 30557_ACEOF
d73be714
VZ
30558
30559 fi
10f2d63a
VZ
30560fi
30561
30562if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30563 cat >>confdefs.h <<\_ACEOF
10f2d63a 30564#define wxUSE_LONGLONG 1
e6cc62c6 30565_ACEOF
10f2d63a
VZ
30566
30567fi
30568
e8f65ba6 30569if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30570 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30571#define wxUSE_GEOMETRY 1
e6cc62c6 30572_ACEOF
e8f65ba6
RR
30573
30574fi
30575
10f2d63a 30576if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30577 cat >>confdefs.h <<\_ACEOF
10f2d63a 30578#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30579_ACEOF
10f2d63a 30580
70f7a477 30581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30582fi
30583
30584if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30585 cat >>confdefs.h <<\_ACEOF
10f2d63a 30586#define wxUSE_STREAMS 1
e6cc62c6 30587_ACEOF
10f2d63a
VZ
30588
30589fi
30590
5c6fa7d2 30591
8284b0c5 30592if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30593
30594for ac_func in strptime
83307f33 30595do
e6cc62c6
VS
30596as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30597echo "$as_me:$LINENO: checking for $ac_func" >&5
30598echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30599if eval "test \"\${$as_ac_var+set}\" = set"; then
30600 echo $ECHO_N "(cached) $ECHO_C" >&6
30601else
30602 cat >conftest.$ac_ext <<_ACEOF
30603#line $LINENO "configure"
30604/* confdefs.h. */
30605_ACEOF
30606cat confdefs.h >>conftest.$ac_ext
30607cat >>conftest.$ac_ext <<_ACEOF
30608/* end confdefs.h. */
83307f33 30609/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30610 which can conflict with char $ac_func (); below.
30611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30612 <limits.h> exists even on freestanding compilers. */
30613#ifdef __STDC__
30614# include <limits.h>
30615#else
30616# include <assert.h>
30617#endif
83307f33 30618/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30619#ifdef __cplusplus
30620extern "C"
30621{
30622#endif
83307f33 30623/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30624 builtin and then its argument prototype would still apply. */
30625char $ac_func ();
83307f33
VZ
30626/* The GNU C library defines this for functions which it implements
30627 to always fail with ENOSYS. Some functions are actually named
30628 something starting with __ and the normal name is an alias. */
30629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30630choke me
30631#else
e6cc62c6
VS
30632char (*f) () = $ac_func;
30633#endif
30634#ifdef __cplusplus
30635}
83307f33
VZ
30636#endif
30637
e6cc62c6
VS
30638int
30639main ()
30640{
30641return f != $ac_func;
30642 ;
30643 return 0;
30644}
30645_ACEOF
30646rm -f conftest.$ac_objext conftest$ac_exeext
30647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30648 (eval $ac_link) 2>&5
30649 ac_status=$?
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); } &&
30652 { ac_try='test -s conftest$ac_exeext'
30653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30654 (eval $ac_try) 2>&5
30655 ac_status=$?
30656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); }; }; then
30658 eval "$as_ac_var=yes"
30659else
30660 echo "$as_me: failed program was:" >&5
30661sed 's/^/| /' conftest.$ac_ext >&5
30662
30663eval "$as_ac_var=no"
30664fi
30665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30666fi
30667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30669if test `eval echo '${'$as_ac_var'}'` = yes; then
30670 cat >>confdefs.h <<_ACEOF
30671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30672_ACEOF
83307f33 30673
83307f33
VZ
30674fi
30675done
30676
5c6fa7d2 30677
e6cc62c6
VS
30678 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30679echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30680if test "${wx_cv_var_timezone+set}" = set; then
30681 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30682else
e6cc62c6
VS
30683
30684 cat >conftest.$ac_ext <<_ACEOF
30685#line $LINENO "configure"
30686/* confdefs.h. */
30687_ACEOF
30688cat confdefs.h >>conftest.$ac_ext
30689cat >>conftest.$ac_ext <<_ACEOF
30690/* end confdefs.h. */
360d6699 30691
b4085ce6 30692 #include <time.h>
e6cc62c6
VS
30693
30694int
30695main ()
30696{
360d6699
VZ
30697
30698 int tz;
4f11a343 30699 tz = timezone;
e6cc62c6
VS
30700
30701 ;
30702 return 0;
30703}
30704_ACEOF
30705rm -f conftest.$ac_objext
30706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30707 (eval $ac_compile) 2>&5
30708 ac_status=$?
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); } &&
30711 { ac_try='test -s conftest.$ac_objext'
30712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30713 (eval $ac_try) 2>&5
30714 ac_status=$?
30715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716 (exit $ac_status); }; }; then
30717
4f11a343 30718 wx_cv_var_timezone=timezone
e6cc62c6 30719
360d6699 30720else
e6cc62c6
VS
30721 echo "$as_me: failed program was:" >&5
30722sed 's/^/| /' conftest.$ac_ext >&5
30723
30724
30725 cat >conftest.$ac_ext <<_ACEOF
30726#line $LINENO "configure"
30727/* confdefs.h. */
30728_ACEOF
30729cat confdefs.h >>conftest.$ac_ext
30730cat >>conftest.$ac_ext <<_ACEOF
30731/* end confdefs.h. */
360d6699 30732
b4085ce6 30733 #include <time.h>
e6cc62c6
VS
30734
30735int
30736main ()
30737{
360d6699
VZ
30738
30739 int tz;
30740 tz = _timezone;
e6cc62c6
VS
30741
30742 ;
30743 return 0;
30744}
30745_ACEOF
30746rm -f conftest.$ac_objext
30747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30748 (eval $ac_compile) 2>&5
30749 ac_status=$?
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); } &&
30752 { ac_try='test -s conftest.$ac_objext'
30753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30754 (eval $ac_try) 2>&5
30755 ac_status=$?
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; }; then
30758
360d6699 30759 wx_cv_var_timezone=_timezone
e6cc62c6 30760
5357c8e8 30761else
e6cc62c6
VS
30762 echo "$as_me: failed program was:" >&5
30763sed 's/^/| /' conftest.$ac_ext >&5
30764
30765
30766 cat >conftest.$ac_ext <<_ACEOF
30767#line $LINENO "configure"
30768/* confdefs.h. */
30769_ACEOF
30770cat confdefs.h >>conftest.$ac_ext
30771cat >>conftest.$ac_ext <<_ACEOF
30772/* end confdefs.h. */
5357c8e8 30773
b4085ce6 30774 #include <time.h>
e6cc62c6
VS
30775
30776int
30777main ()
30778{
5357c8e8
VZ
30779
30780 int tz;
4f11a343 30781 tz = __timezone;
e6cc62c6
VS
30782
30783 ;
30784 return 0;
30785}
30786_ACEOF
30787rm -f conftest.$ac_objext
30788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30789 (eval $ac_compile) 2>&5
30790 ac_status=$?
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); } &&
30793 { ac_try='test -s conftest.$ac_objext'
30794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30795 (eval $ac_try) 2>&5
30796 ac_status=$?
30797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30798 (exit $ac_status); }; }; then
30799
4f11a343 30800 wx_cv_var_timezone=__timezone
e6cc62c6 30801
360d6699 30802else
e6cc62c6
VS
30803 echo "$as_me: failed program was:" >&5
30804sed 's/^/| /' conftest.$ac_ext >&5
30805
30806
f9bc1684 30807 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30808 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30809echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30810 fi
e6cc62c6
VS
30811
30812
7b4a847f 30813fi
e6cc62c6
VS
30814rm -f conftest.$ac_objext conftest.$ac_ext
30815
30816
5c6fa7d2 30817fi
e6cc62c6
VS
30818rm -f conftest.$ac_objext conftest.$ac_ext
30819
30820
247f5006 30821fi
e6cc62c6 30822rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30823
e6cc62c6
VS
30824
30825fi
30826echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30827echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30828
f9bc1684 30829 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30830 cat >>confdefs.h <<_ACEOF
360d6699 30831#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30832_ACEOF
360d6699 30833
f9bc1684 30834 fi
698dcdb6 30835
e6cc62c6
VS
30836
30837for ac_func in localtime
afc31813 30838do
e6cc62c6
VS
30839as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30840echo "$as_me:$LINENO: checking for $ac_func" >&5
30841echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30842if eval "test \"\${$as_ac_var+set}\" = set"; then
30843 echo $ECHO_N "(cached) $ECHO_C" >&6
30844else
30845 cat >conftest.$ac_ext <<_ACEOF
30846#line $LINENO "configure"
30847/* confdefs.h. */
30848_ACEOF
30849cat confdefs.h >>conftest.$ac_ext
30850cat >>conftest.$ac_ext <<_ACEOF
30851/* end confdefs.h. */
afc31813 30852/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30853 which can conflict with char $ac_func (); below.
30854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30855 <limits.h> exists even on freestanding compilers. */
30856#ifdef __STDC__
30857# include <limits.h>
30858#else
30859# include <assert.h>
30860#endif
afc31813 30861/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30862#ifdef __cplusplus
30863extern "C"
30864{
30865#endif
afc31813 30866/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30867 builtin and then its argument prototype would still apply. */
30868char $ac_func ();
afc31813
VZ
30869/* The GNU C library defines this for functions which it implements
30870 to always fail with ENOSYS. Some functions are actually named
30871 something starting with __ and the normal name is an alias. */
30872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30873choke me
30874#else
e6cc62c6
VS
30875char (*f) () = $ac_func;
30876#endif
30877#ifdef __cplusplus
30878}
afc31813
VZ
30879#endif
30880
e6cc62c6
VS
30881int
30882main ()
30883{
30884return f != $ac_func;
30885 ;
30886 return 0;
30887}
30888_ACEOF
30889rm -f conftest.$ac_objext conftest$ac_exeext
30890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30891 (eval $ac_link) 2>&5
30892 ac_status=$?
30893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894 (exit $ac_status); } &&
30895 { ac_try='test -s conftest$ac_exeext'
30896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30897 (eval $ac_try) 2>&5
30898 ac_status=$?
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; }; then
30901 eval "$as_ac_var=yes"
30902else
30903 echo "$as_me: failed program was:" >&5
30904sed 's/^/| /' conftest.$ac_ext >&5
30905
30906eval "$as_ac_var=no"
30907fi
30908rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30909fi
30910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30912if test `eval echo '${'$as_ac_var'}'` = yes; then
30913 cat >>confdefs.h <<_ACEOF
30914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30915_ACEOF
afc31813 30916
afc31813
VZ
30917fi
30918done
30919
5c6fa7d2 30920
8284b0c5 30921 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30922 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30923echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30924if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30925 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30926else
e6cc62c6
VS
30927
30928 cat >conftest.$ac_ext <<_ACEOF
30929#line $LINENO "configure"
30930/* confdefs.h. */
30931_ACEOF
30932cat confdefs.h >>conftest.$ac_ext
30933cat >>conftest.$ac_ext <<_ACEOF
30934/* end confdefs.h. */
0470b1e6 30935
b4085ce6 30936 #include <time.h>
e6cc62c6
VS
30937
30938int
30939main ()
30940{
0470b1e6
VZ
30941
30942 struct tm tm;
30943 tm.tm_gmtoff++;
e6cc62c6
VS
30944
30945 ;
30946 return 0;
30947}
30948_ACEOF
30949rm -f conftest.$ac_objext
30950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30951 (eval $ac_compile) 2>&5
30952 ac_status=$?
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); } &&
30955 { ac_try='test -s conftest.$ac_objext'
30956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30957 (eval $ac_try) 2>&5
30958 ac_status=$?
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); }; }; then
30961
f03a98d8 30962 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30963
0470b1e6 30964else
e6cc62c6
VS
30965 echo "$as_me: failed program was:" >&5
30966sed 's/^/| /' conftest.$ac_ext >&5
30967
30968wx_cv_struct_tm_has_gmtoff=no
30969
247f5006 30970fi
e6cc62c6 30971rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30972
e6cc62c6
VS
30973fi
30974echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30975echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30976 fi
30977
30978 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30979 cat >>confdefs.h <<\_ACEOF
6232543b 30980#define WX_GMTOFF_IN_TM 1
e6cc62c6 30981_ACEOF
0470b1e6 30982
3fcdd07b
VZ
30983 fi
30984
e6cc62c6
VS
30985
30986
30987for ac_func in gettimeofday ftime
3fcdd07b 30988do
e6cc62c6
VS
30989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30990echo "$as_me:$LINENO: checking for $ac_func" >&5
30991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30992if eval "test \"\${$as_ac_var+set}\" = set"; then
30993 echo $ECHO_N "(cached) $ECHO_C" >&6
30994else
30995 cat >conftest.$ac_ext <<_ACEOF
30996#line $LINENO "configure"
30997/* confdefs.h. */
30998_ACEOF
30999cat confdefs.h >>conftest.$ac_ext
31000cat >>conftest.$ac_ext <<_ACEOF
31001/* end confdefs.h. */
3fcdd07b 31002/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31003 which can conflict with char $ac_func (); below.
31004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31005 <limits.h> exists even on freestanding compilers. */
31006#ifdef __STDC__
31007# include <limits.h>
31008#else
31009# include <assert.h>
31010#endif
3fcdd07b 31011/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31012#ifdef __cplusplus
31013extern "C"
31014{
31015#endif
3fcdd07b 31016/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31017 builtin and then its argument prototype would still apply. */
31018char $ac_func ();
3fcdd07b
VZ
31019/* The GNU C library defines this for functions which it implements
31020 to always fail with ENOSYS. Some functions are actually named
31021 something starting with __ and the normal name is an alias. */
31022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31023choke me
31024#else
e6cc62c6
VS
31025char (*f) () = $ac_func;
31026#endif
31027#ifdef __cplusplus
31028}
3fcdd07b
VZ
31029#endif
31030
e6cc62c6
VS
31031int
31032main ()
31033{
31034return f != $ac_func;
31035 ;
31036 return 0;
31037}
31038_ACEOF
31039rm -f conftest.$ac_objext conftest$ac_exeext
31040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31041 (eval $ac_link) 2>&5
31042 ac_status=$?
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); } &&
31045 { ac_try='test -s conftest$ac_exeext'
31046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31047 (eval $ac_try) 2>&5
31048 ac_status=$?
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); }; }; then
31051 eval "$as_ac_var=yes"
31052else
31053 echo "$as_me: failed program was:" >&5
31054sed 's/^/| /' conftest.$ac_ext >&5
31055
31056eval "$as_ac_var=no"
31057fi
31058rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31059fi
31060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31061echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31062if test `eval echo '${'$as_ac_var'}'` = yes; then
31063 cat >>confdefs.h <<_ACEOF
31064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31065_ACEOF
3fcdd07b 31066 break
3fcdd07b
VZ
31067fi
31068done
31069
698dcdb6 31070
8284b0c5 31071 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
31072 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
31073echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
31074if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
31075 echo $ECHO_N "(cached) $ECHO_C" >&6
31076else
31077
31078
31079
31080 ac_ext=cc
5c6fa7d2 31081ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
31082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 31085
8284b0c5 31086
e6cc62c6
VS
31087 cat >conftest.$ac_ext <<_ACEOF
31088#line $LINENO "configure"
31089/* confdefs.h. */
31090_ACEOF
31091cat confdefs.h >>conftest.$ac_ext
31092cat >>conftest.$ac_ext <<_ACEOF
31093/* end confdefs.h. */
afc31813
VZ
31094
31095 #include <sys/time.h>
31096 #include <unistd.h>
e6cc62c6
VS
31097
31098int
31099main ()
31100{
afc31813
VZ
31101
31102 struct timeval tv;
776862b4 31103 gettimeofday(&tv, NULL);
e6cc62c6
VS
31104
31105 ;
31106 return 0;
31107}
31108_ACEOF
31109rm -f conftest.$ac_objext
31110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31111 (eval $ac_compile) 2>&5
31112 ac_status=$?
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); } &&
31115 { ac_try='test -s conftest.$ac_objext'
31116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31117 (eval $ac_try) 2>&5
31118 ac_status=$?
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; }; then
afc31813 31121 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 31122else
e6cc62c6
VS
31123 echo "$as_me: failed program was:" >&5
31124sed 's/^/| /' conftest.$ac_ext >&5
31125
31126cat >conftest.$ac_ext <<_ACEOF
31127#line $LINENO "configure"
31128/* confdefs.h. */
31129_ACEOF
31130cat confdefs.h >>conftest.$ac_ext
31131cat >>conftest.$ac_ext <<_ACEOF
31132/* end confdefs.h. */
afc31813
VZ
31133
31134 #include <sys/time.h>
31135 #include <unistd.h>
e6cc62c6
VS
31136
31137int
31138main ()
31139{
afc31813
VZ
31140
31141 struct timeval tv;
31142 gettimeofday(&tv);
e6cc62c6
VS
31143
31144 ;
31145 return 0;
31146}
31147_ACEOF
31148rm -f conftest.$ac_objext
31149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31150 (eval $ac_compile) 2>&5
31151 ac_status=$?
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); } &&
31154 { ac_try='test -s conftest.$ac_objext'
31155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31156 (eval $ac_try) 2>&5
31157 ac_status=$?
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; }; then
afc31813 31160 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 31161else
e6cc62c6
VS
31162 echo "$as_me: failed program was:" >&5
31163sed 's/^/| /' conftest.$ac_ext >&5
31164
31165
31166 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31167echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 31168 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
31169
31170
10f2d63a 31171fi
e6cc62c6
VS
31172rm -f conftest.$ac_objext conftest.$ac_ext
31173
10f2d63a 31174fi
e6cc62c6 31175rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 31176 ac_ext=c
10f2d63a 31177ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31180ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 31181
a0b9e27f 31182
e6cc62c6
VS
31183fi
31184echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31185echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 31186
afc31813 31187 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 31188 cat >>confdefs.h <<\_ACEOF
afc31813 31189#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 31190_ACEOF
afc31813
VZ
31191
31192 fi
31193 fi
31194
afc31813
VZ
31195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31196fi
31197
8284b0c5 31198
52127426 31199if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 31200 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
31201 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31202echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
31203 wxUSE_SOCKETS="no"
31204 fi
3879ecda
VZ
31205 if test "$wxUSE_COCOA" = "1"; then
31206 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
31207echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
31208 wxUSE_SOCKETS="no"
31209 fi
0feee163 31210fi
b089607b 31211
0feee163
VZ
31212if test "$wxUSE_SOCKETS" = "yes"; then
31213 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31214 echo "$as_me:$LINENO: checking for socket" >&5
31215echo $ECHO_N "checking for socket... $ECHO_C" >&6
31216if test "${ac_cv_func_socket+set}" = set; then
31217 echo $ECHO_N "(cached) $ECHO_C" >&6
31218else
31219 cat >conftest.$ac_ext <<_ACEOF
31220#line $LINENO "configure"
31221/* confdefs.h. */
31222_ACEOF
31223cat confdefs.h >>conftest.$ac_ext
31224cat >>conftest.$ac_ext <<_ACEOF
31225/* end confdefs.h. */
c63c7106 31226/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31227 which can conflict with char socket (); below.
31228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31229 <limits.h> exists even on freestanding compilers. */
31230#ifdef __STDC__
31231# include <limits.h>
31232#else
31233# include <assert.h>
31234#endif
c63c7106 31235/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31236#ifdef __cplusplus
31237extern "C"
31238{
31239#endif
c63c7106 31240/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31241 builtin and then its argument prototype would still apply. */
31242char socket ();
c63c7106
VZ
31243/* The GNU C library defines this for functions which it implements
31244 to always fail with ENOSYS. Some functions are actually named
31245 something starting with __ and the normal name is an alias. */
31246#if defined (__stub_socket) || defined (__stub___socket)
31247choke me
31248#else
e6cc62c6
VS
31249char (*f) () = socket;
31250#endif
31251#ifdef __cplusplus
31252}
c63c7106
VZ
31253#endif
31254
e6cc62c6
VS
31255int
31256main ()
31257{
31258return f != socket;
31259 ;
31260 return 0;
31261}
31262_ACEOF
31263rm -f conftest.$ac_objext conftest$ac_exeext
31264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31265 (eval $ac_link) 2>&5
31266 ac_status=$?
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); } &&
31269 { ac_try='test -s conftest$ac_exeext'
31270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31271 (eval $ac_try) 2>&5
31272 ac_status=$?
31273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274 (exit $ac_status); }; }; then
31275 ac_cv_func_socket=yes
31276else
31277 echo "$as_me: failed program was:" >&5
31278sed 's/^/| /' conftest.$ac_ext >&5
31279
31280ac_cv_func_socket=no
31281fi
31282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31283fi
31284echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31285echo "${ECHO_T}$ac_cv_func_socket" >&6
31286if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31287 :
31288else
e6cc62c6
VS
31289 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
31290echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31291if test "${ac_cv_lib_socket_socket+set}" = set; then
31292 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31293else
e6cc62c6 31294 ac_check_lib_save_LIBS=$LIBS
c63c7106 31295LIBS="-lsocket $LIBS"
e6cc62c6
VS
31296cat >conftest.$ac_ext <<_ACEOF
31297#line $LINENO "configure"
31298/* confdefs.h. */
31299_ACEOF
31300cat confdefs.h >>conftest.$ac_ext
31301cat >>conftest.$ac_ext <<_ACEOF
31302/* end confdefs.h. */
31303
c63c7106 31304/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31305#ifdef __cplusplus
31306extern "C"
31307#endif
c63c7106 31308/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31309 builtin and then its argument prototype would still apply. */
31310char socket ();
31311int
31312main ()
31313{
31314socket ();
31315 ;
31316 return 0;
31317}
31318_ACEOF
31319rm -f conftest.$ac_objext conftest$ac_exeext
31320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31321 (eval $ac_link) 2>&5
31322 ac_status=$?
31323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324 (exit $ac_status); } &&
31325 { ac_try='test -s conftest$ac_exeext'
31326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31327 (eval $ac_try) 2>&5
31328 ac_status=$?
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); }; }; then
31331 ac_cv_lib_socket_socket=yes
31332else
31333 echo "$as_me: failed program was:" >&5
31334sed 's/^/| /' conftest.$ac_ext >&5
31335
31336ac_cv_lib_socket_socket=no
31337fi
31338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31339LIBS=$ac_check_lib_save_LIBS
31340fi
31341echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31342echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31343if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
31344 if test "$INET_LINK" != " -lsocket"; then
31345 INET_LINK="$INET_LINK -lsocket"
31346 fi
c63c7106 31347else
afc31813 31348
e6cc62c6
VS
31349 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
31350echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 31351 wxUSE_SOCKETS=no
e6cc62c6
VS
31352
31353
6232543b 31354fi
b089607b 31355
e6cc62c6 31356
1e487827 31357fi
afc31813 31358
3a922bb4 31359 fi
0feee163 31360fi
51a9faba 31361
0feee163
VZ
31362if test "$wxUSE_SOCKETS" = "yes" ; then
31363 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31364 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31365echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31366if test "${wx_cv_type_getsockname3+set}" = set; then
31367 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31368else
e6cc62c6
VS
31369
31370 cat >conftest.$ac_ext <<_ACEOF
31371#line $LINENO "configure"
31372/* confdefs.h. */
31373_ACEOF
31374cat confdefs.h >>conftest.$ac_ext
31375cat >>conftest.$ac_ext <<_ACEOF
31376/* end confdefs.h. */
51a9faba 31377
3a922bb4
RL
31378 #include <sys/types.h>
31379 #include <sys/socket.h>
e6cc62c6
VS
31380
31381int
31382main ()
31383{
51a9faba 31384
3a922bb4
RL
31385 socklen_t len;
31386 getsockname(0, 0, &len);
e6cc62c6
VS
31387
31388 ;
31389 return 0;
31390}
31391_ACEOF
31392rm -f conftest.$ac_objext
31393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31394 (eval $ac_compile) 2>&5
31395 ac_status=$?
31396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397 (exit $ac_status); } &&
31398 { ac_try='test -s conftest.$ac_objext'
31399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31400 (eval $ac_try) 2>&5
31401 ac_status=$?
31402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31403 (exit $ac_status); }; }; then
51a9faba 31404 wx_cv_type_getsockname3=socklen_t
afc31813 31405else
e6cc62c6
VS
31406 echo "$as_me: failed program was:" >&5
31407sed 's/^/| /' conftest.$ac_ext >&5
31408
31409
9711d31e
GD
31410 CFLAGS_OLD="$CFLAGS"
31411 if test "$GCC" = yes ; then
31412 CFLAGS="$CFLAGS -Werror"
31413 fi
31414
e6cc62c6
VS
31415 cat >conftest.$ac_ext <<_ACEOF
31416#line $LINENO "configure"
31417/* confdefs.h. */
31418_ACEOF
31419cat confdefs.h >>conftest.$ac_ext
31420cat >>conftest.$ac_ext <<_ACEOF
31421/* end confdefs.h. */
51a9faba 31422
9711d31e
GD
31423 #include <sys/types.h>
31424 #include <sys/socket.h>
e6cc62c6
VS
31425
31426int
31427main ()
31428{
51a9faba 31429
9711d31e
GD
31430 size_t len;
31431 getsockname(0, 0, &len);
e6cc62c6
VS
31432
31433 ;
31434 return 0;
31435}
31436_ACEOF
31437rm -f conftest.$ac_objext
31438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31439 (eval $ac_compile) 2>&5
31440 ac_status=$?
31441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); } &&
31443 { ac_try='test -s conftest.$ac_objext'
31444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31445 (eval $ac_try) 2>&5
31446 ac_status=$?
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); }; }; then
51a9faba 31449 wx_cv_type_getsockname3=size_t
afc31813 31450else
e6cc62c6
VS
31451 echo "$as_me: failed program was:" >&5
31452sed 's/^/| /' conftest.$ac_ext >&5
31453
31454cat >conftest.$ac_ext <<_ACEOF
31455#line $LINENO "configure"
31456/* confdefs.h. */
31457_ACEOF
31458cat confdefs.h >>conftest.$ac_ext
31459cat >>conftest.$ac_ext <<_ACEOF
31460/* end confdefs.h. */
51a9faba 31461
9711d31e
GD
31462 #include <sys/types.h>
31463 #include <sys/socket.h>
e6cc62c6
VS
31464
31465int
31466main ()
31467{
51a9faba 31468
9711d31e
GD
31469 int len;
31470 getsockname(0, 0, &len);
e6cc62c6
VS
31471
31472 ;
31473 return 0;
31474}
31475_ACEOF
31476rm -f conftest.$ac_objext
31477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31478 (eval $ac_compile) 2>&5
31479 ac_status=$?
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); } &&
31482 { ac_try='test -s conftest.$ac_objext'
31483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31484 (eval $ac_try) 2>&5
31485 ac_status=$?
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); }; }; then
51a9faba 31488 wx_cv_type_getsockname3=int
afc31813 31489else
e6cc62c6
VS
31490 echo "$as_me: failed program was:" >&5
31491sed 's/^/| /' conftest.$ac_ext >&5
31492
31493wx_cv_type_getsockname3=unknown
31494
afc31813 31495fi
e6cc62c6
VS
31496rm -f conftest.$ac_objext conftest.$ac_ext
31497
afc31813 31498fi
e6cc62c6 31499rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31500
31501 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31502
31503
247f5006 31504fi
e6cc62c6 31505rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31506
e6cc62c6
VS
31507fi
31508echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31509echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31510
3a922bb4
RL
31511 if test "$wx_cv_type_getsockname3" = "unknown"; then
31512 wxUSE_SOCKETS=no
e6cc62c6
VS
31513 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31514echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31515 else
e6cc62c6 31516 cat >>confdefs.h <<_ACEOF
51a9faba 31517#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31518_ACEOF
51a9faba 31519
3a922bb4 31520 fi
51a9faba
VZ
31521 fi
31522fi
afc31813 31523
51a9faba 31524if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31525 cat >>confdefs.h <<\_ACEOF
afc31813 31526#define wxUSE_SOCKETS 1
e6cc62c6 31527_ACEOF
afc31813 31528
70f7a477 31529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31530fi
31531
3879ecda
VZ
31532if test "$wxUSE_PROTOCOL" = "yes"; then
31533 if test "$wxUSE_SOCKETS" != "yes"; then
31534 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31535echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31536 wxUSE_PROTOCOL=no
31537 fi
31538fi
31539
31540if test "$wxUSE_PROTOCOL" = "yes"; then
31541 cat >>confdefs.h <<\_ACEOF
31542#define wxUSE_PROTOCOL 1
31543_ACEOF
31544
31545
31546 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31547 cat >>confdefs.h <<\_ACEOF
31548#define wxUSE_PROTOCOL_HTTP 1
31549_ACEOF
31550
31551 fi
31552 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31553 cat >>confdefs.h <<\_ACEOF
31554#define wxUSE_PROTOCOL_FTP 1
31555_ACEOF
31556
31557 fi
31558 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31559 cat >>confdefs.h <<\_ACEOF
31560#define wxUSE_PROTOCOL_FILE 1
31561_ACEOF
31562
31563 fi
31564else
31565 if test "$wxUSE_FS_INET" = "yes"; then
31566 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31567echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31568 wxUSE_FS_INET="no"
31569 fi
31570fi
31571
31572if test "$wxUSE_URL" = "yes"; then
31573 if test "$wxUSE_PROTOCOL" != "yes"; then
31574 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31575echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31576 wxUSE_URL=no
31577 fi
31578 if test "$wxUSE_URL" = "yes"; then
31579 cat >>confdefs.h <<\_ACEOF
31580#define wxUSE_URL 1
31581_ACEOF
31582
31583 fi
31584fi
31585
31586if test "$wxUSE_FS_INET" = "yes"; then
31587 cat >>confdefs.h <<\_ACEOF
31588#define wxUSE_FS_INET 1
31589_ACEOF
31590
31591fi
31592
8284b0c5 31593
dc3d889d
VZ
31594if test "$wxUSE_GUI" = "yes"; then
31595
ac0c4cc3 31596 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31597 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31598echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31599 wxUSE_JOYSTICK=no
156b2523
GD
31600 fi
31601
131f235d 31602 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31603 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31604
31605for ac_header in linux/joystick.h
10f2d63a 31606do
e6cc62c6
VS
31607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31608if eval "test \"\${$as_ac_Header+set}\" = set"; then
31609 echo "$as_me:$LINENO: checking for $ac_header" >&5
31610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31611if eval "test \"\${$as_ac_Header+set}\" = set"; then
31612 echo $ECHO_N "(cached) $ECHO_C" >&6
31613fi
31614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31616else
31617 # Is the header compilable?
31618echo "$as_me:$LINENO: checking $ac_header usability" >&5
31619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31620cat >conftest.$ac_ext <<_ACEOF
31621#line $LINENO "configure"
31622/* confdefs.h. */
31623_ACEOF
31624cat confdefs.h >>conftest.$ac_ext
31625cat >>conftest.$ac_ext <<_ACEOF
31626/* end confdefs.h. */
31627$ac_includes_default
31628#include <$ac_header>
31629_ACEOF
31630rm -f conftest.$ac_objext
31631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31632 (eval $ac_compile) 2>&5
31633 ac_status=$?
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); } &&
31636 { ac_try='test -s conftest.$ac_objext'
31637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31638 (eval $ac_try) 2>&5
31639 ac_status=$?
31640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641 (exit $ac_status); }; }; then
31642 ac_header_compiler=yes
31643else
31644 echo "$as_me: failed program was:" >&5
31645sed 's/^/| /' conftest.$ac_ext >&5
31646
31647ac_header_compiler=no
31648fi
31649rm -f conftest.$ac_objext conftest.$ac_ext
31650echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31651echo "${ECHO_T}$ac_header_compiler" >&6
31652
31653# Is the header present?
31654echo "$as_me:$LINENO: checking $ac_header presence" >&5
31655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31656cat >conftest.$ac_ext <<_ACEOF
31657#line $LINENO "configure"
31658/* confdefs.h. */
31659_ACEOF
31660cat confdefs.h >>conftest.$ac_ext
31661cat >>conftest.$ac_ext <<_ACEOF
31662/* end confdefs.h. */
31663#include <$ac_header>
31664_ACEOF
31665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31667 ac_status=$?
31668 grep -v '^ *+' conftest.er1 >conftest.err
31669 rm -f conftest.er1
31670 cat conftest.err >&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); } >/dev/null; then
31673 if test -s conftest.err; then
31674 ac_cpp_err=$ac_c_preproc_warn_flag
31675 else
31676 ac_cpp_err=
31677 fi
31678else
31679 ac_cpp_err=yes
31680fi
31681if test -z "$ac_cpp_err"; then
31682 ac_header_preproc=yes
31683else
31684 echo "$as_me: failed program was:" >&5
31685sed 's/^/| /' conftest.$ac_ext >&5
31686
31687 ac_header_preproc=no
31688fi
31689rm -f conftest.err conftest.$ac_ext
31690echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31691echo "${ECHO_T}$ac_header_preproc" >&6
31692
31693# So? What about this header?
31694case $ac_header_compiler:$ac_header_preproc in
31695 yes:no )
31696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31700 (
31701 cat <<\_ASBOX
31702## ------------------------------------ ##
31703## Report this to bug-autoconf@gnu.org. ##
31704## ------------------------------------ ##
31705_ASBOX
31706 ) |
31707 sed "s/^/$as_me: WARNING: /" >&2
31708 ;;
31709 no:yes )
31710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31713echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31715echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31716 (
31717 cat <<\_ASBOX
31718## ------------------------------------ ##
31719## Report this to bug-autoconf@gnu.org. ##
31720## ------------------------------------ ##
31721_ASBOX
31722 ) |
31723 sed "s/^/$as_me: WARNING: /" >&2
31724 ;;
31725esac
31726echo "$as_me:$LINENO: checking for $ac_header" >&5
31727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31728if eval "test \"\${$as_ac_Header+set}\" = set"; then
31729 echo $ECHO_N "(cached) $ECHO_C" >&6
31730else
31731 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31732fi
e6cc62c6
VS
31733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31735
10f2d63a 31736fi
e6cc62c6
VS
31737if test `eval echo '${'$as_ac_Header'}'` = yes; then
31738 cat >>confdefs.h <<_ACEOF
31739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31740_ACEOF
31741
247f5006 31742fi
e6cc62c6 31743
10f2d63a
VZ
31744done
31745
3a922bb4
RL
31746 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31747 wxUSE_JOYSTICK=no
e6cc62c6
VS
31748 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31749echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31750 fi
31751 fi
31752 fi
b089607b 31753
3a922bb4 31754 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31755 cat >>confdefs.h <<\_ACEOF
10f2d63a 31756#define wxUSE_JOYSTICK 1
e6cc62c6 31757_ACEOF
10f2d63a 31758
3a922bb4
RL
31759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31760 fi
dc3d889d
VZ
31761fi
31762
8284b0c5 31763
b089607b
VZ
31764if test "$TOOLKIT" != "MSW"; then
31765
3a922bb4
RL
31766 HAVE_DL_FUNCS=0
31767 HAVE_SHL_FUNCS=0
0b9ab0bd 31768 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31769 if test "$USE_DARWIN" = 1; then
31770 HAVE_DL_FUNCS=1
31771 else
e6cc62c6
VS
31772
31773for ac_func in dlopen
10f2d63a 31774do
e6cc62c6
VS
31775as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31776echo "$as_me:$LINENO: checking for $ac_func" >&5
31777echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31778if eval "test \"\${$as_ac_var+set}\" = set"; then
31779 echo $ECHO_N "(cached) $ECHO_C" >&6
31780else
31781 cat >conftest.$ac_ext <<_ACEOF
31782#line $LINENO "configure"
31783/* confdefs.h. */
31784_ACEOF
31785cat confdefs.h >>conftest.$ac_ext
31786cat >>conftest.$ac_ext <<_ACEOF
31787/* end confdefs.h. */
10f2d63a 31788/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31789 which can conflict with char $ac_func (); below.
31790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31791 <limits.h> exists even on freestanding compilers. */
31792#ifdef __STDC__
31793# include <limits.h>
31794#else
31795# include <assert.h>
31796#endif
10f2d63a 31797/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31798#ifdef __cplusplus
31799extern "C"
31800{
31801#endif
10f2d63a 31802/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31803 builtin and then its argument prototype would still apply. */
31804char $ac_func ();
10f2d63a
VZ
31805/* The GNU C library defines this for functions which it implements
31806 to always fail with ENOSYS. Some functions are actually named
31807 something starting with __ and the normal name is an alias. */
31808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31809choke me
31810#else
e6cc62c6
VS
31811char (*f) () = $ac_func;
31812#endif
31813#ifdef __cplusplus
31814}
10f2d63a
VZ
31815#endif
31816
e6cc62c6
VS
31817int
31818main ()
31819{
31820return f != $ac_func;
31821 ;
31822 return 0;
31823}
31824_ACEOF
31825rm -f conftest.$ac_objext conftest$ac_exeext
31826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31827 (eval $ac_link) 2>&5
31828 ac_status=$?
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); } &&
31831 { ac_try='test -s conftest$ac_exeext'
31832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31833 (eval $ac_try) 2>&5
31834 ac_status=$?
31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); }; }; then
31837 eval "$as_ac_var=yes"
31838else
31839 echo "$as_me: failed program was:" >&5
31840sed 's/^/| /' conftest.$ac_ext >&5
31841
31842eval "$as_ac_var=no"
31843fi
31844rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31845fi
31846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31848if test `eval echo '${'$as_ac_var'}'` = yes; then
31849 cat >>confdefs.h <<_ACEOF
31850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31851_ACEOF
31852
31853 cat >>confdefs.h <<\_ACEOF
10f2d63a 31854#define HAVE_DLOPEN 1
e6cc62c6 31855_ACEOF
10f2d63a 31856
3a922bb4 31857 HAVE_DL_FUNCS=1
e6cc62c6 31858
10f2d63a 31859else
e6cc62c6
VS
31860
31861 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31862echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31863if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31864 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31865else
e6cc62c6 31866 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31867LIBS="-ldl $LIBS"
e6cc62c6
VS
31868cat >conftest.$ac_ext <<_ACEOF
31869#line $LINENO "configure"
31870/* confdefs.h. */
31871_ACEOF
31872cat confdefs.h >>conftest.$ac_ext
31873cat >>conftest.$ac_ext <<_ACEOF
31874/* end confdefs.h. */
31875
10f2d63a 31876/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31877#ifdef __cplusplus
31878extern "C"
31879#endif
10f2d63a 31880/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31881 builtin and then its argument prototype would still apply. */
31882char dlopen ();
31883int
31884main ()
31885{
31886dlopen ();
31887 ;
31888 return 0;
31889}
31890_ACEOF
31891rm -f conftest.$ac_objext conftest$ac_exeext
31892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31893 (eval $ac_link) 2>&5
31894 ac_status=$?
31895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896 (exit $ac_status); } &&
31897 { ac_try='test -s conftest$ac_exeext'
31898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31899 (eval $ac_try) 2>&5
31900 ac_status=$?
31901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902 (exit $ac_status); }; }; then
31903 ac_cv_lib_dl_dlopen=yes
31904else
31905 echo "$as_me: failed program was:" >&5
31906sed 's/^/| /' conftest.$ac_ext >&5
31907
31908ac_cv_lib_dl_dlopen=no
31909fi
31910rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31911LIBS=$ac_check_lib_save_LIBS
31912fi
31913echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31914echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31915if test $ac_cv_lib_dl_dlopen = yes; then
31916
31917 cat >>confdefs.h <<\_ACEOF
10f2d63a 31918#define HAVE_DLOPEN 1
e6cc62c6 31919_ACEOF
10f2d63a 31920
3a922bb4 31921 HAVE_DL_FUNCS=1
3d63bc3a 31922 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31923
10f2d63a 31924else
10f2d63a 31925
e6cc62c6
VS
31926
31927for ac_func in shl_load
10f2d63a 31928do
e6cc62c6
VS
31929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31930echo "$as_me:$LINENO: checking for $ac_func" >&5
31931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31932if eval "test \"\${$as_ac_var+set}\" = set"; then
31933 echo $ECHO_N "(cached) $ECHO_C" >&6
31934else
31935 cat >conftest.$ac_ext <<_ACEOF
31936#line $LINENO "configure"
31937/* confdefs.h. */
31938_ACEOF
31939cat confdefs.h >>conftest.$ac_ext
31940cat >>conftest.$ac_ext <<_ACEOF
31941/* end confdefs.h. */
10f2d63a 31942/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31943 which can conflict with char $ac_func (); below.
31944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31945 <limits.h> exists even on freestanding compilers. */
31946#ifdef __STDC__
31947# include <limits.h>
31948#else
31949# include <assert.h>
31950#endif
10f2d63a 31951/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31952#ifdef __cplusplus
31953extern "C"
31954{
31955#endif
10f2d63a 31956/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31957 builtin and then its argument prototype would still apply. */
31958char $ac_func ();
10f2d63a
VZ
31959/* The GNU C library defines this for functions which it implements
31960 to always fail with ENOSYS. Some functions are actually named
31961 something starting with __ and the normal name is an alias. */
31962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31963choke me
31964#else
e6cc62c6
VS
31965char (*f) () = $ac_func;
31966#endif
31967#ifdef __cplusplus
31968}
10f2d63a
VZ
31969#endif
31970
e6cc62c6
VS
31971int
31972main ()
31973{
31974return f != $ac_func;
31975 ;
31976 return 0;
31977}
31978_ACEOF
31979rm -f conftest.$ac_objext conftest$ac_exeext
31980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31981 (eval $ac_link) 2>&5
31982 ac_status=$?
31983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); } &&
31985 { ac_try='test -s conftest$ac_exeext'
31986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31987 (eval $ac_try) 2>&5
31988 ac_status=$?
31989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990 (exit $ac_status); }; }; then
31991 eval "$as_ac_var=yes"
31992else
31993 echo "$as_me: failed program was:" >&5
31994sed 's/^/| /' conftest.$ac_ext >&5
31995
31996eval "$as_ac_var=no"
31997fi
31998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31999fi
32000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32002if test `eval echo '${'$as_ac_var'}'` = yes; then
32003 cat >>confdefs.h <<_ACEOF
32004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32005_ACEOF
32006
32007 cat >>confdefs.h <<\_ACEOF
10f2d63a 32008#define HAVE_SHL_LOAD 1
e6cc62c6 32009_ACEOF
10f2d63a 32010
3a922bb4 32011 HAVE_SHL_FUNCS=1
e6cc62c6 32012
10f2d63a 32013else
e6cc62c6
VS
32014
32015 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
32016echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
32017if test "${ac_cv_lib_shl_load_dld+set}" = set; then
32018 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32019else
e6cc62c6 32020 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32021LIBS="-lshl_load $LIBS"
e6cc62c6
VS
32022cat >conftest.$ac_ext <<_ACEOF
32023#line $LINENO "configure"
32024/* confdefs.h. */
32025_ACEOF
32026cat confdefs.h >>conftest.$ac_ext
32027cat >>conftest.$ac_ext <<_ACEOF
32028/* end confdefs.h. */
32029
8284b0c5 32030/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32031#ifdef __cplusplus
32032extern "C"
32033#endif
f6bcfd97 32034/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32035 builtin and then its argument prototype would still apply. */
32036char dld ();
32037int
32038main ()
32039{
32040dld ();
32041 ;
32042 return 0;
32043}
32044_ACEOF
32045rm -f conftest.$ac_objext conftest$ac_exeext
32046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32047 (eval $ac_link) 2>&5
32048 ac_status=$?
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); } &&
32051 { ac_try='test -s conftest$ac_exeext'
32052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32053 (eval $ac_try) 2>&5
32054 ac_status=$?
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); }; }; then
32057 ac_cv_lib_shl_load_dld=yes
32058else
32059 echo "$as_me: failed program was:" >&5
32060sed 's/^/| /' conftest.$ac_ext >&5
32061
32062ac_cv_lib_shl_load_dld=no
32063fi
32064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32065LIBS=$ac_check_lib_save_LIBS
32066fi
32067echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
32068echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
32069if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 32070
3a922bb4 32071 HAVE_SHL_FUNCS=1
3d63bc3a 32072 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 32073
f6bcfd97
BP
32074fi
32075
e6cc62c6 32076
10f2d63a
VZ
32077fi
32078done
32079
e6cc62c6 32080
10f2d63a
VZ
32081fi
32082
e6cc62c6 32083
10f2d63a
VZ
32084fi
32085done
32086
5c6fa7d2 32087
8284b0c5 32088 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
32089
32090for ac_func in dlerror
f6bcfd97 32091do
e6cc62c6
VS
32092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32093echo "$as_me:$LINENO: checking for $ac_func" >&5
32094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32095if eval "test \"\${$as_ac_var+set}\" = set"; then
32096 echo $ECHO_N "(cached) $ECHO_C" >&6
32097else
32098 cat >conftest.$ac_ext <<_ACEOF
32099#line $LINENO "configure"
32100/* confdefs.h. */
32101_ACEOF
32102cat confdefs.h >>conftest.$ac_ext
32103cat >>conftest.$ac_ext <<_ACEOF
32104/* end confdefs.h. */
f6bcfd97 32105/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32106 which can conflict with char $ac_func (); below.
32107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32108 <limits.h> exists even on freestanding compilers. */
32109#ifdef __STDC__
32110# include <limits.h>
32111#else
32112# include <assert.h>
32113#endif
f6bcfd97 32114/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32115#ifdef __cplusplus
32116extern "C"
32117{
32118#endif
f6bcfd97 32119/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32120 builtin and then its argument prototype would still apply. */
32121char $ac_func ();
f6bcfd97
BP
32122/* The GNU C library defines this for functions which it implements
32123 to always fail with ENOSYS. Some functions are actually named
32124 something starting with __ and the normal name is an alias. */
32125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32126choke me
32127#else
e6cc62c6
VS
32128char (*f) () = $ac_func;
32129#endif
32130#ifdef __cplusplus
32131}
f6bcfd97
BP
32132#endif
32133
e6cc62c6
VS
32134int
32135main ()
32136{
32137return f != $ac_func;
32138 ;
32139 return 0;
32140}
32141_ACEOF
32142rm -f conftest.$ac_objext conftest$ac_exeext
32143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32144 (eval $ac_link) 2>&5
32145 ac_status=$?
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147 (exit $ac_status); } &&
32148 { ac_try='test -s conftest$ac_exeext'
32149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32150 (eval $ac_try) 2>&5
32151 ac_status=$?
32152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153 (exit $ac_status); }; }; then
32154 eval "$as_ac_var=yes"
32155else
32156 echo "$as_me: failed program was:" >&5
32157sed 's/^/| /' conftest.$ac_ext >&5
32158
32159eval "$as_ac_var=no"
32160fi
32161rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32162fi
32163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32164echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32165if test `eval echo '${'$as_ac_var'}'` = yes; then
32166 cat >>confdefs.h <<_ACEOF
32167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32168_ACEOF
32169 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32170#define HAVE_DLERROR 1
e6cc62c6 32171_ACEOF
f6bcfd97
BP
32172
32173else
e6cc62c6
VS
32174 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
32175echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32176if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32177 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32178else
e6cc62c6 32179 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32180LIBS="-ldl $LIBS"
e6cc62c6
VS
32181cat >conftest.$ac_ext <<_ACEOF
32182#line $LINENO "configure"
32183/* confdefs.h. */
32184_ACEOF
32185cat confdefs.h >>conftest.$ac_ext
32186cat >>conftest.$ac_ext <<_ACEOF
32187/* end confdefs.h. */
32188
f6bcfd97 32189/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32190#ifdef __cplusplus
32191extern "C"
32192#endif
f6bcfd97 32193/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32194 builtin and then its argument prototype would still apply. */
32195char dlerror ();
32196int
32197main ()
32198{
32199dlerror ();
32200 ;
32201 return 0;
32202}
32203_ACEOF
32204rm -f conftest.$ac_objext conftest$ac_exeext
32205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32206 (eval $ac_link) 2>&5
32207 ac_status=$?
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); } &&
32210 { ac_try='test -s conftest$ac_exeext'
32211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32212 (eval $ac_try) 2>&5
32213 ac_status=$?
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); }; }; then
32216 ac_cv_lib_dl_dlerror=yes
32217else
32218 echo "$as_me: failed program was:" >&5
32219sed 's/^/| /' conftest.$ac_ext >&5
32220
32221ac_cv_lib_dl_dlerror=no
32222fi
32223rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32224LIBS=$ac_check_lib_save_LIBS
32225fi
32226echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32227echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32228if test $ac_cv_lib_dl_dlerror = yes; then
32229 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32230#define HAVE_DLERROR 1
e6cc62c6 32231_ACEOF
f6bcfd97 32232
f6bcfd97
BP
32233fi
32234
32235fi
32236done
32237
3a922bb4
RL
32238 fi
32239 fi
f6bcfd97 32240
3a922bb4
RL
32241 if test "$HAVE_DL_FUNCS" = 0; then
32242 if test "$HAVE_SHL_FUNCS" = 0; then
32243 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
32244 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32245echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 32246 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
32247 wxUSE_DYNLIB_CLASS=no
32248 else
e6cc62c6
VS
32249 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32250echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
32251 fi
32252 fi
10f2d63a
VZ
32253 fi
32254 fi
32255fi
32256
0b9ab0bd 32257if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 32258 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 32259#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 32260_ACEOF
0b9ab0bd 32261
1948bb32
VS
32262fi
32263if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 32264 cat >>confdefs.h <<\_ACEOF
10f2d63a 32265#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 32266_ACEOF
10f2d63a
VZ
32267
32268fi
32269
8284b0c5 32270
1e6feb95 32271if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32272 cat >>confdefs.h <<\_ACEOF
1e6feb95 32273#define wxUSE_FONTMAP 1
e6cc62c6 32274_ACEOF
1e6feb95
VZ
32275
32276fi
32277
10f2d63a 32278if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32279 cat >>confdefs.h <<\_ACEOF
10f2d63a 32280#define wxUSE_UNICODE 1
e6cc62c6 32281_ACEOF
10f2d63a 32282
8284b0c5 32283
eb854003 32284 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32285 wxUSE_UNICODE_MSLU=no
32286 fi
a72a4bfa 32287
eb854003 32288 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32289 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32290echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32291if test "${ac_cv_lib_unicows_main+set}" = set; then
32292 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32293else
e6cc62c6 32294 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32295LIBS="-lunicows $LIBS"
e6cc62c6
VS
32296cat >conftest.$ac_ext <<_ACEOF
32297#line $LINENO "configure"
32298/* confdefs.h. */
32299_ACEOF
32300cat confdefs.h >>conftest.$ac_ext
32301cat >>conftest.$ac_ext <<_ACEOF
32302/* end confdefs.h. */
a72a4bfa 32303
8284b0c5 32304
e6cc62c6
VS
32305int
32306main ()
32307{
32308main ();
32309 ;
32310 return 0;
32311}
32312_ACEOF
32313rm -f conftest.$ac_objext conftest$ac_exeext
32314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32315 (eval $ac_link) 2>&5
32316 ac_status=$?
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); } &&
32319 { ac_try='test -s conftest$ac_exeext'
32320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32321 (eval $ac_try) 2>&5
32322 ac_status=$?
32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324 (exit $ac_status); }; }; then
32325 ac_cv_lib_unicows_main=yes
32326else
32327 echo "$as_me: failed program was:" >&5
32328sed 's/^/| /' conftest.$ac_ext >&5
32329
32330ac_cv_lib_unicows_main=no
32331fi
32332rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32333LIBS=$ac_check_lib_save_LIBS
32334fi
32335echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32336echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32337if test $ac_cv_lib_unicows_main = yes; then
32338
32339 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32340#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32341_ACEOF
32342
a72a4bfa 32343
a72a4bfa 32344else
a72a4bfa 32345
e6cc62c6
VS
32346 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32347 Applications will only run on Windows NT/2000/XP!" >&5
32348echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32349 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32350 wxUSE_UNICODE_MSLU=no
e6cc62c6 32351
a72a4bfa
VS
32352fi
32353
32354 fi
10f2d63a
VZ
32355fi
32356
10f2d63a 32357if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32358 cat >>confdefs.h <<\_ACEOF
10f2d63a 32359#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32360_ACEOF
10f2d63a
VZ
32361
32362fi
32363
8284b0c5 32364
10f2d63a 32365if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32366 cat >>confdefs.h <<\_ACEOF
10f2d63a 32367#define wxUSE_POSTSCRIPT 1
e6cc62c6 32368_ACEOF
10f2d63a
VZ
32369
32370fi
32371
e6cc62c6 32372cat >>confdefs.h <<\_ACEOF
10f2d63a 32373#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32374_ACEOF
10f2d63a 32375
8284b0c5 32376
e6cc62c6 32377cat >>confdefs.h <<\_ACEOF
10f2d63a 32378#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32379_ACEOF
10f2d63a 32380
8284b0c5
MB
32381
32382
10f2d63a 32383if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32384 cat >>confdefs.h <<\_ACEOF
10f2d63a 32385#define wxUSE_CONSTRAINTS 1
e6cc62c6 32386_ACEOF
10f2d63a
VZ
32387
32388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32389fi
32390
3879ecda 32391if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32392 cat >>confdefs.h <<\_ACEOF
10f2d63a 32393#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32394_ACEOF
10f2d63a 32395
1772d20c 32396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32397fi
32398
32399if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32400 cat >>confdefs.h <<\_ACEOF
10f2d63a 32401#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32402_ACEOF
10f2d63a
VZ
32403
32404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32405 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32407 fi
32408fi
32409
32410if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32411 cat >>confdefs.h <<\_ACEOF
10f2d63a 32412#define wxUSE_HELP 1
e6cc62c6 32413_ACEOF
10f2d63a
VZ
32414
32415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32416
77e13408 32417 if test "$wxUSE_MSW" = 1; then
031d8228 32418 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32419 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32420#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32421_ACEOF
29fd3c0c 32422
3e44f09d 32423 fi
3379ed37 32424 fi
031d8228
VS
32425
32426 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32427 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32428 cat >>confdefs.h <<\_ACEOF
031d8228 32429#define wxUSE_WXHTML_HELP 1
e6cc62c6 32430_ACEOF
031d8228
VS
32431
32432 else
e6cc62c6
VS
32433 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32434echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32435 wxUSE_WXHTML_HELP=no
32436 fi
32437 fi
10f2d63a
VZ
32438fi
32439
32440if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32441 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32442 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32443echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32444 else
e6cc62c6 32445 cat >>confdefs.h <<\_ACEOF
10f2d63a 32446#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32447_ACEOF
10f2d63a
VZ
32448
32449 fi
32450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32451fi
32452
e6cc62c6
VS
32453if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32454 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32455echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32456 { (exit 1); exit 1; }; }
32457fi
32458
32459
32460if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32461 -o "$wxUSE_CLIPBOARD" = "yes" \
32462 -o "$wxUSE_OLE" = "yes" \
32463 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32464
32465for ac_header in ole2.h
32466do
32467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32468if eval "test \"\${$as_ac_Header+set}\" = set"; then
32469 echo "$as_me:$LINENO: checking for $ac_header" >&5
32470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32471if eval "test \"\${$as_ac_Header+set}\" = set"; then
32472 echo $ECHO_N "(cached) $ECHO_C" >&6
32473fi
32474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32476else
32477 # Is the header compilable?
32478echo "$as_me:$LINENO: checking $ac_header usability" >&5
32479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32480cat >conftest.$ac_ext <<_ACEOF
32481#line $LINENO "configure"
32482/* confdefs.h. */
32483_ACEOF
32484cat confdefs.h >>conftest.$ac_ext
32485cat >>conftest.$ac_ext <<_ACEOF
32486/* end confdefs.h. */
32487$ac_includes_default
32488#include <$ac_header>
32489_ACEOF
32490rm -f conftest.$ac_objext
32491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32492 (eval $ac_compile) 2>&5
32493 ac_status=$?
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); } &&
32496 { ac_try='test -s conftest.$ac_objext'
32497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32498 (eval $ac_try) 2>&5
32499 ac_status=$?
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); }; }; then
32502 ac_header_compiler=yes
32503else
32504 echo "$as_me: failed program was:" >&5
32505sed 's/^/| /' conftest.$ac_ext >&5
32506
32507ac_header_compiler=no
32508fi
32509rm -f conftest.$ac_objext conftest.$ac_ext
32510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32511echo "${ECHO_T}$ac_header_compiler" >&6
32512
32513# Is the header present?
32514echo "$as_me:$LINENO: checking $ac_header presence" >&5
32515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32516cat >conftest.$ac_ext <<_ACEOF
32517#line $LINENO "configure"
32518/* confdefs.h. */
32519_ACEOF
32520cat confdefs.h >>conftest.$ac_ext
32521cat >>conftest.$ac_ext <<_ACEOF
32522/* end confdefs.h. */
32523#include <$ac_header>
32524_ACEOF
32525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32527 ac_status=$?
32528 grep -v '^ *+' conftest.er1 >conftest.err
32529 rm -f conftest.er1
32530 cat conftest.err >&5
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); } >/dev/null; then
32533 if test -s conftest.err; then
32534 ac_cpp_err=$ac_c_preproc_warn_flag
32535 else
32536 ac_cpp_err=
32537 fi
32538else
32539 ac_cpp_err=yes
32540fi
32541if test -z "$ac_cpp_err"; then
32542 ac_header_preproc=yes
32543else
32544 echo "$as_me: failed program was:" >&5
32545sed 's/^/| /' conftest.$ac_ext >&5
32546
32547 ac_header_preproc=no
32548fi
32549rm -f conftest.err conftest.$ac_ext
32550echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32551echo "${ECHO_T}$ac_header_preproc" >&6
32552
32553# So? What about this header?
32554case $ac_header_compiler:$ac_header_preproc in
32555 yes:no )
32556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32560 (
32561 cat <<\_ASBOX
32562## ------------------------------------ ##
32563## Report this to bug-autoconf@gnu.org. ##
32564## ------------------------------------ ##
32565_ASBOX
32566 ) |
32567 sed "s/^/$as_me: WARNING: /" >&2
32568 ;;
32569 no:yes )
32570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32571echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32573echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32576 (
32577 cat <<\_ASBOX
32578## ------------------------------------ ##
32579## Report this to bug-autoconf@gnu.org. ##
32580## ------------------------------------ ##
32581_ASBOX
32582 ) |
32583 sed "s/^/$as_me: WARNING: /" >&2
32584 ;;
32585esac
32586echo "$as_me:$LINENO: checking for $ac_header" >&5
32587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32588if eval "test \"\${$as_ac_Header+set}\" = set"; then
32589 echo $ECHO_N "(cached) $ECHO_C" >&6
32590else
32591 eval "$as_ac_Header=$ac_header_preproc"
32592fi
32593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32595
10f2d63a 32596fi
e6cc62c6
VS
32597if test `eval echo '${'$as_ac_Header'}'` = yes; then
32598 cat >>confdefs.h <<_ACEOF
32599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32600_ACEOF
10f2d63a 32601
10f2d63a 32602fi
e6cc62c6 32603
10f2d63a
VZ
32604done
32605
8284b0c5 32606
2b9bdf71
VZ
32607 if test "$ac_cv_header_ole2_h" = "yes" ; then
32608 if test "$GCC" = yes ; then
8284b0c5
MB
32609
32610
e6cc62c6
VS
32611 ac_ext=cc
32612ac_cpp='$CXXCPP $CPPFLAGS'
32613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32616
32617
32618 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32619echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32620 cat >conftest.$ac_ext <<_ACEOF
32621#line $LINENO "configure"
32622/* confdefs.h. */
32623_ACEOF
32624cat confdefs.h >>conftest.$ac_ext
32625cat >>conftest.$ac_ext <<_ACEOF
32626/* end confdefs.h. */
8284b0c5
MB
32627#include <windows.h>
32628 #include <ole2.h>
e6cc62c6
VS
32629int
32630main ()
32631{
8284b0c5 32632
e6cc62c6
VS
32633 ;
32634 return 0;
32635}
32636_ACEOF
32637rm -f conftest.$ac_objext
32638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32639 (eval $ac_compile) 2>&5
32640 ac_status=$?
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); } &&
32643 { ac_try='test -s conftest.$ac_objext'
32644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645 (eval $ac_try) 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; }; then
32649 echo "$as_me:$LINENO: result: no" >&5
32650echo "${ECHO_T}no" >&6
32651else
32652 echo "$as_me: failed program was:" >&5
32653sed 's/^/| /' conftest.$ac_ext >&5
32654
32655echo "$as_me:$LINENO: result: yes" >&5
32656echo "${ECHO_T}yes" >&6
8284b0c5
MB
32657 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32658fi
e6cc62c6 32659rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32660 ac_ext=c
8284b0c5 32661ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32664ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32665
2b9bdf71 32666 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32667 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32668 cat >>confdefs.h <<\_ACEOF
4f11a343 32669#define wxUSE_OLE 1
e6cc62c6 32670_ACEOF
4f11a343 32671
8284b0c5 32672
2b9bdf71
VZ
32673 fi
32674
e6cc62c6 32675 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32676#define wxUSE_DATAOBJ 1
e6cc62c6 32677_ACEOF
2b9bdf71
VZ
32678
32679 else
e6cc62c6
VS
32680 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32681echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32682
32683 wxUSE_CLIPBOARD=no
32684 wxUSE_DRAG_AND_DROP=no
32685 wxUSE_DATAOBJ=no
3bce6687
JS
32686 wxUSE_OLE=no
32687 fi
32688
32689 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32690 cat >>confdefs.h <<\_ACEOF
3bce6687 32691#define wxUSE_METAFILE 1
e6cc62c6 32692_ACEOF
3bce6687
JS
32693
32694
e6cc62c6 32695 cat >>confdefs.h <<\_ACEOF
3bce6687 32696#define wxUSE_ENH_METAFILE 1
e6cc62c6 32697_ACEOF
3bce6687
JS
32698
32699 fi
32700fi
32701
2b9bdf71
VZ
32702if test "$wxUSE_IPC" = "yes"; then
32703 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32704 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32705echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32706 fi
32707
e6cc62c6 32708 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32709#define wxUSE_IPC 1
e6cc62c6 32710_ACEOF
2b9bdf71
VZ
32711
32712fi
32713
32714if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32715 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32716 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32717echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32718 wxUSE_CLIPBOARD=no
32719 fi
32720
32721 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32722 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32723#define wxUSE_CLIPBOARD 1
e6cc62c6 32724_ACEOF
2b9bdf71 32725
8284b0c5 32726
e6cc62c6 32727 cat >>confdefs.h <<\_ACEOF
673f4220 32728#define wxUSE_DATAOBJ 1
e6cc62c6 32729_ACEOF
673f4220 32730
6c657b52 32731 fi
2b9bdf71
VZ
32732fi
32733
32734if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32735 if test "$wxUSE_GTK" = 1; then
32736 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32737 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32738echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32739 wxUSE_DRAG_AND_DROP=no
32740 fi
32741 fi
32742
2b9bdf71 32743 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32744 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32745echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32746 wxUSE_DRAG_AND_DROP=no
32747 fi
32748
f79bd02d 32749 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32750 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32751echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32752 wxUSE_DRAG_AND_DROP=no
32753 fi
32754
6c657b52 32755 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32756 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32757echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32758 wxUSE_DRAG_AND_DROP=no
32759 fi
32760
10f2d63a 32761 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32762 cat >>confdefs.h <<\_ACEOF
10f2d63a 32763#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32764_ACEOF
10f2d63a
VZ
32765
32766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32767 fi
32768
32769fi
32770
32771if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32772 cat >>confdefs.h <<\_ACEOF
10f2d63a 32773#define wxUSE_SPLINES 1
e6cc62c6 32774_ACEOF
10f2d63a
VZ
32775
32776fi
32777
8284b0c5 32778
1e6feb95
VZ
32779USES_CONTROLS=0
32780if test "$wxUSE_CONTROLS" = "yes"; then
32781 USES_CONTROLS=1
32782fi
32783
10f2d63a 32784if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32785 cat >>confdefs.h <<\_ACEOF
10f2d63a 32786#define wxUSE_ACCEL 1
e6cc62c6 32787_ACEOF
10f2d63a 32788
1e6feb95
VZ
32789 USES_CONTROLS=1
32790fi
32791
32792if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32793 cat >>confdefs.h <<\_ACEOF
1e6feb95 32794#define wxUSE_BUTTON 1
e6cc62c6 32795_ACEOF
1e6feb95
VZ
32796
32797 USES_CONTROLS=1
32798fi
32799
32800if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32801 cat >>confdefs.h <<\_ACEOF
1e6feb95 32802#define wxUSE_BMPBUTTON 1
e6cc62c6 32803_ACEOF
1e6feb95
VZ
32804
32805 USES_CONTROLS=1
32806fi
32807
32808if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32809 cat >>confdefs.h <<\_ACEOF
1e6feb95 32810#define wxUSE_CALENDARCTRL 1
e6cc62c6 32811_ACEOF
1e6feb95
VZ
32812
32813 USES_CONTROLS=1
32814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32815fi
32816
32817if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32818 cat >>confdefs.h <<\_ACEOF
10f2d63a 32819#define wxUSE_CARET 1
e6cc62c6 32820_ACEOF
10f2d63a 32821
1e6feb95 32822 USES_CONTROLS=1
10f2d63a
VZ
32823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32824fi
32825
32826if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32827 cat >>confdefs.h <<\_ACEOF
10f2d63a 32828#define wxUSE_COMBOBOX 1
e6cc62c6 32829_ACEOF
10f2d63a 32830
1e6feb95 32831 USES_CONTROLS=1
10f2d63a
VZ
32832fi
32833
32834if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32835 cat >>confdefs.h <<\_ACEOF
10f2d63a 32836#define wxUSE_CHOICE 1
e6cc62c6 32837_ACEOF
10f2d63a 32838
1e6feb95 32839 USES_CONTROLS=1
10f2d63a
VZ
32840fi
32841
32842if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32843 cat >>confdefs.h <<\_ACEOF
10f2d63a 32844#define wxUSE_CHECKBOX 1
e6cc62c6 32845_ACEOF
10f2d63a 32846
1e6feb95 32847 USES_CONTROLS=1
10f2d63a
VZ
32848fi
32849
32850if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32851 cat >>confdefs.h <<\_ACEOF
10f2d63a 32852#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32853_ACEOF
10f2d63a 32854
1e6feb95 32855 USES_CONTROLS=1
10f2d63a
VZ
32856 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32857fi
32858
da494b40 32859if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32860 cat >>confdefs.h <<\_ACEOF
da494b40 32861#define wxUSE_DISPLAY 1
e6cc62c6 32862_ACEOF
da494b40
MB
32863
32864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32865fi
32866
10f2d63a 32867if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32868 cat >>confdefs.h <<\_ACEOF
10f2d63a 32869#define wxUSE_GAUGE 1
e6cc62c6 32870_ACEOF
10f2d63a 32871
1e6feb95 32872 USES_CONTROLS=1
10f2d63a
VZ
32873fi
32874
d6a55c4b 32875if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32876 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32877#define wxUSE_GRID 1
e6cc62c6 32878_ACEOF
10f2d63a 32879
1e6feb95 32880 USES_CONTROLS=1
d6a55c4b 32881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32882fi
32883
32884if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32885 cat >>confdefs.h <<\_ACEOF
10f2d63a 32886#define wxUSE_IMAGLIST 1
e6cc62c6 32887_ACEOF
10f2d63a
VZ
32888
32889fi
32890
32891if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32892 cat >>confdefs.h <<\_ACEOF
10f2d63a 32893#define wxUSE_LISTBOX 1
e6cc62c6 32894_ACEOF
10f2d63a 32895
1e6feb95 32896 USES_CONTROLS=1
10f2d63a
VZ
32897fi
32898
32899if test "$wxUSE_LISTCTRL" = "yes"; then
32900 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32901 cat >>confdefs.h <<\_ACEOF
10f2d63a 32902#define wxUSE_LISTCTRL 1
e6cc62c6 32903_ACEOF
10f2d63a 32904
1e6feb95 32905 USES_CONTROLS=1
10f2d63a
VZ
32906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32907 else
e6cc62c6
VS
32908 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32909echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32910 fi
32911fi
32912
32913if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32914 cat >>confdefs.h <<\_ACEOF
10f2d63a 32915#define wxUSE_NOTEBOOK 1
e6cc62c6 32916_ACEOF
10f2d63a 32917
1e6feb95 32918 USES_CONTROLS=1
10f2d63a
VZ
32919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32920fi
32921
24176f2c 32922
10f2d63a 32923if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32924 cat >>confdefs.h <<\_ACEOF
10f2d63a 32925#define wxUSE_RADIOBOX 1
e6cc62c6 32926_ACEOF
10f2d63a 32927
1e6feb95 32928 USES_CONTROLS=1
10f2d63a
VZ
32929fi
32930
32931if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32932 cat >>confdefs.h <<\_ACEOF
10f2d63a 32933#define wxUSE_RADIOBTN 1
e6cc62c6 32934_ACEOF
10f2d63a 32935
1e6feb95 32936 USES_CONTROLS=1
10f2d63a
VZ
32937fi
32938
32939if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32940 cat >>confdefs.h <<\_ACEOF
10f2d63a 32941#define wxUSE_SASH 1
e6cc62c6 32942_ACEOF
10f2d63a
VZ
32943
32944 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32945fi
32946
32947if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32948 cat >>confdefs.h <<\_ACEOF
10f2d63a 32949#define wxUSE_SCROLLBAR 1
e6cc62c6 32950_ACEOF
10f2d63a 32951
1e6feb95 32952 USES_CONTROLS=1
741a9306 32953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32954fi
32955
32956if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32957 cat >>confdefs.h <<\_ACEOF
10f2d63a 32958#define wxUSE_SLIDER 1
e6cc62c6 32959_ACEOF
10f2d63a 32960
1e6feb95 32961 USES_CONTROLS=1
10f2d63a
VZ
32962fi
32963
32964if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32965 cat >>confdefs.h <<\_ACEOF
10f2d63a 32966#define wxUSE_SPINBTN 1
e6cc62c6 32967_ACEOF
10f2d63a 32968
1e6feb95 32969 USES_CONTROLS=1
10f2d63a
VZ
32970fi
32971
56cfaa52 32972if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32973 cat >>confdefs.h <<\_ACEOF
56cfaa52 32974#define wxUSE_SPINCTRL 1
e6cc62c6 32975_ACEOF
56cfaa52 32976
1e6feb95 32977 USES_CONTROLS=1
56cfaa52
RR
32978fi
32979
10f2d63a 32980if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32981 cat >>confdefs.h <<\_ACEOF
10f2d63a 32982#define wxUSE_SPLITTER 1
e6cc62c6 32983_ACEOF
10f2d63a
VZ
32984
32985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32986fi
32987
32988if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32989 cat >>confdefs.h <<\_ACEOF
10f2d63a 32990#define wxUSE_STATBMP 1
e6cc62c6 32991_ACEOF
10f2d63a 32992
1e6feb95 32993 USES_CONTROLS=1
10f2d63a
VZ
32994fi
32995
32996if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32997 cat >>confdefs.h <<\_ACEOF
10f2d63a 32998#define wxUSE_STATBOX 1
e6cc62c6 32999_ACEOF
10f2d63a 33000
1e6feb95
VZ
33001 USES_CONTROLS=1
33002fi
33003
33004if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 33005 cat >>confdefs.h <<\_ACEOF
1e6feb95 33006#define wxUSE_STATTEXT 1
e6cc62c6 33007_ACEOF
1e6feb95
VZ
33008
33009 USES_CONTROLS=1
10f2d63a
VZ
33010fi
33011
33012if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 33013 cat >>confdefs.h <<\_ACEOF
10f2d63a 33014#define wxUSE_STATLINE 1
e6cc62c6 33015_ACEOF
10f2d63a 33016
89e6bf6d 33017 USES_CONTROLS=1
10f2d63a
VZ
33018fi
33019
33020if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 33021 cat >>confdefs.h <<\_ACEOF
10f2d63a 33022#define wxUSE_STATUSBAR 1
e6cc62c6 33023_ACEOF
10f2d63a 33024
1e6feb95 33025 USES_CONTROLS=1
698dcdb6 33026
2286341c 33027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
33028fi
33029
33030if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 33031 cat >>confdefs.h <<\_ACEOF
10f2d63a 33032#define wxUSE_TAB_DIALOG 1
e6cc62c6 33033_ACEOF
10f2d63a
VZ
33034
33035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
33036fi
33037
1e6feb95 33038if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 33039 cat >>confdefs.h <<\_ACEOF
1e6feb95 33040#define wxUSE_TEXTCTRL 1
e6cc62c6 33041_ACEOF
1e6feb95
VZ
33042
33043 USES_CONTROLS=1
33044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
33045fi
33046
1db8dc4a 33047if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 33048 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33049 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
33050echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
33051 wxUSE_TOGGLEBTN=no
33052 fi
33053 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33054 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
33055echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
33056 wxUSE_TOGGLEBTN=no
33057 fi
33058
33059 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 33060 cat >>confdefs.h <<\_ACEOF
1db8dc4a 33061#define wxUSE_TOGGLEBTN 1
e6cc62c6 33062_ACEOF
1db8dc4a 33063
1e6feb95 33064 USES_CONTROLS=1
a45d7ab7 33065 fi
1db8dc4a
VZ
33066fi
33067
360d6699 33068if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 33069 cat >>confdefs.h <<\_ACEOF
360d6699 33070#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 33071_ACEOF
360d6699
VZ
33072
33073 wxUSE_TOOLBAR="yes"
1e6feb95 33074 USES_CONTROLS=1
360d6699
VZ
33075fi
33076
10f2d63a 33077if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 33078 cat >>confdefs.h <<\_ACEOF
10f2d63a 33079#define wxUSE_TOOLBAR 1
e6cc62c6 33080_ACEOF
10f2d63a 33081
1e6feb95 33082 USES_CONTROLS=1
698dcdb6 33083
360d6699
VZ
33084 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33085 wxUSE_TOOLBAR_NATIVE="yes"
33086 fi
33087
1e6feb95 33088 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 33089 cat >>confdefs.h <<\_ACEOF
360d6699 33090#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 33091_ACEOF
360d6699 33092
1e6feb95
VZ
33093 USES_CONTROLS=1
33094 fi
33095
33096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
33097fi
33098
10f2d63a
VZ
33099if test "$wxUSE_TOOLTIPS" = "yes"; then
33100 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33101 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33102echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 33103 else
89e6bf6d 33104 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33105 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33106echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 33107 else
e6cc62c6 33108 cat >>confdefs.h <<\_ACEOF
10f2d63a 33109#define wxUSE_TOOLTIPS 1
e6cc62c6 33110_ACEOF
10f2d63a
VZ
33111
33112 fi
33113 fi
33114fi
33115
33116if test "$wxUSE_TREECTRL" = "yes"; then
33117 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33118 cat >>confdefs.h <<\_ACEOF
10f2d63a 33119#define wxUSE_TREECTRL 1
e6cc62c6 33120_ACEOF
10f2d63a 33121
1e6feb95 33122 USES_CONTROLS=1
10f2d63a
VZ
33123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33124 else
e6cc62c6
VS
33125 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33126echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33127 fi
33128fi
33129
9f41d601 33130if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 33131 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33132 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33133echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 33134 else
485cf710 33135 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33136 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
33137echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 33138 else
3c011993 33139 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33140 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
33141echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33142 else
e6cc62c6 33143 cat >>confdefs.h <<\_ACEOF
9f41d601 33144#define wxUSE_POPUPWIN 1
e6cc62c6 33145_ACEOF
9f41d601 33146
8284b0c5 33147
3c011993
VZ
33148 USES_CONTROLS=1
33149 fi
485cf710 33150 fi
6abe4b65 33151 fi
9f41d601
RR
33152fi
33153
dd964dcc 33154if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 33155 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33156 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33157echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33158 else
e6cc62c6 33159 cat >>confdefs.h <<\_ACEOF
dd964dcc 33160#define wxUSE_TIPWINDOW 1
e6cc62c6 33161_ACEOF
dd964dcc 33162
3c011993 33163 fi
dd964dcc
VZ
33164fi
33165
1e6feb95 33166if test "$USES_CONTROLS" = 1; then
e6cc62c6 33167 cat >>confdefs.h <<\_ACEOF
1e6feb95 33168#define wxUSE_CONTROLS 1
e6cc62c6 33169_ACEOF
10f2d63a 33170
10f2d63a
VZ
33171fi
33172
8284b0c5 33173
1e6feb95 33174
24fd6d87 33175if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 33176 cat >>confdefs.h <<\_ACEOF
24fd6d87 33177#define wxUSE_DRAGIMAGE 1
e6cc62c6 33178_ACEOF
24fd6d87
VZ
33179
33180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33181fi
33182
7bb2947d 33183if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 33184 cat >>confdefs.h <<\_ACEOF
7bb2947d 33185#define wxUSE_ACCESSIBILITY 1
e6cc62c6 33186_ACEOF
7bb2947d
MB
33187
33188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33189fi
33190
1e6feb95 33191if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 33192 cat >>confdefs.h <<\_ACEOF
1e6feb95 33193#define wxUSE_MENUS 1
e6cc62c6 33194_ACEOF
10f2d63a 33195
1e6feb95 33196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33197fi
33198
1e6feb95 33199if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33200 cat >>confdefs.h <<\_ACEOF
1e6feb95 33201#define wxUSE_METAFILE 1
e6cc62c6 33202_ACEOF
10f2d63a 33203
10f2d63a
VZ
33204fi
33205
1e6feb95 33206if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33207 cat >>confdefs.h <<\_ACEOF
1e6feb95 33208#define wxUSE_MIMETYPE 1
e6cc62c6 33209_ACEOF
10f2d63a 33210
10f2d63a
VZ
33211fi
33212
3e44f09d 33213if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33214 cat >>confdefs.h <<\_ACEOF
3e44f09d 33215#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33216_ACEOF
3e44f09d 33217
131f235d
VS
33218if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33219 "$TOOLKIT" = "MOTIF"; then
321d2b14
VZ
33220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33221fi
33222
3e44f09d
VZ
33223fi
33224
10f2d63a 33225if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33226 cat >>confdefs.h <<\_ACEOF
10f2d63a 33227#define wxUSE_MINIFRAME 1
e6cc62c6 33228_ACEOF
10f2d63a
VZ
33229
33230 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33231fi
33232
4d264332 33233USE_HTML=0
10f2d63a 33234if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 33235 cat >>confdefs.h <<\_ACEOF
10f2d63a 33236#define wxUSE_HTML 1
e6cc62c6 33237_ACEOF
10f2d63a 33238
4d264332 33239 USE_HTML=1
c74dc163 33240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
10f2d63a
VZ
33241fi
33242
33243if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33244 cat >>confdefs.h <<\_ACEOF
1e487827 33245#define wxUSE_VALIDATORS 1
e6cc62c6 33246_ACEOF
703e0a69 33247
698dcdb6
VZ
33248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33249fi
33250
edae8572 33251if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33252 cat >>confdefs.h <<\_ACEOF
edae8572 33253#define wxUSE_PALETTE 1
e6cc62c6 33254_ACEOF
edae8572
VZ
33255
33256fi
33257
698dcdb6 33258if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 33259 cat >>confdefs.h <<\_ACEOF
698dcdb6 33260#define wxUSE_IMAGE 1
e6cc62c6 33261_ACEOF
698dcdb6
VZ
33262
33263fi
33264
33265if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 33266 cat >>confdefs.h <<\_ACEOF
698dcdb6 33267#define wxUSE_GIF 1
e6cc62c6 33268_ACEOF
698dcdb6
VZ
33269
33270fi
33271
33272if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 33273 cat >>confdefs.h <<\_ACEOF
698dcdb6 33274#define wxUSE_PCX 1
e6cc62c6 33275_ACEOF
698dcdb6
VZ
33276
33277fi
33278
4b6b4dfc 33279if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 33280 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33281#define wxUSE_IFF 1
e6cc62c6 33282_ACEOF
4b6b4dfc
RR
33283
33284fi
33285
698dcdb6 33286if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 33287 cat >>confdefs.h <<\_ACEOF
698dcdb6 33288#define wxUSE_PNM 1
e6cc62c6 33289_ACEOF
698dcdb6
VZ
33290
33291fi
33292
33293if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 33294 cat >>confdefs.h <<\_ACEOF
698dcdb6 33295#define wxUSE_XPM 1
e6cc62c6 33296_ACEOF
698dcdb6
VZ
33297
33298fi
33299
658974ae 33300if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 33301 cat >>confdefs.h <<\_ACEOF
658974ae 33302#define wxUSE_ICO_CUR 1
e6cc62c6 33303_ACEOF
658974ae
VS
33304
33305fi
33306
a72a4bfa
VS
33307if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33308 LIBS=" -lunicows $LIBS"
33309fi
33310
8284b0c5 33311
1e6feb95 33312if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33313 cat >>confdefs.h <<\_ACEOF
1e6feb95 33314#define wxUSE_CHOICEDLG 1
e6cc62c6 33315_ACEOF
1e6feb95
VZ
33316
33317fi
33318
33319if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33320 cat >>confdefs.h <<\_ACEOF
1e6feb95 33321#define wxUSE_COLOURDLG 1
e6cc62c6 33322_ACEOF
1e6feb95
VZ
33323
33324fi
33325
33326if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33327 cat >>confdefs.h <<\_ACEOF
1e6feb95 33328#define wxUSE_FILEDLG 1
e6cc62c6 33329_ACEOF
1e6feb95
VZ
33330
33331fi
33332
8db37e06 33333if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33334 cat >>confdefs.h <<\_ACEOF
8db37e06 33335#define wxUSE_FINDREPLDLG 1
e6cc62c6 33336_ACEOF
8db37e06
VZ
33337
33338fi
33339
1e6feb95 33340if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33341 cat >>confdefs.h <<\_ACEOF
1e6feb95 33342#define wxUSE_FONTDLG 1
e6cc62c6 33343_ACEOF
1e6feb95
VZ
33344
33345fi
33346
33347if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33348 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33349 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33350echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33351 else
e6cc62c6 33352 cat >>confdefs.h <<\_ACEOF
1e6feb95 33353#define wxUSE_DIRDLG 1
e6cc62c6 33354_ACEOF
1e6feb95 33355
1e6feb95
VZ
33356 fi
33357fi
33358
33359if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33360 cat >>confdefs.h <<\_ACEOF
1e6feb95 33361#define wxUSE_MSGDLG 1
e6cc62c6 33362_ACEOF
1e6feb95
VZ
33363
33364fi
33365
33366if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33367 cat >>confdefs.h <<\_ACEOF
1e6feb95 33368#define wxUSE_NUMBERDLG 1
e6cc62c6 33369_ACEOF
1e6feb95
VZ
33370
33371fi
33372
33373if test "$wxUSE_PROGRESSDLG" = "yes"; then
33374 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33375 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33376echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33377 else
e6cc62c6 33378 cat >>confdefs.h <<\_ACEOF
1e6feb95 33379#define wxUSE_PROGRESSDLG 1
e6cc62c6 33380_ACEOF
1e6feb95
VZ
33381
33382 fi
33383fi
33384
cbca9943 33385if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33386 cat >>confdefs.h <<\_ACEOF
cbca9943 33387#define wxUSE_SPLASH 1
e6cc62c6 33388_ACEOF
cbca9943
VZ
33389
33390fi
33391
1e6feb95
VZ
33392if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33393 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33394 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33395echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33396 else
e6cc62c6 33397 cat >>confdefs.h <<\_ACEOF
1e6feb95 33398#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33399_ACEOF
1e6feb95 33400
7b4a847f
RR
33401 fi
33402fi
579d8138 33403
8284b0c5 33404if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33405 cat >>confdefs.h <<\_ACEOF
8284b0c5 33406#define wxUSE_TEXTDLG 1
e6cc62c6 33407_ACEOF
8284b0c5
MB
33408
33409fi
33410
33411if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33412 cat >>confdefs.h <<\_ACEOF
8284b0c5 33413#define wxUSE_WIZARDDLG 1
e6cc62c6 33414_ACEOF
8284b0c5
MB
33415
33416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33417fi
33418
33419
33420if test "$cross_compiling" = "yes"; then
33421 OSINFO="\"$host\""
33422else
33423 OSINFO=`uname -s -r -m`
33424 OSINFO="\"$OSINFO\""
33425fi
33426
e6cc62c6 33427cat >>confdefs.h <<_ACEOF
8284b0c5 33428#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33429_ACEOF
8284b0c5
MB
33430
33431
33432
33433if test "x$prefix" != "xNONE"; then
33434 wxPREFIX=$prefix
33435else
33436 wxPREFIX=$ac_default_prefix
33437fi
33438
e6cc62c6 33439cat >>confdefs.h <<_ACEOF
8284b0c5 33440#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33441_ACEOF
8284b0c5
MB
33442
33443
e6cc62c6 33444top_builddir_wxconfig=`pwd`
52c71b80 33445
8284b0c5
MB
33446
33447
edd891e2
VS
33448CORE_BASE_LIBS="net base"
33449CORE_GUI_LIBS="adv core"
33450
33451if test "$wxUSE_XML" = "yes" ; then
33452 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33453fi
45293562
VS
33454if test "$wxUSE_ODBC" != "no" ; then
33455 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33456 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33457fi
33458if test "$wxUSE_HTML" = "yes" ; then
33459 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33460fi
33461
33462
33463
33464
33465
33466
33467
8284b0c5
MB
33468
33469if test "$wxUSE_MAC" = 1 ; then
33470 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33471fi
ac0c4cc3
DE
33472if test "$wxUSE_COCOA" = 1 ; then
33473 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33474fi
8284b0c5
MB
33475
33476
2b5f62a0
VZ
33477LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33478
33479have_cos=0
33480have_floor=0
e6cc62c6 33481
2b5f62a0
VZ
33482for ac_func in cos
33483do
e6cc62c6
VS
33484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33485echo "$as_me:$LINENO: checking for $ac_func" >&5
33486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33487if eval "test \"\${$as_ac_var+set}\" = set"; then
33488 echo $ECHO_N "(cached) $ECHO_C" >&6
33489else
33490 cat >conftest.$ac_ext <<_ACEOF
33491#line $LINENO "configure"
33492/* confdefs.h. */
33493_ACEOF
33494cat confdefs.h >>conftest.$ac_ext
33495cat >>conftest.$ac_ext <<_ACEOF
33496/* end confdefs.h. */
2b5f62a0 33497/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33498 which can conflict with char $ac_func (); below.
33499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33500 <limits.h> exists even on freestanding compilers. */
33501#ifdef __STDC__
33502# include <limits.h>
33503#else
33504# include <assert.h>
33505#endif
2b5f62a0 33506/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33507#ifdef __cplusplus
33508extern "C"
33509{
33510#endif
2b5f62a0 33511/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33512 builtin and then its argument prototype would still apply. */
33513char $ac_func ();
2b5f62a0
VZ
33514/* The GNU C library defines this for functions which it implements
33515 to always fail with ENOSYS. Some functions are actually named
33516 something starting with __ and the normal name is an alias. */
33517#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33518choke me
33519#else
e6cc62c6
VS
33520char (*f) () = $ac_func;
33521#endif
33522#ifdef __cplusplus
33523}
2b5f62a0
VZ
33524#endif
33525
e6cc62c6
VS
33526int
33527main ()
33528{
33529return f != $ac_func;
33530 ;
33531 return 0;
33532}
33533_ACEOF
33534rm -f conftest.$ac_objext conftest$ac_exeext
33535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33536 (eval $ac_link) 2>&5
33537 ac_status=$?
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); } &&
33540 { ac_try='test -s conftest$ac_exeext'
33541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542 (eval $ac_try) 2>&5
33543 ac_status=$?
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); }; }; then
33546 eval "$as_ac_var=yes"
33547else
33548 echo "$as_me: failed program was:" >&5
33549sed 's/^/| /' conftest.$ac_ext >&5
33550
33551eval "$as_ac_var=no"
33552fi
33553rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33554fi
33555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33556echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33557if test `eval echo '${'$as_ac_var'}'` = yes; then
33558 cat >>confdefs.h <<_ACEOF
33559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33560_ACEOF
2b5f62a0 33561 have_cos=1
2b5f62a0
VZ
33562fi
33563done
33564
e6cc62c6 33565
2b5f62a0
VZ
33566for ac_func in floor
33567do
e6cc62c6
VS
33568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33569echo "$as_me:$LINENO: checking for $ac_func" >&5
33570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33571if eval "test \"\${$as_ac_var+set}\" = set"; then
33572 echo $ECHO_N "(cached) $ECHO_C" >&6
33573else
33574 cat >conftest.$ac_ext <<_ACEOF
33575#line $LINENO "configure"
33576/* confdefs.h. */
33577_ACEOF
33578cat confdefs.h >>conftest.$ac_ext
33579cat >>conftest.$ac_ext <<_ACEOF
33580/* end confdefs.h. */
2b5f62a0 33581/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33582 which can conflict with char $ac_func (); below.
33583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33584 <limits.h> exists even on freestanding compilers. */
33585#ifdef __STDC__
33586# include <limits.h>
33587#else
33588# include <assert.h>
33589#endif
2b5f62a0 33590/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33591#ifdef __cplusplus
33592extern "C"
33593{
33594#endif
2b5f62a0 33595/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33596 builtin and then its argument prototype would still apply. */
33597char $ac_func ();
2b5f62a0
VZ
33598/* The GNU C library defines this for functions which it implements
33599 to always fail with ENOSYS. Some functions are actually named
33600 something starting with __ and the normal name is an alias. */
33601#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33602choke me
33603#else
e6cc62c6
VS
33604char (*f) () = $ac_func;
33605#endif
33606#ifdef __cplusplus
33607}
2b5f62a0
VZ
33608#endif
33609
e6cc62c6
VS
33610int
33611main ()
33612{
33613return f != $ac_func;
33614 ;
33615 return 0;
33616}
33617_ACEOF
33618rm -f conftest.$ac_objext conftest$ac_exeext
33619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33620 (eval $ac_link) 2>&5
33621 ac_status=$?
33622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623 (exit $ac_status); } &&
33624 { ac_try='test -s conftest$ac_exeext'
33625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33626 (eval $ac_try) 2>&5
33627 ac_status=$?
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629 (exit $ac_status); }; }; then
33630 eval "$as_ac_var=yes"
33631else
33632 echo "$as_me: failed program was:" >&5
33633sed 's/^/| /' conftest.$ac_ext >&5
33634
33635eval "$as_ac_var=no"
33636fi
33637rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33638fi
33639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33640echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33641if test `eval echo '${'$as_ac_var'}'` = yes; then
33642 cat >>confdefs.h <<_ACEOF
33643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33644_ACEOF
2b5f62a0 33645 have_floor=1
2b5f62a0
VZ
33646fi
33647done
33648
e6cc62c6
VS
33649echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33650echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33651if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33652 echo "$as_me:$LINENO: result: yes" >&5
33653echo "${ECHO_T}yes" >&6
2b5f62a0 33654else
e6cc62c6
VS
33655 echo "$as_me:$LINENO: result: no" >&5
33656echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33657 LIBS="$LIBS -lm"
33658 # use different functions to avoid configure caching
33659 have_sin=0
33660 have_ceil=0
e6cc62c6
VS
33661
33662for ac_func in sin
2b5f62a0 33663do
e6cc62c6
VS
33664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33665echo "$as_me:$LINENO: checking for $ac_func" >&5
33666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33667if eval "test \"\${$as_ac_var+set}\" = set"; then
33668 echo $ECHO_N "(cached) $ECHO_C" >&6
33669else
33670 cat >conftest.$ac_ext <<_ACEOF
33671#line $LINENO "configure"
33672/* confdefs.h. */
33673_ACEOF
33674cat confdefs.h >>conftest.$ac_ext
33675cat >>conftest.$ac_ext <<_ACEOF
33676/* end confdefs.h. */
2b5f62a0 33677/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33678 which can conflict with char $ac_func (); below.
33679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33680 <limits.h> exists even on freestanding compilers. */
33681#ifdef __STDC__
33682# include <limits.h>
33683#else
33684# include <assert.h>
33685#endif
2b5f62a0 33686/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33687#ifdef __cplusplus
33688extern "C"
33689{
33690#endif
2b5f62a0 33691/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33692 builtin and then its argument prototype would still apply. */
33693char $ac_func ();
2b5f62a0
VZ
33694/* The GNU C library defines this for functions which it implements
33695 to always fail with ENOSYS. Some functions are actually named
33696 something starting with __ and the normal name is an alias. */
33697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33698choke me
33699#else
e6cc62c6
VS
33700char (*f) () = $ac_func;
33701#endif
33702#ifdef __cplusplus
33703}
2b5f62a0
VZ
33704#endif
33705
e6cc62c6
VS
33706int
33707main ()
33708{
33709return f != $ac_func;
33710 ;
33711 return 0;
33712}
33713_ACEOF
33714rm -f conftest.$ac_objext conftest$ac_exeext
33715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33716 (eval $ac_link) 2>&5
33717 ac_status=$?
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); } &&
33720 { ac_try='test -s conftest$ac_exeext'
33721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722 (eval $ac_try) 2>&5
33723 ac_status=$?
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); }; }; then
33726 eval "$as_ac_var=yes"
33727else
33728 echo "$as_me: failed program was:" >&5
33729sed 's/^/| /' conftest.$ac_ext >&5
33730
33731eval "$as_ac_var=no"
33732fi
33733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33734fi
33735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33736echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33737if test `eval echo '${'$as_ac_var'}'` = yes; then
33738 cat >>confdefs.h <<_ACEOF
33739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33740_ACEOF
2b5f62a0 33741 have_sin=1
2b5f62a0
VZ
33742fi
33743done
33744
e6cc62c6
VS
33745
33746for ac_func in ceil
2b5f62a0 33747do
e6cc62c6
VS
33748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33749echo "$as_me:$LINENO: checking for $ac_func" >&5
33750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33751if eval "test \"\${$as_ac_var+set}\" = set"; then
33752 echo $ECHO_N "(cached) $ECHO_C" >&6
33753else
33754 cat >conftest.$ac_ext <<_ACEOF
33755#line $LINENO "configure"
33756/* confdefs.h. */
33757_ACEOF
33758cat confdefs.h >>conftest.$ac_ext
33759cat >>conftest.$ac_ext <<_ACEOF
33760/* end confdefs.h. */
2b5f62a0 33761/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33762 which can conflict with char $ac_func (); below.
33763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33764 <limits.h> exists even on freestanding compilers. */
33765#ifdef __STDC__
33766# include <limits.h>
33767#else
33768# include <assert.h>
33769#endif
2b5f62a0 33770/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33771#ifdef __cplusplus
33772extern "C"
33773{
33774#endif
2b5f62a0 33775/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33776 builtin and then its argument prototype would still apply. */
33777char $ac_func ();
2b5f62a0
VZ
33778/* The GNU C library defines this for functions which it implements
33779 to always fail with ENOSYS. Some functions are actually named
33780 something starting with __ and the normal name is an alias. */
33781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33782choke me
33783#else
e6cc62c6
VS
33784char (*f) () = $ac_func;
33785#endif
33786#ifdef __cplusplus
33787}
2b5f62a0
VZ
33788#endif
33789
e6cc62c6
VS
33790int
33791main ()
33792{
33793return f != $ac_func;
33794 ;
33795 return 0;
33796}
33797_ACEOF
33798rm -f conftest.$ac_objext conftest$ac_exeext
33799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33800 (eval $ac_link) 2>&5
33801 ac_status=$?
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); } &&
33804 { ac_try='test -s conftest$ac_exeext'
33805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33806 (eval $ac_try) 2>&5
33807 ac_status=$?
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); }; }; then
33810 eval "$as_ac_var=yes"
33811else
33812 echo "$as_me: failed program was:" >&5
33813sed 's/^/| /' conftest.$ac_ext >&5
33814
33815eval "$as_ac_var=no"
33816fi
33817rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33818fi
33819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33820echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33821if test `eval echo '${'$as_ac_var'}'` = yes; then
33822 cat >>confdefs.h <<_ACEOF
33823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33824_ACEOF
2b5f62a0 33825 have_ceil=1
2b5f62a0
VZ
33826fi
33827done
33828
e6cc62c6
VS
33829 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33830echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33831 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33832 echo "$as_me:$LINENO: result: yes" >&5
33833echo "${ECHO_T}yes" >&6
2b5f62a0 33834 else
e6cc62c6
VS
33835 echo "$as_me:$LINENO: result: no" >&5
33836echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33837 # not sure we should warn the user, crash, etc.
33838 fi
33839fi
8284b0c5
MB
33840
33841if test "$wxUSE_GUI" = "yes"; then
33842
e6cc62c6 33843
8284b0c5
MB
33844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33845 drawing dynamic erase event exec font image \
1dd02ac0 33846 minimal propsize rotate shaped widgets render"
b625909c
VS
33847
33848 if test "$wxUSE_MONOLITHIC" != "yes"; then
33849 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33850 fi
8284b0c5
MB
33851else
33852 SAMPLES_SUBDIRS="console"
33853fi
33854
33855
e6cc62c6 33856INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33857-I\${top_srcdir}/include \
33858$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33859$TOOLKIT_INCLUDE"
33860
fddeb06b
VS
33861if test "$GXX" = yes ; then
33862 CXXWARNINGS="-Wall"
33863 fi
33864
33865EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33866
95318f7d 33867CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33868CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33869CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33870
33871
fddeb06b 33872LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33873EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33874EXTRALIBS_XML="$EXPAT_LINK"
bb41dcbe 33875EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
33876if test "$wxUSE_GUI" = "yes"; then
33877 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33878fi
34b08d2c
VS
33879if test "$wxUSE_OPENGL" = "yes"; then
33880 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33881fi
fddeb06b
VS
33882
33883LDFLAGS="$LDFLAGS $PROFILE"
33884
8284b0c5
MB
33885if test "$wxUSE_GTK" = 1; then
33886 WXCONFIG_INCLUDE=
33887else
33888 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33889fi
33890
67c13b6c
VS
33891WXCONFIG_EXTRALIBS="$LIBS"
33892
33893if test "$wxUSE_REGEX" = "builtin" ; then
33894 wxconfig_3rdparty="$wxconfig_3rdparty regex"
33895fi
33896if test "$wxUSE_EXPAT" = "builtin" ; then
33897 wxconfig_3rdparty="$wxconfig_3rdparty expat"
33898fi
33899if test "$wxUSE_ODBC" = "builtin" ; then
33900 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33901fi
33902if test "$wxUSE_LIBTIFF" = "builtin" ; then
33903 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33904fi
33905if test "$wxUSE_LIBJPEG" = "builtin" ; then
33906 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33907fi
33908if test "$wxUSE_LIBPNG" = "builtin" ; then
33909 wxconfig_3rdparty="$wxconfig_3rdparty png"
33910fi
33911if test "$wxUSE_ZLIB" = "builtin" ; then
33912 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33913fi
bb41dcbe
VS
33914if test "$wxUSE_ODBC" = "builtin" ; then
33915 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33916fi
67c13b6c
VS
33917
33918for i in $wxconfig_3rdparty ; do
33919 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33920done
33921
33922
fe0895cf
VS
33923if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33924 WXUNIV=1
33925else
33926 WXUNIV=0
8284b0c5
MB
33927fi
33928
8284b0c5
MB
33929
33930
33931
33932
33933
33934
33935
672abd7a 33936
9747f85d
VS
33937if test $wxUSE_MONOLITHIC = "yes" ; then
33938 MONOLITHIC=1
33939else
33940 MONOLITHIC=0
33941fi
8284b0c5 33942
bb41dcbe
VS
33943if test $wxUSE_ODBC != "no" ; then
33944 USE_ODBC=1
33945else
33946 USE_ODBC=0
33947fi
33948
029b47ad
VS
33949if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33950 OFFICIAL_BUILD=1
33951else
33952 OFFICIAL_BUILD=0
33953fi
33954
8ee2dd05
VS
33955
33956
33957
8284b0c5
MB
33958
33959
33960
33961
33962
33963
c74dc163 33964
34b08d2c 33965
672abd7a 33966
cf615ebb 33967
6c67131a
VS
33968
33969
bb41dcbe 33970
fe0895cf 33971TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33972
33973
33974
33975
33976
ea66c762 33977
0f1bc9c2 33978
fe0895cf 33979 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33980
33981 if test -n "$ac_tool_prefix"; then
33982 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33983set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33984echo "$as_me:$LINENO: checking for $ac_word" >&5
33985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33986if test "${ac_cv_prog_RANLIB+set}" = set; then
33987 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33988else
fe0895cf
VS
33989 if test -n "$RANLIB"; then
33990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33991else
e6cc62c6
VS
33992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33993for as_dir in $PATH
33994do
33995 IFS=$as_save_IFS
33996 test -z "$as_dir" && as_dir=.
33997 for ac_exec_ext in '' $ac_executable_extensions; do
33998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33999 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34001 break 2
34002 fi
34003done
34004done
34005
10f2d63a 34006fi
10f2d63a 34007fi
e6cc62c6 34008RANLIB=$ac_cv_prog_RANLIB
fe0895cf 34009if test -n "$RANLIB"; then
e6cc62c6
VS
34010 echo "$as_me:$LINENO: result: $RANLIB" >&5
34011echo "${ECHO_T}$RANLIB" >&6
34012else
34013 echo "$as_me:$LINENO: result: no" >&5
34014echo "${ECHO_T}no" >&6
34015fi
34016
34017fi
34018if test -z "$ac_cv_prog_RANLIB"; then
34019 ac_ct_RANLIB=$RANLIB
34020 # Extract the first word of "ranlib", so it can be a program name with args.
34021set dummy ranlib; ac_word=$2
34022echo "$as_me:$LINENO: checking for $ac_word" >&5
34023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34024if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34025 echo $ECHO_N "(cached) $ECHO_C" >&6
34026else
34027 if test -n "$ac_ct_RANLIB"; then
34028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34029else
34030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34031for as_dir in $PATH
34032do
34033 IFS=$as_save_IFS
34034 test -z "$as_dir" && as_dir=.
34035 for ac_exec_ext in '' $ac_executable_extensions; do
34036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34037 ac_cv_prog_ac_ct_RANLIB="ranlib"
34038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34039 break 2
34040 fi
34041done
34042done
34043
34044 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34045fi
34046fi
34047ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34048if test -n "$ac_ct_RANLIB"; then
34049 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34050echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 34051else
e6cc62c6
VS
34052 echo "$as_me:$LINENO: result: no" >&5
34053echo "${ECHO_T}no" >&6
34054fi
34055
34056 RANLIB=$ac_ct_RANLIB
34057else
34058 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 34059fi
665bbe97 34060
fe0895cf
VS
34061 # Find a good install program. We prefer a C program (faster),
34062# so one script is as good as another. But avoid the broken or
34063# incompatible versions:
34064# SysV /etc/install, /usr/sbin/install
34065# SunOS /usr/etc/install
34066# IRIX /sbin/install
34067# AIX /bin/install
e6cc62c6 34068# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
34069# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34070# AFS /usr/afsws/bin/install, which mishandles nonexistent args
34071# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34072# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
34073echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34074echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 34075if test -z "$INSTALL"; then
e6cc62c6
VS
34076if test "${ac_cv_path_install+set}" = set; then
34077 echo $ECHO_N "(cached) $ECHO_C" >&6
34078else
34079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34080for as_dir in $PATH
34081do
34082 IFS=$as_save_IFS
34083 test -z "$as_dir" && as_dir=.
34084 # Account for people who put trailing slashes in PATH elements.
34085case $as_dir/ in
34086 ./ | .// | /cC/* | \
34087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34088 /usr/ucb/* ) ;;
34089 *)
34090 # OSF1 and SCO ODT 3.0 have their own names for install.
34091 # Don't use installbsd from OSF since it installs stuff as root
34092 # by default.
34093 for ac_prog in ginstall scoinst install; do
34094 for ac_exec_ext in '' $ac_executable_extensions; do
34095 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34096 if test $ac_prog = install &&
34097 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34098 # AIX install. It has an incompatible calling convention.
34099 :
34100 elif test $ac_prog = install &&
34101 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34102 # program-specific install script used by HP pwplus--don't use.
34103 :
34104 else
34105 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34106 break 3
34107 fi
34108 fi
fe0895cf 34109 done
e6cc62c6
VS
34110 done
34111 ;;
34112esac
34113done
34114
fe0895cf
VS
34115
34116fi
34117 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 34118 INSTALL=$ac_cv_path_install
fe0895cf
VS
34119 else
34120 # As a last resort, use the slow shell script. We don't cache a
34121 # path for INSTALL within a source directory, because that will
34122 # break other packages using the cache if that directory is
34123 # removed, or if the path is relative.
e6cc62c6 34124 INSTALL=$ac_install_sh
fe0895cf
VS
34125 fi
34126fi
e6cc62c6
VS
34127echo "$as_me:$LINENO: result: $INSTALL" >&5
34128echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
34129
34130# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34131# It thinks the first close brace ends the variable substitution.
34132test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34133
e6cc62c6 34134test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
34135
34136test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34137
e6cc62c6
VS
34138 echo "$as_me:$LINENO: checking whether ln -s works" >&5
34139echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34140LN_S=$as_ln_s
34141if test "$LN_S" = "ln -s"; then
34142 echo "$as_me:$LINENO: result: yes" >&5
34143echo "${ECHO_T}yes" >&6
fe0895cf 34144else
e6cc62c6
VS
34145 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34146echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
34147fi
34148
34149
e6cc62c6
VS
34150 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34151echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34152set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34153if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34154 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34155else
e6cc62c6 34156 cat >conftest.make <<\_ACEOF
fe0895cf 34157all:
e6cc62c6
VS
34158 @echo 'ac_maketemp="$(MAKE)"'
34159_ACEOF
fe0895cf 34160# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 34161eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
34162if test -n "$ac_maketemp"; then
34163 eval ac_cv_prog_make_${ac_make}_set=yes
34164else
34165 eval ac_cv_prog_make_${ac_make}_set=no
34166fi
e6cc62c6 34167rm -f conftest.make
fe0895cf
VS
34168fi
34169if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
34170 echo "$as_me:$LINENO: result: yes" >&5
34171echo "${ECHO_T}yes" >&6
fe0895cf
VS
34172 SET_MAKE=
34173else
e6cc62c6
VS
34174 echo "$as_me:$LINENO: result: no" >&5
34175echo "${ECHO_T}no" >&6
fe0895cf
VS
34176 SET_MAKE="MAKE=${MAKE-make}"
34177fi
34178
e6cc62c6
VS
34179
34180
fe0895cf
VS
34181 if test "$build" != "$host" ; then
34182 AR=$host_alias-ar
34183 STRIP=$host_alias-strip
34184 else
34185 # Extract the first word of "ar", so it can be a program name with args.
34186set dummy ar; ac_word=$2
e6cc62c6
VS
34187echo "$as_me:$LINENO: checking for $ac_word" >&5
34188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34189if test "${ac_cv_prog_AR+set}" = set; then
34190 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34191else
34192 if test -n "$AR"; then
34193 ac_cv_prog_AR="$AR" # Let the user override the test.
34194else
e6cc62c6
VS
34195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34196for as_dir in $PATH
34197do
34198 IFS=$as_save_IFS
34199 test -z "$as_dir" && as_dir=.
34200 for ac_exec_ext in '' $ac_executable_extensions; do
34201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34202 ac_cv_prog_AR="ar"
34203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34204 break 2
34205 fi
34206done
34207done
34208
fe0895cf
VS
34209 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
34210fi
34211fi
e6cc62c6 34212AR=$ac_cv_prog_AR
fe0895cf 34213if test -n "$AR"; then
e6cc62c6
VS
34214 echo "$as_me:$LINENO: result: $AR" >&5
34215echo "${ECHO_T}$AR" >&6
fe0895cf 34216else
e6cc62c6
VS
34217 echo "$as_me:$LINENO: result: no" >&5
34218echo "${ECHO_T}no" >&6
fe0895cf
VS
34219fi
34220
34221 # Extract the first word of "strip", so it can be a program name with args.
34222set dummy strip; ac_word=$2
e6cc62c6
VS
34223echo "$as_me:$LINENO: checking for $ac_word" >&5
34224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34225if test "${ac_cv_prog_STRIP+set}" = set; then
34226 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34227else
34228 if test -n "$STRIP"; then
34229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34230else
e6cc62c6
VS
34231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34232for as_dir in $PATH
34233do
34234 IFS=$as_save_IFS
34235 test -z "$as_dir" && as_dir=.
34236 for ac_exec_ext in '' $ac_executable_extensions; do
34237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34238 ac_cv_prog_STRIP="strip"
34239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34240 break 2
34241 fi
34242done
34243done
34244
fe0895cf
VS
34245 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
34246fi
34247fi
e6cc62c6 34248STRIP=$ac_cv_prog_STRIP
fe0895cf 34249if test -n "$STRIP"; then
e6cc62c6
VS
34250 echo "$as_me:$LINENO: result: $STRIP" >&5
34251echo "${ECHO_T}$STRIP" >&6
fe0895cf 34252else
e6cc62c6
VS
34253 echo "$as_me:$LINENO: result: no" >&5
34254echo "${ECHO_T}no" >&6
fe0895cf
VS
34255fi
34256
34257 fi
34258
34259 case ${host} in
34260 *-hp-hpux* )
34261 INSTALL_DIR="mkdir"
34262 ;;
34263 *) INSTALL_DIR="$INSTALL -d"
34264 ;;
34265 esac
e6cc62c6 34266
fe0895cf 34267
6b9d41a5
VS
34268 LDFLAGS_GUI=
34269 case ${host} in
34270 *-*-cygwin* | *-*-mingw32* )
34271 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34272 esac
34273
34274
fe0895cf 34275 fi
e6cc62c6
VS
34276
34277 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34278echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34279if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34280 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34281else
e6cc62c6 34282
fe0895cf
VS
34283 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34284 egrep -s GNU > /dev/null); then
34285 bakefile_cv_prog_makeisgnu="yes"
34286 else
34287 bakefile_cv_prog_makeisgnu="no"
34288 fi
fe0895cf 34289
e6cc62c6 34290fi
49b0a3aa
VS
34291echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34292echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34293
34294 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34295 IF_GNU_MAKE=""
34296 else
34297 IF_GNU_MAKE="#"
34298 fi
fe0895cf 34299
e6cc62c6
VS
34300
34301
fe0895cf
VS
34302 PLATFORM_UNIX=0
34303 PLATFORM_WIN32=0
34304 PLATFORM_MSDOS=0
34305 PLATFORM_MAC=0
34306 PLATFORM_MACOSX=0
e6cc62c6 34307
fe0895cf
VS
34308 case "${host}" in
34309 *-*-cygwin* | *-*-mingw32* )
34310 PLATFORM_WIN32=1
34311 ;;
34312 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34313 PLATFORM_MSDOS=1
34314 ;;
34315 powerpc-*-darwin* )
34316 PLATFORM_MAC=1
34317 PLATFORM_MACOSX=1
34318 ;;
34319 * )
34320 PLATFORM_UNIX=1
34321 ;;
34322 esac
34323
fe0895cf 34324
e6cc62c6
VS
34325
34326
34327
34328
34329
34330
fe0895cf 34331 SO_SUFFIX="so"
131f235d 34332 SO_SUFFIX_MODULE="so"
fe0895cf
VS
34333 EXEEXT=""
34334 DLLPREFIX=lib
131f235d 34335 DLLPREFIX_MODULE=
e6cc62c6 34336
fe0895cf
VS
34337 case "${host}" in
34338 *-hp-hpux* )
34339 SO_SUFFIX="sl"
131f235d 34340 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34341 ;;
34342 *-*-aix* )
34343 SO_SUFFIX="a"
131f235d 34344 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34345 ;;
34346 *-*-cygwin* | *-*-mingw32* )
34347 SO_SUFFIX="dll"
131f235d 34348 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34349 EXEEXT=".exe"
34350 DLLPREFIX=""
34351 ;;
34352 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34353 EXEEXT=".exe"
34354 DLLPREFIX=""
34355 ;;
34356 powerpc-*-darwin* )
34357 SO_SUFFIX="dylib"
131f235d 34358 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34359 ;;
34360 esac
34361
fe0895cf 34362
e6cc62c6
VS
34363
34364
34365
34366
131f235d
VS
34367
34368
fe0895cf
VS
34369 SHARED_LD_CC="\$(CC) -shared -o"
34370 SHARED_LD_CXX="\$(CXX) -shared -o"
34371
34372 if test "x$GCC" = "xyes"; then
34373 PIC_FLAG="-fPIC"
34374 fi
34375
34376 case "${host}" in
34377 *-hp-hpux* )
34378 if test "x$GCC" = "xyes"; then
34379 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34380 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34381 else
34382 LDFLAGS="$LDFLAGS -L/usr/lib"
34383
34384 SHARED_LD_CC="${CC} -b -o"
34385 SHARED_LD_CXX="${CXX} -b -o"
34386 PIC_FLAG="+Z"
34387 fi
34388 ;;
34389
34390 *-*-linux* )
34391 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34392 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34393echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34394if test "${bakefile_cv_prog_icc+set}" = set; then
34395 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34396else
fe0895cf 34397
e6cc62c6
VS
34398 cat >conftest.$ac_ext <<_ACEOF
34399#line $LINENO "configure"
34400/* confdefs.h. */
34401_ACEOF
34402cat confdefs.h >>conftest.$ac_ext
34403cat >>conftest.$ac_ext <<_ACEOF
34404/* end confdefs.h. */
34405
34406int
34407main ()
34408{
fe0895cf
VS
34409
34410 #ifndef __INTEL_COMPILER
34411 #error Not icc
34412 #endif
e6cc62c6
VS
34413
34414 ;
34415 return 0;
34416}
34417_ACEOF
34418rm -f conftest.$ac_objext
34419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34420 (eval $ac_compile) 2>&5
34421 ac_status=$?
34422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423 (exit $ac_status); } &&
34424 { ac_try='test -s conftest.$ac_objext'
34425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34426 (eval $ac_try) 2>&5
34427 ac_status=$?
34428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429 (exit $ac_status); }; }; then
fe0895cf
VS
34430 bakefile_cv_prog_icc=yes
34431else
e6cc62c6
VS
34432 echo "$as_me: failed program was:" >&5
34433sed 's/^/| /' conftest.$ac_ext >&5
34434
34435bakefile_cv_prog_icc=no
34436
fe0895cf 34437fi
e6cc62c6 34438rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34439
e6cc62c6
VS
34440fi
34441echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34442echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34443 if test "$bakefile_cv_prog_icc" = "yes"; then
34444 PIC_FLAG="-KPIC"
34445 fi
34446 fi
34447 ;;
34448
34449 *-*-solaris2* )
34450 if test "x$GCC" != xyes ; then
34451 SHARED_LD_CC="${CC} -G -o"
34452 SHARED_LD_CXX="${CXX} -G -o"
34453 PIC_FLAG="-KPIC"
34454 fi
34455 ;;
34456
34457 *-*-darwin* )
34458 CFLAGS="$CFLAGS -fno-common"
34459 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34460
34461
fe0895cf
VS
34462 cat <<EOF >shared-ld-sh
34463#!/bin/sh
34464#-----------------------------------------------------------------------------
34465#-- Name: distrib/mac/shared-ld-sh
34466#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34467#-- Author: Gilles Depeyrot
34468#-- Copyright: (c) 2002 Gilles Depeyrot
34469#-- Licence: any use permitted
34470#-----------------------------------------------------------------------------
34471
34472verbose=0
34473args=""
34474objects=""
131f235d 34475linking_flag="-dynamiclib"
fe0895cf
VS
34476
34477while test \${#} -gt 0; do
34478 case \${1} in
34479
34480 -v)
34481 verbose=1
34482 ;;
34483
34484 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34485 # collect these options and values
34486 args="\${args} \${1} \${2}"
34487 shift
34488 ;;
34489
34490 -l*|-L*|-flat_namespace)
34491 # collect these options
34492 args="\${args} \${1}"
34493 ;;
34494
131f235d
VS
34495 -dynamiclib|-bundle)
34496 linking_flag="\${1}"
fe0895cf
VS
34497 ;;
34498
34499 -*)
34500 echo "shared-ld: unhandled option '\${1}'"
34501 exit 1
34502 ;;
34503
4d264332 34504 *.o | *.a | *.dylib)
fe0895cf
VS
34505 # collect object files
34506 objects="\${objects} \${1}"
34507 ;;
34508
34509 *)
34510 echo "shared-ld: unhandled argument '\${1}'"
34511 exit 1
34512 ;;
34513
34514 esac
34515 shift
34516done
34517
34518#
34519# Link one module containing all the others
34520#
34521if test \${verbose} = 1; then
34522 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34523fi
34524c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34525status=\$?
34526if test \${status} != 0; then
34527 exit \${status}
34528fi
34529
34530#
34531# Link the shared library from the single module created
34532#
34533if test \${verbose} = 1; then
131f235d 34534 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34535fi
131f235d 34536c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34537status=\$?
34538if test \${status} != 0; then
34539 exit \${status}
34540fi
34541
34542#
34543# Remove intermediate module
34544#
34545rm -f master.\$\$.o
34546
34547exit 0
34548EOF
34549 chmod +x shared-ld-sh
34550
131f235d
VS
34551 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o"
34552 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o"
fe0895cf 34553 SHARED_LD_CXX="$SHARED_LD_CC"
131f235d 34554 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
fe0895cf
VS
34555 PIC_FLAG="-dynamic -fPIC"
34556 ;;
34557
34558 *-*-aix* )
34559 if test "x$GCC" != "xyes"; then
34560 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34561set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34562echo "$as_me:$LINENO: checking for $ac_word" >&5
34563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34564if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34565 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34566else
34567 if test -n "$AIX_CXX_LD"; then
34568 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34569else
e6cc62c6
VS
34570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34571for as_dir in $PATH
34572do
34573 IFS=$as_save_IFS
34574 test -z "$as_dir" && as_dir=.
34575 for ac_exec_ext in '' $ac_executable_extensions; do
34576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34577 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34579 break 2
34580 fi
34581done
34582done
34583
fe0895cf
VS
34584 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34585fi
34586fi
e6cc62c6 34587AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34588if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34589 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34590echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34591else
e6cc62c6
VS
34592 echo "$as_me:$LINENO: result: no" >&5
34593echo "${ECHO_T}no" >&6
fe0895cf
VS
34594fi
34595
34596 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34597 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34598 fi
34599 ;;
34600
34601 *-*-beos* )
34602 SHARED_LD_CC="${LD} -shared -o"
34603 SHARED_LD_CXX="${LD} -shared -o"
34604 ;;
34605
34606 *-*-irix* )
34607 if test "x$GCC" != "xyes"; then
34608 PIC_FLAG="-KPIC"
34609 fi
34610 ;;
e6cc62c6 34611
fe0895cf
VS
34612 *-*-cygwin* | *-*-mingw32* )
34613 PIC_FLAG=""
34614 ;;
e6cc62c6 34615
fe0895cf
VS
34616 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34617 *-*-sunos4* | \
34618 *-*-osf* | \
34619 *-*-dgux5* | \
34620 *-*-sysv5* )
34621 ;;
34622
34623 *)
e6cc62c6
VS
34624 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34625echo "$as_me: error: unknown system type $host." >&2;}
34626 { (exit 1); exit 1; }; }
fe0895cf
VS
34627 esac
34628
131f235d
VS
34629 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34630 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34631 fi
34632 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 34633 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
34634 fi
34635
34636
34637
fe0895cf 34638
e6cc62c6
VS
34639
34640
34641
34642
fe0895cf
VS
34643 USE_SOVERSION=0
34644 USE_SOVERLINUX=0
34645 USE_SOVERSOLARIS=0
34646 USE_SOSYMLINKS=0
34647 USE_MACVERSION=0
34648 SONAME_FLAG=
34649
34650 case "${host}" in
34651 *-*-linux* )
34652 SONAME_FLAG="-Wl,-soname,"
34653 USE_SOVERSION=1
34654 USE_SOVERLINUX=1
34655 USE_SOSYMLINKS=1
34656 ;;
34657
34658 *-*-solaris2* )
34659 SONAME_FLAG="-h "
34660 USE_SOVERSION=1
34661 USE_SOVERSOLARIS=1
34662 USE_SOSYMLINKS=1
34663 ;;
34664
34665 *-*-darwin* )
34666 USE_MACVERSION=1
34667 USE_SOVERSION=1
34668 USE_SOSYMLINKS=1
e6cc62c6 34669 ;;
fe0895cf
VS
34670 esac
34671
fe0895cf 34672
e6cc62c6
VS
34673
34674
34675
34676
34677
34678
34679
49b0a3aa
VS
34680 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34681echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34682 DEPS_TRACKING=0
34683
fe0895cf 34684 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34685 DEPSMODE=gcc
34686 DEPS_TRACKING=1
3e5c3c83
VS
34687 case "${host}" in
34688 powerpc-*-darwin* )
34689 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34690 ;;
34691 * )
34692 DEPSFLAG_GCC="-MMD"
34693 ;;
34694 esac
49b0a3aa
VS
34695 echo "$as_me:$LINENO: result: gcc" >&5
34696echo "${ECHO_T}gcc" >&6
34697 else
34698 echo "$as_me:$LINENO: result: none" >&5
34699echo "${ECHO_T}none" >&6
34700 fi
34701
34702 if test $DEPS_TRACKING = 1 ; then
34703 cat <<EOF >bk-deps
34704#!/bin/sh
34705
45842500
VS
34706# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34707# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
34708#
34709# Permission is given to use this file in any way.
34710
34711DEPSMODE=$DEPSMODE
34712DEPSDIR=.deps
3e5c3c83 34713DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34714
34715mkdir -p \$DEPSDIR
34716
34717if test \$DEPSMODE = gcc ; then
3e5c3c83 34718 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34719 status=\${?}
34720 if test \${status} != 0 ; then
34721 exit \${status}
34722 fi
34723 # move created file to the location we want it in:
34724 while test \${#} -gt 0; do
34725 case "\${1}" in
34726 -o )
34727 shift
34728 objfile=\${1}
34729 ;;
34730 -* )
34731 ;;
34732 * )
34733 srcfile=\${1}
34734 ;;
34735 esac
34736 shift
34737 done
34738 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34739 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34740 if test -f \$depfile ; then
34741 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34742 rm -f \$depfile
34743 else
34744 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34745 if test -f \$depfile ; then
4c8b7f4b 34746 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34747 rm -f \$depfile
34748 fi
34749 fi
49b0a3aa
VS
34750 exit 0
34751else
34752 \${*}
34753 exit \${?}
34754fi
34755EOF
34756 chmod +x bk-deps
fe0895cf 34757 fi
fe0895cf 34758
e6cc62c6
VS
34759
34760
34761
fe0895cf
VS
34762 RESCOMP=
34763 SETFILE=
34764
e6cc62c6 34765 case ${host} in
fe0895cf
VS
34766 *-*-cygwin* | *-*-mingw32* )
34767 if test "$build" != "$host" ; then
34768 RESCOMP=$host_alias-windres
34769 else
34770 # Extract the first word of "windres", so it can be a program name with args.
34771set dummy windres; ac_word=$2
e6cc62c6
VS
34772echo "$as_me:$LINENO: checking for $ac_word" >&5
34773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34774if test "${ac_cv_prog_RESCOMP+set}" = set; then
34775 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34776else
34777 if test -n "$RESCOMP"; then
34778 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34779else
e6cc62c6
VS
34780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34781for as_dir in $PATH
34782do
34783 IFS=$as_save_IFS
34784 test -z "$as_dir" && as_dir=.
34785 for ac_exec_ext in '' $ac_executable_extensions; do
34786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34787 ac_cv_prog_RESCOMP="windres"
34788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34789 break 2
34790 fi
34791done
34792done
34793
fe0895cf
VS
34794 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34795fi
34796fi
e6cc62c6 34797RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34798if test -n "$RESCOMP"; then
e6cc62c6
VS
34799 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34800echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34801else
e6cc62c6
VS
34802 echo "$as_me:$LINENO: result: no" >&5
34803echo "${ECHO_T}no" >&6
fe0895cf
VS
34804fi
34805
34806 fi
34807 ;;
e6cc62c6 34808
fe0895cf
VS
34809 *-*-darwin* )
34810 # Extract the first word of "Rez", so it can be a program name with args.
34811set dummy Rez; ac_word=$2
e6cc62c6
VS
34812echo "$as_me:$LINENO: checking for $ac_word" >&5
34813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34814if test "${ac_cv_prog_RESCOMP+set}" = set; then
34815 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34816else
34817 if test -n "$RESCOMP"; then
34818 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34819else
e6cc62c6
VS
34820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34821for as_dir in $PATH
34822do
34823 IFS=$as_save_IFS
34824 test -z "$as_dir" && as_dir=.
34825 for ac_exec_ext in '' $ac_executable_extensions; do
34826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34827 ac_cv_prog_RESCOMP="Rez"
34828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34829 break 2
34830 fi
34831done
34832done
34833
fe0895cf
VS
34834 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34835fi
34836fi
e6cc62c6 34837RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34838if test -n "$RESCOMP"; then
e6cc62c6
VS
34839 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34840echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34841else
e6cc62c6
VS
34842 echo "$as_me:$LINENO: result: no" >&5
34843echo "${ECHO_T}no" >&6
fe0895cf
VS
34844fi
34845
34846 # Extract the first word of "SetFile", so it can be a program name with args.
34847set dummy SetFile; ac_word=$2
e6cc62c6
VS
34848echo "$as_me:$LINENO: checking for $ac_word" >&5
34849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34850if test "${ac_cv_prog_SETFILE+set}" = set; then
34851 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34852else
34853 if test -n "$SETFILE"; then
34854 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34855else
e6cc62c6
VS
34856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34857for as_dir in $PATH
34858do
34859 IFS=$as_save_IFS
34860 test -z "$as_dir" && as_dir=.
34861 for ac_exec_ext in '' $ac_executable_extensions; do
34862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34863 ac_cv_prog_SETFILE="SetFile"
34864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34865 break 2
34866 fi
34867done
34868done
34869
fe0895cf
VS
34870 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34871fi
34872fi
e6cc62c6 34873SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34874if test -n "$SETFILE"; then
e6cc62c6
VS
34875 echo "$as_me:$LINENO: result: $SETFILE" >&5
34876echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34877else
e6cc62c6
VS
34878 echo "$as_me:$LINENO: result: no" >&5
34879echo "${ECHO_T}no" >&6
fe0895cf
VS
34880fi
34881
34882 ;;
34883 esac
34884
fe0895cf
VS
34885
34886
e6cc62c6
VS
34887
34888
34889
34890
45842500 34891
ffef10f6
VS
34892
34893
45842500
VS
34894 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
34895if test "${enable_precomp_headers+set}" = set; then
34896 enableval="$enable_precomp_headers"
34897 bk_use_pch="$enableval"
34898fi;
34899
34900 GCC_PCH=0
34901
34902 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
34903 if test "x$GCC" = "xyes"; then
34904 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
34905echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
34906 cat >conftest.$ac_ext <<_ACEOF
34907#line $LINENO "configure"
34908/* confdefs.h. */
34909_ACEOF
34910cat confdefs.h >>conftest.$ac_ext
34911cat >>conftest.$ac_ext <<_ACEOF
34912/* end confdefs.h. */
34913
34914int
34915main ()
34916{
34917
8bcf2d20
VS
34918 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
34919 #error "no pch support"
34920 #endif
34921 #if (__GNUC__ < 3)
34922 #error "no pch support"
34923 #endif
34924 #if (__GNUC__ == 3) && \
34925 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
34926 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
34927 #error "no pch support"
45842500
VS
34928 #endif
34929
34930 ;
34931 return 0;
34932}
34933_ACEOF
34934rm -f conftest.$ac_objext
34935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34936 (eval $ac_compile) 2>&5
34937 ac_status=$?
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 (exit $ac_status); } &&
34940 { ac_try='test -s conftest.$ac_objext'
34941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34942 (eval $ac_try) 2>&5
34943 ac_status=$?
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); }; }; then
34946
34947 echo "$as_me:$LINENO: result: yes" >&5
34948echo "${ECHO_T}yes" >&6
34949 CPPFLAGS="-fpch-deps $CPPFLAGS"
34950 GCC_PCH=1
34951
34952else
34953 echo "$as_me: failed program was:" >&5
34954sed 's/^/| /' conftest.$ac_ext >&5
34955
34956
34957 echo "$as_me:$LINENO: result: no" >&5
34958echo "${ECHO_T}no" >&6
34959
34960fi
34961rm -f conftest.$ac_objext conftest.$ac_ext
34962 if test $GCC_PCH = 1 ; then
34963 cat <<EOF >bk-make-pch
34964#!/bin/sh
34965
34966# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34967# script. It is used to generated precompiled headers.
34968#
34969# Permission is given to use this file in any way.
34970
34971outfile="\${1}"
34972header="\${2}"
34973shift
34974shift
34975
34976compiler=
34977headerfile=
34978while test \${#} -gt 0; do
34979 case "\${1}" in
34980 -I* )
34981 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
34982 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
34983 headerfile="\${incdir}/\${header}"
34984 fi
34985 ;;
34986 esac
34987 compiler="\${compiler} \${1}"
34988 shift
34989done
34990
34991if test "x\${headerfile}" = "x" ; then
34992 echo "error: can't find header \${header} in include paths" >2
34993else
34994 if test -f \${outfile} ; then
34995 rm -f \${outfile}
34996 else
34997 mkdir -p \`dirname \${outfile}\`
34998 fi
34999 depsfile=".deps/\`basename \${outfile}\`.d"
35000 mkdir -p .deps
35001 # can do this because gcc is >= 3.4:
35002 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
35003 exit \${?}
35004fi
35005EOF
35006 chmod +x bk-make-pch
35007 fi
35008 fi
35009 fi
35010
35011
35012
35013
35014
d78c94f2 35015 COND_BUILD_DEBUG="#"
6f628073 35016 if test "x$BUILD" = "xdebug" ; then
d78c94f2 35017 COND_BUILD_DEBUG=""
6f628073
VS
35018 fi
35019
6c67131a
VS
35020 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
35021 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
35022 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
35023 fi
35024
35025 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
35026 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
35027 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
35028 fi
35029
d78c94f2 35030 COND_BUILD_RELEASE="#"
6f628073 35031 if test "x$BUILD" = "xrelease" ; then
d78c94f2 35032 COND_BUILD_RELEASE=""
6b9d41a5
VS
35033 fi
35034
6c67131a
VS
35035 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
35036 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
35037 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
35038 fi
35039
35040 COND_DEBUG_FLAG_1="#"
35041 if test "x$DEBUG_FLAG" = "x1" ; then
35042 COND_DEBUG_FLAG_1=""
35043 fi
35044
35045 COND_DEBUG_INFO_0="#"
35046 if test "x$DEBUG_INFO" = "x0" ; then
35047 COND_DEBUG_INFO_0=""
35048 fi
35049
35050 COND_DEBUG_INFO_1="#"
35051 if test "x$DEBUG_INFO" = "x1" ; then
35052 COND_DEBUG_INFO_1=""
35053 fi
35054
f95cd8fa
VS
35055 COND_DEPS_TRACKING_0="#"
35056 if test "x$DEPS_TRACKING" = "x0" ; then
35057 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
35058 fi
35059
8ee2dd05
VS
35060 COND_DEPS_TRACKING_1="#"
35061 if test "x$DEPS_TRACKING" = "x1" ; then
35062 COND_DEPS_TRACKING_1=""
35063 fi
35064
45842500
VS
35065 COND_GCC_PCH_1="#"
35066 if test "x$GCC_PCH" = "x1" ; then
35067 COND_GCC_PCH_1=""
35068 fi
35069
6f628073
VS
35070 COND_MONOLITHIC_0="#"
35071 if test "x$MONOLITHIC" = "x0" ; then
35072 COND_MONOLITHIC_0=""
6b9d41a5
VS
35073 fi
35074
6f628073
VS
35075 COND_MONOLITHIC_0_SHARED_0="#"
35076 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
35077 COND_MONOLITHIC_0_SHARED_0=""
35078 fi
35079
35080 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
35081 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
35082 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 35083 fi
e6cc62c6 35084
8772a1a7
VS
35085 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
35086 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35087 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
35088 fi
35089
250700e4
RD
35090 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
35091 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
35092 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
35093 fi
35094
8ee2dd05
VS
35095 COND_MONOLITHIC_0_SHARED_1="#"
35096 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
35097 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 35098 fi
e6cc62c6 35099
6f628073
VS
35100 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
35101 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
35102 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
35103 fi
35104
8772a1a7
VS
35105 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
35106 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35107 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
35108 fi
35109
250700e4
RD
35110 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
35111 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
35112 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
35113 fi
35114
3af038c0
VS
35115 COND_MONOLITHIC_1="#"
35116 if test "x$MONOLITHIC" = "x1" ; then
35117 COND_MONOLITHIC_1=""
35118 fi
35119
6f628073
VS
35120 COND_MONOLITHIC_1_SHARED_0="#"
35121 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
35122 COND_MONOLITHIC_1_SHARED_0=""
35123 fi
35124
35125 COND_MONOLITHIC_1_SHARED_1="#"
35126 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
35127 COND_MONOLITHIC_1_SHARED_1=""
35128 fi
35129
3af038c0
VS
35130 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
35131 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
35132 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
35133 fi
35134
35135 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
35136 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
35137 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
35138 fi
35139
6f628073
VS
35140 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
35141 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
35142 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
35143 fi
35144
3af038c0
VS
35145 COND_PLATFORM_MACOSX_1="#"
35146 if test "x$PLATFORM_MACOSX" = "x1" ; then
35147 COND_PLATFORM_MACOSX_1=""
35148 fi
35149
250700e4
RD
35150 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
35151 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
35152 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
35153 fi
35154
35155 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
35156 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
35157 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
35158 fi
35159
35160 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
35161 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
35162 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
35163 fi
35164
8ee2dd05
VS
35165 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
35166 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
35167 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
35168 fi
35169
45842500
VS
35170 COND_PLATFORM_MAC_1="#"
35171 if test "x$PLATFORM_MAC" = "x1" ; then
35172 COND_PLATFORM_MAC_1=""
35173 fi
35174
8772a1a7
VS
35175 COND_PLATFORM_UNIX_0="#"
35176 if test "x$PLATFORM_UNIX" = "x0" ; then
35177 COND_PLATFORM_UNIX_0=""
35178 fi
35179
3af038c0
VS
35180 COND_PLATFORM_UNIX_1="#"
35181 if test "x$PLATFORM_UNIX" = "x1" ; then
35182 COND_PLATFORM_UNIX_1=""
35183 fi
35184
35185 COND_PLATFORM_WIN32_0="#"
35186 if test "x$PLATFORM_WIN32" = "x0" ; then
35187 COND_PLATFORM_WIN32_0=""
35188 fi
35189
35190 COND_PLATFORM_WIN32_1="#"
35191 if test "x$PLATFORM_WIN32" = "x1" ; then
35192 COND_PLATFORM_WIN32_1=""
35193 fi
35194
45842500
VS
35195 COND_SHARED_0="#"
35196 if test "x$SHARED" = "x0" ; then
35197 COND_SHARED_0=""
35198 fi
35199
250700e4
RD
35200 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35201 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35202 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35203 fi
35204
52a5a009
VS
35205 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35206 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35207 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35208 fi
35209
35210 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35211 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35212 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35213 fi
35214
35215 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35216 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35217 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35218 fi
35219
35220 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35221 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35222 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35223 fi
35224
35225 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35226 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35227 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35228 fi
35229
35230 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35231 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35232 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35233 fi
35234
35235 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35236 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35237 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35238 fi
35239
45842500
VS
35240 COND_SHARED_1="#"
35241 if test "x$SHARED" = "x1" ; then
35242 COND_SHARED_1=""
35243 fi
35244
250700e4
RD
35245 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35246 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35247 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35248 fi
35249
6f628073
VS
35250 COND_TOOLKIT_COCOA="#"
35251 if test "x$TOOLKIT" = "xCOCOA" ; then
35252 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
35253 fi
35254
6f628073
VS
35255 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35256 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35257 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35258 fi
35259
6f628073
VS
35260 COND_TOOLKIT_GTK="#"
35261 if test "x$TOOLKIT" = "xGTK" ; then
35262 COND_TOOLKIT_GTK=""
f95cd8fa
VS
35263 fi
35264
6f628073
VS
35265 COND_TOOLKIT_GTK_USE_GUI_1="#"
35266 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35267 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
35268 fi
35269
6f628073
VS
35270 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35271 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35272 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35273 fi
35274
3af038c0
VS
35275 COND_TOOLKIT_MAC="#"
35276 if test "x$TOOLKIT" = "xMAC" ; then
35277 COND_TOOLKIT_MAC=""
35278 fi
35279
8772a1a7
VS
35280 COND_TOOLKIT_MAC_USE_GUI_1="#"
35281 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35282 COND_TOOLKIT_MAC_USE_GUI_1=""
35283 fi
35284
6f628073
VS
35285 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35286 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35287 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35288 fi
35289
6f628073
VS
35290 COND_TOOLKIT_MGL="#"
35291 if test "x$TOOLKIT" = "xMGL" ; then
35292 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35293 fi
35294
6f628073
VS
35295 COND_TOOLKIT_MGL_USE_GUI_1="#"
35296 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35297 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35298 fi
35299
6f628073
VS
35300 COND_TOOLKIT_MOTIF="#"
35301 if test "x$TOOLKIT" = "xMOTIF" ; then
35302 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35303 fi
35304
6f628073
VS
35305 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35306 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35307 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35308 fi
e6cc62c6 35309
6f628073
VS
35310 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35311 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35312 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35313 fi
35314
6f628073
VS
35315 COND_TOOLKIT_MSW="#"
35316 if test "x$TOOLKIT" = "xMSW" ; then
35317 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35318 fi
35319
6f628073
VS
35320 COND_TOOLKIT_MSW_USE_GUI_1="#"
35321 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35322 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35323 fi
e6cc62c6 35324
6f628073
VS
35325 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35326 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35327 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35328 fi
e6cc62c6 35329
6f628073
VS
35330 COND_TOOLKIT_OS2="#"
35331 if test "x$TOOLKIT" = "xOS2" ; then
35332 COND_TOOLKIT_OS2=""
9747f85d
VS
35333 fi
35334
8772a1a7
VS
35335 COND_TOOLKIT_OS2_USE_GUI_1="#"
35336 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then
35337 COND_TOOLKIT_OS2_USE_GUI_1=""
35338 fi
35339
6f628073
VS
35340 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
35341 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35342 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
f95cd8fa
VS
35343 fi
35344
6f628073
VS
35345 COND_TOOLKIT_X11="#"
35346 if test "x$TOOLKIT" = "xX11" ; then
35347 COND_TOOLKIT_X11=""
9747f85d
VS
35348 fi
35349
6f628073
VS
35350 COND_TOOLKIT_X11_USE_GUI_1="#"
35351 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35352 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35353 fi
35354
3af038c0
VS
35355 COND_UNICODE_1="#"
35356 if test "x$UNICODE" = "x1" ; then
35357 COND_UNICODE_1=""
35358 fi
35359
35360 COND_USE_GUI_0="#"
35361 if test "x$USE_GUI" = "x0" ; then
35362 COND_USE_GUI_0=""
35363 fi
35364
35365 COND_USE_GUI_1="#"
35366 if test "x$USE_GUI" = "x1" ; then
35367 COND_USE_GUI_1=""
35368 fi
35369
e6cc62c6 35370 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35371 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35372 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35373 fi
e6cc62c6
VS
35374
35375 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35376 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35377 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35378 fi
35379
66a96744
VS
35380 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35381 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35382 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35383 fi
35384
35385 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35386 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35387 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35388 fi
35389
35390 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35391 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35392 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35393 fi
35394
6f628073
VS
35395 COND_USE_SOSYMLINKS_1="#"
35396 if test "x$USE_SOSYMLINKS" = "x1" ; then
35397 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35398 fi
35399
6f628073
VS
35400 COND_USE_SOVERLINUX_1="#"
35401 if test "x$USE_SOVERLINUX" = "x1" ; then
35402 COND_USE_SOVERLINUX_1=""
b625909c
VS
35403 fi
35404
6f628073
VS
35405 COND_USE_SOVERSION_0="#"
35406 if test "x$USE_SOVERSION" = "x0" ; then
35407 COND_USE_SOVERSION_0=""
fddeb06b 35408 fi
fe0895cf 35409
6f628073
VS
35410 COND_USE_SOVERSOLARIS_1="#"
35411 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35412 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35413 fi
fe0895cf 35414
3af038c0
VS
35415 COND_WXUNIV_1="#"
35416 if test "x$WXUNIV" = "x1" ; then
35417 COND_WXUNIV_1=""
35418 fi
35419
66a96744
VS
35420 COND_WXUSE_EXPAT_BUILTIN="#"
35421 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35422 COND_WXUSE_EXPAT_BUILTIN=""
35423 fi
35424
02980527
VS
35425 COND_WXUSE_LIBJPEG_BUILTIN="#"
35426 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35427 COND_WXUSE_LIBJPEG_BUILTIN=""
35428 fi
35429
35430 COND_WXUSE_LIBPNG_BUILTIN="#"
35431 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35432 COND_WXUSE_LIBPNG_BUILTIN=""
35433 fi
35434
35435 COND_WXUSE_LIBTIFF_BUILTIN="#"
35436 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35437 COND_WXUSE_LIBTIFF_BUILTIN=""
35438 fi
35439
35440 COND_WXUSE_ODBC_BUILTIN="#"
35441 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35442 COND_WXUSE_ODBC_BUILTIN=""
35443 fi
35444
35445 COND_WXUSE_REGEX_BUILTIN="#"
35446 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35447 COND_WXUSE_REGEX_BUILTIN=""
35448 fi
35449
35450 COND_WXUSE_ZLIB_BUILTIN="#"
35451 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35452 COND_WXUSE_ZLIB_BUILTIN=""
35453 fi
35454
1772d20c 35455
fe0895cf 35456
fe0895cf 35457
fe0895cf 35458
45842500
VS
35459if test $GCC_PCH = 1 ; then
35460 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35461else
35462 case "${host}" in
35463 powerpc-*-darwin* )
35464 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35465 ;;
45842500
VS
35466 esac
35467fi
2c6f14e1
VS
35468case "${host}" in
35469 powerpc-*-darwin* )
35470 CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35471 ;;
35472esac
fe0895cf
VS
35473
35474
fddeb06b 35475SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
35505
35506
35507
35508
35509
35510
35511
35512
35513
35514
35515
35516
35517
35518
35519
35520
35521
35522
35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569
fe0895cf 35570
f0290fca
VS
35571
35572
67c13b6c 35573
ffef10f6 35574
e6cc62c6
VS
35575
35576
35577echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35578echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35579set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35580if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35581 echo $ECHO_N "(cached) $ECHO_C" >&6
35582else
35583 cat >conftest.make <<\_ACEOF
35584all:
35585 @echo 'ac_maketemp="$(MAKE)"'
35586_ACEOF
35587# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35588eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35589if test -n "$ac_maketemp"; then
35590 eval ac_cv_prog_make_${ac_make}_set=yes
35591else
35592 eval ac_cv_prog_make_${ac_make}_set=no
35593fi
35594rm -f conftest.make
35595fi
35596if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35597 echo "$as_me:$LINENO: result: yes" >&5
35598echo "${ECHO_T}yes" >&6
35599 SET_MAKE=
35600else
35601 echo "$as_me:$LINENO: result: no" >&5
35602echo "${ECHO_T}no" >&6
35603 SET_MAKE="MAKE=${MAKE-make}"
35604fi
35605
35606
35607if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35608 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35609fi
35610
35611 ac_config_headers="$ac_config_headers setup.h"
35612
35613
81345eef 35614 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
35615
35616
35617 ac_config_commands="$ac_config_commands default"
35618
35619
9de9b8f0 35620
6c3e36af
VZ
35621if test "$wxUSE_GUI" = "yes"; then
35622 SUBDIRS="samples demos utils contrib"
35623else SUBDIRS="samples utils"
35624fi
e6cc62c6 35625
166263e6 35626for subdir in `echo $SUBDIRS`; do
9747f85d 35627 if test -d ${srcdir}/${subdir} ; then
6c3e36af 35628 if test "$wxUSE_GUI" = "yes"; then
166263e6 35629 if test ${subdir} = "samples"; then
8772a1a7
VS
35630 makefiles="samples/Makefile.in $makefiles"
35631 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
35632 if test -d $srcdir/samples/$sample; then
35633 makefiles="samples/$sample/Makefile.in $makefiles"
35634 fi
35635 done
35636 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35637 fi
6c3e36af 35638 else if test ${subdir} = "samples"; then
8772a1a7 35639 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af
VZ
35640 else makefiles="utils/HelpGen/Makefile.in \
35641 utils/HelpGen/src/Makefile.in \
35642 utils/makegen/Makefile.in"
35643 fi
35644 fi
35645
9747f85d
VS
35646 for mkin in $makefiles ; do
35647 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35648 ac_config_files="$ac_config_files $mk"
e6cc62c6 35649
9747f85d
VS
35650 done
35651 fi
35652done
e6cc62c6 35653
9de9b8f0 35654
e6cc62c6
VS
35655cat >confcache <<\_ACEOF
35656# This file is a shell script that caches the results of configure
35657# tests run on this system so they can be shared between configure
35658# scripts and configure runs, see configure's option --config-cache.
35659# It is not useful on other systems. If it contains results you don't
35660# want to keep, you may remove or edit it.
35661#
35662# config.status only pays attention to the cache file if you give it
35663# the --recheck option to rerun configure.
35664#
35665# `ac_cv_env_foo' variables (set or unset) will be overridden when
35666# loading this file, other *unset* `ac_cv_foo' will be assigned the
35667# following values.
35668
35669_ACEOF
35670
35671# The following way of writing the cache mishandles newlines in values,
35672# but we know of no workaround that is simple, portable, and efficient.
35673# So, don't put newlines in cache variables' values.
35674# Ultrix sh set writes to stderr and can't be redirected directly,
35675# and sets the high bit in the cache file unless we assign to the vars.
35676{
35677 (set) 2>&1 |
35678 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35679 *ac_space=\ *)
35680 # `set' does not quote correctly, so add quotes (double-quote
35681 # substitution turns \\\\ into \\, and sed turns \\ into \).
35682 sed -n \
35683 "s/'/'\\\\''/g;
35684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35685 ;;
35686 *)
35687 # `set' quotes correctly as required by POSIX, so do not add quotes.
35688 sed -n \
35689 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35690 ;;
35691 esac;
35692} |
35693 sed '
35694 t clear
35695 : clear
35696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35697 t end
35698 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35699 : end' >>confcache
35700if diff $cache_file confcache >/dev/null 2>&1; then :; else
35701 if test -w $cache_file; then
35702 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35703 cat confcache >$cache_file
35704 else
35705 echo "not updating unwritable cache $cache_file"
35706 fi
35707fi
35708rm -f confcache
35709
35710test "x$prefix" = xNONE && prefix=$ac_default_prefix
35711# Let make expand exec_prefix.
35712test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35713
35714# VPATH may cause trouble with some makes, so we remove $(srcdir),
35715# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35716# trailing colons and then remove the whole line if VPATH becomes empty
35717# (actually we leave an empty line to preserve line numbers).
35718if test "x$srcdir" = x.; then
35719 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35720s/:*\$(srcdir):*/:/;
35721s/:*\${srcdir}:*/:/;
35722s/:*@srcdir@:*/:/;
35723s/^\([^=]*=[ ]*\):*/\1/;
35724s/:*$//;
35725s/^[^=]*=[ ]*$//;
35726}'
35727fi
35728
35729DEFS=-DHAVE_CONFIG_H
35730
35731ac_libobjs=
35732ac_ltlibobjs=
35733for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35734 # 1. Remove the extension, and $U if already installed.
35735 ac_i=`echo "$ac_i" |
35736 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35737 # 2. Add them.
35738 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35739 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35740done
35741LIBOBJS=$ac_libobjs
35742
35743LTLIBOBJS=$ac_ltlibobjs
35744
35745
35746
35747: ${CONFIG_STATUS=./config.status}
35748ac_clean_files_save=$ac_clean_files
35749ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35750{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35751echo "$as_me: creating $CONFIG_STATUS" >&6;}
35752cat >$CONFIG_STATUS <<_ACEOF
35753#! $SHELL
35754# Generated by $as_me.
35755# Run this file to recreate the current configuration.
35756# Compiler output produced by configure, useful for debugging
35757# configure, is in config.log if it exists.
35758
35759debug=false
35760ac_cs_recheck=false
35761ac_cs_silent=false
35762SHELL=\${CONFIG_SHELL-$SHELL}
35763_ACEOF
35764
35765cat >>$CONFIG_STATUS <<\_ACEOF
35766## --------------------- ##
35767## M4sh Initialization. ##
35768## --------------------- ##
35769
35770# Be Bourne compatible
35771if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35772 emulate sh
35773 NULLCMD=:
35774 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35775 # is contrary to our usage. Disable this feature.
35776 alias -g '${1+"$@"}'='"$@"'
35777elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35778 set -o posix
35779fi
35780
35781# Support unset when possible.
35782if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35783 as_unset=unset
35784else
35785 as_unset=false
35786fi
35787
35788
35789# Work around bugs in pre-3.0 UWIN ksh.
35790$as_unset ENV MAIL MAILPATH
35791PS1='$ '
35792PS2='> '
35793PS4='+ '
35794
35795# NLS nuisances.
35796for as_var in \
35797 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35798 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35799 LC_TELEPHONE LC_TIME
35800do
35801 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35802 eval $as_var=C; export $as_var
35803 else
35804 $as_unset $as_var
35805 fi
35806done
35807
35808# Required to use basename.
35809if expr a : '\(a\)' >/dev/null 2>&1; then
35810 as_expr=expr
35811else
35812 as_expr=false
35813fi
35814
35815if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35816 as_basename=basename
35817else
35818 as_basename=false
35819fi
35820
35821
35822# Name of the executable.
35823as_me=`$as_basename "$0" ||
35824$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35825 X"$0" : 'X\(//\)$' \| \
35826 X"$0" : 'X\(/\)$' \| \
35827 . : '\(.\)' 2>/dev/null ||
35828echo X/"$0" |
35829 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35830 /^X\/\(\/\/\)$/{ s//\1/; q; }
35831 /^X\/\(\/\).*/{ s//\1/; q; }
35832 s/.*/./; q'`
35833
35834
35835# PATH needs CR, and LINENO needs CR and PATH.
35836# Avoid depending upon Character Ranges.
35837as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35838as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35839as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35840as_cr_digits='0123456789'
35841as_cr_alnum=$as_cr_Letters$as_cr_digits
35842
35843# The user is always right.
35844if test "${PATH_SEPARATOR+set}" != set; then
35845 echo "#! /bin/sh" >conf$$.sh
35846 echo "exit 0" >>conf$$.sh
35847 chmod +x conf$$.sh
35848 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35849 PATH_SEPARATOR=';'
35850 else
35851 PATH_SEPARATOR=:
35852 fi
35853 rm -f conf$$.sh
35854fi
35855
35856
35857 as_lineno_1=$LINENO
35858 as_lineno_2=$LINENO
35859 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35860 test "x$as_lineno_1" != "x$as_lineno_2" &&
35861 test "x$as_lineno_3" = "x$as_lineno_2" || {
35862 # Find who we are. Look in the path if we contain no path at all
35863 # relative or not.
35864 case $0 in
35865 *[\\/]* ) as_myself=$0 ;;
35866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35867for as_dir in $PATH
35868do
35869 IFS=$as_save_IFS
35870 test -z "$as_dir" && as_dir=.
35871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35872done
35873
35874 ;;
35875 esac
35876 # We did not find ourselves, most probably we were run as `sh COMMAND'
35877 # in which case we are not to be found in the path.
35878 if test "x$as_myself" = x; then
35879 as_myself=$0
35880 fi
35881 if test ! -f "$as_myself"; then
35882 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35883echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35884 { (exit 1); exit 1; }; }
35885 fi
35886 case $CONFIG_SHELL in
35887 '')
35888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35889for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35890do
35891 IFS=$as_save_IFS
35892 test -z "$as_dir" && as_dir=.
35893 for as_base in sh bash ksh sh5; do
35894 case $as_dir in
35895 /*)
35896 if ("$as_dir/$as_base" -c '
35897 as_lineno_1=$LINENO
35898 as_lineno_2=$LINENO
35899 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35900 test "x$as_lineno_1" != "x$as_lineno_2" &&
35901 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
35902 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35903 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35904 CONFIG_SHELL=$as_dir/$as_base
35905 export CONFIG_SHELL
35906 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35907 fi;;
35908 esac
35909 done
35910done
35911;;
35912 esac
35913
35914 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35915 # uniformly replaced by the line number. The first 'sed' inserts a
35916 # line-number line before each line; the second 'sed' does the real
35917 # work. The second script uses 'N' to pair each line-number line
35918 # with the numbered line, and appends trailing '-' during
35919 # substitution so that $LINENO is not a special case at line end.
35920 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35921 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35922 sed '=' <$as_myself |
35923 sed '
35924 N
35925 s,$,-,
35926 : loop
35927 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35928 t loop
35929 s,-$,,
35930 s,^['$as_cr_digits']*\n,,
35931 ' >$as_me.lineno &&
35932 chmod +x $as_me.lineno ||
35933 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35934echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35935 { (exit 1); exit 1; }; }
35936
35937 # Don't try to exec as it changes $[0], causing all sort of problems
35938 # (the dirname of $[0] is not the place where we might find the
35939 # original and so on. Autoconf is especially sensible to this).
35940 . ./$as_me.lineno
35941 # Exit status is that of the last command.
35942 exit
35943}
35944
35945
35946case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35947 *c*,-n*) ECHO_N= ECHO_C='
35948' ECHO_T=' ' ;;
35949 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35950 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
35951esac
35952
35953if expr a : '\(a\)' >/dev/null 2>&1; then
35954 as_expr=expr
35955else
35956 as_expr=false
35957fi
35958
35959rm -f conf$$ conf$$.exe conf$$.file
35960echo >conf$$.file
35961if ln -s conf$$.file conf$$ 2>/dev/null; then
35962 # We could just check for DJGPP; but this test a) works b) is more generic
35963 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35964 if test -f conf$$.exe; then
35965 # Don't use ln at all; we don't have any links
35966 as_ln_s='cp -p'
35967 else
35968 as_ln_s='ln -s'
35969 fi
35970elif ln conf$$.file conf$$ 2>/dev/null; then
35971 as_ln_s=ln
35972else
35973 as_ln_s='cp -p'
35974fi
35975rm -f conf$$ conf$$.exe conf$$.file
35976
35977if mkdir -p . 2>/dev/null; then
35978 as_mkdir_p=:
35979else
35980 as_mkdir_p=false
35981fi
35982
35983as_executable_p="test -f"
35984
35985# Sed expression to map a string onto a valid CPP name.
35986as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35987
35988# Sed expression to map a string onto a valid variable name.
35989as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35990
35991
35992# IFS
35993# We need space, tab and new line, in precisely that order.
35994as_nl='
35995'
35996IFS=" $as_nl"
35997
35998# CDPATH.
35999$as_unset CDPATH
36000
36001exec 6>&1
36002
36003# Open the log real soon, to keep \$[0] and so on meaningful, and to
36004# report actual input values of CONFIG_FILES etc. instead of their
36005# values after options handling. Logging --version etc. is OK.
36006exec 5>>config.log
36007{
36008 echo
36009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36010## Running $as_me. ##
36011_ASBOX
36012} >&5
36013cat >&5 <<_CSEOF
36014
36015This file was extended by wxWindows $as_me 2.5.0, which was
36016generated by GNU Autoconf 2.57. Invocation command line was
36017
36018 CONFIG_FILES = $CONFIG_FILES
36019 CONFIG_HEADERS = $CONFIG_HEADERS
36020 CONFIG_LINKS = $CONFIG_LINKS
36021 CONFIG_COMMANDS = $CONFIG_COMMANDS
36022 $ $0 $@
36023
36024_CSEOF
36025echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36026echo >&5
36027_ACEOF
36028
36029# Files that config.status was made for.
36030if test -n "$ac_config_files"; then
36031 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36032fi
36033
36034if test -n "$ac_config_headers"; then
36035 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36036fi
36037
36038if test -n "$ac_config_links"; then
36039 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36040fi
36041
36042if test -n "$ac_config_commands"; then
36043 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36044fi
36045
36046cat >>$CONFIG_STATUS <<\_ACEOF
36047
36048ac_cs_usage="\
36049\`$as_me' instantiates files from templates according to the
36050current configuration.
36051
36052Usage: $0 [OPTIONS] [FILE]...
36053
36054 -h, --help print this help, then exit
36055 -V, --version print version number, then exit
36056 -q, --quiet do not print progress messages
36057 -d, --debug don't remove temporary files
36058 --recheck update $as_me by reconfiguring in the same conditions
36059 --file=FILE[:TEMPLATE]
36060 instantiate the configuration file FILE
36061 --header=FILE[:TEMPLATE]
36062 instantiate the configuration header FILE
36063
36064Configuration files:
36065$config_files
36066
36067Configuration headers:
36068$config_headers
36069
36070Configuration commands:
36071$config_commands
36072
36073Report bugs to <bug-autoconf@gnu.org>."
36074_ACEOF
36075
36076cat >>$CONFIG_STATUS <<_ACEOF
36077ac_cs_version="\\
36078wxWindows config.status 2.5.0
36079configured by $0, generated by GNU Autoconf 2.57,
36080 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36081
36082Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36083Free Software Foundation, Inc.
36084This config.status script is free software; the Free Software Foundation
36085gives unlimited permission to copy, distribute and modify it."
36086srcdir=$srcdir
36087INSTALL="$INSTALL"
36088_ACEOF
36089
36090cat >>$CONFIG_STATUS <<\_ACEOF
36091# If no file are specified by the user, then we need to provide default
36092# value. By we need to know if files were specified by the user.
36093ac_need_defaults=:
36094while test $# != 0
36095do
36096 case $1 in
36097 --*=*)
36098 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36099 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36100 ac_shift=:
36101 ;;
36102 -*)
36103 ac_option=$1
36104 ac_optarg=$2
36105 ac_shift=shift
36106 ;;
36107 *) # This is not an option, so the user has probably given explicit
36108 # arguments.
36109 ac_option=$1
36110 ac_need_defaults=false;;
36111 esac
36112
36113 case $ac_option in
36114 # Handling of the options.
36115_ACEOF
36116cat >>$CONFIG_STATUS <<\_ACEOF
36117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36118 ac_cs_recheck=: ;;
36119 --version | --vers* | -V )
36120 echo "$ac_cs_version"; exit 0 ;;
36121 --he | --h)
36122 # Conflict between --help and --header
36123 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36124Try \`$0 --help' for more information." >&5
36125echo "$as_me: error: ambiguous option: $1
36126Try \`$0 --help' for more information." >&2;}
36127 { (exit 1); exit 1; }; };;
36128 --help | --hel | -h )
36129 echo "$ac_cs_usage"; exit 0 ;;
36130 --debug | --d* | -d )
36131 debug=: ;;
36132 --file | --fil | --fi | --f )
36133 $ac_shift
36134 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36135 ac_need_defaults=false;;
36136 --header | --heade | --head | --hea )
36137 $ac_shift
36138 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36139 ac_need_defaults=false;;
36140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36141 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36142 ac_cs_silent=: ;;
36143
36144 # This is an error.
36145 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36146Try \`$0 --help' for more information." >&5
36147echo "$as_me: error: unrecognized option: $1
36148Try \`$0 --help' for more information." >&2;}
36149 { (exit 1); exit 1; }; } ;;
36150
36151 *) ac_config_targets="$ac_config_targets $1" ;;
36152
36153 esac
36154 shift
36155done
36156
36157ac_configure_extra_args=
36158
36159if $ac_cs_silent; then
36160 exec 6>/dev/null
36161 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
36162fi
36163
e6cc62c6
VS
36164_ACEOF
36165cat >>$CONFIG_STATUS <<_ACEOF
36166if \$ac_cs_recheck; then
36167 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36168 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
36169fi
36170
e6cc62c6 36171_ACEOF
fe0895cf 36172
e6cc62c6 36173cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 36174#
e6cc62c6 36175# INIT-COMMANDS section.
10f2d63a 36176#
10f2d63a 36177
a0b9e27f 36178
e6cc62c6
VS
36179 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36180 LN_S="${LN_S}"
10f2d63a 36181
10f2d63a 36182
10f2d63a 36183
e6cc62c6 36184_ACEOF
8284b0c5 36185
52127426 36186
247f5006 36187
e6cc62c6
VS
36188cat >>$CONFIG_STATUS <<\_ACEOF
36189for ac_config_target in $ac_config_targets
247f5006 36190do
e6cc62c6
VS
36191 case "$ac_config_target" in
36192 # Handling of arguments.
81345eef
VZ
36193 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36194 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36195 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 36196 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
36197 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36198 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36199 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36200echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36201 { (exit 1); exit 1; }; };;
247f5006
VZ
36202 esac
36203done
36204
e6cc62c6
VS
36205# If the user did not use the arguments to specify the items to instantiate,
36206# then the envvar interface is used. Set only those that are not.
36207# We use the long form for the default assignment because of an extremely
36208# bizarre bug on SunOS 4.1.3.
36209if $ac_need_defaults; then
36210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36211 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36212 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36213fi
36214
36215# Have a temporary directory for convenience. Make it in the build tree
36216# simply because there is no reason to put it here, and in addition,
36217# creating and moving files from /tmp can sometimes cause problems.
36218# Create a temporary directory, and hook for its removal unless debugging.
36219$debug ||
36220{
36221 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36222 trap '{ (exit 1); exit 1; }' 1 2 13 15
36223}
247f5006 36224
e6cc62c6 36225# Create a (secure) tmp directory for tmp files.
247f5006 36226
e6cc62c6
VS
36227{
36228 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36229 test -n "$tmp" && test -d "$tmp"
36230} ||
36231{
36232 tmp=./confstat$$-$RANDOM
36233 (umask 077 && mkdir $tmp)
36234} ||
36235{
36236 echo "$me: cannot create a temporary directory in ." >&2
36237 { (exit 1); exit 1; }
36238}
36239
36240_ACEOF
36241
36242cat >>$CONFIG_STATUS <<_ACEOF
36243
36244#
36245# CONFIG_FILES section.
36246#
247f5006 36247
e6cc62c6
VS
36248# No need to generate the scripts if there are no CONFIG_FILES.
36249# This happens for instance when ./config.status config.h
36250if test -n "\$CONFIG_FILES"; then
36251 # Protect against being on the right side of a sed subst in config.status.
36252 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36253 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36254s,@SHELL@,$SHELL,;t t
36255s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36256s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36257s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36258s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36259s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36260s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36261s,@exec_prefix@,$exec_prefix,;t t
36262s,@prefix@,$prefix,;t t
36263s,@program_transform_name@,$program_transform_name,;t t
36264s,@bindir@,$bindir,;t t
36265s,@sbindir@,$sbindir,;t t
36266s,@libexecdir@,$libexecdir,;t t
36267s,@datadir@,$datadir,;t t
36268s,@sysconfdir@,$sysconfdir,;t t
36269s,@sharedstatedir@,$sharedstatedir,;t t
36270s,@localstatedir@,$localstatedir,;t t
36271s,@libdir@,$libdir,;t t
36272s,@includedir@,$includedir,;t t
36273s,@oldincludedir@,$oldincludedir,;t t
36274s,@infodir@,$infodir,;t t
36275s,@mandir@,$mandir,;t t
36276s,@build_alias@,$build_alias,;t t
36277s,@host_alias@,$host_alias,;t t
36278s,@target_alias@,$target_alias,;t t
36279s,@DEFS@,$DEFS,;t t
36280s,@ECHO_C@,$ECHO_C,;t t
36281s,@ECHO_N@,$ECHO_N,;t t
36282s,@ECHO_T@,$ECHO_T,;t t
36283s,@LIBS@,$LIBS,;t t
36284s,@build@,$build,;t t
36285s,@build_cpu@,$build_cpu,;t t
36286s,@build_vendor@,$build_vendor,;t t
36287s,@build_os@,$build_os,;t t
36288s,@host@,$host,;t t
36289s,@host_cpu@,$host_cpu,;t t
36290s,@host_vendor@,$host_vendor,;t t
36291s,@host_os@,$host_os,;t t
36292s,@target@,$target,;t t
36293s,@target_cpu@,$target_cpu,;t t
36294s,@target_vendor@,$target_vendor,;t t
36295s,@target_os@,$target_os,;t t
36296s,@CC@,$CC,;t t
36297s,@CFLAGS@,$CFLAGS,;t t
36298s,@LDFLAGS@,$LDFLAGS,;t t
36299s,@CPPFLAGS@,$CPPFLAGS,;t t
36300s,@ac_ct_CC@,$ac_ct_CC,;t t
36301s,@EXEEXT@,$EXEEXT,;t t
36302s,@OBJEXT@,$OBJEXT,;t t
36303s,@CPP@,$CPP,;t t
36304s,@EGREP@,$EGREP,;t t
36305s,@CXX@,$CXX,;t t
36306s,@CXXFLAGS@,$CXXFLAGS,;t t
36307s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36308s,@RANLIB@,$RANLIB,;t t
36309s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36310s,@AR@,$AR,;t t
36311s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36312s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36313s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36314s,@STRIP@,$STRIP,;t t
36315s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
36316s,@YACC@,$YACC,;t t
36317s,@LEX@,$LEX,;t t
36318s,@LEXLIB@,$LEXLIB,;t t
36319s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
36320s,@LN_S@,$LN_S,;t t
36321s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36322s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36323s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36324s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36325s,@GTK_LIBS@,$GTK_LIBS,;t t
36326s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36327s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36328s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36329s,@X_CFLAGS@,$X_CFLAGS,;t t
36330s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36331s,@X_LIBS@,$X_LIBS,;t t
36332s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36333s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36334s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36335s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36336s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36337s,@RESCOMP@,$RESCOMP,;t t
36338s,@DEREZ@,$DEREZ,;t t
36339s,@SETFILE@,$SETFILE,;t t
36340s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36341s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36342s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36343s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36344s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36345s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36346s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36347s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36348s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36349s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36350s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36351s,@VENDOR@,$VENDOR,;t t
36352s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36353s,@WXUNIV@,$WXUNIV,;t t
36354s,@MONOLITHIC@,$MONOLITHIC,;t t
36355s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36356s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
bb41dcbe 36357s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36358s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36359s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36360s,@UNICODE@,$UNICODE,;t t
36361s,@BUILD@,$BUILD,;t t
6c67131a
VS
36362s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36363s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36364s,@SHARED@,$SHARED,;t t
36365s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36366s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36367s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 36368s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 36369s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36370s,@SET_MAKE@,$SET_MAKE,;t t
36371s,@MAKE_SET@,$MAKE_SET,;t t
36372s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36373s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36374s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36375s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36376s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36377s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36378s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
36379s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36380s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
e6cc62c6 36381s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36382s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36383s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36384s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36385s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36386s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36387s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36388s,@PIC_FLAG@,$PIC_FLAG,;t t
36389s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36390s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36391s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36392s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36393s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36394s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36395s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36396s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36397s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36398s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36399s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36400s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36401s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36402s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36403s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36404s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36405s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36406s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36407s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36408s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36409s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36410s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36411s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
250700e4 36412s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
8ee2dd05 36413s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36414s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36415s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
250700e4 36416s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
3af038c0 36417s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36418s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36419s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36420s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36421s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36422s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36423s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36424s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36425s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36426s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 36427s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36428s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
8772a1a7 36429s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0
VS
36430s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36431s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36432s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36433s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36434s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
36435s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36436s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36437s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36438s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36439s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36440s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36441s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 36442s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36443s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36444s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36445s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36446s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36447s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36448s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36449s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36450s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36451s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36452s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36453s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36454s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36455s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36456s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36457s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36458s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36459s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
6f628073 36460s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
8772a1a7 36461s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t
6f628073
VS
36462s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
36463s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36464s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0
VS
36465s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36466s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36467s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36468s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36469s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36470s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36471s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36472s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
6f628073
VS
36473s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36474s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36475s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36476s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36477s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36478s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36479s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36480s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36481s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36482s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36483s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36484s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36485s,@LEX_STEM@,$LEX_STEM,;t t
36486s,@PATH_IFS@,$PATH_IFS,;t t
36487s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36488s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36489s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36490s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36491s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36492s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36493s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36494s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36495s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36496s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36497s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36498s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36499s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36500s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36501s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36502s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36503s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36504s,@WX_ALL@,$WX_ALL,;t t
36505s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36506s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36507s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36508s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36509s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36510s,@USE_GUI@,$USE_GUI,;t t
36511s,@AFMINSTALL@,$AFMINSTALL,;t t
36512s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36513s,@TOOLKIT@,$TOOLKIT,;t t
36514s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36515s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36516s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36517s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36518s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36519s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36520s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36521s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36522s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36523s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36524s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36525s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36526s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36527s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 36528s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 36529s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36530s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36531s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36532s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36533s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36534s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36535s,@GUIDIST@,$GUIDIST,;t t
36536s,@PORT_FILES@,$PORT_FILES,;t t
36537s,@DISTDIR@,$DISTDIR,;t t
36538s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36539s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36540s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36541s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36542s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36543s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36544s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36545s,@RESFLAGS@,$RESFLAGS,;t t
36546s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36547s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36548s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36549s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36550s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36551s,@MACRESCOMP@,$MACRESCOMP,;t t
36552s,@MACSETFILE@,$MACSETFILE,;t t
36553s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36554s,@GCC@,$GCC,;t t
36555s,@DLLTOOL@,$DLLTOOL,;t t
36556s,@AS@,$AS,;t t
36557s,@NM@,$NM,;t t
36558s,@LD@,$LD,;t t
36559s,@MAKEINFO@,$MAKEINFO,;t t
36560s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
36561s,@LIBOBJS@,$LIBOBJS,;t t
36562s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
36563CEOF
36564
e6cc62c6
VS
36565_ACEOF
36566
36567 cat >>$CONFIG_STATUS <<\_ACEOF
36568 # Split the substitutions into bite-sized pieces for seds with
36569 # small command number limits, like on Digital OSF/1 and HP-UX.
36570 ac_max_sed_lines=48
36571 ac_sed_frag=1 # Number of current file.
36572 ac_beg=1 # First line for current file.
36573 ac_end=$ac_max_sed_lines # Line after last line for current file.
36574 ac_more_lines=:
36575 ac_sed_cmds=
36576 while $ac_more_lines; do
36577 if test $ac_beg -gt 1; then
36578 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 36579 else
e6cc62c6
VS
36580 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36581 fi
36582 if test ! -s $tmp/subs.frag; then
36583 ac_more_lines=false
36584 else
36585 # The purpose of the label and of the branching condition is to
36586 # speed up the sed processing (if there are no `@' at all, there
36587 # is no need to browse any of the substitutions).
36588 # These are the two extra sed commands mentioned above.
36589 (echo ':t
36590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36591 if test -z "$ac_sed_cmds"; then
36592 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36593 else
36594 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36595 fi
36596 ac_sed_frag=`expr $ac_sed_frag + 1`
36597 ac_beg=$ac_end
36598 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 36599 fi
e6cc62c6
VS
36600 done
36601 if test -z "$ac_sed_cmds"; then
36602 ac_sed_cmds=cat
10f2d63a 36603 fi
e6cc62c6 36604fi # test -n "$CONFIG_FILES"
10f2d63a 36605
e6cc62c6
VS
36606_ACEOF
36607cat >>$CONFIG_STATUS <<\_ACEOF
36608for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 36609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36610 case $ac_file in
36611 - | *:- | *:-:* ) # input from stdin
36612 cat >$tmp/stdin
36613 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36615 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36617 * ) ac_file_in=$ac_file.in ;;
10f2d63a 36618 esac
247f5006 36619
e6cc62c6
VS
36620 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36621 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36622$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36623 X"$ac_file" : 'X\(//\)[^/]' \| \
36624 X"$ac_file" : 'X\(//\)$' \| \
36625 X"$ac_file" : 'X\(/\)' \| \
36626 . : '\(.\)' 2>/dev/null ||
36627echo X"$ac_file" |
36628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36630 /^X\(\/\/\)$/{ s//\1/; q; }
36631 /^X\(\/\).*/{ s//\1/; q; }
36632 s/.*/./; q'`
36633 { if $as_mkdir_p; then
36634 mkdir -p "$ac_dir"
a0b9e27f 36635 else
e6cc62c6
VS
36636 as_dir="$ac_dir"
36637 as_dirs=
36638 while test ! -d "$as_dir"; do
36639 as_dirs="$as_dir $as_dirs"
36640 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36641$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36642 X"$as_dir" : 'X\(//\)[^/]' \| \
36643 X"$as_dir" : 'X\(//\)$' \| \
36644 X"$as_dir" : 'X\(/\)' \| \
36645 . : '\(.\)' 2>/dev/null ||
36646echo X"$as_dir" |
36647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36649 /^X\(\/\/\)$/{ s//\1/; q; }
36650 /^X\(\/\).*/{ s//\1/; q; }
36651 s/.*/./; q'`
36652 done
36653 test ! -n "$as_dirs" || mkdir $as_dirs
36654 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36655echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36656 { (exit 1); exit 1; }; }; }
36657
36658 ac_builddir=.
36659
36660if test "$ac_dir" != .; then
36661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36662 # A "../" for each directory in $ac_dir_suffix.
36663 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36664else
36665 ac_dir_suffix= ac_top_builddir=
36666fi
247f5006 36667
e6cc62c6
VS
36668case $srcdir in
36669 .) # No --srcdir option. We are building in place.
36670 ac_srcdir=.
36671 if test -z "$ac_top_builddir"; then
36672 ac_top_srcdir=.
36673 else
36674 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36675 fi ;;
36676 [\\/]* | ?:[\\/]* ) # Absolute path.
36677 ac_srcdir=$srcdir$ac_dir_suffix;
36678 ac_top_srcdir=$srcdir ;;
247f5006 36679 *) # Relative path.
e6cc62c6
VS
36680 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36681 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36682esac
36683# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36684# absolute.
36685ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36686ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36687ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36688ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36689
247f5006 36690
e6cc62c6
VS
36691 case $INSTALL in
36692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36693 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36694 esac
247f5006 36695
e6cc62c6
VS
36696 if test x"$ac_file" != x-; then
36697 { echo "$as_me:$LINENO: creating $ac_file" >&5
36698echo "$as_me: creating $ac_file" >&6;}
36699 rm -f "$ac_file"
36700 fi
36701 # Let's still pretend it is `configure' which instantiates (i.e., don't
36702 # use $as_me), people would be surprised to read:
36703 # /* config.h. Generated by config.status. */
36704 if test x"$ac_file" = x-; then
36705 configure_input=
36706 else
36707 configure_input="$ac_file. "
36708 fi
36709 configure_input=$configure_input"Generated from `echo $ac_file_in |
36710 sed 's,.*/,,'` by configure."
36711
36712 # First look for the input files in the build tree, otherwise in the
36713 # src tree.
36714 ac_file_inputs=`IFS=:
36715 for f in $ac_file_in; do
36716 case $f in
36717 -) echo $tmp/stdin ;;
36718 [\\/$]*)
36719 # Absolute (can't be DOS-style, as IFS=:)
36720 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36721echo "$as_me: error: cannot find input file: $f" >&2;}
36722 { (exit 1); exit 1; }; }
36723 echo $f;;
36724 *) # Relative
36725 if test -f "$f"; then
36726 # Build tree
36727 echo $f
36728 elif test -f "$srcdir/$f"; then
36729 # Source tree
36730 echo $srcdir/$f
36731 else
36732 # /dev/null tree
36733 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36734echo "$as_me: error: cannot find input file: $f" >&2;}
36735 { (exit 1); exit 1; }; }
36736 fi;;
36737 esac
36738 done` || { (exit 1); exit 1; }
36739_ACEOF
36740cat >>$CONFIG_STATUS <<_ACEOF
36741 sed "$ac_vpsub
36742$extrasub
36743_ACEOF
36744cat >>$CONFIG_STATUS <<\_ACEOF
36745:t
36746/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36747s,@configure_input@,$configure_input,;t t
36748s,@srcdir@,$ac_srcdir,;t t
36749s,@abs_srcdir@,$ac_abs_srcdir,;t t
36750s,@top_srcdir@,$ac_top_srcdir,;t t
36751s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36752s,@builddir@,$ac_builddir,;t t
36753s,@abs_builddir@,$ac_abs_builddir,;t t
36754s,@top_builddir@,$ac_top_builddir,;t t
36755s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36756s,@INSTALL@,$ac_INSTALL,;t t
36757" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36758 rm -f $tmp/stdin
36759 if test x"$ac_file" != x-; then
36760 mv $tmp/out $ac_file
36761 else
36762 cat $tmp/out
36763 rm -f $tmp/out
36764 fi
36765
36766done
36767_ACEOF
36768cat >>$CONFIG_STATUS <<\_ACEOF
36769
36770#
36771# CONFIG_HEADER section.
36772#
10f2d63a
VZ
36773
36774# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36775# NAME is the cpp macro being defined and VALUE is the value it is being given.
36776#
36777# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36778ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36779ac_dB='[ ].*$,\1#\2'
36780ac_dC=' '
36781ac_dD=',;t'
36782# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36783ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36784ac_uB='$,\1#\2define\3'
10f2d63a 36785ac_uC=' '
e6cc62c6
VS
36786ac_uD=',;t'
36787
36788for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 36789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36790 case $ac_file in
36791 - | *:- | *:-:* ) # input from stdin
36792 cat >$tmp/stdin
36793 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36795 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36796 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36797 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
36798 esac
36799
e6cc62c6
VS
36800 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36801echo "$as_me: creating $ac_file" >&6;}
36802
36803 # First look for the input files in the build tree, otherwise in the
36804 # src tree.
36805 ac_file_inputs=`IFS=:
36806 for f in $ac_file_in; do
36807 case $f in
36808 -) echo $tmp/stdin ;;
36809 [\\/$]*)
36810 # Absolute (can't be DOS-style, as IFS=:)
36811 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36812echo "$as_me: error: cannot find input file: $f" >&2;}
36813 { (exit 1); exit 1; }; }
36814 echo $f;;
36815 *) # Relative
36816 if test -f "$f"; then
36817 # Build tree
36818 echo $f
36819 elif test -f "$srcdir/$f"; then
36820 # Source tree
36821 echo $srcdir/$f
36822 else
36823 # /dev/null tree
36824 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36825echo "$as_me: error: cannot find input file: $f" >&2;}
36826 { (exit 1); exit 1; }; }
36827 fi;;
36828 esac
36829 done` || { (exit 1); exit 1; }
36830 # Remove the trailing spaces.
36831 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36832
36833_ACEOF
36834
36835# Transform confdefs.h into two sed scripts, `conftest.defines' and
36836# `conftest.undefs', that substitutes the proper values into
36837# config.h.in to produce config.h. The first handles `#define'
36838# templates, and the second `#undef' templates.
36839# And first: Protect against being on the right side of a sed subst in
36840# config.status. Protect against being in an unquoted here document
36841# in config.status.
36842rm -f conftest.defines conftest.undefs
36843# Using a here document instead of a string reduces the quoting nightmare.
36844# Putting comments in sed scripts is not portable.
36845#
36846# `end' is used to avoid that the second main sed command (meant for
36847# 0-ary CPP macros) applies to n-ary macro definitions.
36848# See the Autoconf documentation for `clear'.
36849cat >confdef2sed.sed <<\_ACEOF
36850s/[\\&,]/\\&/g
36851s,[\\$`],\\&,g
36852t clear
36853: clear
36854s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36855t end
36856s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36857: end
36858_ACEOF
36859# If some macros were called several times there might be several times
36860# the same #defines, which is useless. Nevertheless, we may not want to
36861# sort them, since we want the *last* AC-DEFINE to be honored.
36862uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36863sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36864rm -f confdef2sed.sed
10f2d63a
VZ
36865
36866# This sed command replaces #undef with comments. This is necessary, for
36867# example, in the case of _POSIX_SOURCE, which is predefined and required
36868# on some systems where configure will not decide to define it.
e6cc62c6
VS
36869cat >>conftest.undefs <<\_ACEOF
36870s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36871_ACEOF
36872
36873# Break up conftest.defines because some shells have a limit on the size
36874# of here documents, and old seds have small limits too (100 cmds).
36875echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36876echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36877echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36878echo ' :' >>$CONFIG_STATUS
36879rm -f conftest.tail
36880while grep . conftest.defines >/dev/null
36881do
36882 # Write a limited-size here document to $tmp/defines.sed.
36883 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36884 # Speed up: don't consider the non `#define' lines.
36885 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
36886 # Work around the forget-to-reset-the-flag bug.
36887 echo 't clr' >>$CONFIG_STATUS
36888 echo ': clr' >>$CONFIG_STATUS
36889 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36890 echo 'CEOF
36891 sed -f $tmp/defines.sed $tmp/in >$tmp/out
36892 rm -f $tmp/in
36893 mv $tmp/out $tmp/in
36894' >>$CONFIG_STATUS
36895 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36896 rm -f conftest.defines
36897 mv conftest.tail conftest.defines
36898done
36899rm -f conftest.defines
36900echo ' fi # grep' >>$CONFIG_STATUS
36901echo >>$CONFIG_STATUS
10f2d63a 36902
e6cc62c6
VS
36903# Break up conftest.undefs because some shells have a limit on the size
36904# of here documents, and old seds have small limits too (100 cmds).
36905echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 36906rm -f conftest.tail
e6cc62c6 36907while grep . conftest.undefs >/dev/null
10f2d63a 36908do
e6cc62c6
VS
36909 # Write a limited-size here document to $tmp/undefs.sed.
36910 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36911 # Speed up: don't consider the non `#undef'
36912 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
36913 # Work around the forget-to-reset-the-flag bug.
36914 echo 't clr' >>$CONFIG_STATUS
36915 echo ': clr' >>$CONFIG_STATUS
36916 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 36917 echo 'CEOF
e6cc62c6
VS
36918 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36919 rm -f $tmp/in
36920 mv $tmp/out $tmp/in
36921' >>$CONFIG_STATUS
36922 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36923 rm -f conftest.undefs
36924 mv conftest.tail conftest.undefs
10f2d63a 36925done
e6cc62c6
VS
36926rm -f conftest.undefs
36927
36928cat >>$CONFIG_STATUS <<\_ACEOF
36929 # Let's still pretend it is `configure' which instantiates (i.e., don't
36930 # use $as_me), people would be surprised to read:
36931 # /* config.h. Generated by config.status. */
36932 if test x"$ac_file" = x-; then
36933 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 36934 else
e6cc62c6 36935 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 36936 fi
e6cc62c6
VS
36937 cat $tmp/in >>$tmp/config.h
36938 rm -f $tmp/in
36939 if test x"$ac_file" != x-; then
36940 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36941 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36942echo "$as_me: $ac_file is unchanged" >&6;}
36943 else
36944 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36945$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36946 X"$ac_file" : 'X\(//\)[^/]' \| \
36947 X"$ac_file" : 'X\(//\)$' \| \
36948 X"$ac_file" : 'X\(/\)' \| \
36949 . : '\(.\)' 2>/dev/null ||
36950echo X"$ac_file" |
36951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36953 /^X\(\/\/\)$/{ s//\1/; q; }
36954 /^X\(\/\).*/{ s//\1/; q; }
36955 s/.*/./; q'`
36956 { if $as_mkdir_p; then
36957 mkdir -p "$ac_dir"
36958 else
36959 as_dir="$ac_dir"
36960 as_dirs=
36961 while test ! -d "$as_dir"; do
36962 as_dirs="$as_dir $as_dirs"
36963 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36964$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36965 X"$as_dir" : 'X\(//\)[^/]' \| \
36966 X"$as_dir" : 'X\(//\)$' \| \
36967 X"$as_dir" : 'X\(/\)' \| \
36968 . : '\(.\)' 2>/dev/null ||
36969echo X"$as_dir" |
36970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36972 /^X\(\/\/\)$/{ s//\1/; q; }
36973 /^X\(\/\).*/{ s//\1/; q; }
36974 s/.*/./; q'`
36975 done
36976 test ! -n "$as_dirs" || mkdir $as_dirs
36977 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36978echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36979 { (exit 1); exit 1; }; }; }
a0b9e27f 36980
e6cc62c6
VS
36981 rm -f $ac_file
36982 mv $tmp/config.h $ac_file
36983 fi
36984 else
36985 cat $tmp/config.h
36986 rm -f $tmp/config.h
36987 fi
36988done
36989_ACEOF
36990cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36991
e6cc62c6
VS
36992#
36993# CONFIG_COMMANDS section.
36994#
36995for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36996 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36997 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36998 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36999$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37000 X"$ac_dest" : 'X\(//\)[^/]' \| \
37001 X"$ac_dest" : 'X\(//\)$' \| \
37002 X"$ac_dest" : 'X\(/\)' \| \
37003 . : '\(.\)' 2>/dev/null ||
37004echo X"$ac_dest" |
37005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37007 /^X\(\/\/\)$/{ s//\1/; q; }
37008 /^X\(\/\).*/{ s//\1/; q; }
37009 s/.*/./; q'`
37010 ac_builddir=.
37011
37012if test "$ac_dir" != .; then
37013 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37014 # A "../" for each directory in $ac_dir_suffix.
37015 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37016else
37017 ac_dir_suffix= ac_top_builddir=
37018fi
37019
37020case $srcdir in
37021 .) # No --srcdir option. We are building in place.
37022 ac_srcdir=.
37023 if test -z "$ac_top_builddir"; then
37024 ac_top_srcdir=.
37025 else
37026 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37027 fi ;;
37028 [\\/]* | ?:[\\/]* ) # Absolute path.
37029 ac_srcdir=$srcdir$ac_dir_suffix;
37030 ac_top_srcdir=$srcdir ;;
37031 *) # Relative path.
37032 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37033 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37034esac
37035# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37036# absolute.
37037ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37038ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37039ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37040ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37041
37042
37043 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37044echo "$as_me: executing $ac_dest commands" >&6;}
37045 case $ac_dest in
37046 default )
652d930d 37047 if test ! -h wx-config; then
991a5759 37048 chmod +x wx-config
3a922bb4
RL
37049 mv wx-config wx${TOOLCHAIN_NAME}-config
37050 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 37051 fi
665bbe97 37052
00cf1208
RR
37053 if test ! -d lib; then
37054 mkdir lib
37055 fi
37056 if test ! -d lib/wx; then
37057 mkdir lib/wx
37058 fi
37059 if test ! -d lib/wx/include; then
37060 mkdir lib/wx/include
37061 fi
3a922bb4
RL
37062 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
37063 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 37064 fi
3a922bb4
RL
37065 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
37066 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
37067 fi
37068 if test -f setup.h; then
3a922bb4 37069 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 37070 fi
e6cc62c6
VS
37071 ;;
37072 esac
37073done
37074_ACEOF
2224580a 37075
e6cc62c6 37076cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 37077
e6cc62c6
VS
37078{ (exit 0); exit 0; }
37079_ACEOF
37080chmod +x $CONFIG_STATUS
37081ac_clean_files=$ac_clean_files_save
37082
37083
37084# configure is writing to config.log, and then calls config.status.
37085# config.status does its own redirection, appending to config.log.
37086# Unfortunately, on DOS this fails, as config.log is still kept open
37087# by configure, so config.status won't be able to write to it; its
37088# output is simply discarded. So we exec the FD to /dev/null,
37089# effectively closing config.log, so it can be properly (re)opened and
37090# appended to by config.status. When coming back to configure, we
37091# need to make the FD available again.
37092if test "$no_create" != yes; then
37093 ac_cs_success=:
37094 ac_config_status_args=
37095 test "$silent" = yes &&
37096 ac_config_status_args="$ac_config_status_args --quiet"
37097 exec 5>/dev/null
37098 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37099 exec 5>>config.log
37100 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37101 # would make configure fail if this is the last instruction.
37102 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
37103fi
37104
672abd7a
VS
37105#
37106# CONFIG_SUBDIRS section.
37107#
37108if test "$no_recursion" != yes; then
37109
37110 # Remove --cache-file and --srcdir arguments so they do not pile up.
37111 ac_sub_configure_args=
37112 ac_prev=
37113 for ac_arg in $ac_configure_args; do
37114 if test -n "$ac_prev"; then
37115 ac_prev=
37116 continue
37117 fi
37118 case $ac_arg in
37119 -cache-file | --cache-file | --cache-fil | --cache-fi \
37120 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37121 ac_prev=cache_file ;;
37122 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37123 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37124 | --c=*)
37125 ;;
37126 --config-cache | -C)
37127 ;;
37128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37129 ac_prev=srcdir ;;
37130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37131 ;;
37132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37133 ac_prev=prefix ;;
37134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37135 ;;
37136 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
37137 esac
37138 done
37139
37140 # Always prepend --prefix to ensure using the same prefix
37141 # in subdir configurations.
37142 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
37143
37144 ac_popdir=`pwd`
37145 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37146
37147 # Do not complain, so a configure script can configure whichever
37148 # parts of a large source tree are present.
37149 test -d $srcdir/$ac_dir || continue
37150
37151 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
37152echo "$as_me: configuring in $ac_dir" >&6;}
37153 { if $as_mkdir_p; then
37154 mkdir -p "$ac_dir"
37155 else
37156 as_dir="$ac_dir"
37157 as_dirs=
37158 while test ! -d "$as_dir"; do
37159 as_dirs="$as_dir $as_dirs"
37160 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37161$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37162 X"$as_dir" : 'X\(//\)[^/]' \| \
37163 X"$as_dir" : 'X\(//\)$' \| \
37164 X"$as_dir" : 'X\(/\)' \| \
37165 . : '\(.\)' 2>/dev/null ||
37166echo X"$as_dir" |
37167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37169 /^X\(\/\/\)$/{ s//\1/; q; }
37170 /^X\(\/\).*/{ s//\1/; q; }
37171 s/.*/./; q'`
37172 done
37173 test ! -n "$as_dirs" || mkdir $as_dirs
37174 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37175echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37176 { (exit 1); exit 1; }; }; }
37177
37178 ac_builddir=.
37179
37180if test "$ac_dir" != .; then
37181 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37182 # A "../" for each directory in $ac_dir_suffix.
37183 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37184else
37185 ac_dir_suffix= ac_top_builddir=
37186fi
37187
37188case $srcdir in
37189 .) # No --srcdir option. We are building in place.
37190 ac_srcdir=.
37191 if test -z "$ac_top_builddir"; then
37192 ac_top_srcdir=.
37193 else
37194 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37195 fi ;;
37196 [\\/]* | ?:[\\/]* ) # Absolute path.
37197 ac_srcdir=$srcdir$ac_dir_suffix;
37198 ac_top_srcdir=$srcdir ;;
37199 *) # Relative path.
37200 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37201 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37202esac
37203# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37204# absolute.
37205ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37206ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37207ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37208ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37209
37210
37211 cd $ac_dir
37212
37213 # Check for guested configure; otherwise get Cygnus style configure.
37214 if test -f $ac_srcdir/configure.gnu; then
37215 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37216 elif test -f $ac_srcdir/configure; then
37217 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37218 elif test -f $ac_srcdir/configure.in; then
37219 ac_sub_configure=$ac_configure
37220 else
37221 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37222echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37223 ac_sub_configure=
37224 fi
37225
37226 # The recursion is here.
37227 if test -n "$ac_sub_configure"; then
37228 # Make the cache file name correct relative to the subdirectory.
37229 case $cache_file in
37230 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37231 *) # Relative path.
37232 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37233 esac
37234
37235 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37236echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37237 # The eval makes quoting arguments work.
37238 eval $ac_sub_configure $ac_sub_configure_args \
37239 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37240 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37241echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37242 { (exit 1); exit 1; }; }
37243 fi
37244
37245 cd $ac_popdir
37246 done
37247fi
37248
8284b0c5 37249
2b5f62a0
VZ
37250echo
37251echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37252echo ""
37253echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 37254echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
37255
37256echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
37257echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
37258echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
37259
0c98a14e
GD
37260echo " What level of wxWindows compatibility should be enabled?"
37261echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
37262echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
37263echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 37264
2b5f62a0
VZ
37265echo " Which libraries should wxWindows use?"
37266echo " jpeg ${wxUSE_LIBJPEG-none}"
37267echo " png ${wxUSE_LIBPNG-none}"
37268echo " regex ${wxUSE_REGEX}"
37269echo " tiff ${wxUSE_LIBTIFF-none}"
37270echo " zlib ${wxUSE_ZLIB}"
fd3d7534 37271echo " odbc ${wxUSE_ODBC}"
5f0b6dff 37272echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
37273
37274echo ""
37275