]> git.saurik.com Git - wxWidgets.git/blame - configure
compilation fix
[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.
e46d2a18 4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.1.
e6cc62c6
VS
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'
e46d2a18
VS
272PACKAGE_VERSION='2.5.1'
273PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
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"
874d12cf 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 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 ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX 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_0_USE_ODBC_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_0_SHARED_1_USE_ODBC_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_OS2_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_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_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 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 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
e46d2a18 796\`configure' configures wxWindows 2.5.1 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
e46d2a18 862 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
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
e6cc62c6
VS
888 --enable-compat22 enable wxWindows 2.2 compatibility
889 --disable-compat24 disable wxWindows 2.4 compatibility
890 --enable-rpath=DIR output the rpath flag from wx-config
891 --enable-intl use internationalization system
892 --enable-config use wxConfig (and derived) classes
893 --enable-protocols use wxProtocol and derived classes
894 --enable-ftp use wxFTP (requires wxProtocol
895 --enable-http use wxHTTP (requires wxProtocol
896 --enable-fileproto use wxFileProto class (requires wxProtocol
897 --enable-sockets use socket/network classes
e46d2a18 898 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
899 --enable-dataobj use data object classes
900 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
901 --enable-apple_ieee use the Apple IEEE codec
902 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
903 --enable-cmdline use wxCmdLineParser class
904 --enable-datetime use wxDateTime class
e6cc62c6 905 --enable-dialupman use dialup network classes
e6cc62c6
VS
906 --enable-dynlib use wxLibrary class for DLL loading
907 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
908 --enable-exceptions build exception-safe library
909 --enable-ffile use wxFFile class
910 --enable-file use wxFile class
911 --enable-filesystem use virtual file systems classes
912 --enable-fontmap use font encodings conversion classes
913 --enable-fs_inet use virtual HTTP/FTP filesystems
914 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
915 --enable-geometry use geometry class
916 --enable-log use logging system
e46d2a18
VS
917 --enable-longlong use wxLongLong class
918 --enable-mimetype use wxMimeTypesManager
919 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
920 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 921 --enable-streams use wxStream etc classes
e46d2a18
VS
922 --enable-std_iostreams use standard C++ stream classes
923 --enable-stopwatch use wxStopWatch class
924 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
925 --enable-textbuf use wxTextBuffer class
926 --enable-textfile use wxTextFile class
e46d2a18 927 --enable-timer use wxTimer class
e6cc62c6 928 --enable-unicode compile wxString with Unicode support
e46d2a18 929 --enable-wave use wxWave class
e6cc62c6 930 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 931 --enable-zipstream use wxZipInputStream
e6cc62c6
VS
932 --enable-url use wxURL class
933 --enable-protocol use wxProtocol class
934 --enable-protocol-http HTTP support in wxProtocol
935 --enable-protocol-ftp FTP support in wxProtocol
936 --enable-protocol-file FILE support in wxProtocol
937 --enable-threads use threads
938 --enable-docview use document view architecture
939 --enable-help use help subsystem
940 --enable-mshtmlhelp use MS HTML Help (win32)
941 --enable-html use wxHTML sub-library
942 --enable-htmlhelp use wxHTML-based help
943 --enable-constraints use layout-constraints system
944 --enable-printarch use printing architecture
945 --enable-mdi use multiple document interface architecture
946 --enable-loggui use standard GUI logger
947 --enable-logwin use wxLogWindow
948 --enable-logdialog use wxLogDialog
949 --enable-postscript use wxPostscriptDC device context (default for gtk+)
950 --enable-prologio not available; see contrib
951 --enable-resources not available; see contrib
952 --enable-clipboard use wxClipboard class
953 --enable-dnd use Drag'n'Drop classes
954 --enable-metafile use win32 metafiles
955 --enable-controls use all usual controls
956 --enable-accel use accelerators
957 --enable-button use wxButton class
958 --enable-bmpbutton use wxBitmapButton class
959 --enable-calendar use wxCalendarCtrl class
960 --enable-caret use wxCaret class
961 --enable-checkbox use wxCheckBox class
962 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
963 --enable-choice use wxChoice class
964 --enable-combobox use wxComboBox class
965 --enable-display use wxDisplay class
966 --enable-gauge use wxGauge class
967 --enable-grid use wxGrid class
968 --enable-imaglist use wxImageList class
0e012a93 969 --enable-listbook use wxListbook class
e6cc62c6
VS
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
e46d2a18 1139wxWindows configure 2.5.1
e6cc62c6 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
e46d2a18 1154It was created by wxWindows $as_me 2.5.1, which was
e6cc62c6
VS
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 1604WX_MINOR_VERSION_NUMBER=5
e46d2a18 1605WX_RELEASE_NUMBER=1
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 1618USE_UNIX=1
73d617c9 1619USE_OS2=0
10f2d63a 1620USE_WIN32=0
f9bc1684 1621USE_DOS=0
b12915c1 1622USE_BEOS=0
1216f52d 1623USE_MAC=0
b12915c1 1624
10f2d63a 1625USE_AIX=
fe0895cf
VS
1626USE_BSD= USE_DARWIN= USE_FREEBSD=
1627USE_GNU= USE_HPUX=
89e3b3e4 1628USE_LINUX=
f6bcfd97 1629USE_NETBSD=
89e3b3e4 1630USE_OPENBSD=
fe0895cf
VS
1631USE_OSF= USE_SGI=
1632USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1633USE_ULTRIX=
89e3b3e4
VZ
1634USE_UNIXWARE=
1635
1636USE_ALPHA=
10f2d63a 1637
ab9b9eab
VZ
1638NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1639
ac0c4cc3 1640ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1641
ac0c4cc3 1642DEFAULT_wxUSE_COCOA=0
10f2d63a 1643DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1644DEFAULT_wxUSE_MAC=0
1645DEFAULT_wxUSE_MGL=0
1725144d 1646DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1647DEFAULT_wxUSE_MOTIF=0
1648DEFAULT_wxUSE_MSW=0
e07802fc 1649DEFAULT_wxUSE_PM=0
f79bd02d 1650DEFAULT_wxUSE_X11=0
10f2d63a 1651
ac0c4cc3 1652DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1653DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1654DEFAULT_DEFAULT_wxUSE_MAC=0
1655DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1656DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1657DEFAULT_DEFAULT_wxUSE_MOTIF=0
1658DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1659DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1660DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1661
d6a55c4b 1662PROGRAM_EXT=
3a922bb4 1663SO_SUFFIX=so
fe0895cf 1664SAMPLES_RPATH_FLAG=
0f1bc9c2 1665SAMPLES_RPATH_POSTLINK=
d6a55c4b 1666
10f2d63a
VZ
1667case "${host}" in
1668 *-hp-hpux* )
1669 USE_HPUX=1
1670 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1671 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1672 SO_SUFFIX=sl
e6cc62c6 1673 cat >>confdefs.h <<\_ACEOF
10f2d63a 1674#define __HPUX__ 1
e6cc62c6 1675_ACEOF
10f2d63a
VZ
1676
1677 ;;
1678 *-*-linux* )
1679 USE_LINUX=1
e6cc62c6 1680 cat >>confdefs.h <<\_ACEOF
10f2d63a 1681#define __LINUX__ 1
e6cc62c6 1682_ACEOF
10f2d63a
VZ
1683
1684 TMP=`uname -m`
1685 if test "x$TMP" = "xalpha"; then
1686 USE_ALPHA=1
e6cc62c6 1687 cat >>confdefs.h <<\_ACEOF
10f2d63a 1688#define __ALPHA__ 1
e6cc62c6 1689_ACEOF
fe0895cf
VS
1690
1691 fi
1692 DEFAULT_DEFAULT_wxUSE_GTK=1
1693 ;;
1694 *-*-gnu* )
1695 USE_GNU=1
e6cc62c6 1696 cat >>confdefs.h <<\_ACEOF
fe0895cf 1697#define __GNU__ 1
e6cc62c6 1698_ACEOF
fe0895cf
VS
1699
1700 TMP=`uname -m`
1701 if test "x$TMP" = "xalpha"; then
1702 USE_ALPHA=1
e6cc62c6 1703 cat >>confdefs.h <<\_ACEOF
fe0895cf 1704#define __ALPHA__ 1
e6cc62c6 1705_ACEOF
10f2d63a
VZ
1706
1707 fi
1708 DEFAULT_DEFAULT_wxUSE_GTK=1
1709 ;;
1710 *-*-irix5* | *-*-irix6* )
1711 USE_SGI=1
1712 USE_SVR4=1
e6cc62c6 1713 cat >>confdefs.h <<\_ACEOF
10f2d63a 1714#define __SGI__ 1
e6cc62c6 1715_ACEOF
10f2d63a 1716
e6cc62c6 1717 cat >>confdefs.h <<\_ACEOF
10f2d63a 1718#define __SVR4__ 1
e6cc62c6 1719_ACEOF
10f2d63a
VZ
1720
1721 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1722 ;;
1723 *-*-solaris2* )
1724 USE_SUN=1
1725 USE_SOLARIS=1
1726 USE_SVR4=1
e6cc62c6 1727 cat >>confdefs.h <<\_ACEOF
10f2d63a 1728#define __SUN__ 1
e6cc62c6 1729_ACEOF
10f2d63a 1730
e6cc62c6 1731 cat >>confdefs.h <<\_ACEOF
10f2d63a 1732#define __SOLARIS__ 1
e6cc62c6 1733_ACEOF
10f2d63a 1734
e6cc62c6 1735 cat >>confdefs.h <<\_ACEOF
10f2d63a 1736#define __SVR4__ 1
e6cc62c6 1737_ACEOF
10f2d63a
VZ
1738
1739 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1740 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1741 ;;
1742 *-*-sunos4* )
1743 USE_SUN=1
1744 USE_SUNOS=1
1745 USE_BSD=1
e6cc62c6 1746 cat >>confdefs.h <<\_ACEOF
10f2d63a 1747#define __SUN__ 1
e6cc62c6 1748_ACEOF
10f2d63a 1749
e6cc62c6 1750 cat >>confdefs.h <<\_ACEOF
10f2d63a 1751#define __SUNOS__ 1
e6cc62c6 1752_ACEOF
10f2d63a 1753
e6cc62c6 1754 cat >>confdefs.h <<\_ACEOF
10f2d63a 1755#define __BSD__ 1
e6cc62c6 1756_ACEOF
10f2d63a
VZ
1757
1758 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1759 ;;
f6bcfd97 1760 *-*-freebsd*)
10f2d63a
VZ
1761 USE_BSD=1
1762 USE_FREEBSD=1
e6cc62c6 1763 cat >>confdefs.h <<\_ACEOF
10f2d63a 1764#define __FREEBSD__ 1
e6cc62c6 1765_ACEOF
10f2d63a 1766
e6cc62c6 1767 cat >>confdefs.h <<\_ACEOF
10f2d63a 1768#define __BSD__ 1
e6cc62c6 1769_ACEOF
95c8801c
VS
1770
1771 DEFAULT_DEFAULT_wxUSE_GTK=1
1772 ;;
1773 *-*-openbsd*)
1774 USE_BSD=1
1775 USE_OPENBSD=1
e6cc62c6 1776 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1777#define __OPENBSD__ 1
e6cc62c6 1778_ACEOF
95c8801c 1779
e6cc62c6 1780 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1781#define __BSD__ 1
e6cc62c6 1782_ACEOF
f6bcfd97
BP
1783
1784 DEFAULT_DEFAULT_wxUSE_GTK=1
1785 ;;
1786 *-*-netbsd*)
1787 USE_BSD=1
1788 USE_NETBSD=1
e6cc62c6 1789 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1790#define __NETBSD__ 1
e6cc62c6 1791_ACEOF
f6bcfd97 1792
e6cc62c6 1793 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1794#define __BSD__ 1
e6cc62c6 1795_ACEOF
10f2d63a
VZ
1796
1797 DEFAULT_DEFAULT_wxUSE_GTK=1
1798 ;;
1799 *-*-osf* )
1800 USE_ALPHA=1
1801 USE_OSF=1
e6cc62c6 1802 cat >>confdefs.h <<\_ACEOF
10f2d63a 1803#define __ALPHA__ 1
e6cc62c6 1804_ACEOF
10f2d63a 1805
e6cc62c6 1806 cat >>confdefs.h <<\_ACEOF
10f2d63a 1807#define __OSF__ 1
e6cc62c6 1808_ACEOF
10f2d63a
VZ
1809
1810 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1811 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1812 ;;
1813 *-*-dgux5* )
1814 USE_ALPHA=1
1815 USE_SVR4=1
e6cc62c6 1816 cat >>confdefs.h <<\_ACEOF
10f2d63a 1817#define __ALPHA__ 1
e6cc62c6 1818_ACEOF
10f2d63a 1819
e6cc62c6 1820 cat >>confdefs.h <<\_ACEOF
10f2d63a 1821#define __SVR4__ 1
e6cc62c6 1822_ACEOF
10f2d63a
VZ
1823
1824 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1825 ;;
1826 *-*-sysv5* )
1827 USE_SYSV=1
1828 USE_SVR4=1
e6cc62c6 1829 cat >>confdefs.h <<\_ACEOF
10f2d63a 1830#define __SYSV__ 1
e6cc62c6 1831_ACEOF
10f2d63a 1832
e6cc62c6 1833 cat >>confdefs.h <<\_ACEOF
10f2d63a 1834#define __SVR4__ 1
e6cc62c6 1835_ACEOF
10f2d63a
VZ
1836
1837 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1838 ;;
1839 *-*-aix* )
1840 USE_AIX=1
1841 USE_SYSV=1
1842 USE_SVR4=1
2b5f62a0 1843 SO_SUFFIX=a
e6cc62c6 1844 cat >>confdefs.h <<\_ACEOF
10f2d63a 1845#define __AIX__ 1
e6cc62c6 1846_ACEOF
10f2d63a 1847
e6cc62c6 1848 cat >>confdefs.h <<\_ACEOF
10f2d63a 1849#define __SYSV__ 1
e6cc62c6 1850_ACEOF
10f2d63a 1851
e6cc62c6 1852 cat >>confdefs.h <<\_ACEOF
10f2d63a 1853#define __SVR4__ 1
e6cc62c6 1854_ACEOF
10f2d63a
VZ
1855
1856 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1857 ;;
1858
89e3b3e4
VZ
1859 *-*-*UnixWare*)
1860 USE_SYSV=1
1861 USE_SVR4=1
1862 USE_UNIXWARE=1
e6cc62c6 1863 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1864#define __UNIXWARE__ 1
e6cc62c6 1865_ACEOF
89e3b3e4
VZ
1866
1867 ;;
1868
1c8183e2 1869 *-*-cygwin* | *-*-mingw32* )
17234b26 1870 SO_SUFFIX=dll
cf27ef00 1871 PROGRAM_EXT=".exe"
7b7a7637 1872 RESCOMP=windres
10f2d63a
VZ
1873 DEFAULT_DEFAULT_wxUSE_MSW=1
1874 ;;
1875
f9bc1684
VS
1876 *-pc-msdosdjgpp )
1877 USE_UNIX=0
1878 USE_DOS=1
e6cc62c6 1879 cat >>confdefs.h <<\_ACEOF
f9bc1684 1880#define __DOS__ 1
e6cc62c6 1881_ACEOF
f9bc1684
VS
1882
1883 PROGRAM_EXT=".exe"
1884 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1885 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1886 ;;
1887
6fa882bd 1888 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1889 cat >>confdefs.h <<\_ACEOF
10f2d63a 1890#define __EMX__ 1
e6cc62c6 1891_ACEOF
10f2d63a 1892
73d617c9 1893 USE_OS2=1
cf27ef00 1894 PROGRAM_EXT=".exe"
e07802fc 1895 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1896 CXX=gcc
73d617c9 1897 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1898 ac_executable_extensions=".exe"
1899 export ac_executable_extensions
1900 ac_save_IFS="$IFS"
e46d2a18 1901 IFS='\\'
d5fc095c
VS
1902 ac_TEMP_PATH=
1903 for ac_dir in $PATH; do
1904 IFS=$ac_save_IFS
1905 if test -z "$ac_TEMP_PATH"; then
1906 ac_TEMP_PATH="$ac_dir"
1907 else
1908 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1909 fi
1910 done
1911 export PATH="$ac_TEMP_PATH"
1912 unset ac_TEMP_PATH
10f2d63a
VZ
1913 ;;
1914
d08b457b
GD
1915 powerpc-*-darwin* )
1916 USE_BSD=1
f11bdd03 1917 USE_DARWIN=1
3a922bb4 1918 SO_SUFFIX=dylib
e6cc62c6 1919 cat >>confdefs.h <<\_ACEOF
f11bdd03 1920#define __BSD__ 1
e6cc62c6 1921_ACEOF
b4085ce6 1922
e6cc62c6 1923 cat >>confdefs.h <<\_ACEOF
f11bdd03 1924#define __DARWIN__ 1
e6cc62c6 1925_ACEOF
d08b457b 1926
e6cc62c6 1927 cat >>confdefs.h <<\_ACEOF
d08b457b 1928#define __POWERPC__ 1
e6cc62c6 1929_ACEOF
82d43113 1930
e6cc62c6 1931 cat >>confdefs.h <<\_ACEOF
82d43113 1932#define TARGET_CARBON 1
e6cc62c6 1933_ACEOF
b4085ce6
GD
1934
1935 DEFAULT_DEFAULT_wxUSE_MAC=1
1936 ;;
1937
b12915c1
VZ
1938 *-*-beos* )
1939 USE_BEOS=1
e6cc62c6 1940 cat >>confdefs.h <<\_ACEOF
b12915c1 1941#define __BEOS__ 1
e6cc62c6 1942_ACEOF
b12915c1
VZ
1943
1944 ;;
1945
10f2d63a 1946 *)
e6cc62c6
VS
1947 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1948echo "$as_me: error: unknown system type ${host}." >&2;}
1949 { (exit 1); exit 1; }; }
10f2d63a
VZ
1950esac
1951
8284b0c5
MB
1952
1953
1954
1955 wx_arg_cache_file="configarg.cache"
1956 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1957 rm -f ${wx_arg_cache_file}.tmp
1958 touch ${wx_arg_cache_file}.tmp
1959 touch ${wx_arg_cache_file}
e6cc62c6 1960
10f2d63a
VZ
1961
1962DEBUG_CONFIGURE=0
1963if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1964 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1965 DEFAULT_wxUSE_STL=no
1e6feb95 1966
d8356fa3
VZ
1967 DEFAULT_wxUSE_NANOX=no
1968
10f2d63a
VZ
1969 DEFAULT_wxUSE_THREADS=yes
1970
1971 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1972 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1973 DEFAULT_wxUSE_PROFILE=no
1974 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1975 DEFAULT_wxUSE_NO_RTTI=no
1976 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1977 DEFAULT_wxUSE_PERMISSIVE=no
1978 DEFAULT_wxUSE_DEBUG_FLAG=yes
1979 DEFAULT_wxUSE_DEBUG_INFO=yes
1980 DEFAULT_wxUSE_DEBUG_GDB=yes
1981 DEFAULT_wxUSE_MEM_TRACING=no
1982 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1983 DEFAULT_wxUSE_DMALLOC=no
1984 DEFAULT_wxUSE_APPLE_IEEE=no
1985
e46d2a18 1986 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 1987 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1988 DEFAULT_wxUSE_LOGWINDOW=no
1989 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1990 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1991
1992 DEFAULT_wxUSE_GUI=yes
1e6feb95 1993 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1994
3e44f09d 1995 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
1996 DEFAULT_wxUSE_XML=no
1997 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
1998 DEFAULT_wxUSE_ZLIB=no
1999 DEFAULT_wxUSE_LIBPNG=no
2000 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2001 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 2002 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2003 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2004
eb4efbdc 2005 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2006 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2007 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2008 DEFAULT_wxUSE_CMDLINE_PARSER=no
2009 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2010 DEFAULT_wxUSE_TIMER=no
2011 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2012 DEFAULT_wxUSE_FILE=no
1e6feb95 2013 DEFAULT_wxUSE_FFILE=no
a3a584a7 2014 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2015 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
2016 DEFAULT_wxUSE_WAVE=no
2017 DEFAULT_wxUSE_INTL=no
2018 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2019 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2020 DEFAULT_wxUSE_STREAMS=no
2021 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2022 DEFAULT_wxUSE_OLE=no
2023 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2024 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2025 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2026 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2027 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2028 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2029 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2030
2031 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2032 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2033 DEFAULT_wxUSE_POSTSCRIPT=no
2034
10f2d63a
VZ
2035 DEFAULT_wxUSE_CLIPBOARD=no
2036 DEFAULT_wxUSE_TOOLTIPS=no
2037 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2038 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2039 DEFAULT_wxUSE_SPLINES=no
2040
2041 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2042 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2043 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2044
10f2d63a
VZ
2045 DEFAULT_wxUSE_RESOURCES=no
2046 DEFAULT_wxUSE_CONSTRAINTS=no
2047 DEFAULT_wxUSE_IPC=no
2048 DEFAULT_wxUSE_HELP=no
29fd3c0c 2049 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2050 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2051 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2052 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2053 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2054 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2055 DEFAULT_wxUSE_PROTOCOL=no
2056 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2057 DEFAULT_wxUSE_PROTOCOL_FTP=no
2058 DEFAULT_wxUSE_PROTOCOL_FILE=no
2059 DEFAULT_wxUSE_URL=no
3bd8fb5f 2060
10f2d63a 2061 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2062 DEFAULT_wxUSE_CHOICEDLG=no
2063 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2064 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2065 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2066 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2067 DEFAULT_wxUSE_FONTDLG=no
2068 DEFAULT_wxUSE_MSGDLG=no
2069 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2070 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2071 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2072 DEFAULT_wxUSE_STARTUP_TIPS=no
2073 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2074 DEFAULT_wxUSE_WIZARDDLG=no
2075
1e6feb95 2076 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2077 DEFAULT_wxUSE_MINIFRAME=no
2078 DEFAULT_wxUSE_HTML=no
24528b0c 2079 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2080 DEFAULT_wxUSE_FS_INET=no
2081 DEFAULT_wxUSE_FS_ZIP=no
2082 DEFAULT_wxUSE_BUSYINFO=no
2083 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2084 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2085
2086 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2087 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2088 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2089 DEFAULT_wxUSE_CALCTRL=no
2090 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2091 DEFAULT_wxUSE_CHECKBOX=no
2092 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2093 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2094 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2095 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2096 DEFAULT_wxUSE_GAUGE=no
2097 DEFAULT_wxUSE_GRID=no
10f2d63a 2098 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2099 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2100 DEFAULT_wxUSE_LISTBOX=no
2101 DEFAULT_wxUSE_LISTCTRL=no
2102 DEFAULT_wxUSE_NOTEBOOK=no
2103 DEFAULT_wxUSE_RADIOBOX=no
2104 DEFAULT_wxUSE_RADIOBTN=no
2105 DEFAULT_wxUSE_SASH=no
2106 DEFAULT_wxUSE_SCROLLBAR=no
2107 DEFAULT_wxUSE_SLIDER=no
2108 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2109 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2110 DEFAULT_wxUSE_SPLITTER=no
2111 DEFAULT_wxUSE_STATBMP=no
2112 DEFAULT_wxUSE_STATBOX=no
2113 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2114 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2115 DEFAULT_wxUSE_STATUSBAR=yes
2116 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2117 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2118 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2119 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2120 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2121 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2122 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2123 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2124 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2125
2126 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2127 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2128 DEFAULT_wxUSE_WCSRTOMBS=no
2129
edae8572 2130 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2131 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2132 DEFAULT_wxUSE_GIF=no
2133 DEFAULT_wxUSE_PCX=no
2134 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2135 DEFAULT_wxUSE_IFF=no
0046ff7c 2136 DEFAULT_wxUSE_XPM=no
658974ae 2137 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2138 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2139
e9e0dc15 2140 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2141 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2142else
1e6feb95 2143 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2144 DEFAULT_wxUSE_STL=no
1e6feb95 2145
d8356fa3
VZ
2146 DEFAULT_wxUSE_NANOX=no
2147
10f2d63a
VZ
2148 DEFAULT_wxUSE_THREADS=yes
2149
2150 DEFAULT_wxUSE_SHARED=yes
2151 DEFAULT_wxUSE_OPTIMISE=yes
2152 DEFAULT_wxUSE_PROFILE=no
2153 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2154 DEFAULT_wxUSE_NO_RTTI=no
2155 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2156 DEFAULT_wxUSE_PERMISSIVE=no
2157 DEFAULT_wxUSE_DEBUG_FLAG=no
2158 DEFAULT_wxUSE_DEBUG_INFO=no
2159 DEFAULT_wxUSE_DEBUG_GDB=no
2160 DEFAULT_wxUSE_MEM_TRACING=no
2161 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2162 DEFAULT_wxUSE_DMALLOC=no
2163 DEFAULT_wxUSE_APPLE_IEEE=yes
2164
e46d2a18 2165 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2166 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2167 DEFAULT_wxUSE_LOGWINDOW=yes
2168 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2169 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2170
2171 DEFAULT_wxUSE_GUI=yes
2172
831b3152 2173 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2174 DEFAULT_wxUSE_XML=yes
2175 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2176 DEFAULT_wxUSE_ZLIB=yes
2177 DEFAULT_wxUSE_LIBPNG=yes
2178 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2179 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2180 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2181 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2182
eb4efbdc 2183 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2184 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2185 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2186 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2187 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2188 DEFAULT_wxUSE_TIMER=yes
2189 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2190 DEFAULT_wxUSE_FILE=yes
1e6feb95 2191 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2192 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2193 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2194 DEFAULT_wxUSE_WAVE=no
2195 DEFAULT_wxUSE_INTL=yes
2196 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2197 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2198 DEFAULT_wxUSE_STREAMS=yes
2199 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2200 DEFAULT_wxUSE_OLE=yes
2201 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2202 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2203 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2204 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2205 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2206 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2207 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2208
2209 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2210 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2211 DEFAULT_wxUSE_POSTSCRIPT=yes
2212
10f2d63a
VZ
2213 DEFAULT_wxUSE_CLIPBOARD=yes
2214 DEFAULT_wxUSE_TOOLTIPS=yes
2215 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2216 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2217 DEFAULT_wxUSE_SPLINES=yes
2218
2219 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2220 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2221 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2222
2b5f62a0 2223 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2224 DEFAULT_wxUSE_CONSTRAINTS=yes
2225 DEFAULT_wxUSE_IPC=yes
2226 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2227 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2228 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2229 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2230 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2231 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2232 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2233 DEFAULT_wxUSE_PROTOCOL=yes
2234 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2235 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2236 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2237 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2238
2239 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2240 DEFAULT_wxUSE_CHOICEDLG=yes
2241 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2242 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2243 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2244 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2245 DEFAULT_wxUSE_FONTDLG=yes
2246 DEFAULT_wxUSE_MSGDLG=yes
2247 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2248 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2249 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2250 DEFAULT_wxUSE_STARTUP_TIPS=yes
2251 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2252 DEFAULT_wxUSE_WIZARDDLG=yes
2253
1e6feb95 2254 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2255 DEFAULT_wxUSE_MINIFRAME=yes
2256 DEFAULT_wxUSE_HTML=yes
24528b0c 2257 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2258 DEFAULT_wxUSE_FS_INET=yes
2259 DEFAULT_wxUSE_FS_ZIP=yes
2260 DEFAULT_wxUSE_BUSYINFO=yes
2261 DEFAULT_wxUSE_ZIPSTREAM=yes
2262 DEFAULT_wxUSE_VALIDATORS=yes
2263
2264 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2265 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2266 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2267 DEFAULT_wxUSE_CALCTRL=yes
2268 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2269 DEFAULT_wxUSE_CHECKBOX=yes
2270 DEFAULT_wxUSE_CHECKLST=yes
2271 DEFAULT_wxUSE_CHOICE=yes
2272 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2273 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2274 DEFAULT_wxUSE_GAUGE=yes
2275 DEFAULT_wxUSE_GRID=yes
10f2d63a 2276 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2277 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2278 DEFAULT_wxUSE_LISTBOX=yes
2279 DEFAULT_wxUSE_LISTCTRL=yes
2280 DEFAULT_wxUSE_NOTEBOOK=yes
2281 DEFAULT_wxUSE_RADIOBOX=yes
2282 DEFAULT_wxUSE_RADIOBTN=yes
2283 DEFAULT_wxUSE_SASH=yes
2284 DEFAULT_wxUSE_SCROLLBAR=yes
2285 DEFAULT_wxUSE_SLIDER=yes
2286 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2287 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2288 DEFAULT_wxUSE_SPLITTER=yes
2289 DEFAULT_wxUSE_STATBMP=yes
2290 DEFAULT_wxUSE_STATBOX=yes
2291 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2292 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2293 DEFAULT_wxUSE_STATUSBAR=yes
2294 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2295 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2296 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2297 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2298 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2299 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2300 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2301 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2302 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2303
2304 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2305 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2306 DEFAULT_wxUSE_WCSRTOMBS=no
2307
edae8572 2308 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2309 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2310 DEFAULT_wxUSE_GIF=yes
2311 DEFAULT_wxUSE_PCX=yes
cc0e8480 2312 DEFAULT_wxUSE_IFF=no
10f2d63a 2313 DEFAULT_wxUSE_PNM=yes
0046ff7c 2314 DEFAULT_wxUSE_XPM=yes
658974ae 2315 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2316 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2317
e9e0dc15 2318 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2319 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2320fi
2321
8284b0c5
MB
2322
2323
10f2d63a 2324for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2325 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2326 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2327 has_toolkit_in_cache=1
2328 eval "DEFAULT_$LINE"
2329 eval "CACHE_$toolkit=1"
2330 fi
2331done
2332
8284b0c5
MB
2333
2334
5005acfe 2335 enablestring=
e6cc62c6
VS
2336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2337echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2338 no_cache=0
2339 # Check whether --enable-gui or --disable-gui was given.
2340if test "${enable_gui+set}" = set; then
2341 enableval="$enable_gui"
e6cc62c6 2342
10f2d63a
VZ
2343 if test "$enableval" = yes; then
2344 ac_cv_use_gui='wxUSE_GUI=yes'
2345 else
2346 ac_cv_use_gui='wxUSE_GUI=no'
2347 fi
e6cc62c6 2348
10f2d63a 2349else
e6cc62c6 2350
10f2d63a
VZ
2351 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2359
e6cc62c6 2360fi;
10f2d63a
VZ
2361
2362 eval "$ac_cv_use_gui"
2363 if test "$no_cache" != 1; then
2364 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2365 fi
2366
2367 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2368 echo "$as_me:$LINENO: result: yes" >&5
2369echo "${ECHO_T}yes" >&6
10f2d63a 2370 else
e6cc62c6
VS
2371 echo "$as_me:$LINENO: result: no" >&5
2372echo "${ECHO_T}no" >&6
10f2d63a 2373 fi
e6cc62c6 2374
10f2d63a 2375
9747f85d
VS
2376 enablestring=
2377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2378echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2379 no_cache=0
2380 # Check whether --enable-monolithic or --disable-monolithic was given.
2381if test "${enable_monolithic+set}" = set; then
2382 enableval="$enable_monolithic"
2383
2384 if test "$enableval" = yes; then
2385 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2386 else
2387 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2388 fi
2389
2390else
2391
2392 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2393 if test "x$LINE" != x ; then
2394 eval "DEFAULT_$LINE"
2395 else
2396 no_cache=1
2397 fi
2398
2399 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2400
2401fi;
2402
2403 eval "$ac_cv_use_monolithic"
2404 if test "$no_cache" != 1; then
2405 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2406 fi
2407
2408 if test "$wxUSE_MONOLITHIC" = yes; then
2409 echo "$as_me:$LINENO: result: yes" >&5
2410echo "${ECHO_T}yes" >&6
2411 else
2412 echo "$as_me:$LINENO: result: no" >&5
2413echo "${ECHO_T}no" >&6
2414 fi
2415
2416
b12915c1 2417if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2418
8284b0c5 2419
5005acfe 2420 enablestring=
e6cc62c6
VS
2421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2422echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2423 no_cache=0
2424 # Check whether --enable-universal or --disable-universal was given.
2425if test "${enable_universal+set}" = set; then
2426 enableval="$enable_universal"
e6cc62c6 2427
1e6feb95
VZ
2428 if test "$enableval" = yes; then
2429 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2430 else
2431 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2432 fi
e6cc62c6 2433
1e6feb95 2434else
e6cc62c6 2435
1e6feb95
VZ
2436 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2437 if test "x$LINE" != x ; then
2438 eval "DEFAULT_$LINE"
2439 else
2440 no_cache=1
2441 fi
2442
2443 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2444
e6cc62c6 2445fi;
1e6feb95
VZ
2446
2447 eval "$ac_cv_use_universal"
2448 if test "$no_cache" != 1; then
2449 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2450 fi
2451
2452 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2453 echo "$as_me:$LINENO: result: yes" >&5
2454echo "${ECHO_T}yes" >&6
1e6feb95 2455 else
e6cc62c6
VS
2456 echo "$as_me:$LINENO: result: no" >&5
2457echo "${ECHO_T}no" >&6
1e6feb95 2458 fi
e6cc62c6
VS
2459
2460
10f2d63a
VZ
2461# Check whether --with-gtk or --without-gtk was given.
2462if test "${with_gtk+set}" = set; then
2463 withval="$with_gtk"
2464 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2465fi;
10f2d63a
VZ
2466
2467# Check whether --with-motif or --without-motif was given.
2468if test "${with_motif+set}" = set; then
2469 withval="$with_motif"
2470 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2471fi;
10f2d63a 2472
b4085ce6
GD
2473# Check whether --with-mac or --without-mac was given.
2474if test "${with_mac+set}" = set; then
2475 withval="$with_mac"
2476 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2477fi;
b4085ce6 2478
ac0c4cc3
DE
2479# Check whether --with-cocoa or --without-cocoa was given.
2480if test "${with_cocoa+set}" = set; then
2481 withval="$with_cocoa"
2482 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2483fi;
ac0c4cc3 2484
10f2d63a
VZ
2485# Check whether --with-wine or --without-wine was given.
2486if test "${with_wine+set}" = set; then
2487 withval="$with_wine"
89e6bf6d 2488 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2489fi;
10f2d63a 2490
77e13408
RL
2491# Check whether --with-msw or --without-msw was given.
2492if test "${with_msw+set}" = set; then
2493 withval="$with_msw"
b4efce5e 2494 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2495fi;
10f2d63a 2496
e07802fc
VZ
2497# Check whether --with-pm or --without-pm was given.
2498if test "${with_pm+set}" = set; then
2499 withval="$with_pm"
2500 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2501fi;
698dcdb6 2502
1e6feb95
VZ
2503# Check whether --with-mgl or --without-mgl was given.
2504if test "${with_mgl+set}" = set; then
2505 withval="$with_mgl"
6c657b52 2506 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2507fi;
1e6feb95 2508
1725144d
RR
2509# Check whether --with-microwin or --without-microwin was given.
2510if test "${with_microwin+set}" = set; then
2511 withval="$with_microwin"
2512 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2513fi;
1725144d 2514
f79bd02d
JS
2515# Check whether --with-x11 or --without-x11 was given.
2516if test "${with_x11+set}" = set; then
2517 withval="$with_x11"
3c011993 2518 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2519fi;
a0b9e27f 2520
5005acfe 2521 enablestring=
e6cc62c6
VS
2522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2523echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2524 no_cache=0
ba875e66
VZ
2525 # Check whether --enable-nanox or --disable-nanox was given.
2526if test "${enable_nanox+set}" = set; then
2527 enableval="$enable_nanox"
e6cc62c6 2528
d8356fa3 2529 if test "$enableval" = yes; then
ba875e66 2530 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2531 else
ba875e66 2532 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2533 fi
e6cc62c6 2534
d8356fa3 2535else
e6cc62c6 2536
d8356fa3
VZ
2537 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2538 if test "x$LINE" != x ; then
2539 eval "DEFAULT_$LINE"
2540 else
2541 no_cache=1
2542 fi
2543
ba875e66 2544 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2545
e6cc62c6 2546fi;
d8356fa3 2547
ba875e66 2548 eval "$ac_cv_use_nanox"
d8356fa3 2549 if test "$no_cache" != 1; then
ba875e66 2550 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2551 fi
2552
2553 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2554 echo "$as_me:$LINENO: result: yes" >&5
2555echo "${ECHO_T}yes" >&6
d8356fa3 2556 else
e6cc62c6
VS
2557 echo "$as_me:$LINENO: result: no" >&5
2558echo "${ECHO_T}no" >&6
d8356fa3 2559 fi
e6cc62c6 2560
8284b0c5 2561
d74f4b5a 2562
5005acfe 2563 enablestring=
e6cc62c6
VS
2564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2565echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2566 no_cache=0
2567 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2568if test "${enable_gtk2+set}" = set; then
2569 enableval="$enable_gtk2"
e6cc62c6 2570
d74f4b5a
VZ
2571 if test "$enableval" = yes; then
2572 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2573 else
2574 ac_cv_use_gtk2='wxUSE_GTK2=no'
2575 fi
e6cc62c6 2576
10f2d63a 2577else
e6cc62c6 2578
d74f4b5a
VZ
2579 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2580 if test "x$LINE" != x ; then
2581 eval "DEFAULT_$LINE"
2582 else
2583 no_cache=1
2584 fi
2585
2586 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2587
e6cc62c6 2588fi;
328a083c 2589
d74f4b5a
VZ
2590 eval "$ac_cv_use_gtk2"
2591 if test "$no_cache" != 1; then
2592 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2593 fi
2594
2595 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2596 echo "$as_me:$LINENO: result: yes" >&5
2597echo "${ECHO_T}yes" >&6
d74f4b5a 2598 else
e6cc62c6
VS
2599 echo "$as_me:$LINENO: result: no" >&5
2600echo "${ECHO_T}no" >&6
d74f4b5a 2601 fi
d74f4b5a 2602
5c6fa7d2 2603
e6cc62c6
VS
2604
2605 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2606echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2607 no_cache=0
e6cc62c6
VS
2608
2609# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2610if test "${with_libpng+set}" = set; then
2611 withval="$with_libpng"
e6cc62c6 2612
10f2d63a 2613 if test "$withval" = yes; then
b12915c1 2614 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2615 elif test "$withval" = no; then
b12915c1 2616 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2617 elif test "$withval" = sys; then
2618 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2619 elif test "$withval" = builtin; then
2620 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2621 else
e6cc62c6
VS
2622 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2623echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2624 { (exit 1); exit 1; }; }
10f2d63a 2625 fi
e6cc62c6 2626
10f2d63a 2627else
e6cc62c6 2628
b12915c1 2629 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2630 if test "x$LINE" != x ; then
2631 eval "DEFAULT_$LINE"
2632 else
2633 no_cache=1
2634 fi
2635
b12915c1 2636 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2637
e6cc62c6 2638fi;
10f2d63a 2639
b12915c1 2640 eval "$ac_cv_use_libpng"
10f2d63a 2641 if test "$no_cache" != 1; then
b12915c1 2642 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2643 fi
2644
b12915c1 2645 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2646 echo "$as_me:$LINENO: result: yes" >&5
2647echo "${ECHO_T}yes" >&6
422107f9 2648 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2649 echo "$as_me:$LINENO: result: no" >&5
2650echo "${ECHO_T}no" >&6
422107f9 2651 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2652 echo "$as_me:$LINENO: result: system version" >&5
2653echo "${ECHO_T}system version" >&6
4f14bcd8 2654 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2655 echo "$as_me:$LINENO: result: builtin version" >&5
2656echo "${ECHO_T}builtin version" >&6
422107f9 2657 else
e6cc62c6
VS
2658 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2659echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2660 { (exit 1); exit 1; }; }
10f2d63a 2661 fi
10f2d63a 2662
e6cc62c6
VS
2663
2664 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2665echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2666 no_cache=0
e6cc62c6
VS
2667
2668# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2669if test "${with_libjpeg+set}" = set; then
2670 withval="$with_libjpeg"
e6cc62c6 2671
10f2d63a 2672 if test "$withval" = yes; then
b12915c1 2673 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2674 elif test "$withval" = no; then
b12915c1 2675 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2676 elif test "$withval" = sys; then
2677 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2678 elif test "$withval" = builtin; then
2679 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2680 else
e6cc62c6
VS
2681 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2682echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2683 { (exit 1); exit 1; }; }
10f2d63a 2684 fi
e6cc62c6 2685
10f2d63a 2686else
e6cc62c6 2687
b12915c1 2688 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2689 if test "x$LINE" != x ; then
2690 eval "DEFAULT_$LINE"
2691 else
2692 no_cache=1
2693 fi
2694
b12915c1 2695 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2696
e6cc62c6 2697fi;
10f2d63a 2698
b12915c1 2699 eval "$ac_cv_use_libjpeg"
10f2d63a 2700 if test "$no_cache" != 1; then
b12915c1 2701 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2702 fi
2703
b12915c1 2704 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2705 echo "$as_me:$LINENO: result: yes" >&5
2706echo "${ECHO_T}yes" >&6
422107f9 2707 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
422107f9 2710 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2711 echo "$as_me:$LINENO: result: system version" >&5
2712echo "${ECHO_T}system version" >&6
4f14bcd8 2713 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2714 echo "$as_me:$LINENO: result: builtin version" >&5
2715echo "${ECHO_T}builtin version" >&6
422107f9 2716 else
e6cc62c6
VS
2717 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2718echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2719 { (exit 1); exit 1; }; }
10f2d63a 2720 fi
10f2d63a 2721
e6cc62c6
VS
2722
2723 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2724echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2725 no_cache=0
e6cc62c6
VS
2726
2727# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2728if test "${with_libtiff+set}" = set; then
2729 withval="$with_libtiff"
e6cc62c6 2730
10f2d63a 2731 if test "$withval" = yes; then
b12915c1 2732 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2733 elif test "$withval" = no; then
b12915c1 2734 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2735 elif test "$withval" = sys; then
2736 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2737 elif test "$withval" = builtin; then
2738 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2739 else
e6cc62c6
VS
2740 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2741echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2742 { (exit 1); exit 1; }; }
10f2d63a 2743 fi
e6cc62c6 2744
10f2d63a 2745else
e6cc62c6 2746
b12915c1 2747 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2748 if test "x$LINE" != x ; then
2749 eval "DEFAULT_$LINE"
2750 else
2751 no_cache=1
2752 fi
2753
b12915c1 2754 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2755
e6cc62c6 2756fi;
10f2d63a 2757
b12915c1 2758 eval "$ac_cv_use_libtiff"
10f2d63a 2759 if test "$no_cache" != 1; then
b12915c1 2760 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2761 fi
2762
b12915c1 2763 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2764 echo "$as_me:$LINENO: result: yes" >&5
2765echo "${ECHO_T}yes" >&6
0dcf9893 2766 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2767 echo "$as_me:$LINENO: result: no" >&5
2768echo "${ECHO_T}no" >&6
0dcf9893 2769 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2770 echo "$as_me:$LINENO: result: system version" >&5
2771echo "${ECHO_T}system version" >&6
4f14bcd8 2772 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2773 echo "$as_me:$LINENO: result: builtin version" >&5
2774echo "${ECHO_T}builtin version" >&6
0dcf9893 2775 else
e6cc62c6
VS
2776 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2777echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2778 { (exit 1); exit 1; }; }
10f2d63a 2779 fi
10f2d63a 2780
e6cc62c6
VS
2781
2782 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2783echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2784 no_cache=0
e6cc62c6
VS
2785
2786# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2787if test "${with_opengl+set}" = set; then
2788 withval="$with_opengl"
e6cc62c6 2789
10f2d63a 2790 if test "$withval" = yes; then
b12915c1 2791 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2792 else
b12915c1 2793 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2794 fi
e6cc62c6 2795
10f2d63a 2796else
e6cc62c6 2797
b12915c1 2798 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2799 if test "x$LINE" != x ; then
2800 eval "DEFAULT_$LINE"
2801 else
2802 no_cache=1
2803 fi
2804
b12915c1 2805 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2806
e6cc62c6 2807fi;
10f2d63a 2808
b12915c1 2809 eval "$ac_cv_use_opengl"
10f2d63a 2810 if test "$no_cache" != 1; then
b12915c1 2811 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2812 fi
2813
b12915c1 2814 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2815 echo "$as_me:$LINENO: result: yes" >&5
2816echo "${ECHO_T}yes" >&6
10f2d63a 2817 else
e6cc62c6
VS
2818 echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6
10f2d63a 2820 fi
e6cc62c6 2821
10f2d63a 2822
b12915c1
VZ
2823fi
2824
5c6fa7d2 2825
e6cc62c6
VS
2826 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2827echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2828 no_cache=0
e6cc62c6
VS
2829
2830# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2831if test "${with_dmalloc+set}" = set; then
2832 withval="$with_dmalloc"
e6cc62c6 2833
c7a2bf27 2834 if test "$withval" = yes; then
b12915c1 2835 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2836 else
b12915c1 2837 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2838 fi
e6cc62c6 2839
c7a2bf27 2840else
e6cc62c6 2841
b12915c1 2842 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2843 if test "x$LINE" != x ; then
2844 eval "DEFAULT_$LINE"
2845 else
2846 no_cache=1
2847 fi
2848
b12915c1 2849 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2850
e6cc62c6 2851fi;
c7a2bf27 2852
b12915c1 2853 eval "$ac_cv_use_dmalloc"
c7a2bf27 2854 if test "$no_cache" != 1; then
b12915c1 2855 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2856 fi
2857
b12915c1 2858 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2859 echo "$as_me:$LINENO: result: yes" >&5
2860echo "${ECHO_T}yes" >&6
c7a2bf27 2861 else
e6cc62c6
VS
2862 echo "$as_me:$LINENO: result: no" >&5
2863echo "${ECHO_T}no" >&6
c7a2bf27 2864 fi
c7a2bf27 2865
e6cc62c6
VS
2866
2867 echo "$as_me:$LINENO: checking for --with-regex" >&5
2868echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2869 no_cache=0
e6cc62c6
VS
2870
2871# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2872if test "${with_regex+set}" = set; then
2873 withval="$with_regex"
e6cc62c6 2874
3e44f09d
VZ
2875 if test "$withval" = yes; then
2876 ac_cv_use_regex='wxUSE_REGEX=yes'
2877 elif test "$withval" = no; then
2878 ac_cv_use_regex='wxUSE_REGEX=no'
2879 elif test "$withval" = sys; then
2880 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2881 elif test "$withval" = builtin; then
2882 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2883 else
e6cc62c6
VS
2884 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2885echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2886 { (exit 1); exit 1; }; }
3e44f09d 2887 fi
e6cc62c6 2888
3e44f09d 2889else
e6cc62c6 2890
3e44f09d
VZ
2891 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2892 if test "x$LINE" != x ; then
2893 eval "DEFAULT_$LINE"
2894 else
2895 no_cache=1
2896 fi
2897
2898 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2899
e6cc62c6 2900fi;
3e44f09d
VZ
2901
2902 eval "$ac_cv_use_regex"
2903 if test "$no_cache" != 1; then
2904 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2905 fi
2906
2907 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2908 echo "$as_me:$LINENO: result: yes" >&5
2909echo "${ECHO_T}yes" >&6
3e44f09d 2910 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2911 echo "$as_me:$LINENO: result: no" >&5
2912echo "${ECHO_T}no" >&6
3e44f09d 2913 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2914 echo "$as_me:$LINENO: result: system version" >&5
2915echo "${ECHO_T}system version" >&6
4f14bcd8 2916 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2917 echo "$as_me:$LINENO: result: builtin version" >&5
2918echo "${ECHO_T}builtin version" >&6
3e44f09d 2919 else
e6cc62c6
VS
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
3e44f09d 2923 fi
3e44f09d 2924
e6cc62c6
VS
2925
2926 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2927echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2928 no_cache=0
e6cc62c6
VS
2929
2930# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2931if test "${with_zlib+set}" = set; then
2932 withval="$with_zlib"
e6cc62c6 2933
10f2d63a 2934 if test "$withval" = yes; then
b12915c1 2935 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2936 elif test "$withval" = no; then
b12915c1 2937 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2938 elif test "$withval" = sys; then
2939 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2940 elif test "$withval" = builtin; then
2941 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2942 else
e6cc62c6
VS
2943 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2944echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2945 { (exit 1); exit 1; }; }
10f2d63a 2946 fi
e6cc62c6 2947
10f2d63a 2948else
e6cc62c6 2949
b12915c1 2950 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2951 if test "x$LINE" != x ; then
2952 eval "DEFAULT_$LINE"
2953 else
2954 no_cache=1
2955 fi
2956
b12915c1 2957 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2958
e6cc62c6 2959fi;
10f2d63a 2960
b12915c1 2961 eval "$ac_cv_use_zlib"
10f2d63a 2962 if test "$no_cache" != 1; then
b12915c1 2963 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2964 fi
2965
b12915c1 2966 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2967 echo "$as_me:$LINENO: result: yes" >&5
2968echo "${ECHO_T}yes" >&6
422107f9 2969 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2970 echo "$as_me:$LINENO: result: no" >&5
2971echo "${ECHO_T}no" >&6
422107f9 2972 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2973 echo "$as_me:$LINENO: result: system version" >&5
2974echo "${ECHO_T}system version" >&6
4f14bcd8 2975 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2976 echo "$as_me:$LINENO: result: builtin version" >&5
2977echo "${ECHO_T}builtin version" >&6
422107f9 2978 else
e6cc62c6
VS
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
10f2d63a 2982 fi
10f2d63a 2983
e6cc62c6
VS
2984
2985 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2986echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2987 no_cache=0
e6cc62c6
VS
2988
2989# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2990if test "${with_odbc+set}" = set; then
2991 withval="$with_odbc"
e6cc62c6 2992
10f2d63a
VZ
2993 if test "$withval" = yes; then
2994 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2995 elif test "$withval" = no; then
10f2d63a 2996 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2997 elif test "$withval" = sys; then
2998 ac_cv_use_odbc='wxUSE_ODBC=sys'
2999 elif test "$withval" = builtin; then
3000 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3001 else
e6cc62c6
VS
3002 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3003echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3004 { (exit 1); exit 1; }; }
10f2d63a 3005 fi
e6cc62c6 3006
10f2d63a 3007else
e6cc62c6 3008
10f2d63a
VZ
3009 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3010 if test "x$LINE" != x ; then
3011 eval "DEFAULT_$LINE"
3012 else
3013 no_cache=1
3014 fi
3015
3016 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3017
e6cc62c6 3018fi;
10f2d63a
VZ
3019
3020 eval "$ac_cv_use_odbc"
3021 if test "$no_cache" != 1; then
3022 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3023 fi
3024
3025 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3026 echo "$as_me:$LINENO: result: yes" >&5
3027echo "${ECHO_T}yes" >&6
8647bec6 3028 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3029 echo "$as_me:$LINENO: result: no" >&5
3030echo "${ECHO_T}no" >&6
8647bec6 3031 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3032 echo "$as_me:$LINENO: result: system version" >&5
3033echo "${ECHO_T}system version" >&6
8647bec6 3034 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3035 echo "$as_me:$LINENO: result: builtin version" >&5
3036echo "${ECHO_T}builtin version" >&6
8647bec6 3037 else
e6cc62c6
VS
3038 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3039echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3040 { (exit 1); exit 1; }; }
10f2d63a 3041 fi
e6cc62c6 3042
52127426 3043
672abd7a
VS
3044 echo "$as_me:$LINENO: checking for --with-expat" >&5
3045echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3046 no_cache=0
3047
3048# Check whether --with-expat or --without-expat was given.
3049if test "${with_expat+set}" = set; then
3050 withval="$with_expat"
3051
3052 if test "$withval" = yes; then
3053 ac_cv_use_expat='wxUSE_EXPAT=yes'
3054 elif test "$withval" = no; then
3055 ac_cv_use_expat='wxUSE_EXPAT=no'
3056 elif test "$withval" = sys; then
3057 ac_cv_use_expat='wxUSE_EXPAT=sys'
3058 elif test "$withval" = builtin; then
3059 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3060 else
3061 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3062echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3063 { (exit 1); exit 1; }; }
3064 fi
3065
3066else
3067
3068 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3069 if test "x$LINE" != x ; then
3070 eval "DEFAULT_$LINE"
3071 else
3072 no_cache=1
3073 fi
3074
3075 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3076
3077fi;
3078
3079 eval "$ac_cv_use_expat"
3080 if test "$no_cache" != 1; then
3081 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3082 fi
3083
3084 if test "$wxUSE_EXPAT" = yes; then
3085 echo "$as_me:$LINENO: result: yes" >&5
3086echo "${ECHO_T}yes" >&6
3087 elif test "$wxUSE_EXPAT" = no; then
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
3090 elif test "$wxUSE_EXPAT" = sys; then
3091 echo "$as_me:$LINENO: result: system version" >&5
3092echo "${ECHO_T}system version" >&6
3093 elif test "$wxUSE_EXPAT" = builtin; then
3094 echo "$as_me:$LINENO: result: builtin version" >&5
3095echo "${ECHO_T}builtin version" >&6
3096 else
3097 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3098echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3099 { (exit 1); exit 1; }; }
3100 fi
3101
3102
8284b0c5
MB
3103
3104
5005acfe 3105 enablestring=
e6cc62c6
VS
3106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3107echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3108 no_cache=0
3109 # Check whether --enable-shared or --disable-shared was given.
3110if test "${enable_shared+set}" = set; then
3111 enableval="$enable_shared"
e6cc62c6 3112
10f2d63a
VZ
3113 if test "$enableval" = yes; then
3114 ac_cv_use_shared='wxUSE_SHARED=yes'
3115 else
3116 ac_cv_use_shared='wxUSE_SHARED=no'
3117 fi
e6cc62c6 3118
10f2d63a 3119else
e6cc62c6 3120
10f2d63a
VZ
3121 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3122 if test "x$LINE" != x ; then
3123 eval "DEFAULT_$LINE"
3124 else
3125 no_cache=1
3126 fi
3127
3128 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3129
e6cc62c6 3130fi;
10f2d63a
VZ
3131
3132 eval "$ac_cv_use_shared"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3138 echo "$as_me:$LINENO: result: yes" >&5
3139echo "${ECHO_T}yes" >&6
10f2d63a 3140 else
e6cc62c6
VS
3141 echo "$as_me:$LINENO: result: no" >&5
3142echo "${ECHO_T}no" >&6
10f2d63a 3143 fi
e6cc62c6 3144
10f2d63a 3145
5005acfe 3146 enablestring=
e6cc62c6
VS
3147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3148echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3149 no_cache=0
3150 # Check whether --enable-optimise or --disable-optimise was given.
3151if test "${enable_optimise+set}" = set; then
3152 enableval="$enable_optimise"
e6cc62c6 3153
10f2d63a
VZ
3154 if test "$enableval" = yes; then
3155 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3156 else
3157 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3158 fi
e6cc62c6 3159
10f2d63a 3160else
e6cc62c6 3161
10f2d63a
VZ
3162 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3163 if test "x$LINE" != x ; then
3164 eval "DEFAULT_$LINE"
3165 else
3166 no_cache=1
3167 fi
3168
3169 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3170
e6cc62c6 3171fi;
10f2d63a
VZ
3172
3173 eval "$ac_cv_use_optimise"
3174 if test "$no_cache" != 1; then
3175 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3176 fi
3177
3178 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3179 echo "$as_me:$LINENO: result: yes" >&5
3180echo "${ECHO_T}yes" >&6
10f2d63a 3181 else
e6cc62c6
VS
3182 echo "$as_me:$LINENO: result: no" >&5
3183echo "${ECHO_T}no" >&6
10f2d63a 3184 fi
e6cc62c6 3185
10f2d63a 3186
5005acfe 3187 enablestring=
e6cc62c6
VS
3188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3189echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3190 no_cache=0
3191 # Check whether --enable-debug or --disable-debug was given.
3192if test "${enable_debug+set}" = set; then
3193 enableval="$enable_debug"
e6cc62c6 3194
10f2d63a
VZ
3195 if test "$enableval" = yes; then
3196 ac_cv_use_debug='wxUSE_DEBUG=yes'
3197 else
3198 ac_cv_use_debug='wxUSE_DEBUG=no'
3199 fi
e6cc62c6 3200
10f2d63a 3201else
e6cc62c6 3202
10f2d63a
VZ
3203 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3204 if test "x$LINE" != x ; then
3205 eval "DEFAULT_$LINE"
3206 else
3207 no_cache=1
3208 fi
3209
3210 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3211
e6cc62c6 3212fi;
10f2d63a
VZ
3213
3214 eval "$ac_cv_use_debug"
3215 if test "$no_cache" != 1; then
3216 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3217 fi
3218
3219 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3220 echo "$as_me:$LINENO: result: yes" >&5
3221echo "${ECHO_T}yes" >&6
10f2d63a 3222 else
e6cc62c6
VS
3223 echo "$as_me:$LINENO: result: no" >&5
3224echo "${ECHO_T}no" >&6
10f2d63a 3225 fi
e6cc62c6 3226
52127426 3227
df5168c4
MB
3228 enablestring=
3229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3230echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3231 no_cache=0
3232 # Check whether --enable-stl or --disable-stl was given.
3233if test "${enable_stl+set}" = set; then
3234 enableval="$enable_stl"
3235
3236 if test "$enableval" = yes; then
3237 ac_cv_use_stl='wxUSE_STL=yes'
3238 else
3239 ac_cv_use_stl='wxUSE_STL=no'
3240 fi
3241
3242else
3243
3244 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3252
3253fi;
3254
3255 eval "$ac_cv_use_stl"
3256 if test "$no_cache" != 1; then
3257 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3258 fi
3259
3260 if test "$wxUSE_STL" = yes; then
3261 echo "$as_me:$LINENO: result: yes" >&5
3262echo "${ECHO_T}yes" >&6
3263 else
3264 echo "$as_me:$LINENO: result: no" >&5
3265echo "${ECHO_T}no" >&6
3266 fi
3267
3268
10f2d63a
VZ
3269if test "$wxUSE_DEBUG" = "yes"; then
3270 DEFAULT_wxUSE_DEBUG_FLAG=yes
3271 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3272 BUILD=debug
10f2d63a
VZ
3273elif test "$wxUSE_DEBUG" = "no"; then
3274 DEFAULT_wxUSE_DEBUG_FLAG=no
3275 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3276 BUILD=release
10f2d63a
VZ
3277fi
3278
8284b0c5 3279
5005acfe 3280 enablestring=
e6cc62c6
VS
3281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3282echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3283 no_cache=0
3284 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3285if test "${enable_debug_flag+set}" = set; then
3286 enableval="$enable_debug_flag"
e6cc62c6 3287
10f2d63a
VZ
3288 if test "$enableval" = yes; then
3289 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3290 else
3291 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3292 fi
e6cc62c6 3293
10f2d63a 3294else
e6cc62c6 3295
10f2d63a
VZ
3296 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3297 if test "x$LINE" != x ; then
3298 eval "DEFAULT_$LINE"
3299 else
3300 no_cache=1
3301 fi
3302
3303 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3304
e6cc62c6 3305fi;
10f2d63a
VZ
3306
3307 eval "$ac_cv_use_debug_flag"
3308 if test "$no_cache" != 1; then
3309 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3310 fi
3311
3312 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3313 echo "$as_me:$LINENO: result: yes" >&5
3314echo "${ECHO_T}yes" >&6
10f2d63a 3315 else
e6cc62c6
VS
3316 echo "$as_me:$LINENO: result: no" >&5
3317echo "${ECHO_T}no" >&6
10f2d63a 3318 fi
e6cc62c6 3319
10f2d63a 3320
5005acfe 3321 enablestring=
e6cc62c6
VS
3322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3323echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3324 no_cache=0
3325 # Check whether --enable-debug_info or --disable-debug_info was given.
3326if test "${enable_debug_info+set}" = set; then
3327 enableval="$enable_debug_info"
e6cc62c6 3328
10f2d63a
VZ
3329 if test "$enableval" = yes; then
3330 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3331 else
3332 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3333 fi
e6cc62c6 3334
10f2d63a 3335else
e6cc62c6 3336
10f2d63a
VZ
3337 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3338 if test "x$LINE" != x ; then
3339 eval "DEFAULT_$LINE"
3340 else
3341 no_cache=1
3342 fi
3343
3344 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3345
e6cc62c6 3346fi;
10f2d63a
VZ
3347
3348 eval "$ac_cv_use_debug_info"
3349 if test "$no_cache" != 1; then
3350 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3351 fi
3352
3353 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3354 echo "$as_me:$LINENO: result: yes" >&5
3355echo "${ECHO_T}yes" >&6
10f2d63a 3356 else
e6cc62c6
VS
3357 echo "$as_me:$LINENO: result: no" >&5
3358echo "${ECHO_T}no" >&6
10f2d63a 3359 fi
e6cc62c6 3360
10f2d63a 3361
5005acfe 3362 enablestring=
e6cc62c6
VS
3363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3364echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3365 no_cache=0
3366 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3367if test "${enable_debug_gdb+set}" = set; then
3368 enableval="$enable_debug_gdb"
e6cc62c6 3369
10f2d63a
VZ
3370 if test "$enableval" = yes; then
3371 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3372 else
3373 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3374 fi
e6cc62c6 3375
10f2d63a 3376else
e6cc62c6 3377
10f2d63a
VZ
3378 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3379 if test "x$LINE" != x ; then
3380 eval "DEFAULT_$LINE"
3381 else
3382 no_cache=1
3383 fi
3384
3385 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3386
e6cc62c6 3387fi;
10f2d63a
VZ
3388
3389 eval "$ac_cv_use_debug_gdb"
3390 if test "$no_cache" != 1; then
3391 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3392 fi
3393
3394 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3395 echo "$as_me:$LINENO: result: yes" >&5
3396echo "${ECHO_T}yes" >&6
10f2d63a 3397 else
e6cc62c6
VS
3398 echo "$as_me:$LINENO: result: no" >&5
3399echo "${ECHO_T}no" >&6
10f2d63a 3400 fi
e6cc62c6 3401
10f2d63a 3402
5005acfe 3403 enablestring=
e6cc62c6
VS
3404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3405echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3406 no_cache=0
3407 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3408if test "${enable_debug_cntxt+set}" = set; then
3409 enableval="$enable_debug_cntxt"
e6cc62c6 3410
10f2d63a
VZ
3411 if test "$enableval" = yes; then
3412 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3413 else
3414 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3415 fi
e6cc62c6 3416
10f2d63a 3417else
e6cc62c6 3418
10f2d63a
VZ
3419 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3420 if test "x$LINE" != x ; then
3421 eval "DEFAULT_$LINE"
3422 else
3423 no_cache=1
3424 fi
3425
3426 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3427
e6cc62c6 3428fi;
10f2d63a
VZ
3429
3430 eval "$ac_cv_use_debug_cntxt"
3431 if test "$no_cache" != 1; then
3432 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3433 fi
3434
3435 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3436 echo "$as_me:$LINENO: result: yes" >&5
3437echo "${ECHO_T}yes" >&6
10f2d63a 3438 else
e6cc62c6
VS
3439 echo "$as_me:$LINENO: result: no" >&5
3440echo "${ECHO_T}no" >&6
10f2d63a 3441 fi
e6cc62c6 3442
10f2d63a 3443
5005acfe 3444 enablestring=
e6cc62c6
VS
3445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3446echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3447 no_cache=0
3448 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3449if test "${enable_mem_tracing+set}" = set; then
3450 enableval="$enable_mem_tracing"
e6cc62c6 3451
10f2d63a
VZ
3452 if test "$enableval" = yes; then
3453 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3454 else
3455 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3456 fi
e6cc62c6 3457
10f2d63a 3458else
e6cc62c6 3459
10f2d63a
VZ
3460 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3468
e6cc62c6 3469fi;
10f2d63a
VZ
3470
3471 eval "$ac_cv_use_mem_tracing"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3477 echo "$as_me:$LINENO: result: yes" >&5
3478echo "${ECHO_T}yes" >&6
10f2d63a 3479 else
e6cc62c6
VS
3480 echo "$as_me:$LINENO: result: no" >&5
3481echo "${ECHO_T}no" >&6
10f2d63a 3482 fi
e6cc62c6 3483
10f2d63a 3484
5005acfe 3485 enablestring=
e6cc62c6
VS
3486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3487echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3488 no_cache=0
3489 # Check whether --enable-profile or --disable-profile was given.
3490if test "${enable_profile+set}" = set; then
3491 enableval="$enable_profile"
e6cc62c6 3492
10f2d63a
VZ
3493 if test "$enableval" = yes; then
3494 ac_cv_use_profile='wxUSE_PROFILE=yes'
3495 else
3496 ac_cv_use_profile='wxUSE_PROFILE=no'
3497 fi
e6cc62c6 3498
10f2d63a 3499else
e6cc62c6 3500
10f2d63a
VZ
3501 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3502 if test "x$LINE" != x ; then
3503 eval "DEFAULT_$LINE"
3504 else
3505 no_cache=1
3506 fi
3507
3508 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3509
e6cc62c6 3510fi;
10f2d63a
VZ
3511
3512 eval "$ac_cv_use_profile"
3513 if test "$no_cache" != 1; then
3514 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3515 fi
3516
3517 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3518 echo "$as_me:$LINENO: result: yes" >&5
3519echo "${ECHO_T}yes" >&6
10f2d63a 3520 else
e6cc62c6
VS
3521 echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
10f2d63a 3523 fi
e6cc62c6 3524
10f2d63a 3525
5005acfe 3526 enablestring=
e6cc62c6
VS
3527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3528echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3529 no_cache=0
3530 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3531if test "${enable_no_rtti+set}" = set; then
3532 enableval="$enable_no_rtti"
e6cc62c6 3533
10f2d63a
VZ
3534 if test "$enableval" = yes; then
3535 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3536 else
3537 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3538 fi
e6cc62c6 3539
10f2d63a 3540else
e6cc62c6 3541
10f2d63a
VZ
3542 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3543 if test "x$LINE" != x ; then
3544 eval "DEFAULT_$LINE"
3545 else
3546 no_cache=1
3547 fi
3548
3549 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3550
e6cc62c6 3551fi;
10f2d63a
VZ
3552
3553 eval "$ac_cv_use_no_rtti"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3559 echo "$as_me:$LINENO: result: yes" >&5
3560echo "${ECHO_T}yes" >&6
10f2d63a 3561 else
e6cc62c6
VS
3562 echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6
10f2d63a 3564 fi
e6cc62c6 3565
10f2d63a 3566
5005acfe 3567 enablestring=
e6cc62c6
VS
3568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3569echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3570 no_cache=0
3571 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3572if test "${enable_no_exceptions+set}" = set; then
3573 enableval="$enable_no_exceptions"
e6cc62c6 3574
10f2d63a
VZ
3575 if test "$enableval" = yes; then
3576 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3577 else
3578 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3579 fi
e6cc62c6 3580
10f2d63a 3581else
e6cc62c6 3582
10f2d63a
VZ
3583 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3584 if test "x$LINE" != x ; then
3585 eval "DEFAULT_$LINE"
3586 else
3587 no_cache=1
3588 fi
3589
3590 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3591
e6cc62c6 3592fi;
10f2d63a
VZ
3593
3594 eval "$ac_cv_use_no_exceptions"
3595 if test "$no_cache" != 1; then
3596 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3597 fi
3598
3599 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3600 echo "$as_me:$LINENO: result: yes" >&5
3601echo "${ECHO_T}yes" >&6
10f2d63a 3602 else
e6cc62c6
VS
3603 echo "$as_me:$LINENO: result: no" >&5
3604echo "${ECHO_T}no" >&6
10f2d63a 3605 fi
e6cc62c6 3606
10f2d63a 3607
5005acfe 3608 enablestring=
e6cc62c6
VS
3609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3610echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3611 no_cache=0
3612 # Check whether --enable-permissive or --disable-permissive was given.
3613if test "${enable_permissive+set}" = set; then
3614 enableval="$enable_permissive"
e6cc62c6 3615
10f2d63a
VZ
3616 if test "$enableval" = yes; then
3617 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3618 else
3619 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3620 fi
e6cc62c6 3621
10f2d63a 3622else
e6cc62c6 3623
10f2d63a
VZ
3624 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3632
e6cc62c6 3633fi;
10f2d63a
VZ
3634
3635 eval "$ac_cv_use_permissive"
3636 if test "$no_cache" != 1; then
3637 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3638 fi
3639
3640 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3641 echo "$as_me:$LINENO: result: yes" >&5
3642echo "${ECHO_T}yes" >&6
10f2d63a 3643 else
e6cc62c6
VS
3644 echo "$as_me:$LINENO: result: no" >&5
3645echo "${ECHO_T}no" >&6
10f2d63a 3646 fi
e6cc62c6 3647
10f2d63a 3648
5005acfe 3649 enablestring=
e6cc62c6
VS
3650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3651echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3652 no_cache=0
3653 # Check whether --enable-no_deps or --disable-no_deps was given.
3654if test "${enable_no_deps+set}" = set; then
3655 enableval="$enable_no_deps"
e6cc62c6 3656
10f2d63a
VZ
3657 if test "$enableval" = yes; then
3658 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3659 else
3660 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3661 fi
e6cc62c6 3662
10f2d63a 3663else
e6cc62c6 3664
10f2d63a
VZ
3665 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3666 if test "x$LINE" != x ; then
3667 eval "DEFAULT_$LINE"
3668 else
3669 no_cache=1
3670 fi
3671
3672 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3673
e6cc62c6 3674fi;
10f2d63a
VZ
3675
3676 eval "$ac_cv_use_no_deps"
3677 if test "$no_cache" != 1; then
3678 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3679 fi
3680
3681 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3682 echo "$as_me:$LINENO: result: yes" >&5
3683echo "${ECHO_T}yes" >&6
10f2d63a 3684 else
e6cc62c6
VS
3685 echo "$as_me:$LINENO: result: no" >&5
3686echo "${ECHO_T}no" >&6
10f2d63a 3687 fi
e6cc62c6 3688
52127426 3689
8284b0c5 3690
65d8ef1e 3691 enablestring=
e6cc62c6
VS
3692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3693echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3694 no_cache=0
3695 # Check whether --enable-compat22 or --disable-compat22 was given.
3696if test "${enable_compat22+set}" = set; then
3697 enableval="$enable_compat22"
e6cc62c6 3698
54276ccf
VZ
3699 if test "$enableval" = yes; then
3700 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3701 else
3702 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3703 fi
e6cc62c6 3704
54276ccf 3705else
e6cc62c6 3706
54276ccf
VZ
3707 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3708 if test "x$LINE" != x ; then
3709 eval "DEFAULT_$LINE"
3710 else
3711 no_cache=1
3712 fi
3713
3714 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3715
e6cc62c6 3716fi;
54276ccf
VZ
3717
3718 eval "$ac_cv_use_compat22"
3719 if test "$no_cache" != 1; then
3720 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3721 fi
3722
3723 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3724 echo "$as_me:$LINENO: result: yes" >&5
3725echo "${ECHO_T}yes" >&6
54276ccf 3726 else
e6cc62c6
VS
3727 echo "$as_me:$LINENO: result: no" >&5
3728echo "${ECHO_T}no" >&6
54276ccf 3729 fi
e6cc62c6 3730
54276ccf 3731
65d8ef1e 3732 enablestring=disable
e6cc62c6
VS
3733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3734echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3735 no_cache=0
3736 # Check whether --enable-compat24 or --disable-compat24 was given.
3737if test "${enable_compat24+set}" = set; then
3738 enableval="$enable_compat24"
e6cc62c6 3739
65d8ef1e
VS
3740 if test "$enableval" = yes; then
3741 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3742 else
3743 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3744 fi
e6cc62c6 3745
65d8ef1e 3746else
e6cc62c6 3747
65d8ef1e
VS
3748 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3749 if test "x$LINE" != x ; then
3750 eval "DEFAULT_$LINE"
3751 else
3752 no_cache=1
3753 fi
3754
3755 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3756
e6cc62c6 3757fi;
65d8ef1e
VS
3758
3759 eval "$ac_cv_use_compat24"
3760 if test "$no_cache" != 1; then
3761 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3762 fi
3763
3764 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3765 echo "$as_me:$LINENO: result: yes" >&5
3766echo "${ECHO_T}yes" >&6
65d8ef1e 3767 else
e6cc62c6
VS
3768 echo "$as_me:$LINENO: result: no" >&5
3769echo "${ECHO_T}no" >&6
65d8ef1e 3770 fi
e6cc62c6 3771
65d8ef1e 3772
3bd8fb5f
RD
3773# Check whether --enable-rpath or --disable-rpath was given.
3774if test "${enable_rpath+set}" = set; then
3775 enableval="$enable_rpath"
3776 wxRPATH_DIR="$enableval"
e6cc62c6 3777fi;
3bd8fb5f
RD
3778
3779if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3780 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3781fi
3782
8284b0c5
MB
3783
3784
3785
5005acfe 3786 enablestring=
e6cc62c6
VS
3787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3788echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3789 no_cache=0
3790 # Check whether --enable-intl or --disable-intl was given.
3791if test "${enable_intl+set}" = set; then
3792 enableval="$enable_intl"
e6cc62c6 3793
10f2d63a
VZ
3794 if test "$enableval" = yes; then
3795 ac_cv_use_intl='wxUSE_INTL=yes'
3796 else
3797 ac_cv_use_intl='wxUSE_INTL=no'
3798 fi
e6cc62c6 3799
10f2d63a 3800else
e6cc62c6 3801
10f2d63a
VZ
3802 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3810
e6cc62c6 3811fi;
10f2d63a
VZ
3812
3813 eval "$ac_cv_use_intl"
3814 if test "$no_cache" != 1; then
3815 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3816 fi
3817
3818 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3819 echo "$as_me:$LINENO: result: yes" >&5
3820echo "${ECHO_T}yes" >&6
10f2d63a 3821 else
e6cc62c6
VS
3822 echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
10f2d63a 3824 fi
e6cc62c6 3825
10f2d63a 3826
5005acfe 3827 enablestring=
e6cc62c6
VS
3828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3829echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3830 no_cache=0
3831 # Check whether --enable-config or --disable-config was given.
3832if test "${enable_config+set}" = set; then
3833 enableval="$enable_config"
e6cc62c6 3834
10f2d63a
VZ
3835 if test "$enableval" = yes; then
3836 ac_cv_use_config='wxUSE_CONFIG=yes'
3837 else
3838 ac_cv_use_config='wxUSE_CONFIG=no'
3839 fi
e6cc62c6 3840
10f2d63a 3841else
e6cc62c6 3842
10f2d63a
VZ
3843 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3851
e6cc62c6 3852fi;
10f2d63a
VZ
3853
3854 eval "$ac_cv_use_config"
3855 if test "$no_cache" != 1; then
3856 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3857 fi
3858
3859 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3860 echo "$as_me:$LINENO: result: yes" >&5
3861echo "${ECHO_T}yes" >&6
10f2d63a 3862 else
e6cc62c6
VS
3863 echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6
10f2d63a 3865 fi
e6cc62c6 3866
52127426 3867
8284b0c5 3868
5005acfe 3869 enablestring=
e6cc62c6
VS
3870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3871echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3872 no_cache=0
3873 # Check whether --enable-protocols or --disable-protocols was given.
3874if test "${enable_protocols+set}" = set; then
3875 enableval="$enable_protocols"
e6cc62c6 3876
a1622950
VZ
3877 if test "$enableval" = yes; then
3878 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3879 else
3880 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3881 fi
e6cc62c6 3882
a1622950 3883else
e6cc62c6 3884
a1622950
VZ
3885 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3886 if test "x$LINE" != x ; then
3887 eval "DEFAULT_$LINE"
3888 else
3889 no_cache=1
3890 fi
3891
3892 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3893
e6cc62c6 3894fi;
a1622950
VZ
3895
3896 eval "$ac_cv_use_protocols"
3897 if test "$no_cache" != 1; then
3898 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3899 fi
3900
3901 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3902 echo "$as_me:$LINENO: result: yes" >&5
3903echo "${ECHO_T}yes" >&6
a1622950 3904 else
e6cc62c6
VS
3905 echo "$as_me:$LINENO: result: no" >&5
3906echo "${ECHO_T}no" >&6
a1622950 3907 fi
e6cc62c6 3908
a1622950 3909
5005acfe 3910 enablestring=
e6cc62c6
VS
3911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3912echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3913 no_cache=0
3914 # Check whether --enable-ftp or --disable-ftp was given.
3915if test "${enable_ftp+set}" = set; then
3916 enableval="$enable_ftp"
e6cc62c6 3917
a1622950
VZ
3918 if test "$enableval" = yes; then
3919 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3920 else
3921 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3922 fi
e6cc62c6 3923
a1622950 3924else
e6cc62c6 3925
a1622950
VZ
3926 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3927 if test "x$LINE" != x ; then
3928 eval "DEFAULT_$LINE"
3929 else
3930 no_cache=1
3931 fi
3932
3933 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3934
e6cc62c6 3935fi;
a1622950
VZ
3936
3937 eval "$ac_cv_use_ftp"
3938 if test "$no_cache" != 1; then
3939 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3940 fi
3941
3942 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3943 echo "$as_me:$LINENO: result: yes" >&5
3944echo "${ECHO_T}yes" >&6
a1622950 3945 else
e6cc62c6
VS
3946 echo "$as_me:$LINENO: result: no" >&5
3947echo "${ECHO_T}no" >&6
a1622950 3948 fi
e6cc62c6 3949
a1622950 3950
5005acfe 3951 enablestring=
e6cc62c6
VS
3952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3953echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3954 no_cache=0
3955 # Check whether --enable-http or --disable-http was given.
3956if test "${enable_http+set}" = set; then
3957 enableval="$enable_http"
e6cc62c6 3958
a1622950
VZ
3959 if test "$enableval" = yes; then
3960 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3961 else
3962 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3963 fi
e6cc62c6 3964
a1622950 3965else
e6cc62c6 3966
a1622950
VZ
3967 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
3974 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3975
e6cc62c6 3976fi;
a1622950
VZ
3977
3978 eval "$ac_cv_use_http"
3979 if test "$no_cache" != 1; then
3980 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3981 fi
3982
3983 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3984 echo "$as_me:$LINENO: result: yes" >&5
3985echo "${ECHO_T}yes" >&6
a1622950 3986 else
e6cc62c6
VS
3987 echo "$as_me:$LINENO: result: no" >&5
3988echo "${ECHO_T}no" >&6
a1622950 3989 fi
e6cc62c6 3990
a1622950 3991
5005acfe 3992 enablestring=
e6cc62c6
VS
3993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3994echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
3995 no_cache=0
3996 # Check whether --enable-fileproto or --disable-fileproto was given.
3997if test "${enable_fileproto+set}" = set; then
3998 enableval="$enable_fileproto"
e6cc62c6 3999
a1622950
VZ
4000 if test "$enableval" = yes; then
4001 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4002 else
4003 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4004 fi
e6cc62c6 4005
a1622950 4006else
e6cc62c6 4007
a1622950
VZ
4008 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4009 if test "x$LINE" != x ; then
4010 eval "DEFAULT_$LINE"
4011 else
4012 no_cache=1
4013 fi
4014
4015 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4016
e6cc62c6 4017fi;
a1622950
VZ
4018
4019 eval "$ac_cv_use_fileproto"
4020 if test "$no_cache" != 1; then
4021 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4022 fi
4023
4024 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4025 echo "$as_me:$LINENO: result: yes" >&5
4026echo "${ECHO_T}yes" >&6
a1622950 4027 else
e6cc62c6
VS
4028 echo "$as_me:$LINENO: result: no" >&5
4029echo "${ECHO_T}no" >&6
a1622950 4030 fi
e6cc62c6 4031
a1622950 4032
5005acfe 4033 enablestring=
e6cc62c6
VS
4034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4035echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4036 no_cache=0
4037 # Check whether --enable-sockets or --disable-sockets was given.
4038if test "${enable_sockets+set}" = set; then
4039 enableval="$enable_sockets"
e6cc62c6 4040
10f2d63a
VZ
4041 if test "$enableval" = yes; then
4042 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4043 else
4044 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4045 fi
e6cc62c6 4046
10f2d63a 4047else
e6cc62c6 4048
10f2d63a
VZ
4049 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4050 if test "x$LINE" != x ; then
4051 eval "DEFAULT_$LINE"
4052 else
4053 no_cache=1
4054 fi
4055
4056 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4057
e6cc62c6 4058fi;
10f2d63a
VZ
4059
4060 eval "$ac_cv_use_sockets"
4061 if test "$no_cache" != 1; then
4062 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4063 fi
4064
4065 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4066 echo "$as_me:$LINENO: result: yes" >&5
4067echo "${ECHO_T}yes" >&6
10f2d63a 4068 else
e6cc62c6
VS
4069 echo "$as_me:$LINENO: result: no" >&5
4070echo "${ECHO_T}no" >&6
10f2d63a 4071 fi
e6cc62c6 4072
8284b0c5 4073
5005acfe 4074 enablestring=
e6cc62c6
VS
4075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4076echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4077 no_cache=0
4078 # Check whether --enable-ole or --disable-ole was given.
4079if test "${enable_ole+set}" = set; then
4080 enableval="$enable_ole"
e6cc62c6 4081
3bce6687
JS
4082 if test "$enableval" = yes; then
4083 ac_cv_use_ole='wxUSE_OLE=yes'
4084 else
4085 ac_cv_use_ole='wxUSE_OLE=no'
4086 fi
e6cc62c6 4087
3bce6687 4088else
e6cc62c6 4089
3bce6687
JS
4090 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4091 if test "x$LINE" != x ; then
4092 eval "DEFAULT_$LINE"
4093 else
4094 no_cache=1
4095 fi
4096
4097 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4098
e6cc62c6 4099fi;
3bce6687
JS
4100
4101 eval "$ac_cv_use_ole"
4102 if test "$no_cache" != 1; then
4103 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4104 fi
4105
4106 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4107 echo "$as_me:$LINENO: result: yes" >&5
4108echo "${ECHO_T}yes" >&6
3bce6687 4109 else
e6cc62c6
VS
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
3bce6687 4112 fi
e6cc62c6 4113
3bce6687 4114
5005acfe 4115 enablestring=
e6cc62c6
VS
4116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4117echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4118 no_cache=0
4119 # Check whether --enable-dataobj or --disable-dataobj was given.
4120if test "${enable_dataobj+set}" = set; then
4121 enableval="$enable_dataobj"
e6cc62c6 4122
3bce6687
JS
4123 if test "$enableval" = yes; then
4124 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4125 else
4126 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4127 fi
e6cc62c6 4128
3bce6687 4129else
e6cc62c6 4130
3bce6687
JS
4131 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4139
e6cc62c6 4140fi;
3bce6687
JS
4141
4142 eval "$ac_cv_use_dataobj"
4143 if test "$no_cache" != 1; then
4144 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4145 fi
4146
4147 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4148 echo "$as_me:$LINENO: result: yes" >&5
4149echo "${ECHO_T}yes" >&6
3bce6687 4150 else
e6cc62c6
VS
4151 echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
3bce6687 4153 fi
e6cc62c6 4154
3bce6687 4155
52127426 4156
5005acfe 4157 enablestring=
e6cc62c6
VS
4158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4159echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4160 no_cache=0
eb4efbdc
VZ
4161 # Check whether --enable-ipc or --disable-ipc was given.
4162if test "${enable_ipc+set}" = set; then
4163 enableval="$enable_ipc"
e6cc62c6 4164
10f2d63a 4165 if test "$enableval" = yes; then
eb4efbdc 4166 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4167 else
eb4efbdc 4168 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4169 fi
e6cc62c6 4170
10f2d63a 4171else
e6cc62c6 4172
eb4efbdc 4173 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
eb4efbdc 4180 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4181
e6cc62c6 4182fi;
10f2d63a 4183
eb4efbdc 4184 eval "$ac_cv_use_ipc"
10f2d63a 4185 if test "$no_cache" != 1; then
eb4efbdc 4186 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4187 fi
4188
eb4efbdc 4189 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4190 echo "$as_me:$LINENO: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
10f2d63a 4192 else
e6cc62c6
VS
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
10f2d63a 4195 fi
e6cc62c6 4196
52127426 4197
8284b0c5 4198
5005acfe 4199 enablestring=
e46d2a18
VS
4200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4201echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4202 no_cache=0
e46d2a18
VS
4203 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4204if test "${enable_apple_ieee+set}" = set; then
4205 enableval="$enable_apple_ieee"
e6cc62c6 4206
10f2d63a 4207 if test "$enableval" = yes; then
e46d2a18 4208 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4209 else
e46d2a18 4210 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4211 fi
e6cc62c6 4212
10f2d63a 4213else
e6cc62c6 4214
e46d2a18 4215 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4216 if test "x$LINE" != x ; then
4217 eval "DEFAULT_$LINE"
4218 else
4219 no_cache=1
4220 fi
4221
e46d2a18 4222 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4223
e6cc62c6 4224fi;
10f2d63a 4225
e46d2a18 4226 eval "$ac_cv_use_apple_ieee"
10f2d63a 4227 if test "$no_cache" != 1; then
e46d2a18 4228 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4229 fi
4230
e46d2a18 4231 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4232 echo "$as_me:$LINENO: result: yes" >&5
4233echo "${ECHO_T}yes" >&6
10f2d63a 4234 else
e6cc62c6
VS
4235 echo "$as_me:$LINENO: result: no" >&5
4236echo "${ECHO_T}no" >&6
10f2d63a 4237 fi
e6cc62c6 4238
10f2d63a 4239
5005acfe 4240 enablestring=
e46d2a18
VS
4241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4242echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4243 no_cache=0
e46d2a18
VS
4244 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4245if test "${enable_catch_segvs+set}" = set; then
4246 enableval="$enable_catch_segvs"
e6cc62c6 4247
10f2d63a 4248 if test "$enableval" = yes; then
e46d2a18 4249 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4250 else
e46d2a18 4251 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4252 fi
e6cc62c6 4253
10f2d63a 4254else
e6cc62c6 4255
e46d2a18 4256 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4257 if test "x$LINE" != x ; then
4258 eval "DEFAULT_$LINE"
4259 else
4260 no_cache=1
4261 fi
4262
e46d2a18 4263 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4264
e6cc62c6 4265fi;
10f2d63a 4266
e46d2a18 4267 eval "$ac_cv_use_catch_segvs"
10f2d63a 4268 if test "$no_cache" != 1; then
e46d2a18 4269 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4270 fi
4271
e46d2a18 4272 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4273 echo "$as_me:$LINENO: result: yes" >&5
4274echo "${ECHO_T}yes" >&6
10f2d63a 4275 else
e6cc62c6
VS
4276 echo "$as_me:$LINENO: result: no" >&5
4277echo "${ECHO_T}no" >&6
10f2d63a 4278 fi
e6cc62c6 4279
10f2d63a 4280
5005acfe 4281 enablestring=
e46d2a18
VS
4282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4283echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4284 no_cache=0
e46d2a18
VS
4285 # Check whether --enable-cmdline or --disable-cmdline was given.
4286if test "${enable_cmdline+set}" = set; then
4287 enableval="$enable_cmdline"
e6cc62c6 4288
10f2d63a 4289 if test "$enableval" = yes; then
e46d2a18 4290 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4291 else
e46d2a18 4292 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4293 fi
e6cc62c6 4294
10f2d63a 4295else
e6cc62c6 4296
e46d2a18 4297 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4298 if test "x$LINE" != x ; then
4299 eval "DEFAULT_$LINE"
4300 else
4301 no_cache=1
4302 fi
4303
e46d2a18 4304 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4305
e6cc62c6 4306fi;
10f2d63a 4307
e46d2a18 4308 eval "$ac_cv_use_cmdline"
10f2d63a 4309 if test "$no_cache" != 1; then
e46d2a18 4310 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4311 fi
4312
e46d2a18 4313 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4314 echo "$as_me:$LINENO: result: yes" >&5
4315echo "${ECHO_T}yes" >&6
10f2d63a 4316 else
e6cc62c6
VS
4317 echo "$as_me:$LINENO: result: no" >&5
4318echo "${ECHO_T}no" >&6
10f2d63a 4319 fi
e6cc62c6 4320
10f2d63a 4321
5005acfe 4322 enablestring=
e46d2a18
VS
4323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4324echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4325 no_cache=0
e46d2a18
VS
4326 # Check whether --enable-datetime or --disable-datetime was given.
4327if test "${enable_datetime+set}" = set; then
4328 enableval="$enable_datetime"
e6cc62c6 4329
10f2d63a 4330 if test "$enableval" = yes; then
e46d2a18 4331 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4332 else
e46d2a18 4333 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4334 fi
e6cc62c6 4335
10f2d63a 4336else
e6cc62c6 4337
e46d2a18 4338 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4339 if test "x$LINE" != x ; then
4340 eval "DEFAULT_$LINE"
4341 else
4342 no_cache=1
4343 fi
4344
e46d2a18 4345 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4346
e6cc62c6 4347fi;
10f2d63a 4348
e46d2a18 4349 eval "$ac_cv_use_datetime"
10f2d63a 4350 if test "$no_cache" != 1; then
e46d2a18 4351 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4352 fi
4353
e46d2a18 4354 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4355 echo "$as_me:$LINENO: result: yes" >&5
4356echo "${ECHO_T}yes" >&6
10f2d63a 4357 else
e6cc62c6
VS
4358 echo "$as_me:$LINENO: result: no" >&5
4359echo "${ECHO_T}no" >&6
10f2d63a 4360 fi
e6cc62c6 4361
10f2d63a 4362
5005acfe 4363 enablestring=
e46d2a18
VS
4364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4365echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4366 no_cache=0
e46d2a18
VS
4367 # Check whether --enable-dialupman or --disable-dialupman was given.
4368if test "${enable_dialupman+set}" = set; then
4369 enableval="$enable_dialupman"
e6cc62c6 4370
10f2d63a 4371 if test "$enableval" = yes; then
e46d2a18 4372 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4373 else
e46d2a18 4374 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4375 fi
e6cc62c6 4376
10f2d63a 4377else
e6cc62c6 4378
e46d2a18 4379 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4380 if test "x$LINE" != x ; then
4381 eval "DEFAULT_$LINE"
4382 else
4383 no_cache=1
4384 fi
4385
e46d2a18 4386 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4387
e6cc62c6 4388fi;
10f2d63a 4389
e46d2a18 4390 eval "$ac_cv_use_dialupman"
10f2d63a 4391 if test "$no_cache" != 1; then
e46d2a18 4392 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4393 fi
4394
e46d2a18 4395 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4396 echo "$as_me:$LINENO: result: yes" >&5
4397echo "${ECHO_T}yes" >&6
10f2d63a 4398 else
e6cc62c6
VS
4399 echo "$as_me:$LINENO: result: no" >&5
4400echo "${ECHO_T}no" >&6
10f2d63a 4401 fi
e6cc62c6 4402
10f2d63a 4403
5005acfe 4404 enablestring=
e6cc62c6
VS
4405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4406echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4407 no_cache=0
4408 # Check whether --enable-dynlib or --disable-dynlib was given.
4409if test "${enable_dynlib+set}" = set; then
4410 enableval="$enable_dynlib"
e6cc62c6 4411
10f2d63a
VZ
4412 if test "$enableval" = yes; then
4413 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4414 else
4415 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4416 fi
e6cc62c6 4417
10f2d63a 4418else
e6cc62c6 4419
10f2d63a
VZ
4420 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4421 if test "x$LINE" != x ; then
4422 eval "DEFAULT_$LINE"
4423 else
4424 no_cache=1
4425 fi
4426
4427 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4428
e6cc62c6 4429fi;
10f2d63a
VZ
4430
4431 eval "$ac_cv_use_dynlib"
4432 if test "$no_cache" != 1; then
4433 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4434 fi
4435
4436 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4437 echo "$as_me:$LINENO: result: yes" >&5
4438echo "${ECHO_T}yes" >&6
10f2d63a 4439 else
e6cc62c6
VS
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
10f2d63a 4442 fi
e6cc62c6 4443
10f2d63a 4444
5005acfe 4445 enablestring=
e6cc62c6
VS
4446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4447echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4448 no_cache=0
4449 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4450if test "${enable_dynamicloader+set}" = set; then
4451 enableval="$enable_dynamicloader"
e6cc62c6 4452
0b9ab0bd
RL
4453 if test "$enableval" = yes; then
4454 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4455 else
4456 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4457 fi
e6cc62c6 4458
0b9ab0bd 4459else
e6cc62c6 4460
0b9ab0bd
RL
4461 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4462 if test "x$LINE" != x ; then
4463 eval "DEFAULT_$LINE"
4464 else
4465 no_cache=1
4466 fi
4467
4468 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4469
e6cc62c6 4470fi;
0b9ab0bd
RL
4471
4472 eval "$ac_cv_use_dynamicloader"
4473 if test "$no_cache" != 1; then
4474 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4475 fi
4476
4477 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4478 echo "$as_me:$LINENO: result: yes" >&5
4479echo "${ECHO_T}yes" >&6
0b9ab0bd 4480 else
e6cc62c6
VS
4481 echo "$as_me:$LINENO: result: no" >&5
4482echo "${ECHO_T}no" >&6
0b9ab0bd 4483 fi
e6cc62c6 4484
0b9ab0bd 4485
5005acfe 4486 enablestring=
e46d2a18
VS
4487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4488echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4489 no_cache=0
e46d2a18
VS
4490 # Check whether --enable-exceptions or --disable-exceptions was given.
4491if test "${enable_exceptions+set}" = set; then
4492 enableval="$enable_exceptions"
e6cc62c6 4493
10f2d63a 4494 if test "$enableval" = yes; then
e46d2a18 4495 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4496 else
e46d2a18 4497 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4498 fi
e6cc62c6 4499
10f2d63a 4500else
e6cc62c6 4501
e46d2a18 4502 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4503 if test "x$LINE" != x ; then
4504 eval "DEFAULT_$LINE"
4505 else
4506 no_cache=1
4507 fi
4508
e46d2a18 4509 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4510
e6cc62c6 4511fi;
10f2d63a 4512
e46d2a18 4513 eval "$ac_cv_use_exceptions"
10f2d63a 4514 if test "$no_cache" != 1; then
e46d2a18 4515 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4516 fi
4517
e46d2a18 4518 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4519 echo "$as_me:$LINENO: result: yes" >&5
4520echo "${ECHO_T}yes" >&6
10f2d63a 4521 else
e6cc62c6
VS
4522 echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6
10f2d63a 4524 fi
e6cc62c6 4525
10f2d63a 4526
5005acfe 4527 enablestring=
e46d2a18
VS
4528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4529echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4530 no_cache=0
e46d2a18
VS
4531 # Check whether --enable-ffile or --disable-ffile was given.
4532if test "${enable_ffile+set}" = set; then
4533 enableval="$enable_ffile"
e6cc62c6 4534
e8f65ba6 4535 if test "$enableval" = yes; then
e46d2a18 4536 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4537 else
e46d2a18 4538 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4539 fi
e6cc62c6 4540
e8f65ba6 4541else
e6cc62c6 4542
e46d2a18 4543 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
e46d2a18 4550 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4551
e6cc62c6 4552fi;
e8f65ba6 4553
e46d2a18 4554 eval "$ac_cv_use_ffile"
e8f65ba6 4555 if test "$no_cache" != 1; then
e46d2a18 4556 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4557 fi
4558
e46d2a18 4559 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4560 echo "$as_me:$LINENO: result: yes" >&5
4561echo "${ECHO_T}yes" >&6
e8f65ba6 4562 else
e6cc62c6
VS
4563 echo "$as_me:$LINENO: result: no" >&5
4564echo "${ECHO_T}no" >&6
e8f65ba6 4565 fi
e6cc62c6 4566
e8f65ba6 4567
5005acfe 4568 enablestring=
e46d2a18
VS
4569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4570echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4571 no_cache=0
e46d2a18
VS
4572 # Check whether --enable-file or --disable-file was given.
4573if test "${enable_file+set}" = set; then
4574 enableval="$enable_file"
e6cc62c6 4575
10f2d63a 4576 if test "$enableval" = yes; then
e46d2a18 4577 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4578 else
e46d2a18 4579 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4580 fi
e6cc62c6 4581
10f2d63a 4582else
e6cc62c6 4583
e46d2a18 4584 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4585 if test "x$LINE" != x ; then
4586 eval "DEFAULT_$LINE"
4587 else
4588 no_cache=1
4589 fi
4590
e46d2a18 4591 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4592
e6cc62c6 4593fi;
10f2d63a 4594
e46d2a18 4595 eval "$ac_cv_use_file"
10f2d63a 4596 if test "$no_cache" != 1; then
e46d2a18 4597 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4598 fi
4599
e46d2a18 4600 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4601 echo "$as_me:$LINENO: result: yes" >&5
4602echo "${ECHO_T}yes" >&6
10f2d63a 4603 else
e6cc62c6
VS
4604 echo "$as_me:$LINENO: result: no" >&5
4605echo "${ECHO_T}no" >&6
10f2d63a 4606 fi
e6cc62c6 4607
10f2d63a 4608
5005acfe 4609 enablestring=
e46d2a18
VS
4610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4611echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4612 no_cache=0
e46d2a18
VS
4613 # Check whether --enable-filesystem or --disable-filesystem was given.
4614if test "${enable_filesystem+set}" = set; then
4615 enableval="$enable_filesystem"
e6cc62c6 4616
10f2d63a 4617 if test "$enableval" = yes; then
e46d2a18 4618 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4619 else
e46d2a18 4620 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4621 fi
e6cc62c6 4622
10f2d63a 4623else
e6cc62c6 4624
e46d2a18 4625 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
e46d2a18 4632 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4633
e6cc62c6 4634fi;
10f2d63a 4635
e46d2a18 4636 eval "$ac_cv_use_filesystem"
10f2d63a 4637 if test "$no_cache" != 1; then
e46d2a18 4638 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4639 fi
4640
e46d2a18 4641 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4642 echo "$as_me:$LINENO: result: yes" >&5
4643echo "${ECHO_T}yes" >&6
10f2d63a 4644 else
e6cc62c6
VS
4645 echo "$as_me:$LINENO: result: no" >&5
4646echo "${ECHO_T}no" >&6
10f2d63a 4647 fi
e6cc62c6 4648
10f2d63a 4649
5005acfe 4650 enablestring=
e46d2a18
VS
4651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4652echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4653 no_cache=0
e46d2a18
VS
4654 # Check whether --enable-fontmap or --disable-fontmap was given.
4655if test "${enable_fontmap+set}" = set; then
4656 enableval="$enable_fontmap"
e6cc62c6 4657
10f2d63a 4658 if test "$enableval" = yes; then
e46d2a18 4659 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4660 else
e46d2a18 4661 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4662 fi
e6cc62c6 4663
10f2d63a 4664else
e6cc62c6 4665
e46d2a18 4666 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4667 if test "x$LINE" != x ; then
4668 eval "DEFAULT_$LINE"
4669 else
4670 no_cache=1
4671 fi
4672
e46d2a18 4673 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4674
e6cc62c6 4675fi;
10f2d63a 4676
e46d2a18 4677 eval "$ac_cv_use_fontmap"
10f2d63a 4678 if test "$no_cache" != 1; then
e46d2a18 4679 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4680 fi
4681
e46d2a18 4682 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4683 echo "$as_me:$LINENO: result: yes" >&5
4684echo "${ECHO_T}yes" >&6
10f2d63a 4685 else
e6cc62c6
VS
4686 echo "$as_me:$LINENO: result: no" >&5
4687echo "${ECHO_T}no" >&6
10f2d63a 4688 fi
e6cc62c6 4689
10f2d63a 4690
5005acfe 4691 enablestring=
e46d2a18
VS
4692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4693echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4694 no_cache=0
e46d2a18
VS
4695 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4696if test "${enable_fs_inet+set}" = set; then
4697 enableval="$enable_fs_inet"
e6cc62c6 4698
10f2d63a 4699 if test "$enableval" = yes; then
e46d2a18 4700 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4701 else
e46d2a18 4702 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4703 fi
e6cc62c6 4704
10f2d63a 4705else
e6cc62c6 4706
e46d2a18 4707 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
e46d2a18 4714 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4715
e6cc62c6 4716fi;
10f2d63a 4717
e46d2a18 4718 eval "$ac_cv_use_fs_inet"
10f2d63a 4719 if test "$no_cache" != 1; then
e46d2a18 4720 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4721 fi
4722
e46d2a18 4723 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4724 echo "$as_me:$LINENO: result: yes" >&5
4725echo "${ECHO_T}yes" >&6
10f2d63a 4726 else
e6cc62c6
VS
4727 echo "$as_me:$LINENO: result: no" >&5
4728echo "${ECHO_T}no" >&6
10f2d63a 4729 fi
e6cc62c6 4730
10f2d63a 4731
5005acfe 4732 enablestring=
e46d2a18
VS
4733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4734echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4735 no_cache=0
e46d2a18
VS
4736 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4737if test "${enable_fs_zip+set}" = set; then
4738 enableval="$enable_fs_zip"
e6cc62c6 4739
a3a584a7 4740 if test "$enableval" = yes; then
e46d2a18 4741 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4742 else
e46d2a18 4743 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4744 fi
e6cc62c6 4745
a3a584a7 4746else
e6cc62c6 4747
e46d2a18 4748 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4749 if test "x$LINE" != x ; then
4750 eval "DEFAULT_$LINE"
4751 else
4752 no_cache=1
4753 fi
4754
e46d2a18 4755 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4756
e6cc62c6 4757fi;
a3a584a7 4758
e46d2a18 4759 eval "$ac_cv_use_fs_zip"
a3a584a7 4760 if test "$no_cache" != 1; then
e46d2a18 4761 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4762 fi
4763
e46d2a18 4764 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4765 echo "$as_me:$LINENO: result: yes" >&5
4766echo "${ECHO_T}yes" >&6
a3a584a7 4767 else
e6cc62c6
VS
4768 echo "$as_me:$LINENO: result: no" >&5
4769echo "${ECHO_T}no" >&6
a3a584a7 4770 fi
e6cc62c6 4771
a3a584a7 4772
5005acfe 4773 enablestring=
e46d2a18
VS
4774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4775echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4776 no_cache=0
e46d2a18
VS
4777 # Check whether --enable-geometry or --disable-geometry was given.
4778if test "${enable_geometry+set}" = set; then
4779 enableval="$enable_geometry"
e6cc62c6 4780
10f2d63a 4781 if test "$enableval" = yes; then
e46d2a18 4782 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4783 else
e46d2a18 4784 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4785 fi
e6cc62c6 4786
10f2d63a 4787else
e6cc62c6 4788
e46d2a18 4789 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4790 if test "x$LINE" != x ; then
4791 eval "DEFAULT_$LINE"
4792 else
4793 no_cache=1
4794 fi
4795
e46d2a18 4796 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 4797
e6cc62c6 4798fi;
10f2d63a 4799
e46d2a18 4800 eval "$ac_cv_use_geometry"
10f2d63a 4801 if test "$no_cache" != 1; then
e46d2a18 4802 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4803 fi
4804
e46d2a18 4805 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4806 echo "$as_me:$LINENO: result: yes" >&5
4807echo "${ECHO_T}yes" >&6
10f2d63a 4808 else
e6cc62c6
VS
4809 echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
10f2d63a 4811 fi
e6cc62c6 4812
10f2d63a 4813
5005acfe 4814 enablestring=
e46d2a18
VS
4815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4816echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 4817 no_cache=0
e46d2a18
VS
4818 # Check whether --enable-log or --disable-log was given.
4819if test "${enable_log+set}" = set; then
4820 enableval="$enable_log"
e6cc62c6 4821
10f2d63a 4822 if test "$enableval" = yes; then
e46d2a18 4823 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 4824 else
e46d2a18 4825 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 4826 fi
e6cc62c6 4827
10f2d63a 4828else
e6cc62c6 4829
e46d2a18 4830 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
4831 if test "x$LINE" != x ; then
4832 eval "DEFAULT_$LINE"
4833 else
4834 no_cache=1
4835 fi
4836
e46d2a18 4837 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4838
e6cc62c6 4839fi;
10f2d63a 4840
e46d2a18 4841 eval "$ac_cv_use_log"
10f2d63a 4842 if test "$no_cache" != 1; then
e46d2a18 4843 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4844 fi
4845
e46d2a18 4846 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4847 echo "$as_me:$LINENO: result: yes" >&5
4848echo "${ECHO_T}yes" >&6
10f2d63a 4849 else
e6cc62c6
VS
4850 echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
10f2d63a 4852 fi
e6cc62c6 4853
10f2d63a 4854
5005acfe 4855 enablestring=
e46d2a18
VS
4856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4857echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 4858 no_cache=0
e46d2a18
VS
4859 # Check whether --enable-longlong or --disable-longlong was given.
4860if test "${enable_longlong+set}" = set; then
4861 enableval="$enable_longlong"
e6cc62c6 4862
1e6feb95 4863 if test "$enableval" = yes; then
e46d2a18 4864 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 4865 else
e46d2a18 4866 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 4867 fi
e6cc62c6 4868
1e6feb95 4869else
e6cc62c6 4870
e46d2a18 4871 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
e46d2a18 4878 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 4879
e6cc62c6 4880fi;
1e6feb95 4881
e46d2a18 4882 eval "$ac_cv_use_longlong"
1e6feb95 4883 if test "$no_cache" != 1; then
e46d2a18 4884 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
4885 fi
4886
e46d2a18
VS
4887 if test "$wxUSE_LONGLONG" = yes; then
4888 echo "$as_me:$LINENO: result: yes" >&5
4889echo "${ECHO_T}yes" >&6
4890 else
4891 echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6
4893 fi
4894
4895
4896 enablestring=
4897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
4898echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
4899 no_cache=0
4900 # Check whether --enable-mimetype or --disable-mimetype was given.
4901if test "${enable_mimetype+set}" = set; then
4902 enableval="$enable_mimetype"
4903
4904 if test "$enableval" = yes; then
4905 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4906 else
4907 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4908 fi
4909
4910else
4911
4912 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4920
4921fi;
4922
4923 eval "$ac_cv_use_mimetype"
4924 if test "$no_cache" != 1; then
4925 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4926 fi
4927
4928 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
4929 echo "$as_me:$LINENO: result: yes" >&5
4930echo "${ECHO_T}yes" >&6
1e6feb95 4931 else
e6cc62c6
VS
4932 echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6
1e6feb95 4934 fi
e6cc62c6 4935
1e6feb95 4936
5005acfe 4937 enablestring=
e6cc62c6
VS
4938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4939echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
4940 no_cache=0
4941 # Check whether --enable-mslu or --disable-mslu was given.
4942if test "${enable_mslu+set}" = set; then
4943 enableval="$enable_mslu"
e6cc62c6 4944
a72a4bfa
VS
4945 if test "$enableval" = yes; then
4946 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4947 else
4948 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4949 fi
e6cc62c6 4950
a72a4bfa 4951else
e6cc62c6 4952
a72a4bfa
VS
4953 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4954 if test "x$LINE" != x ; then
4955 eval "DEFAULT_$LINE"
4956 else
4957 no_cache=1
4958 fi
4959
4960 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 4961
e6cc62c6 4962fi;
a72a4bfa
VS
4963
4964 eval "$ac_cv_use_mslu"
4965 if test "$no_cache" != 1; then
4966 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4967 fi
4968
4969 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
4970 echo "$as_me:$LINENO: result: yes" >&5
4971echo "${ECHO_T}yes" >&6
a72a4bfa 4972 else
e6cc62c6
VS
4973 echo "$as_me:$LINENO: result: no" >&5
4974echo "${ECHO_T}no" >&6
a72a4bfa 4975 fi
e6cc62c6 4976
a72a4bfa 4977
5005acfe 4978 enablestring=
e46d2a18
VS
4979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
4980echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 4981 no_cache=0
e46d2a18
VS
4982 # Check whether --enable-snglinst or --disable-snglinst was given.
4983if test "${enable_snglinst+set}" = set; then
4984 enableval="$enable_snglinst"
e6cc62c6 4985
1e6feb95 4986 if test "$enableval" = yes; then
e46d2a18 4987 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 4988 else
e46d2a18 4989 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 4990 fi
e6cc62c6 4991
10f2d63a 4992else
e6cc62c6 4993
e46d2a18 4994 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
e46d2a18 5001 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5002
e6cc62c6 5003fi;
10f2d63a 5004
e46d2a18 5005 eval "$ac_cv_use_snglinst"
10f2d63a 5006 if test "$no_cache" != 1; then
e46d2a18 5007 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5008 fi
5009
e46d2a18
VS
5010 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5011 echo "$as_me:$LINENO: result: yes" >&5
5012echo "${ECHO_T}yes" >&6
5013 else
5014 echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016 fi
5017
5018
5019 enablestring=
5020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5021echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5022 no_cache=0
5023 # Check whether --enable-streams or --disable-streams was given.
5024if test "${enable_streams+set}" = set; then
5025 enableval="$enable_streams"
5026
5027 if test "$enableval" = yes; then
5028 ac_cv_use_streams='wxUSE_STREAMS=yes'
5029 else
5030 ac_cv_use_streams='wxUSE_STREAMS=no'
5031 fi
5032
5033else
5034
5035 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5036 if test "x$LINE" != x ; then
5037 eval "DEFAULT_$LINE"
5038 else
5039 no_cache=1
5040 fi
5041
5042 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5043
5044fi;
5045
5046 eval "$ac_cv_use_streams"
5047 if test "$no_cache" != 1; then
5048 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5049 fi
5050
5051 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5052 echo "$as_me:$LINENO: result: yes" >&5
5053echo "${ECHO_T}yes" >&6
10f2d63a 5054 else
e6cc62c6
VS
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
10f2d63a 5057 fi
e6cc62c6 5058
10f2d63a 5059
5005acfe 5060 enablestring=
e6cc62c6
VS
5061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5062echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5063 no_cache=0
5064 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5065if test "${enable_std_iostreams+set}" = set; then
5066 enableval="$enable_std_iostreams"
e6cc62c6 5067
10f2d63a
VZ
5068 if test "$enableval" = yes; then
5069 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5070 else
5071 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5072 fi
e6cc62c6 5073
10f2d63a 5074else
e6cc62c6 5075
10f2d63a
VZ
5076 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5077 if test "x$LINE" != x ; then
5078 eval "DEFAULT_$LINE"
5079 else
5080 no_cache=1
5081 fi
5082
5083 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5084
e6cc62c6 5085fi;
10f2d63a
VZ
5086
5087 eval "$ac_cv_use_std_iostreams"
5088 if test "$no_cache" != 1; then
5089 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5090 fi
5091
5092 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5093 echo "$as_me:$LINENO: result: yes" >&5
5094echo "${ECHO_T}yes" >&6
10f2d63a 5095 else
e6cc62c6
VS
5096 echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
10f2d63a 5098 fi
e6cc62c6 5099
10f2d63a 5100
5005acfe 5101 enablestring=
e46d2a18
VS
5102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5103echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5104 no_cache=0
e46d2a18
VS
5105 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5106if test "${enable_stopwatch+set}" = set; then
5107 enableval="$enable_stopwatch"
e6cc62c6 5108
24528b0c 5109 if test "$enableval" = yes; then
e46d2a18 5110 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5111 else
e46d2a18 5112 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5113 fi
e6cc62c6 5114
24528b0c 5115else
e6cc62c6 5116
e46d2a18 5117 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5118 if test "x$LINE" != x ; then
5119 eval "DEFAULT_$LINE"
5120 else
5121 no_cache=1
5122 fi
5123
e46d2a18 5124 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5125
e6cc62c6 5126fi;
24528b0c 5127
e46d2a18 5128 eval "$ac_cv_use_stopwatch"
24528b0c 5129 if test "$no_cache" != 1; then
e46d2a18 5130 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5131 fi
5132
e46d2a18 5133 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5134 echo "$as_me:$LINENO: result: yes" >&5
5135echo "${ECHO_T}yes" >&6
24528b0c 5136 else
e6cc62c6
VS
5137 echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
24528b0c 5139 fi
e6cc62c6 5140
24528b0c 5141
5005acfe 5142 enablestring=
e46d2a18
VS
5143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5144echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5145 no_cache=0
e46d2a18
VS
5146 # Check whether --enable-system_options or --disable-system_options was given.
5147if test "${enable_system_options+set}" = set; then
5148 enableval="$enable_system_options"
e6cc62c6 5149
10f2d63a 5150 if test "$enableval" = yes; then
e46d2a18 5151 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5152 else
e46d2a18 5153 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5154 fi
e6cc62c6 5155
10f2d63a 5156else
e6cc62c6 5157
e46d2a18 5158 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5159 if test "x$LINE" != x ; then
5160 eval "DEFAULT_$LINE"
5161 else
5162 no_cache=1
5163 fi
5164
e46d2a18 5165 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5166
e6cc62c6 5167fi;
10f2d63a 5168
e46d2a18 5169 eval "$ac_cv_use_system_options"
10f2d63a 5170 if test "$no_cache" != 1; then
e46d2a18 5171 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5172 fi
5173
e46d2a18 5174 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5175 echo "$as_me:$LINENO: result: yes" >&5
5176echo "${ECHO_T}yes" >&6
10f2d63a 5177 else
e6cc62c6
VS
5178 echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
10f2d63a 5180 fi
e6cc62c6 5181
10f2d63a 5182
5005acfe 5183 enablestring=
e46d2a18
VS
5184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5185echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5186 no_cache=0
e46d2a18
VS
5187 # Check whether --enable-textbuf or --disable-textbuf was given.
5188if test "${enable_textbuf+set}" = set; then
5189 enableval="$enable_textbuf"
e6cc62c6 5190
10f2d63a 5191 if test "$enableval" = yes; then
e46d2a18 5192 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5193 else
e46d2a18 5194 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5195 fi
e6cc62c6 5196
10f2d63a 5197else
e6cc62c6 5198
e46d2a18 5199 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
e46d2a18 5206 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5207
e6cc62c6 5208fi;
10f2d63a 5209
e46d2a18 5210 eval "$ac_cv_use_textbuf"
10f2d63a 5211 if test "$no_cache" != 1; then
e46d2a18 5212 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5213 fi
5214
e46d2a18 5215 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5216 echo "$as_me:$LINENO: result: yes" >&5
5217echo "${ECHO_T}yes" >&6
10f2d63a 5218 else
e6cc62c6
VS
5219 echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
10f2d63a 5221 fi
e6cc62c6 5222
10f2d63a 5223
5005acfe 5224 enablestring=
e46d2a18
VS
5225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5226echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5227 no_cache=0
e46d2a18
VS
5228 # Check whether --enable-textfile or --disable-textfile was given.
5229if test "${enable_textfile+set}" = set; then
5230 enableval="$enable_textfile"
e6cc62c6 5231
10f2d63a 5232 if test "$enableval" = yes; then
e46d2a18 5233 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5234 else
e46d2a18 5235 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5236 fi
e6cc62c6 5237
10f2d63a 5238else
e6cc62c6 5239
e46d2a18 5240 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5241 if test "x$LINE" != x ; then
5242 eval "DEFAULT_$LINE"
5243 else
5244 no_cache=1
5245 fi
5246
e46d2a18 5247 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5248
e6cc62c6 5249fi;
10f2d63a 5250
e46d2a18 5251 eval "$ac_cv_use_textfile"
10f2d63a 5252 if test "$no_cache" != 1; then
e46d2a18 5253 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5254 fi
5255
e46d2a18 5256 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5257 echo "$as_me:$LINENO: result: yes" >&5
5258echo "${ECHO_T}yes" >&6
10f2d63a 5259 else
e6cc62c6
VS
5260 echo "$as_me:$LINENO: result: no" >&5
5261echo "${ECHO_T}no" >&6
10f2d63a 5262 fi
e6cc62c6 5263
8284b0c5 5264
5005acfe 5265 enablestring=
e46d2a18
VS
5266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5267echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5268 no_cache=0
e46d2a18
VS
5269 # Check whether --enable-timer or --disable-timer was given.
5270if test "${enable_timer+set}" = set; then
5271 enableval="$enable_timer"
e6cc62c6 5272
eb4efbdc 5273 if test "$enableval" = yes; then
e46d2a18 5274 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5275 else
e46d2a18 5276 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5277 fi
e6cc62c6 5278
eb4efbdc 5279else
e6cc62c6 5280
e46d2a18 5281 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
e46d2a18 5288 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5289
e6cc62c6 5290fi;
eb4efbdc 5291
e46d2a18 5292 eval "$ac_cv_use_timer"
eb4efbdc 5293 if test "$no_cache" != 1; then
e46d2a18 5294 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5295 fi
5296
e46d2a18 5297 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5298 echo "$as_me:$LINENO: result: yes" >&5
5299echo "${ECHO_T}yes" >&6
eb4efbdc 5300 else
e6cc62c6
VS
5301 echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
eb4efbdc 5303 fi
e6cc62c6 5304
eb4efbdc 5305
5005acfe 5306 enablestring=
e46d2a18
VS
5307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5308echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5309 no_cache=0
e46d2a18
VS
5310 # Check whether --enable-unicode or --disable-unicode was given.
5311if test "${enable_unicode+set}" = set; then
5312 enableval="$enable_unicode"
e6cc62c6 5313
4f3c5f06 5314 if test "$enableval" = yes; then
e46d2a18 5315 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5316 else
e46d2a18 5317 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5318 fi
e6cc62c6 5319
4f3c5f06 5320else
e6cc62c6 5321
e46d2a18 5322 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5323 if test "x$LINE" != x ; then
5324 eval "DEFAULT_$LINE"
5325 else
5326 no_cache=1
5327 fi
5328
e46d2a18 5329 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5330
e6cc62c6 5331fi;
4f3c5f06 5332
e46d2a18 5333 eval "$ac_cv_use_unicode"
4f3c5f06 5334 if test "$no_cache" != 1; then
e46d2a18 5335 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5336 fi
5337
e46d2a18 5338 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5339 echo "$as_me:$LINENO: result: yes" >&5
5340echo "${ECHO_T}yes" >&6
4f3c5f06 5341 else
e6cc62c6
VS
5342 echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6
4f3c5f06 5344 fi
e6cc62c6 5345
52127426 5346
e46d2a18
VS
5347 enablestring=
5348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5349echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5350 no_cache=0
5351 # Check whether --enable-wave or --disable-wave was given.
5352if test "${enable_wave+set}" = set; then
5353 enableval="$enable_wave"
5354
5355 if test "$enableval" = yes; then
5356 ac_cv_use_wave='wxUSE_WAVE=yes'
5357 else
5358 ac_cv_use_wave='wxUSE_WAVE=no'
5359 fi
5360
5361else
5362
5363 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5364 if test "x$LINE" != x ; then
5365 eval "DEFAULT_$LINE"
5366 else
5367 no_cache=1
5368 fi
5369
5370 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5371
5372fi;
5373
5374 eval "$ac_cv_use_wave"
5375 if test "$no_cache" != 1; then
5376 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5377 fi
5378
5379 if test "$wxUSE_WAVE" = yes; then
5380 echo "$as_me:$LINENO: result: yes" >&5
5381echo "${ECHO_T}yes" >&6
5382 else
5383 echo "$as_me:$LINENO: result: no" >&5
5384echo "${ECHO_T}no" >&6
5385 fi
5386
8284b0c5 5387
5005acfe 5388 enablestring=
e46d2a18
VS
5389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5390echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5391 no_cache=0
e46d2a18
VS
5392 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5393if test "${enable_wxprintfv+set}" = set; then
5394 enableval="$enable_wxprintfv"
e6cc62c6 5395
1e6feb95 5396 if test "$enableval" = yes; then
e46d2a18 5397 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5398 else
e46d2a18 5399 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5400 fi
e6cc62c6 5401
1e6feb95 5402else
e6cc62c6 5403
e46d2a18 5404 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
e46d2a18 5411 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5412
e6cc62c6 5413fi;
1e6feb95 5414
e46d2a18 5415 eval "$ac_cv_use_wxprintfv"
1e6feb95 5416 if test "$no_cache" != 1; then
e46d2a18 5417 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5418 fi
5419
e46d2a18 5420 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5421 echo "$as_me:$LINENO: result: yes" >&5
5422echo "${ECHO_T}yes" >&6
1e6feb95 5423 else
e6cc62c6
VS
5424 echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6
1e6feb95 5426 fi
e6cc62c6 5427
1e6feb95 5428
5005acfe 5429 enablestring=
e46d2a18
VS
5430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5431echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5432 no_cache=0
e46d2a18
VS
5433 # Check whether --enable-zipstream or --disable-zipstream was given.
5434if test "${enable_zipstream+set}" = set; then
5435 enableval="$enable_zipstream"
e6cc62c6 5436
3e44f09d 5437 if test "$enableval" = yes; then
e46d2a18 5438 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5439 else
e46d2a18 5440 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5441 fi
e6cc62c6 5442
3e44f09d 5443else
e6cc62c6 5444
e46d2a18 5445 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5446 if test "x$LINE" != x ; then
5447 eval "DEFAULT_$LINE"
5448 else
5449 no_cache=1
5450 fi
5451
e46d2a18 5452 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5453
e6cc62c6 5454fi;
3e44f09d 5455
e46d2a18 5456 eval "$ac_cv_use_zipstream"
3e44f09d 5457 if test "$no_cache" != 1; then
e46d2a18 5458 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5459 fi
5460
e46d2a18 5461 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5462 echo "$as_me:$LINENO: result: yes" >&5
5463echo "${ECHO_T}yes" >&6
3e44f09d 5464 else
e6cc62c6
VS
5465 echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
3e44f09d 5467 fi
e6cc62c6 5468
8284b0c5 5469
52127426 5470
5005acfe 5471 enablestring=
e6cc62c6
VS
5472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5473echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5474 no_cache=0
5475 # Check whether --enable-url or --disable-url was given.
5476if test "${enable_url+set}" = set; then
5477 enableval="$enable_url"
e6cc62c6 5478
4cdb0ab0
VS
5479 if test "$enableval" = yes; then
5480 ac_cv_use_url='wxUSE_URL=yes'
5481 else
5482 ac_cv_use_url='wxUSE_URL=no'
5483 fi
e6cc62c6 5484
4cdb0ab0 5485else
e6cc62c6 5486
4cdb0ab0
VS
5487 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5488 if test "x$LINE" != x ; then
5489 eval "DEFAULT_$LINE"
5490 else
5491 no_cache=1
5492 fi
5493
5494 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5495
e6cc62c6 5496fi;
4cdb0ab0
VS
5497
5498 eval "$ac_cv_use_url"
5499 if test "$no_cache" != 1; then
5500 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5501 fi
5502
5503 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5504 echo "$as_me:$LINENO: result: yes" >&5
5505echo "${ECHO_T}yes" >&6
4cdb0ab0 5506 else
e6cc62c6
VS
5507 echo "$as_me:$LINENO: result: no" >&5
5508echo "${ECHO_T}no" >&6
4cdb0ab0 5509 fi
e6cc62c6 5510
4cdb0ab0 5511
5005acfe 5512 enablestring=
e6cc62c6
VS
5513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5514echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5515 no_cache=0
5516 # Check whether --enable-protocol or --disable-protocol was given.
5517if test "${enable_protocol+set}" = set; then
5518 enableval="$enable_protocol"
e6cc62c6 5519
4cdb0ab0
VS
5520 if test "$enableval" = yes; then
5521 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5522 else
5523 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5524 fi
e6cc62c6 5525
4cdb0ab0 5526else
e6cc62c6 5527
4cdb0ab0
VS
5528 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5529 if test "x$LINE" != x ; then
5530 eval "DEFAULT_$LINE"
5531 else
5532 no_cache=1
5533 fi
5534
5535 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5536
e6cc62c6 5537fi;
4cdb0ab0
VS
5538
5539 eval "$ac_cv_use_protocol"
5540 if test "$no_cache" != 1; then
5541 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5542 fi
5543
5544 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5545 echo "$as_me:$LINENO: result: yes" >&5
5546echo "${ECHO_T}yes" >&6
4cdb0ab0 5547 else
e6cc62c6
VS
5548 echo "$as_me:$LINENO: result: no" >&5
5549echo "${ECHO_T}no" >&6
4cdb0ab0 5550 fi
e6cc62c6 5551
4cdb0ab0 5552
5005acfe 5553 enablestring=
e6cc62c6
VS
5554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5555echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5556 no_cache=0
5557 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5558if test "${enable_protocol_http+set}" = set; then
5559 enableval="$enable_protocol_http"
e6cc62c6 5560
4cdb0ab0
VS
5561 if test "$enableval" = yes; then
5562 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5563 else
5564 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5565 fi
e6cc62c6 5566
4cdb0ab0 5567else
e6cc62c6 5568
4cdb0ab0
VS
5569 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5570 if test "x$LINE" != x ; then
5571 eval "DEFAULT_$LINE"
5572 else
5573 no_cache=1
5574 fi
5575
5576 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5577
e6cc62c6 5578fi;
4cdb0ab0
VS
5579
5580 eval "$ac_cv_use_protocol_http"
5581 if test "$no_cache" != 1; then
5582 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5583 fi
5584
5585 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5586 echo "$as_me:$LINENO: result: yes" >&5
5587echo "${ECHO_T}yes" >&6
4cdb0ab0 5588 else
e6cc62c6
VS
5589 echo "$as_me:$LINENO: result: no" >&5
5590echo "${ECHO_T}no" >&6
4cdb0ab0 5591 fi
e6cc62c6 5592
4cdb0ab0 5593
5005acfe 5594 enablestring=
e6cc62c6
VS
5595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5596echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5597 no_cache=0
5598 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5599if test "${enable_protocol_ftp+set}" = set; then
5600 enableval="$enable_protocol_ftp"
e6cc62c6 5601
4cdb0ab0
VS
5602 if test "$enableval" = yes; then
5603 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5604 else
5605 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5606 fi
e6cc62c6 5607
4cdb0ab0 5608else
e6cc62c6 5609
4cdb0ab0
VS
5610 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5611 if test "x$LINE" != x ; then
5612 eval "DEFAULT_$LINE"
5613 else
5614 no_cache=1
5615 fi
5616
5617 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5618
e6cc62c6 5619fi;
4cdb0ab0
VS
5620
5621 eval "$ac_cv_use_protocol_ftp"
5622 if test "$no_cache" != 1; then
5623 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5624 fi
5625
5626 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5627 echo "$as_me:$LINENO: result: yes" >&5
5628echo "${ECHO_T}yes" >&6
4cdb0ab0 5629 else
e6cc62c6
VS
5630 echo "$as_me:$LINENO: result: no" >&5
5631echo "${ECHO_T}no" >&6
4cdb0ab0 5632 fi
e6cc62c6 5633
4cdb0ab0 5634
5005acfe 5635 enablestring=
e6cc62c6
VS
5636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5637echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5638 no_cache=0
5639 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5640if test "${enable_protocol_file+set}" = set; then
5641 enableval="$enable_protocol_file"
e6cc62c6 5642
4cdb0ab0
VS
5643 if test "$enableval" = yes; then
5644 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5645 else
5646 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5647 fi
e6cc62c6 5648
4cdb0ab0 5649else
e6cc62c6 5650
4cdb0ab0
VS
5651 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5652 if test "x$LINE" != x ; then
5653 eval "DEFAULT_$LINE"
5654 else
5655 no_cache=1
5656 fi
5657
5658 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5659
e6cc62c6 5660fi;
4cdb0ab0
VS
5661
5662 eval "$ac_cv_use_protocol_file"
5663 if test "$no_cache" != 1; then
5664 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5665 fi
5666
5667 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5668 echo "$as_me:$LINENO: result: yes" >&5
5669echo "${ECHO_T}yes" >&6
4cdb0ab0 5670 else
e6cc62c6
VS
5671 echo "$as_me:$LINENO: result: no" >&5
5672echo "${ECHO_T}no" >&6
4cdb0ab0 5673 fi
e6cc62c6 5674
52127426 5675
8284b0c5
MB
5676
5677
5678
5005acfe 5679 enablestring=
e6cc62c6
VS
5680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5681echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5682 no_cache=0
5683 # Check whether --enable-threads or --disable-threads was given.
5684if test "${enable_threads+set}" = set; then
5685 enableval="$enable_threads"
e6cc62c6 5686
10f2d63a
VZ
5687 if test "$enableval" = yes; then
5688 ac_cv_use_threads='wxUSE_THREADS=yes'
5689 else
5690 ac_cv_use_threads='wxUSE_THREADS=no'
5691 fi
e6cc62c6 5692
10f2d63a 5693else
e6cc62c6 5694
10f2d63a
VZ
5695 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5703
e6cc62c6 5704fi;
10f2d63a
VZ
5705
5706 eval "$ac_cv_use_threads"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5712 echo "$as_me:$LINENO: result: yes" >&5
5713echo "${ECHO_T}yes" >&6
10f2d63a 5714 else
e6cc62c6
VS
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
10f2d63a 5717 fi
e6cc62c6 5718
10f2d63a 5719
b12915c1
VZ
5720if test "$wxUSE_GUI" = "yes"; then
5721
8284b0c5
MB
5722
5723
5005acfe 5724 enablestring=
e6cc62c6
VS
5725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5726echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5727 no_cache=0
5728 # Check whether --enable-docview or --disable-docview was given.
5729if test "${enable_docview+set}" = set; then
5730 enableval="$enable_docview"
e6cc62c6 5731
10f2d63a
VZ
5732 if test "$enableval" = yes; then
5733 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5734 else
5735 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5736 fi
e6cc62c6 5737
10f2d63a 5738else
e6cc62c6 5739
10f2d63a
VZ
5740 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5741 if test "x$LINE" != x ; then
5742 eval "DEFAULT_$LINE"
5743 else
5744 no_cache=1
5745 fi
5746
5747 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5748
e6cc62c6 5749fi;
10f2d63a
VZ
5750
5751 eval "$ac_cv_use_docview"
5752 if test "$no_cache" != 1; then
5753 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5754 fi
5755
5756 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5757 echo "$as_me:$LINENO: result: yes" >&5
5758echo "${ECHO_T}yes" >&6
10f2d63a 5759 else
e6cc62c6
VS
5760 echo "$as_me:$LINENO: result: no" >&5
5761echo "${ECHO_T}no" >&6
10f2d63a 5762 fi
e6cc62c6 5763
10f2d63a 5764
5005acfe 5765 enablestring=
e6cc62c6
VS
5766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5767echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5768 no_cache=0
5769 # Check whether --enable-help or --disable-help was given.
5770if test "${enable_help+set}" = set; then
5771 enableval="$enable_help"
e6cc62c6 5772
10f2d63a
VZ
5773 if test "$enableval" = yes; then
5774 ac_cv_use_help='wxUSE_HELP=yes'
5775 else
5776 ac_cv_use_help='wxUSE_HELP=no'
5777 fi
e6cc62c6 5778
10f2d63a 5779else
e6cc62c6 5780
10f2d63a
VZ
5781 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5782 if test "x$LINE" != x ; then
5783 eval "DEFAULT_$LINE"
5784 else
5785 no_cache=1
5786 fi
5787
5788 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5789
e6cc62c6 5790fi;
10f2d63a
VZ
5791
5792 eval "$ac_cv_use_help"
5793 if test "$no_cache" != 1; then
5794 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5795 fi
5796
5797 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5798 echo "$as_me:$LINENO: result: yes" >&5
5799echo "${ECHO_T}yes" >&6
10f2d63a 5800 else
e6cc62c6
VS
5801 echo "$as_me:$LINENO: result: no" >&5
5802echo "${ECHO_T}no" >&6
10f2d63a 5803 fi
e6cc62c6 5804
10f2d63a 5805
5005acfe 5806 enablestring=
e6cc62c6
VS
5807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5808echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5809 no_cache=0
5810 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5811if test "${enable_mshtmlhelp+set}" = set; then
5812 enableval="$enable_mshtmlhelp"
e6cc62c6 5813
29fd3c0c
VS
5814 if test "$enableval" = yes; then
5815 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5816 else
5817 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5818 fi
e6cc62c6 5819
29fd3c0c 5820else
e6cc62c6 5821
29fd3c0c
VS
5822 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5823 if test "x$LINE" != x ; then
5824 eval "DEFAULT_$LINE"
5825 else
5826 no_cache=1
5827 fi
5828
5829 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5830
e6cc62c6 5831fi;
29fd3c0c
VS
5832
5833 eval "$ac_cv_use_mshtmlhelp"
5834 if test "$no_cache" != 1; then
5835 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5836 fi
5837
5838 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5839 echo "$as_me:$LINENO: result: yes" >&5
5840echo "${ECHO_T}yes" >&6
29fd3c0c 5841 else
e6cc62c6
VS
5842 echo "$as_me:$LINENO: result: no" >&5
5843echo "${ECHO_T}no" >&6
29fd3c0c 5844 fi
e6cc62c6 5845
29fd3c0c 5846
5005acfe 5847 enablestring=
e6cc62c6
VS
5848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5849echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5850 no_cache=0
5851 # Check whether --enable-html or --disable-html was given.
5852if test "${enable_html+set}" = set; then
5853 enableval="$enable_html"
e6cc62c6 5854
3379ed37
VZ
5855 if test "$enableval" = yes; then
5856 ac_cv_use_html='wxUSE_HTML=yes'
5857 else
5858 ac_cv_use_html='wxUSE_HTML=no'
5859 fi
e6cc62c6 5860
3379ed37 5861else
e6cc62c6 5862
3379ed37
VZ
5863 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5864 if test "x$LINE" != x ; then
5865 eval "DEFAULT_$LINE"
5866 else
5867 no_cache=1
5868 fi
5869
5870 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5871
e6cc62c6 5872fi;
3379ed37
VZ
5873
5874 eval "$ac_cv_use_html"
5875 if test "$no_cache" != 1; then
5876 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5877 fi
5878
5879 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5880 echo "$as_me:$LINENO: result: yes" >&5
5881echo "${ECHO_T}yes" >&6
3379ed37 5882 else
e6cc62c6
VS
5883 echo "$as_me:$LINENO: result: no" >&5
5884echo "${ECHO_T}no" >&6
3379ed37 5885 fi
e6cc62c6 5886
3379ed37 5887
5005acfe 5888 enablestring=
e6cc62c6
VS
5889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5890echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5891 no_cache=0
5892 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5893if test "${enable_htmlhelp+set}" = set; then
5894 enableval="$enable_htmlhelp"
e6cc62c6 5895
3379ed37
VZ
5896 if test "$enableval" = yes; then
5897 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5898 else
5899 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5900 fi
e6cc62c6 5901
3379ed37 5902else
e6cc62c6 5903
3379ed37
VZ
5904 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
5911 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5912
e6cc62c6 5913fi;
3379ed37
VZ
5914
5915 eval "$ac_cv_use_htmlhelp"
5916 if test "$no_cache" != 1; then
5917 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5918 fi
5919
5920 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5921 echo "$as_me:$LINENO: result: yes" >&5
5922echo "${ECHO_T}yes" >&6
3379ed37 5923 else
e6cc62c6
VS
5924 echo "$as_me:$LINENO: result: no" >&5
5925echo "${ECHO_T}no" >&6
3379ed37 5926 fi
e6cc62c6 5927
3379ed37 5928
5005acfe 5929 enablestring=
e6cc62c6
VS
5930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5931echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5932 no_cache=0
5933 # Check whether --enable-constraints or --disable-constraints was given.
5934if test "${enable_constraints+set}" = set; then
5935 enableval="$enable_constraints"
e6cc62c6 5936
10f2d63a
VZ
5937 if test "$enableval" = yes; then
5938 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5939 else
5940 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5941 fi
e6cc62c6 5942
10f2d63a 5943else
e6cc62c6 5944
10f2d63a
VZ
5945 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5946 if test "x$LINE" != x ; then
5947 eval "DEFAULT_$LINE"
5948 else
5949 no_cache=1
5950 fi
5951
5952 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5953
e6cc62c6 5954fi;
10f2d63a
VZ
5955
5956 eval "$ac_cv_use_constraints"
5957 if test "$no_cache" != 1; then
5958 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5959 fi
5960
5961 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5962 echo "$as_me:$LINENO: result: yes" >&5
5963echo "${ECHO_T}yes" >&6
10f2d63a 5964 else
e6cc62c6
VS
5965 echo "$as_me:$LINENO: result: no" >&5
5966echo "${ECHO_T}no" >&6
10f2d63a 5967 fi
e6cc62c6 5968
10f2d63a 5969
5005acfe 5970 enablestring=
e6cc62c6
VS
5971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5972echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5973 no_cache=0
5974 # Check whether --enable-printarch or --disable-printarch was given.
5975if test "${enable_printarch+set}" = set; then
5976 enableval="$enable_printarch"
e6cc62c6 5977
10f2d63a
VZ
5978 if test "$enableval" = yes; then
5979 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5980 else
5981 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5982 fi
e6cc62c6 5983
10f2d63a 5984else
e6cc62c6 5985
10f2d63a
VZ
5986 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5987 if test "x$LINE" != x ; then
5988 eval "DEFAULT_$LINE"
5989 else
5990 no_cache=1
5991 fi
5992
5993 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5994
e6cc62c6 5995fi;
10f2d63a
VZ
5996
5997 eval "$ac_cv_use_printarch"
5998 if test "$no_cache" != 1; then
5999 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6000 fi
6001
6002 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6003 echo "$as_me:$LINENO: result: yes" >&5
6004echo "${ECHO_T}yes" >&6
10f2d63a 6005 else
e6cc62c6
VS
6006 echo "$as_me:$LINENO: result: no" >&5
6007echo "${ECHO_T}no" >&6
10f2d63a 6008 fi
e6cc62c6 6009
10f2d63a 6010
5005acfe 6011 enablestring=
e6cc62c6
VS
6012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6013echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6014 no_cache=0
6015 # Check whether --enable-mdi or --disable-mdi was given.
6016if test "${enable_mdi+set}" = set; then
6017 enableval="$enable_mdi"
e6cc62c6 6018
10f2d63a
VZ
6019 if test "$enableval" = yes; then
6020 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6021 else
6022 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6023 fi
e6cc62c6 6024
10f2d63a 6025else
e6cc62c6 6026
10f2d63a
VZ
6027 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6028 if test "x$LINE" != x ; then
6029 eval "DEFAULT_$LINE"
6030 else
6031 no_cache=1
6032 fi
6033
6034 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6035
e6cc62c6 6036fi;
10f2d63a
VZ
6037
6038 eval "$ac_cv_use_mdi"
6039 if test "$no_cache" != 1; then
6040 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6041 fi
6042
6043 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6044 echo "$as_me:$LINENO: result: yes" >&5
6045echo "${ECHO_T}yes" >&6
10f2d63a 6046 else
e6cc62c6
VS
6047 echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6
10f2d63a 6049 fi
e6cc62c6 6050
698dcdb6 6051
5005acfe 6052 enablestring=
e6cc62c6
VS
6053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6054echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6055 no_cache=0
6056 # Check whether --enable-loggui or --disable-loggui was given.
6057if test "${enable_loggui+set}" = set; then
6058 enableval="$enable_loggui"
e6cc62c6 6059
1e6feb95
VZ
6060 if test "$enableval" = yes; then
6061 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6062 else
6063 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6064 fi
e6cc62c6 6065
1e6feb95 6066else
e6cc62c6 6067
1e6feb95
VZ
6068 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6069 if test "x$LINE" != x ; then
6070 eval "DEFAULT_$LINE"
6071 else
6072 no_cache=1
6073 fi
6074
6075 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6076
e6cc62c6 6077fi;
1e6feb95
VZ
6078
6079 eval "$ac_cv_use_loggui"
6080 if test "$no_cache" != 1; then
6081 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6082 fi
6083
6084 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6085 echo "$as_me:$LINENO: result: yes" >&5
6086echo "${ECHO_T}yes" >&6
1e6feb95 6087 else
e6cc62c6
VS
6088 echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6
1e6feb95 6090 fi
e6cc62c6 6091
1e6feb95 6092
5005acfe 6093 enablestring=
e6cc62c6
VS
6094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6095echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6096 no_cache=0
6097 # Check whether --enable-logwin or --disable-logwin was given.
6098if test "${enable_logwin+set}" = set; then
6099 enableval="$enable_logwin"
e6cc62c6 6100
1e6feb95
VZ
6101 if test "$enableval" = yes; then
6102 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6103 else
6104 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6105 fi
e6cc62c6 6106
1e6feb95 6107else
e6cc62c6 6108
1e6feb95
VZ
6109 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6110 if test "x$LINE" != x ; then
6111 eval "DEFAULT_$LINE"
6112 else
6113 no_cache=1
6114 fi
6115
6116 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6117
e6cc62c6 6118fi;
1e6feb95
VZ
6119
6120 eval "$ac_cv_use_logwin"
6121 if test "$no_cache" != 1; then
6122 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6123 fi
6124
6125 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6126 echo "$as_me:$LINENO: result: yes" >&5
6127echo "${ECHO_T}yes" >&6
1e6feb95 6128 else
e6cc62c6
VS
6129 echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6
1e6feb95 6131 fi
e6cc62c6 6132
1e6feb95 6133
5005acfe 6134 enablestring=
e6cc62c6
VS
6135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6136echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6137 no_cache=0
6138 # Check whether --enable-logdialog or --disable-logdialog was given.
6139if test "${enable_logdialog+set}" = set; then
6140 enableval="$enable_logdialog"
e6cc62c6 6141
69d27ff7
MB
6142 if test "$enableval" = yes; then
6143 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6144 else
6145 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6146 fi
e6cc62c6 6147
69d27ff7 6148else
e6cc62c6 6149
69d27ff7
MB
6150 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6151 if test "x$LINE" != x ; then
6152 eval "DEFAULT_$LINE"
6153 else
6154 no_cache=1
6155 fi
6156
6157 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6158
e6cc62c6 6159fi;
69d27ff7
MB
6160
6161 eval "$ac_cv_use_logdialog"
6162 if test "$no_cache" != 1; then
6163 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6164 fi
6165
6166 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6167 echo "$as_me:$LINENO: result: yes" >&5
6168echo "${ECHO_T}yes" >&6
69d27ff7 6169 else
e6cc62c6
VS
6170 echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6
69d27ff7 6172 fi
e6cc62c6 6173
8284b0c5 6174
52127426 6175
5005acfe 6176 enablestring=
e6cc62c6
VS
6177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6178echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6179 no_cache=0
6180 # Check whether --enable-postscript or --disable-postscript was given.
6181if test "${enable_postscript+set}" = set; then
6182 enableval="$enable_postscript"
e6cc62c6 6183
10f2d63a
VZ
6184 if test "$enableval" = yes; then
6185 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6186 else
6187 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6188 fi
e6cc62c6 6189
10f2d63a 6190else
e6cc62c6 6191
10f2d63a
VZ
6192 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6193 if test "x$LINE" != x ; then
6194 eval "DEFAULT_$LINE"
6195 else
6196 no_cache=1
6197 fi
6198
6199 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6200
e6cc62c6 6201fi;
10f2d63a
VZ
6202
6203 eval "$ac_cv_use_postscript"
6204 if test "$no_cache" != 1; then
6205 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6206 fi
6207
6208 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6209 echo "$as_me:$LINENO: result: yes" >&5
6210echo "${ECHO_T}yes" >&6
10f2d63a 6211 else
e6cc62c6
VS
6212 echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6
10f2d63a 6214 fi
e6cc62c6 6215
8284b0c5
MB
6216
6217
52127426 6218
8284b0c5 6219
5005acfe 6220 enablestring=
e6cc62c6
VS
6221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6222echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6223 no_cache=0
3c907f20
VZ
6224 # Check whether --enable-prologio or --disable-prologio was given.
6225if test "${enable_prologio+set}" = set; then
6226 enableval="$enable_prologio"
e6cc62c6 6227
10f2d63a 6228 if test "$enableval" = yes; then
3c907f20 6229 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6230 else
3c907f20 6231 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6232 fi
e6cc62c6 6233
10f2d63a 6234else
e6cc62c6 6235
3c907f20 6236 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6237 if test "x$LINE" != x ; then
6238 eval "DEFAULT_$LINE"
6239 else
6240 no_cache=1
6241 fi
6242
3c907f20 6243 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6244
e6cc62c6 6245fi;
10f2d63a 6246
3c907f20 6247 eval "$ac_cv_use_prologio"
10f2d63a 6248 if test "$no_cache" != 1; then
3c907f20 6249 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6250 fi
6251
3c907f20 6252 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6253 echo "$as_me:$LINENO: result: yes" >&5
6254echo "${ECHO_T}yes" >&6
10f2d63a 6255 else
e6cc62c6
VS
6256 echo "$as_me:$LINENO: result: no" >&5
6257echo "${ECHO_T}no" >&6
10f2d63a 6258 fi
e6cc62c6 6259
8284b0c5 6260
5005acfe 6261 enablestring=
e6cc62c6
VS
6262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6263echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6264 no_cache=0
3c907f20
VZ
6265 # Check whether --enable-resources or --disable-resources was given.
6266if test "${enable_resources+set}" = set; then
6267 enableval="$enable_resources"
e6cc62c6 6268
10f2d63a 6269 if test "$enableval" = yes; then
3c907f20 6270 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6271 else
3c907f20 6272 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6273 fi
e6cc62c6 6274
10f2d63a 6275else
e6cc62c6 6276
3c907f20 6277 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6278 if test "x$LINE" != x ; then
6279 eval "DEFAULT_$LINE"
6280 else
6281 no_cache=1
6282 fi
6283
3c907f20 6284 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6285
e6cc62c6 6286fi;
10f2d63a 6287
3c907f20 6288 eval "$ac_cv_use_resources"
10f2d63a 6289 if test "$no_cache" != 1; then
3c907f20 6290 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6291 fi
6292
3c907f20 6293 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6294 echo "$as_me:$LINENO: result: yes" >&5
6295echo "${ECHO_T}yes" >&6
10f2d63a 6296 else
e6cc62c6
VS
6297 echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6
10f2d63a 6299 fi
e6cc62c6 6300
8284b0c5
MB
6301
6302
52127426 6303
5005acfe 6304 enablestring=
e6cc62c6
VS
6305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6306echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6307 no_cache=0
6308 # Check whether --enable-clipboard or --disable-clipboard was given.
6309if test "${enable_clipboard+set}" = set; then
6310 enableval="$enable_clipboard"
e6cc62c6 6311
10f2d63a
VZ
6312 if test "$enableval" = yes; then
6313 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6314 else
6315 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6316 fi
e6cc62c6 6317
10f2d63a 6318else
e6cc62c6 6319
10f2d63a
VZ
6320 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6321 if test "x$LINE" != x ; then
6322 eval "DEFAULT_$LINE"
6323 else
6324 no_cache=1
6325 fi
6326
6327 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6328
e6cc62c6 6329fi;
10f2d63a
VZ
6330
6331 eval "$ac_cv_use_clipboard"
6332 if test "$no_cache" != 1; then
6333 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6334 fi
6335
6336 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6337 echo "$as_me:$LINENO: result: yes" >&5
6338echo "${ECHO_T}yes" >&6
10f2d63a 6339 else
e6cc62c6
VS
6340 echo "$as_me:$LINENO: result: no" >&5
6341echo "${ECHO_T}no" >&6
10f2d63a 6342 fi
e6cc62c6 6343
10f2d63a 6344
5005acfe 6345 enablestring=
e6cc62c6
VS
6346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6347echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6348 no_cache=0
6349 # Check whether --enable-dnd or --disable-dnd was given.
6350if test "${enable_dnd+set}" = set; then
6351 enableval="$enable_dnd"
e6cc62c6 6352
10f2d63a
VZ
6353 if test "$enableval" = yes; then
6354 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6355 else
6356 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6357 fi
e6cc62c6 6358
10f2d63a 6359else
e6cc62c6 6360
10f2d63a
VZ
6361 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6362 if test "x$LINE" != x ; then
6363 eval "DEFAULT_$LINE"
6364 else
6365 no_cache=1
6366 fi
6367
6368 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6369
e6cc62c6 6370fi;
10f2d63a
VZ
6371
6372 eval "$ac_cv_use_dnd"
6373 if test "$no_cache" != 1; then
6374 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6375 fi
6376
6377 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6378 echo "$as_me:$LINENO: result: yes" >&5
6379echo "${ECHO_T}yes" >&6
10f2d63a 6380 else
e6cc62c6
VS
6381 echo "$as_me:$LINENO: result: no" >&5
6382echo "${ECHO_T}no" >&6
10f2d63a 6383 fi
e6cc62c6 6384
10f2d63a 6385
5005acfe 6386 enablestring=
e6cc62c6
VS
6387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6388echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6389 no_cache=0
6390 # Check whether --enable-metafile or --disable-metafile was given.
6391if test "${enable_metafile+set}" = set; then
6392 enableval="$enable_metafile"
e6cc62c6 6393
b64f0a5f
RL
6394 if test "$enableval" = yes; then
6395 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6396 else
6397 ac_cv_use_metafile='wxUSE_METAFILE=no'
6398 fi
e6cc62c6 6399
b64f0a5f 6400else
e6cc62c6 6401
b64f0a5f
RL
6402 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6403 if test "x$LINE" != x ; then
6404 eval "DEFAULT_$LINE"
6405 else
6406 no_cache=1
6407 fi
6408
6409 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6410
e6cc62c6 6411fi;
b64f0a5f
RL
6412
6413 eval "$ac_cv_use_metafile"
6414 if test "$no_cache" != 1; then
6415 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6416 fi
6417
6418 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6419 echo "$as_me:$LINENO: result: yes" >&5
6420echo "${ECHO_T}yes" >&6
b64f0a5f 6421 else
e6cc62c6
VS
6422 echo "$as_me:$LINENO: result: no" >&5
6423echo "${ECHO_T}no" >&6
b64f0a5f 6424 fi
e6cc62c6 6425
52127426 6426
8284b0c5 6427
52127426 6428
8284b0c5 6429
5005acfe 6430 enablestring=
e6cc62c6
VS
6431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6432echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6433 no_cache=0
6434 # Check whether --enable-controls or --disable-controls was given.
6435if test "${enable_controls+set}" = set; then
6436 enableval="$enable_controls"
e6cc62c6 6437
10f2d63a
VZ
6438 if test "$enableval" = yes; then
6439 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6440 else
6441 ac_cv_use_controls='wxUSE_CONTROLS=no'
6442 fi
e6cc62c6 6443
10f2d63a 6444else
e6cc62c6 6445
10f2d63a
VZ
6446 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6447 if test "x$LINE" != x ; then
6448 eval "DEFAULT_$LINE"
6449 else
6450 no_cache=1
6451 fi
6452
6453 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6454
e6cc62c6 6455fi;
10f2d63a
VZ
6456
6457 eval "$ac_cv_use_controls"
6458 if test "$no_cache" != 1; then
6459 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6460 fi
6461
6462 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6463 echo "$as_me:$LINENO: result: yes" >&5
6464echo "${ECHO_T}yes" >&6
10f2d63a 6465 else
e6cc62c6
VS
6466 echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6
10f2d63a 6468 fi
e6cc62c6 6469
10f2d63a
VZ
6470
6471if test "$wxUSE_CONTROLS" = "yes"; then
6472 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6473 DEFAULT_wxUSE_BMPBUTTON=yes
6474 DEFAULT_wxUSE_BUTTON=yes
6475 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6476 DEFAULT_wxUSE_CARET=yes
6477 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6478 DEFAULT_wxUSE_CHECKBOX=yes
6479 DEFAULT_wxUSE_CHECKLISTBOX=yes
6480 DEFAULT_wxUSE_CHOICE=yes
6481 DEFAULT_wxUSE_GAUGE=yes
6482 DEFAULT_wxUSE_GRID=yes
10f2d63a 6483 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6484 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6485 DEFAULT_wxUSE_LISTBOX=yes
6486 DEFAULT_wxUSE_LISTCTRL=yes
6487 DEFAULT_wxUSE_NOTEBOOK=yes
6488 DEFAULT_wxUSE_RADIOBOX=yes
6489 DEFAULT_wxUSE_RADIOBTN=yes
6490 DEFAULT_wxUSE_SASH=yes
6491 DEFAULT_wxUSE_SCROLLBAR=yes
6492 DEFAULT_wxUSE_SLIDER=yes
6493 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6494 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6495 DEFAULT_wxUSE_SPLITTER=yes
6496 DEFAULT_wxUSE_STATBMP=yes
6497 DEFAULT_wxUSE_STATBOX=yes
6498 DEFAULT_wxUSE_STATLINE=yes
6499 DEFAULT_wxUSE_STATUSBAR=yes
6500 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6501 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6502 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6503 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6504 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6505 DEFAULT_wxUSE_TOOLTIPS=yes
6506 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6507 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6508 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6509elif test "$wxUSE_CONTROLS" = "no"; then
6510 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6511 DEFAULT_wxUSE_BMPBUTTON=no
6512 DEFAULT_wxUSE_BUTTON=no
6513 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6514 DEFAULT_wxUSE_CARET=no
6515 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6516 DEFAULT_wxUSE_CHECKBOX=no
6517 DEFAULT_wxUSE_CHECKLISTBOX=no
6518 DEFAULT_wxUSE_CHOICE=no
6519 DEFAULT_wxUSE_GAUGE=no
6520 DEFAULT_wxUSE_GRID=no
10f2d63a 6521 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6522 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6523 DEFAULT_wxUSE_LISTBOX=no
6524 DEFAULT_wxUSE_LISTCTRL=no
6525 DEFAULT_wxUSE_NOTEBOOK=no
6526 DEFAULT_wxUSE_RADIOBOX=no
6527 DEFAULT_wxUSE_RADIOBTN=no
6528 DEFAULT_wxUSE_SASH=no
6529 DEFAULT_wxUSE_SCROLLBAR=no
6530 DEFAULT_wxUSE_SLIDER=no
6531 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6532 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6533 DEFAULT_wxUSE_SPLITTER=no
6534 DEFAULT_wxUSE_STATBMP=no
6535 DEFAULT_wxUSE_STATBOX=no
6536 DEFAULT_wxUSE_STATLINE=no
6537 DEFAULT_wxUSE_STATUSBAR=no
6538 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6539 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6540 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6541 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6542 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6543 DEFAULT_wxUSE_TOOLTIPS=no
6544 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6545 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6546 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6547fi
6548
ac0c4cc3
DE
6549## FIXME: This is a blatant hack
6550if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6551 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6552 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6553 # Generic notebook requires tab dialog
6554 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6555 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6556 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6557 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6558 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6559fi
6560
8284b0c5 6561
5005acfe 6562 enablestring=
e6cc62c6
VS
6563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6564echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6565 no_cache=0
6566 # Check whether --enable-accel or --disable-accel was given.
6567if test "${enable_accel+set}" = set; then
6568 enableval="$enable_accel"
e6cc62c6 6569
10f2d63a
VZ
6570 if test "$enableval" = yes; then
6571 ac_cv_use_accel='wxUSE_ACCEL=yes'
6572 else
6573 ac_cv_use_accel='wxUSE_ACCEL=no'
6574 fi
e6cc62c6 6575
10f2d63a 6576else
e6cc62c6 6577
10f2d63a
VZ
6578 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6579 if test "x$LINE" != x ; then
6580 eval "DEFAULT_$LINE"
6581 else
6582 no_cache=1
6583 fi
6584
6585 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6586
e6cc62c6 6587fi;
10f2d63a
VZ
6588
6589 eval "$ac_cv_use_accel"
6590 if test "$no_cache" != 1; then
6591 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6592 fi
6593
6594 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6595 echo "$as_me:$LINENO: result: yes" >&5
6596echo "${ECHO_T}yes" >&6
10f2d63a 6597 else
e6cc62c6
VS
6598 echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6
10f2d63a 6600 fi
e6cc62c6 6601
10f2d63a 6602
5005acfe 6603 enablestring=
e6cc62c6
VS
6604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6605echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6606 no_cache=0
1e6feb95
VZ
6607 # Check whether --enable-button or --disable-button was given.
6608if test "${enable_button+set}" = set; then
6609 enableval="$enable_button"
e6cc62c6 6610
10f2d63a 6611 if test "$enableval" = yes; then
1e6feb95 6612 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6613 else
1e6feb95 6614 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6615 fi
e6cc62c6 6616
10f2d63a 6617else
e6cc62c6 6618
1e6feb95 6619 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6620 if test "x$LINE" != x ; then
6621 eval "DEFAULT_$LINE"
6622 else
6623 no_cache=1
6624 fi
6625
1e6feb95 6626 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6627
e6cc62c6 6628fi;
10f2d63a 6629
1e6feb95 6630 eval "$ac_cv_use_button"
10f2d63a 6631 if test "$no_cache" != 1; then
1e6feb95 6632 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6633 fi
6634
1e6feb95 6635 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6636 echo "$as_me:$LINENO: result: yes" >&5
6637echo "${ECHO_T}yes" >&6
10f2d63a 6638 else
e6cc62c6
VS
6639 echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6
10f2d63a 6641 fi
e6cc62c6 6642
10f2d63a 6643
5005acfe 6644 enablestring=
e6cc62c6
VS
6645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6646echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6647 no_cache=0
6648 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6649if test "${enable_bmpbutton+set}" = set; then
6650 enableval="$enable_bmpbutton"
e6cc62c6 6651
10f2d63a
VZ
6652 if test "$enableval" = yes; then
6653 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6654 else
6655 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6656 fi
e6cc62c6 6657
10f2d63a 6658else
e6cc62c6 6659
10f2d63a
VZ
6660 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6661 if test "x$LINE" != x ; then
6662 eval "DEFAULT_$LINE"
6663 else
6664 no_cache=1
6665 fi
6666
6667 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6668
e6cc62c6 6669fi;
10f2d63a
VZ
6670
6671 eval "$ac_cv_use_bmpbutton"
6672 if test "$no_cache" != 1; then
6673 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6674 fi
6675
6676 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6677 echo "$as_me:$LINENO: result: yes" >&5
6678echo "${ECHO_T}yes" >&6
10f2d63a 6679 else
e6cc62c6
VS
6680 echo "$as_me:$LINENO: result: no" >&5
6681echo "${ECHO_T}no" >&6
10f2d63a 6682 fi
e6cc62c6 6683
10f2d63a 6684
5005acfe 6685 enablestring=
e6cc62c6
VS
6686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6687echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6688 no_cache=0
6689 # Check whether --enable-calendar or --disable-calendar was given.
6690if test "${enable_calendar+set}" = set; then
6691 enableval="$enable_calendar"
e6cc62c6 6692
1e6feb95
VZ
6693 if test "$enableval" = yes; then
6694 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6695 else
6696 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6697 fi
e6cc62c6 6698
1e6feb95 6699else
e6cc62c6 6700
1e6feb95
VZ
6701 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6702 if test "x$LINE" != x ; then
6703 eval "DEFAULT_$LINE"
6704 else
6705 no_cache=1
6706 fi
6707
6708 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6709
e6cc62c6 6710fi;
1e6feb95
VZ
6711
6712 eval "$ac_cv_use_calendar"
6713 if test "$no_cache" != 1; then
6714 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6715 fi
6716
6717 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6718 echo "$as_me:$LINENO: result: yes" >&5
6719echo "${ECHO_T}yes" >&6
1e6feb95 6720 else
e6cc62c6
VS
6721 echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6
1e6feb95 6723 fi
e6cc62c6 6724
1e6feb95 6725
5005acfe 6726 enablestring=
e6cc62c6
VS
6727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6728echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6729 no_cache=0
6730 # Check whether --enable-caret or --disable-caret was given.
6731if test "${enable_caret+set}" = set; then
6732 enableval="$enable_caret"
e6cc62c6 6733
1e6feb95
VZ
6734 if test "$enableval" = yes; then
6735 ac_cv_use_caret='wxUSE_CARET=yes'
6736 else
6737 ac_cv_use_caret='wxUSE_CARET=no'
6738 fi
e6cc62c6 6739
1e6feb95 6740else
e6cc62c6 6741
1e6feb95
VZ
6742 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6743 if test "x$LINE" != x ; then
6744 eval "DEFAULT_$LINE"
6745 else
6746 no_cache=1
6747 fi
6748
6749 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6750
e6cc62c6 6751fi;
1e6feb95
VZ
6752
6753 eval "$ac_cv_use_caret"
6754 if test "$no_cache" != 1; then
6755 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6756 fi
6757
6758 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6759 echo "$as_me:$LINENO: result: yes" >&5
6760echo "${ECHO_T}yes" >&6
1e6feb95 6761 else
e6cc62c6
VS
6762 echo "$as_me:$LINENO: result: no" >&5
6763echo "${ECHO_T}no" >&6
1e6feb95 6764 fi
e6cc62c6 6765
1e6feb95 6766
5005acfe 6767 enablestring=
e6cc62c6
VS
6768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6769echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6770 no_cache=0
6771 # Check whether --enable-checkbox or --disable-checkbox was given.
6772if test "${enable_checkbox+set}" = set; then
6773 enableval="$enable_checkbox"
e6cc62c6 6774
10f2d63a
VZ
6775 if test "$enableval" = yes; then
6776 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6777 else
6778 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6779 fi
e6cc62c6 6780
10f2d63a 6781else
e6cc62c6 6782
10f2d63a
VZ
6783 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6784 if test "x$LINE" != x ; then
6785 eval "DEFAULT_$LINE"
6786 else
6787 no_cache=1
6788 fi
6789
6790 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6791
e6cc62c6 6792fi;
10f2d63a
VZ
6793
6794 eval "$ac_cv_use_checkbox"
6795 if test "$no_cache" != 1; then
6796 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6797 fi
6798
6799 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6800 echo "$as_me:$LINENO: result: yes" >&5
6801echo "${ECHO_T}yes" >&6
10f2d63a 6802 else
e6cc62c6
VS
6803 echo "$as_me:$LINENO: result: no" >&5
6804echo "${ECHO_T}no" >&6
10f2d63a 6805 fi
e6cc62c6 6806
10f2d63a 6807
5005acfe 6808 enablestring=
e6cc62c6
VS
6809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6810echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6811 no_cache=0
6812 # Check whether --enable-checklst or --disable-checklst was given.
6813if test "${enable_checklst+set}" = set; then
6814 enableval="$enable_checklst"
e6cc62c6 6815
10f2d63a
VZ
6816 if test "$enableval" = yes; then
6817 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6818 else
6819 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6820 fi
e6cc62c6 6821
10f2d63a 6822else
e6cc62c6 6823
10f2d63a
VZ
6824 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6825 if test "x$LINE" != x ; then
6826 eval "DEFAULT_$LINE"
6827 else
6828 no_cache=1
6829 fi
6830
6831 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6832
e6cc62c6 6833fi;
10f2d63a
VZ
6834
6835 eval "$ac_cv_use_checklst"
6836 if test "$no_cache" != 1; then
6837 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6838 fi
6839
6840 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6841 echo "$as_me:$LINENO: result: yes" >&5
6842echo "${ECHO_T}yes" >&6
10f2d63a 6843 else
e6cc62c6
VS
6844 echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6
10f2d63a 6846 fi
e6cc62c6 6847
10f2d63a 6848
5005acfe 6849 enablestring=
e6cc62c6
VS
6850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6851echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6852 no_cache=0
6853 # Check whether --enable-choice or --disable-choice was given.
6854if test "${enable_choice+set}" = set; then
6855 enableval="$enable_choice"
e6cc62c6 6856
10f2d63a
VZ
6857 if test "$enableval" = yes; then
6858 ac_cv_use_choice='wxUSE_CHOICE=yes'
6859 else
6860 ac_cv_use_choice='wxUSE_CHOICE=no'
6861 fi
e6cc62c6 6862
10f2d63a 6863else
e6cc62c6 6864
10f2d63a
VZ
6865 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6866 if test "x$LINE" != x ; then
6867 eval "DEFAULT_$LINE"
6868 else
6869 no_cache=1
6870 fi
6871
6872 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6873
e6cc62c6 6874fi;
10f2d63a
VZ
6875
6876 eval "$ac_cv_use_choice"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6882 echo "$as_me:$LINENO: result: yes" >&5
6883echo "${ECHO_T}yes" >&6
10f2d63a 6884 else
e6cc62c6
VS
6885 echo "$as_me:$LINENO: result: no" >&5
6886echo "${ECHO_T}no" >&6
10f2d63a 6887 fi
e6cc62c6 6888
10f2d63a 6889
5005acfe 6890 enablestring=
e6cc62c6
VS
6891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6892echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6893 no_cache=0
6894 # Check whether --enable-combobox or --disable-combobox was given.
6895if test "${enable_combobox+set}" = set; then
6896 enableval="$enable_combobox"
e6cc62c6 6897
10f2d63a
VZ
6898 if test "$enableval" = yes; then
6899 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6900 else
6901 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6902 fi
e6cc62c6 6903
10f2d63a 6904else
e6cc62c6 6905
10f2d63a
VZ
6906 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6907 if test "x$LINE" != x ; then
6908 eval "DEFAULT_$LINE"
6909 else
6910 no_cache=1
6911 fi
6912
6913 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6914
e6cc62c6 6915fi;
10f2d63a
VZ
6916
6917 eval "$ac_cv_use_combobox"
6918 if test "$no_cache" != 1; then
6919 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6920 fi
6921
6922 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6923 echo "$as_me:$LINENO: result: yes" >&5
6924echo "${ECHO_T}yes" >&6
10f2d63a 6925 else
e6cc62c6
VS
6926 echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6
10f2d63a 6928 fi
e6cc62c6 6929
10f2d63a 6930
da494b40 6931 enablestring=
e6cc62c6
VS
6932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6933echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6934 no_cache=0
6935 # Check whether --enable-display or --disable-display was given.
6936if test "${enable_display+set}" = set; then
6937 enableval="$enable_display"
e6cc62c6 6938
da494b40
MB
6939 if test "$enableval" = yes; then
6940 ac_cv_use_display='wxUSE_DISPLAY=yes'
6941 else
6942 ac_cv_use_display='wxUSE_DISPLAY=no'
6943 fi
e6cc62c6 6944
da494b40 6945else
e6cc62c6 6946
da494b40
MB
6947 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6948 if test "x$LINE" != x ; then
6949 eval "DEFAULT_$LINE"
6950 else
6951 no_cache=1
6952 fi
6953
6954 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6955
e6cc62c6 6956fi;
da494b40
MB
6957
6958 eval "$ac_cv_use_display"
6959 if test "$no_cache" != 1; then
6960 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6961 fi
6962
6963 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6964 echo "$as_me:$LINENO: result: yes" >&5
6965echo "${ECHO_T}yes" >&6
da494b40 6966 else
e6cc62c6
VS
6967 echo "$as_me:$LINENO: result: no" >&5
6968echo "${ECHO_T}no" >&6
da494b40 6969 fi
e6cc62c6 6970
da494b40 6971
5005acfe 6972 enablestring=
e6cc62c6
VS
6973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6974echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6975 no_cache=0
6976 # Check whether --enable-gauge or --disable-gauge was given.
6977if test "${enable_gauge+set}" = set; then
6978 enableval="$enable_gauge"
e6cc62c6 6979
10f2d63a
VZ
6980 if test "$enableval" = yes; then
6981 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6982 else
6983 ac_cv_use_gauge='wxUSE_GAUGE=no'
6984 fi
e6cc62c6 6985
10f2d63a 6986else
e6cc62c6 6987
10f2d63a
VZ
6988 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6989 if test "x$LINE" != x ; then
6990 eval "DEFAULT_$LINE"
6991 else
6992 no_cache=1
6993 fi
6994
6995 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 6996
e6cc62c6 6997fi;
10f2d63a
VZ
6998
6999 eval "$ac_cv_use_gauge"
7000 if test "$no_cache" != 1; then
7001 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7002 fi
7003
7004 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7005 echo "$as_me:$LINENO: result: yes" >&5
7006echo "${ECHO_T}yes" >&6
10f2d63a 7007 else
e6cc62c6
VS
7008 echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6
10f2d63a 7010 fi
e6cc62c6 7011
10f2d63a 7012
5005acfe 7013 enablestring=
e6cc62c6
VS
7014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7015echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7016 no_cache=0
7017 # Check whether --enable-grid or --disable-grid was given.
7018if test "${enable_grid+set}" = set; then
7019 enableval="$enable_grid"
e6cc62c6 7020
10f2d63a
VZ
7021 if test "$enableval" = yes; then
7022 ac_cv_use_grid='wxUSE_GRID=yes'
7023 else
7024 ac_cv_use_grid='wxUSE_GRID=no'
7025 fi
e6cc62c6 7026
10f2d63a 7027else
e6cc62c6 7028
10f2d63a
VZ
7029 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7030 if test "x$LINE" != x ; then
7031 eval "DEFAULT_$LINE"
7032 else
7033 no_cache=1
7034 fi
7035
7036 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7037
e6cc62c6 7038fi;
10f2d63a
VZ
7039
7040 eval "$ac_cv_use_grid"
7041 if test "$no_cache" != 1; then
7042 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7043 fi
7044
7045 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7046 echo "$as_me:$LINENO: result: yes" >&5
7047echo "${ECHO_T}yes" >&6
10f2d63a 7048 else
e6cc62c6
VS
7049 echo "$as_me:$LINENO: result: no" >&5
7050echo "${ECHO_T}no" >&6
10f2d63a 7051 fi
e6cc62c6 7052
10f2d63a 7053
5005acfe 7054 enablestring=
e6cc62c6
VS
7055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7056echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7057 no_cache=0
7058 # Check whether --enable-imaglist or --disable-imaglist was given.
7059if test "${enable_imaglist+set}" = set; then
7060 enableval="$enable_imaglist"
e6cc62c6 7061
10f2d63a
VZ
7062 if test "$enableval" = yes; then
7063 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7064 else
7065 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7066 fi
e6cc62c6 7067
10f2d63a 7068else
e6cc62c6 7069
10f2d63a
VZ
7070 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7071 if test "x$LINE" != x ; then
7072 eval "DEFAULT_$LINE"
7073 else
7074 no_cache=1
7075 fi
7076
7077 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7078
e6cc62c6 7079fi;
10f2d63a
VZ
7080
7081 eval "$ac_cv_use_imaglist"
7082 if test "$no_cache" != 1; then
7083 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7084 fi
7085
7086 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7087 echo "$as_me:$LINENO: result: yes" >&5
7088echo "${ECHO_T}yes" >&6
10f2d63a 7089 else
e6cc62c6
VS
7090 echo "$as_me:$LINENO: result: no" >&5
7091echo "${ECHO_T}no" >&6
10f2d63a 7092 fi
e6cc62c6 7093
10f2d63a 7094
0e012a93
VZ
7095 enablestring=
7096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7097echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7098 no_cache=0
7099 # Check whether --enable-listbook or --disable-listbook was given.
7100if test "${enable_listbook+set}" = set; then
7101 enableval="$enable_listbook"
7102
7103 if test "$enableval" = yes; then
7104 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7105 else
7106 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7107 fi
7108
7109else
7110
7111 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7112 if test "x$LINE" != x ; then
7113 eval "DEFAULT_$LINE"
7114 else
7115 no_cache=1
7116 fi
7117
7118 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7119
7120fi;
7121
7122 eval "$ac_cv_use_listbook"
7123 if test "$no_cache" != 1; then
7124 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7125 fi
7126
7127 if test "$wxUSE_LISTBOOK" = yes; then
7128 echo "$as_me:$LINENO: result: yes" >&5
7129echo "${ECHO_T}yes" >&6
7130 else
7131 echo "$as_me:$LINENO: result: no" >&5
7132echo "${ECHO_T}no" >&6
7133 fi
7134
7135
5005acfe 7136 enablestring=
e6cc62c6
VS
7137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7138echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7139 no_cache=0
7140 # Check whether --enable-listbox or --disable-listbox was given.
7141if test "${enable_listbox+set}" = set; then
7142 enableval="$enable_listbox"
e6cc62c6 7143
10f2d63a
VZ
7144 if test "$enableval" = yes; then
7145 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7146 else
7147 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7148 fi
e6cc62c6 7149
10f2d63a 7150else
e6cc62c6 7151
10f2d63a
VZ
7152 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7153 if test "x$LINE" != x ; then
7154 eval "DEFAULT_$LINE"
7155 else
7156 no_cache=1
7157 fi
7158
7159 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7160
e6cc62c6 7161fi;
10f2d63a
VZ
7162
7163 eval "$ac_cv_use_listbox"
7164 if test "$no_cache" != 1; then
7165 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7166 fi
7167
7168 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7169 echo "$as_me:$LINENO: result: yes" >&5
7170echo "${ECHO_T}yes" >&6
10f2d63a 7171 else
e6cc62c6
VS
7172 echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6
10f2d63a 7174 fi
e6cc62c6 7175
10f2d63a 7176
5005acfe 7177 enablestring=
e6cc62c6
VS
7178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7179echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7180 no_cache=0
7181 # Check whether --enable-listctrl or --disable-listctrl was given.
7182if test "${enable_listctrl+set}" = set; then
7183 enableval="$enable_listctrl"
e6cc62c6 7184
10f2d63a
VZ
7185 if test "$enableval" = yes; then
7186 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7187 else
7188 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7189 fi
e6cc62c6 7190
10f2d63a 7191else
e6cc62c6 7192
10f2d63a
VZ
7193 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7194 if test "x$LINE" != x ; then
7195 eval "DEFAULT_$LINE"
7196 else
7197 no_cache=1
7198 fi
7199
7200 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7201
e6cc62c6 7202fi;
10f2d63a
VZ
7203
7204 eval "$ac_cv_use_listctrl"
7205 if test "$no_cache" != 1; then
7206 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7207 fi
7208
7209 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7210 echo "$as_me:$LINENO: result: yes" >&5
7211echo "${ECHO_T}yes" >&6
10f2d63a 7212 else
e6cc62c6
VS
7213 echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6
10f2d63a 7215 fi
e6cc62c6 7216
10f2d63a 7217
5005acfe 7218 enablestring=
e6cc62c6
VS
7219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7220echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7221 no_cache=0
7222 # Check whether --enable-notebook or --disable-notebook was given.
7223if test "${enable_notebook+set}" = set; then
7224 enableval="$enable_notebook"
e6cc62c6 7225
10f2d63a
VZ
7226 if test "$enableval" = yes; then
7227 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7228 else
7229 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7230 fi
e6cc62c6 7231
10f2d63a 7232else
e6cc62c6 7233
10f2d63a
VZ
7234 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7235 if test "x$LINE" != x ; then
7236 eval "DEFAULT_$LINE"
7237 else
7238 no_cache=1
7239 fi
7240
7241 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7242
e6cc62c6 7243fi;
10f2d63a
VZ
7244
7245 eval "$ac_cv_use_notebook"
7246 if test "$no_cache" != 1; then
7247 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7248 fi
7249
7250 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7251 echo "$as_me:$LINENO: result: yes" >&5
7252echo "${ECHO_T}yes" >&6
10f2d63a 7253 else
e6cc62c6
VS
7254 echo "$as_me:$LINENO: result: no" >&5
7255echo "${ECHO_T}no" >&6
10f2d63a 7256 fi
e6cc62c6 7257
10f2d63a 7258
5005acfe 7259 enablestring=
e6cc62c6
VS
7260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7261echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7262 no_cache=0
7263 # Check whether --enable-radiobox or --disable-radiobox was given.
7264if test "${enable_radiobox+set}" = set; then
7265 enableval="$enable_radiobox"
e6cc62c6 7266
10f2d63a
VZ
7267 if test "$enableval" = yes; then
7268 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7269 else
7270 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7271 fi
e6cc62c6 7272
10f2d63a 7273else
e6cc62c6 7274
10f2d63a
VZ
7275 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7276 if test "x$LINE" != x ; then
7277 eval "DEFAULT_$LINE"
7278 else
7279 no_cache=1
7280 fi
7281
7282 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7283
e6cc62c6 7284fi;
10f2d63a
VZ
7285
7286 eval "$ac_cv_use_radiobox"
7287 if test "$no_cache" != 1; then
7288 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7289 fi
7290
7291 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7292 echo "$as_me:$LINENO: result: yes" >&5
7293echo "${ECHO_T}yes" >&6
10f2d63a 7294 else
e6cc62c6
VS
7295 echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6
10f2d63a 7297 fi
e6cc62c6 7298
10f2d63a 7299
5005acfe 7300 enablestring=
e6cc62c6
VS
7301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7302echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7303 no_cache=0
7304 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7305if test "${enable_radiobtn+set}" = set; then
7306 enableval="$enable_radiobtn"
e6cc62c6 7307
10f2d63a
VZ
7308 if test "$enableval" = yes; then
7309 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7310 else
7311 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7312 fi
e6cc62c6 7313
10f2d63a 7314else
e6cc62c6 7315
10f2d63a
VZ
7316 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7317 if test "x$LINE" != x ; then
7318 eval "DEFAULT_$LINE"
7319 else
7320 no_cache=1
7321 fi
7322
7323 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7324
e6cc62c6 7325fi;
10f2d63a
VZ
7326
7327 eval "$ac_cv_use_radiobtn"
7328 if test "$no_cache" != 1; then
7329 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7330 fi
7331
7332 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7333 echo "$as_me:$LINENO: result: yes" >&5
7334echo "${ECHO_T}yes" >&6
10f2d63a 7335 else
e6cc62c6
VS
7336 echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
10f2d63a 7338 fi
e6cc62c6 7339
10f2d63a 7340
5005acfe 7341 enablestring=
e6cc62c6
VS
7342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7343echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7344 no_cache=0
7345 # Check whether --enable-sash or --disable-sash was given.
7346if test "${enable_sash+set}" = set; then
7347 enableval="$enable_sash"
e6cc62c6 7348
10f2d63a
VZ
7349 if test "$enableval" = yes; then
7350 ac_cv_use_sash='wxUSE_SASH=yes'
7351 else
7352 ac_cv_use_sash='wxUSE_SASH=no'
7353 fi
e6cc62c6 7354
10f2d63a 7355else
e6cc62c6 7356
10f2d63a
VZ
7357 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7358 if test "x$LINE" != x ; then
7359 eval "DEFAULT_$LINE"
7360 else
7361 no_cache=1
7362 fi
7363
7364 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7365
e6cc62c6 7366fi;
10f2d63a
VZ
7367
7368 eval "$ac_cv_use_sash"
7369 if test "$no_cache" != 1; then
7370 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7371 fi
7372
7373 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7374 echo "$as_me:$LINENO: result: yes" >&5
7375echo "${ECHO_T}yes" >&6
10f2d63a 7376 else
e6cc62c6
VS
7377 echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6
10f2d63a 7379 fi
e6cc62c6 7380
10f2d63a 7381
5005acfe 7382 enablestring=
e6cc62c6
VS
7383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7384echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7385 no_cache=0
7386 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7387if test "${enable_scrollbar+set}" = set; then
7388 enableval="$enable_scrollbar"
e6cc62c6 7389
10f2d63a
VZ
7390 if test "$enableval" = yes; then
7391 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7392 else
7393 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7394 fi
e6cc62c6 7395
10f2d63a 7396else
e6cc62c6 7397
10f2d63a
VZ
7398 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7399 if test "x$LINE" != x ; then
7400 eval "DEFAULT_$LINE"
7401 else
7402 no_cache=1
7403 fi
7404
7405 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7406
e6cc62c6 7407fi;
10f2d63a
VZ
7408
7409 eval "$ac_cv_use_scrollbar"
7410 if test "$no_cache" != 1; then
7411 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7412 fi
7413
7414 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7415 echo "$as_me:$LINENO: result: yes" >&5
7416echo "${ECHO_T}yes" >&6
10f2d63a 7417 else
e6cc62c6
VS
7418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
10f2d63a 7420 fi
e6cc62c6 7421
10f2d63a 7422
5005acfe 7423 enablestring=
e6cc62c6
VS
7424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7425echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7426 no_cache=0
7427 # Check whether --enable-slider or --disable-slider was given.
7428if test "${enable_slider+set}" = set; then
7429 enableval="$enable_slider"
e6cc62c6 7430
10f2d63a
VZ
7431 if test "$enableval" = yes; then
7432 ac_cv_use_slider='wxUSE_SLIDER=yes'
7433 else
7434 ac_cv_use_slider='wxUSE_SLIDER=no'
7435 fi
e6cc62c6 7436
10f2d63a 7437else
e6cc62c6 7438
10f2d63a
VZ
7439 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7440 if test "x$LINE" != x ; then
7441 eval "DEFAULT_$LINE"
7442 else
7443 no_cache=1
7444 fi
7445
7446 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7447
e6cc62c6 7448fi;
10f2d63a
VZ
7449
7450 eval "$ac_cv_use_slider"
7451 if test "$no_cache" != 1; then
7452 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7453 fi
7454
7455 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7456 echo "$as_me:$LINENO: result: yes" >&5
7457echo "${ECHO_T}yes" >&6
10f2d63a 7458 else
e6cc62c6
VS
7459 echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6
10f2d63a 7461 fi
e6cc62c6 7462
10f2d63a 7463
5005acfe 7464 enablestring=
e6cc62c6
VS
7465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7466echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7467 no_cache=0
7468 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7469if test "${enable_spinbtn+set}" = set; then
7470 enableval="$enable_spinbtn"
e6cc62c6 7471
10f2d63a
VZ
7472 if test "$enableval" = yes; then
7473 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7474 else
7475 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7476 fi
e6cc62c6 7477
10f2d63a 7478else
e6cc62c6 7479
10f2d63a
VZ
7480 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7481 if test "x$LINE" != x ; then
7482 eval "DEFAULT_$LINE"
7483 else
7484 no_cache=1
7485 fi
7486
7487 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7488
e6cc62c6 7489fi;
10f2d63a
VZ
7490
7491 eval "$ac_cv_use_spinbtn"
7492 if test "$no_cache" != 1; then
7493 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7494 fi
7495
7496 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7497 echo "$as_me:$LINENO: result: yes" >&5
7498echo "${ECHO_T}yes" >&6
10f2d63a 7499 else
e6cc62c6
VS
7500 echo "$as_me:$LINENO: result: no" >&5
7501echo "${ECHO_T}no" >&6
10f2d63a 7502 fi
e6cc62c6 7503
10f2d63a 7504
5005acfe 7505 enablestring=
e6cc62c6
VS
7506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7507echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7508 no_cache=0
7509 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7510if test "${enable_spinctrl+set}" = set; then
7511 enableval="$enable_spinctrl"
e6cc62c6 7512
56cfaa52
RR
7513 if test "$enableval" = yes; then
7514 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7515 else
7516 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7517 fi
e6cc62c6 7518
56cfaa52 7519else
e6cc62c6 7520
56cfaa52
RR
7521 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7522 if test "x$LINE" != x ; then
7523 eval "DEFAULT_$LINE"
7524 else
7525 no_cache=1
7526 fi
7527
7528 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7529
e6cc62c6 7530fi;
56cfaa52
RR
7531
7532 eval "$ac_cv_use_spinctrl"
7533 if test "$no_cache" != 1; then
7534 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7535 fi
7536
7537 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7538 echo "$as_me:$LINENO: result: yes" >&5
7539echo "${ECHO_T}yes" >&6
56cfaa52 7540 else
e6cc62c6
VS
7541 echo "$as_me:$LINENO: result: no" >&5
7542echo "${ECHO_T}no" >&6
56cfaa52 7543 fi
e6cc62c6 7544
56cfaa52 7545
5005acfe 7546 enablestring=
e6cc62c6
VS
7547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7548echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7549 no_cache=0
7550 # Check whether --enable-splitter or --disable-splitter was given.
7551if test "${enable_splitter+set}" = set; then
7552 enableval="$enable_splitter"
e6cc62c6 7553
10f2d63a
VZ
7554 if test "$enableval" = yes; then
7555 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7556 else
7557 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7558 fi
e6cc62c6 7559
10f2d63a 7560else
e6cc62c6 7561
10f2d63a
VZ
7562 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7563 if test "x$LINE" != x ; then
7564 eval "DEFAULT_$LINE"
7565 else
7566 no_cache=1
7567 fi
7568
7569 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7570
e6cc62c6 7571fi;
10f2d63a
VZ
7572
7573 eval "$ac_cv_use_splitter"
7574 if test "$no_cache" != 1; then
7575 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7576 fi
7577
7578 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7579 echo "$as_me:$LINENO: result: yes" >&5
7580echo "${ECHO_T}yes" >&6
10f2d63a 7581 else
e6cc62c6
VS
7582 echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6
10f2d63a 7584 fi
e6cc62c6 7585
10f2d63a 7586
5005acfe 7587 enablestring=
e6cc62c6
VS
7588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7589echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7590 no_cache=0
7591 # Check whether --enable-statbmp or --disable-statbmp was given.
7592if test "${enable_statbmp+set}" = set; then
7593 enableval="$enable_statbmp"
e6cc62c6 7594
10f2d63a
VZ
7595 if test "$enableval" = yes; then
7596 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7597 else
7598 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7599 fi
e6cc62c6 7600
10f2d63a 7601else
e6cc62c6 7602
10f2d63a
VZ
7603 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7604 if test "x$LINE" != x ; then
7605 eval "DEFAULT_$LINE"
7606 else
7607 no_cache=1
7608 fi
7609
7610 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7611
e6cc62c6 7612fi;
10f2d63a
VZ
7613
7614 eval "$ac_cv_use_statbmp"
7615 if test "$no_cache" != 1; then
7616 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7617 fi
7618
7619 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7620 echo "$as_me:$LINENO: result: yes" >&5
7621echo "${ECHO_T}yes" >&6
10f2d63a 7622 else
e6cc62c6
VS
7623 echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6
10f2d63a 7625 fi
e6cc62c6 7626
10f2d63a 7627
5005acfe 7628 enablestring=
e6cc62c6
VS
7629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7630echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7631 no_cache=0
7632 # Check whether --enable-statbox or --disable-statbox was given.
7633if test "${enable_statbox+set}" = set; then
7634 enableval="$enable_statbox"
e6cc62c6 7635
10f2d63a
VZ
7636 if test "$enableval" = yes; then
7637 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7638 else
7639 ac_cv_use_statbox='wxUSE_STATBOX=no'
7640 fi
e6cc62c6 7641
10f2d63a 7642else
e6cc62c6 7643
10f2d63a
VZ
7644 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7645 if test "x$LINE" != x ; then
7646 eval "DEFAULT_$LINE"
7647 else
7648 no_cache=1
7649 fi
7650
7651 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7652
e6cc62c6 7653fi;
10f2d63a
VZ
7654
7655 eval "$ac_cv_use_statbox"
7656 if test "$no_cache" != 1; then
7657 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7658 fi
7659
7660 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7661 echo "$as_me:$LINENO: result: yes" >&5
7662echo "${ECHO_T}yes" >&6
10f2d63a 7663 else
e6cc62c6
VS
7664 echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6
10f2d63a 7666 fi
e6cc62c6 7667
10f2d63a 7668
5005acfe 7669 enablestring=
e6cc62c6
VS
7670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7671echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7672 no_cache=0
7673 # Check whether --enable-statline or --disable-statline was given.
7674if test "${enable_statline+set}" = set; then
7675 enableval="$enable_statline"
e6cc62c6 7676
10f2d63a
VZ
7677 if test "$enableval" = yes; then
7678 ac_cv_use_statline='wxUSE_STATLINE=yes'
7679 else
7680 ac_cv_use_statline='wxUSE_STATLINE=no'
7681 fi
e6cc62c6 7682
10f2d63a 7683else
e6cc62c6 7684
10f2d63a
VZ
7685 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7686 if test "x$LINE" != x ; then
7687 eval "DEFAULT_$LINE"
7688 else
7689 no_cache=1
7690 fi
7691
7692 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7693
e6cc62c6 7694fi;
10f2d63a
VZ
7695
7696 eval "$ac_cv_use_statline"
7697 if test "$no_cache" != 1; then
7698 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7699 fi
7700
7701 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7702 echo "$as_me:$LINENO: result: yes" >&5
7703echo "${ECHO_T}yes" >&6
10f2d63a 7704 else
e6cc62c6
VS
7705 echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6
10f2d63a 7707 fi
e6cc62c6 7708
10f2d63a 7709
5005acfe 7710 enablestring=
e6cc62c6
VS
7711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7712echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7713 no_cache=0
7714 # Check whether --enable-stattext or --disable-stattext was given.
7715if test "${enable_stattext+set}" = set; then
7716 enableval="$enable_stattext"
e6cc62c6 7717
1e6feb95
VZ
7718 if test "$enableval" = yes; then
7719 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7720 else
7721 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7722 fi
e6cc62c6 7723
1e6feb95 7724else
e6cc62c6 7725
1e6feb95
VZ
7726 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7727 if test "x$LINE" != x ; then
7728 eval "DEFAULT_$LINE"
7729 else
7730 no_cache=1
7731 fi
7732
7733 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7734
e6cc62c6 7735fi;
1e6feb95
VZ
7736
7737 eval "$ac_cv_use_stattext"
7738 if test "$no_cache" != 1; then
7739 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7740 fi
7741
7742 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7743 echo "$as_me:$LINENO: result: yes" >&5
7744echo "${ECHO_T}yes" >&6
1e6feb95 7745 else
e6cc62c6
VS
7746 echo "$as_me:$LINENO: result: no" >&5
7747echo "${ECHO_T}no" >&6
1e6feb95 7748 fi
e6cc62c6 7749
1e6feb95 7750
5005acfe 7751 enablestring=
e6cc62c6
VS
7752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7753echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7754 no_cache=0
7755 # Check whether --enable-statusbar or --disable-statusbar was given.
7756if test "${enable_statusbar+set}" = set; then
7757 enableval="$enable_statusbar"
e6cc62c6 7758
10f2d63a
VZ
7759 if test "$enableval" = yes; then
7760 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7761 else
7762 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7763 fi
e6cc62c6 7764
10f2d63a 7765else
e6cc62c6 7766
10f2d63a
VZ
7767 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7768 if test "x$LINE" != x ; then
7769 eval "DEFAULT_$LINE"
7770 else
7771 no_cache=1
7772 fi
7773
7774 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7775
e6cc62c6 7776fi;
10f2d63a
VZ
7777
7778 eval "$ac_cv_use_statusbar"
7779 if test "$no_cache" != 1; then
7780 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7781 fi
7782
7783 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7784 echo "$as_me:$LINENO: result: yes" >&5
7785echo "${ECHO_T}yes" >&6
10f2d63a 7786 else
e6cc62c6
VS
7787 echo "$as_me:$LINENO: result: no" >&5
7788echo "${ECHO_T}no" >&6
10f2d63a 7789 fi
e6cc62c6 7790
10f2d63a 7791
5005acfe 7792 enablestring=
e6cc62c6
VS
7793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7794echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7795 no_cache=0
7796 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7797if test "${enable_tabdialog+set}" = set; then
7798 enableval="$enable_tabdialog"
e6cc62c6 7799
10f2d63a
VZ
7800 if test "$enableval" = yes; then
7801 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7802 else
7803 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7804 fi
e6cc62c6 7805
10f2d63a 7806else
e6cc62c6 7807
10f2d63a
VZ
7808 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7809 if test "x$LINE" != x ; then
7810 eval "DEFAULT_$LINE"
7811 else
7812 no_cache=1
7813 fi
7814
7815 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7816
e6cc62c6 7817fi;
10f2d63a
VZ
7818
7819 eval "$ac_cv_use_tabdialog"
7820 if test "$no_cache" != 1; then
7821 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7822 fi
7823
7824 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7825 echo "$as_me:$LINENO: result: yes" >&5
7826echo "${ECHO_T}yes" >&6
10f2d63a 7827 else
e6cc62c6
VS
7828 echo "$as_me:$LINENO: result: no" >&5
7829echo "${ECHO_T}no" >&6
10f2d63a 7830 fi
e6cc62c6 7831
10f2d63a 7832
5005acfe 7833 enablestring=
e6cc62c6
VS
7834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7835echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7836 no_cache=0
7837 # Check whether --enable-textctrl or --disable-textctrl was given.
7838if test "${enable_textctrl+set}" = set; then
7839 enableval="$enable_textctrl"
e6cc62c6 7840
1e6feb95
VZ
7841 if test "$enableval" = yes; then
7842 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7843 else
7844 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7845 fi
e6cc62c6 7846
1e6feb95 7847else
e6cc62c6 7848
1e6feb95
VZ
7849 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7850 if test "x$LINE" != x ; then
7851 eval "DEFAULT_$LINE"
7852 else
7853 no_cache=1
7854 fi
7855
7856 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7857
e6cc62c6 7858fi;
1e6feb95
VZ
7859
7860 eval "$ac_cv_use_textctrl"
7861 if test "$no_cache" != 1; then
7862 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7863 fi
7864
7865 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7866 echo "$as_me:$LINENO: result: yes" >&5
7867echo "${ECHO_T}yes" >&6
1e6feb95 7868 else
e6cc62c6
VS
7869 echo "$as_me:$LINENO: result: no" >&5
7870echo "${ECHO_T}no" >&6
1e6feb95 7871 fi
e6cc62c6 7872
1e6feb95 7873
5005acfe 7874 enablestring=
e6cc62c6
VS
7875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7876echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7877 no_cache=0
7878 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7879if test "${enable_togglebtn+set}" = set; then
7880 enableval="$enable_togglebtn"
e6cc62c6 7881
1db8dc4a
VZ
7882 if test "$enableval" = yes; then
7883 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7884 else
7885 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7886 fi
e6cc62c6 7887
1db8dc4a 7888else
e6cc62c6 7889
1db8dc4a
VZ
7890 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7891 if test "x$LINE" != x ; then
7892 eval "DEFAULT_$LINE"
7893 else
7894 no_cache=1
7895 fi
7896
7897 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7898
e6cc62c6 7899fi;
1db8dc4a
VZ
7900
7901 eval "$ac_cv_use_togglebtn"
7902 if test "$no_cache" != 1; then
7903 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7904 fi
7905
7906 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7907 echo "$as_me:$LINENO: result: yes" >&5
7908echo "${ECHO_T}yes" >&6
1db8dc4a 7909 else
e6cc62c6
VS
7910 echo "$as_me:$LINENO: result: no" >&5
7911echo "${ECHO_T}no" >&6
1db8dc4a 7912 fi
e6cc62c6 7913
1db8dc4a 7914
5005acfe 7915 enablestring=
e6cc62c6
VS
7916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7917echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7918 no_cache=0
7919 # Check whether --enable-toolbar or --disable-toolbar was given.
7920if test "${enable_toolbar+set}" = set; then
7921 enableval="$enable_toolbar"
e6cc62c6 7922
10f2d63a
VZ
7923 if test "$enableval" = yes; then
7924 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7925 else
7926 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7927 fi
e6cc62c6 7928
10f2d63a 7929else
e6cc62c6 7930
10f2d63a
VZ
7931 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7932 if test "x$LINE" != x ; then
7933 eval "DEFAULT_$LINE"
7934 else
7935 no_cache=1
7936 fi
7937
7938 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7939
e6cc62c6 7940fi;
10f2d63a
VZ
7941
7942 eval "$ac_cv_use_toolbar"
7943 if test "$no_cache" != 1; then
7944 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7945 fi
7946
7947 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7948 echo "$as_me:$LINENO: result: yes" >&5
7949echo "${ECHO_T}yes" >&6
10f2d63a 7950 else
e6cc62c6
VS
7951 echo "$as_me:$LINENO: result: no" >&5
7952echo "${ECHO_T}no" >&6
10f2d63a 7953 fi
e6cc62c6 7954
10f2d63a 7955
5005acfe 7956 enablestring=
e6cc62c6
VS
7957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7958echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7959 no_cache=0
7960 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7961if test "${enable_tbarnative+set}" = set; then
7962 enableval="$enable_tbarnative"
e6cc62c6 7963
360d6699
VZ
7964 if test "$enableval" = yes; then
7965 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7966 else
7967 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7968 fi
e6cc62c6 7969
360d6699 7970else
e6cc62c6 7971
360d6699
VZ
7972 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7973 if test "x$LINE" != x ; then
7974 eval "DEFAULT_$LINE"
7975 else
7976 no_cache=1
7977 fi
7978
7979 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7980
e6cc62c6 7981fi;
360d6699
VZ
7982
7983 eval "$ac_cv_use_tbarnative"
7984 if test "$no_cache" != 1; then
7985 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7986 fi
7987
7988 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7989 echo "$as_me:$LINENO: result: yes" >&5
7990echo "${ECHO_T}yes" >&6
360d6699 7991 else
e6cc62c6
VS
7992 echo "$as_me:$LINENO: result: no" >&5
7993echo "${ECHO_T}no" >&6
360d6699 7994 fi
e6cc62c6 7995
360d6699 7996
5005acfe 7997 enablestring=
e6cc62c6
VS
7998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7999echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8000 no_cache=0
8001 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8002if test "${enable_tbarsmpl+set}" = set; then
8003 enableval="$enable_tbarsmpl"
e6cc62c6 8004
360d6699
VZ
8005 if test "$enableval" = yes; then
8006 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8007 else
8008 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8009 fi
e6cc62c6 8010
360d6699 8011else
e6cc62c6 8012
360d6699
VZ
8013 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8014 if test "x$LINE" != x ; then
8015 eval "DEFAULT_$LINE"
8016 else
8017 no_cache=1
8018 fi
8019
8020 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8021
e6cc62c6 8022fi;
360d6699
VZ
8023
8024 eval "$ac_cv_use_tbarsmpl"
8025 if test "$no_cache" != 1; then
8026 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8027 fi
8028
8029 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8030 echo "$as_me:$LINENO: result: yes" >&5
8031echo "${ECHO_T}yes" >&6
360d6699 8032 else
e6cc62c6
VS
8033 echo "$as_me:$LINENO: result: no" >&5
8034echo "${ECHO_T}no" >&6
360d6699 8035 fi
e6cc62c6 8036
360d6699 8037
5005acfe 8038 enablestring=
e6cc62c6
VS
8039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8040echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8041 no_cache=0
8042 # Check whether --enable-treectrl or --disable-treectrl was given.
8043if test "${enable_treectrl+set}" = set; then
8044 enableval="$enable_treectrl"
e6cc62c6 8045
10f2d63a
VZ
8046 if test "$enableval" = yes; then
8047 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8048 else
8049 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8050 fi
e6cc62c6 8051
10f2d63a 8052else
e6cc62c6 8053
10f2d63a
VZ
8054 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8055 if test "x$LINE" != x ; then
8056 eval "DEFAULT_$LINE"
8057 else
8058 no_cache=1
8059 fi
8060
8061 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8062
e6cc62c6 8063fi;
10f2d63a 8064
1e6feb95
VZ
8065 eval "$ac_cv_use_treectrl"
8066 if test "$no_cache" != 1; then
8067 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8068 fi
8069
8070 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8071 echo "$as_me:$LINENO: result: yes" >&5
8072echo "${ECHO_T}yes" >&6
1e6feb95 8073 else
e6cc62c6
VS
8074 echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6
1e6feb95 8076 fi
e6cc62c6 8077
1e6feb95 8078
5005acfe 8079 enablestring=
e6cc62c6
VS
8080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8081echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8082 no_cache=0
8083 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8084if test "${enable_tipwindow+set}" = set; then
8085 enableval="$enable_tipwindow"
e6cc62c6 8086
9926e4a4
VZ
8087 if test "$enableval" = yes; then
8088 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8089 else
8090 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8091 fi
e6cc62c6 8092
9926e4a4 8093else
e6cc62c6 8094
9926e4a4
VZ
8095 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8096 if test "x$LINE" != x ; then
8097 eval "DEFAULT_$LINE"
8098 else
8099 no_cache=1
8100 fi
8101
8102 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8103
e6cc62c6 8104fi;
9926e4a4
VZ
8105
8106 eval "$ac_cv_use_tipwindow"
8107 if test "$no_cache" != 1; then
8108 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8109 fi
8110
8111 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8112 echo "$as_me:$LINENO: result: yes" >&5
8113echo "${ECHO_T}yes" >&6
9926e4a4 8114 else
e6cc62c6
VS
8115 echo "$as_me:$LINENO: result: no" >&5
8116echo "${ECHO_T}no" >&6
9926e4a4 8117 fi
e6cc62c6 8118
9926e4a4 8119
5005acfe 8120 enablestring=
e6cc62c6
VS
8121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8122echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8123 no_cache=0
8124 # Check whether --enable-popupwin or --disable-popupwin was given.
8125if test "${enable_popupwin+set}" = set; then
8126 enableval="$enable_popupwin"
e6cc62c6 8127
9f41d601
RR
8128 if test "$enableval" = yes; then
8129 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8130 else
8131 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8132 fi
e6cc62c6 8133
9f41d601 8134else
e6cc62c6 8135
9f41d601
RR
8136 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8137 if test "x$LINE" != x ; then
8138 eval "DEFAULT_$LINE"
8139 else
8140 no_cache=1
8141 fi
8142
8143 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8144
e6cc62c6 8145fi;
9f41d601
RR
8146
8147 eval "$ac_cv_use_popupwin"
8148 if test "$no_cache" != 1; then
8149 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8150 fi
8151
8152 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8153 echo "$as_me:$LINENO: result: yes" >&5
8154echo "${ECHO_T}yes" >&6
9f41d601 8155 else
e6cc62c6
VS
8156 echo "$as_me:$LINENO: result: no" >&5
8157echo "${ECHO_T}no" >&6
9f41d601 8158 fi
e6cc62c6 8159
52127426 8160
8284b0c5
MB
8161
8162
5005acfe 8163 enablestring=
e6cc62c6
VS
8164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8165echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8166 no_cache=0
8167 # Check whether --enable-commondlg or --disable-commondlg was given.
8168if test "${enable_commondlg+set}" = set; then
8169 enableval="$enable_commondlg"
e6cc62c6 8170
1e6feb95
VZ
8171 if test "$enableval" = yes; then
8172 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8173 else
8174 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8175 fi
e6cc62c6 8176
1e6feb95 8177else
e6cc62c6 8178
1e6feb95
VZ
8179 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8180 if test "x$LINE" != x ; then
8181 eval "DEFAULT_$LINE"
8182 else
8183 no_cache=1
8184 fi
8185
8186 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8187
e6cc62c6 8188fi;
1e6feb95
VZ
8189
8190 eval "$ac_cv_use_commondlg"
8191 if test "$no_cache" != 1; then
8192 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8193 fi
8194
8195 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8196 echo "$as_me:$LINENO: result: yes" >&5
8197echo "${ECHO_T}yes" >&6
1e6feb95 8198 else
e6cc62c6
VS
8199 echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6
1e6feb95 8201 fi
e6cc62c6 8202
1e6feb95 8203
5005acfe 8204 enablestring=
e6cc62c6
VS
8205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8206echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8207 no_cache=0
8208 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8209if test "${enable_choicedlg+set}" = set; then
8210 enableval="$enable_choicedlg"
e6cc62c6 8211
1e6feb95
VZ
8212 if test "$enableval" = yes; then
8213 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8214 else
8215 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8216 fi
e6cc62c6 8217
1e6feb95 8218else
e6cc62c6 8219
1e6feb95
VZ
8220 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8221 if test "x$LINE" != x ; then
8222 eval "DEFAULT_$LINE"
8223 else
8224 no_cache=1
8225 fi
8226
8227 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8228
e6cc62c6 8229fi;
1e6feb95
VZ
8230
8231 eval "$ac_cv_use_choicedlg"
8232 if test "$no_cache" != 1; then
8233 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8234 fi
8235
8236 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8237 echo "$as_me:$LINENO: result: yes" >&5
8238echo "${ECHO_T}yes" >&6
1e6feb95 8239 else
e6cc62c6
VS
8240 echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6
1e6feb95 8242 fi
e6cc62c6 8243
1e6feb95 8244
5005acfe 8245 enablestring=
e6cc62c6
VS
8246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8247echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8248 no_cache=0
8249 # Check whether --enable-coldlg or --disable-coldlg was given.
8250if test "${enable_coldlg+set}" = set; then
8251 enableval="$enable_coldlg"
e6cc62c6 8252
1e6feb95
VZ
8253 if test "$enableval" = yes; then
8254 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8255 else
8256 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8257 fi
e6cc62c6 8258
1e6feb95 8259else
e6cc62c6 8260
1e6feb95
VZ
8261 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8262 if test "x$LINE" != x ; then
8263 eval "DEFAULT_$LINE"
8264 else
8265 no_cache=1
8266 fi
8267
8268 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8269
e6cc62c6 8270fi;
1e6feb95
VZ
8271
8272 eval "$ac_cv_use_coldlg"
8273 if test "$no_cache" != 1; then
8274 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8275 fi
8276
8277 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8278 echo "$as_me:$LINENO: result: yes" >&5
8279echo "${ECHO_T}yes" >&6
1e6feb95 8280 else
e6cc62c6
VS
8281 echo "$as_me:$LINENO: result: no" >&5
8282echo "${ECHO_T}no" >&6
1e6feb95 8283 fi
e6cc62c6 8284
1e6feb95 8285
5005acfe 8286 enablestring=
e6cc62c6
VS
8287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8288echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8289 no_cache=0
8290 # Check whether --enable-filedlg or --disable-filedlg was given.
8291if test "${enable_filedlg+set}" = set; then
8292 enableval="$enable_filedlg"
e6cc62c6 8293
1e6feb95
VZ
8294 if test "$enableval" = yes; then
8295 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8296 else
8297 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8298 fi
e6cc62c6 8299
1e6feb95 8300else
e6cc62c6 8301
1e6feb95
VZ
8302 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8303 if test "x$LINE" != x ; then
8304 eval "DEFAULT_$LINE"
8305 else
8306 no_cache=1
8307 fi
8308
8309 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8310
e6cc62c6 8311fi;
1e6feb95
VZ
8312
8313 eval "$ac_cv_use_filedlg"
8314 if test "$no_cache" != 1; then
8315 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8316 fi
8317
8318 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8319 echo "$as_me:$LINENO: result: yes" >&5
8320echo "${ECHO_T}yes" >&6
1e6feb95 8321 else
e6cc62c6
VS
8322 echo "$as_me:$LINENO: result: no" >&5
8323echo "${ECHO_T}no" >&6
1e6feb95 8324 fi
e6cc62c6 8325
1e6feb95 8326
5005acfe 8327 enablestring=
e6cc62c6
VS
8328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8329echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8330 no_cache=0
69d27ff7
MB
8331 # Check whether --enable-finddlg or --disable-finddlg was given.
8332if test "${enable_finddlg+set}" = set; then
8333 enableval="$enable_finddlg"
e6cc62c6 8334
8db37e06 8335 if test "$enableval" = yes; then
69d27ff7 8336 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8337 else
69d27ff7 8338 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8339 fi
e6cc62c6 8340
8db37e06 8341else
e6cc62c6 8342
8db37e06
VZ
8343 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8344 if test "x$LINE" != x ; then
8345 eval "DEFAULT_$LINE"
8346 else
8347 no_cache=1
8348 fi
8349
69d27ff7 8350 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8351
e6cc62c6 8352fi;
8db37e06 8353
69d27ff7 8354 eval "$ac_cv_use_finddlg"
8db37e06 8355 if test "$no_cache" != 1; then
69d27ff7 8356 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8357 fi
8358
8359 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8360 echo "$as_me:$LINENO: result: yes" >&5
8361echo "${ECHO_T}yes" >&6
8db37e06 8362 else
e6cc62c6
VS
8363 echo "$as_me:$LINENO: result: no" >&5
8364echo "${ECHO_T}no" >&6
8db37e06 8365 fi
e6cc62c6 8366
8db37e06 8367
5005acfe 8368 enablestring=
e6cc62c6
VS
8369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8370echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8371 no_cache=0
8372 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8373if test "${enable_fontdlg+set}" = set; then
8374 enableval="$enable_fontdlg"
e6cc62c6 8375
1e6feb95
VZ
8376 if test "$enableval" = yes; then
8377 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8378 else
8379 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8380 fi
e6cc62c6 8381
1e6feb95 8382else
e6cc62c6 8383
1e6feb95
VZ
8384 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8385 if test "x$LINE" != x ; then
8386 eval "DEFAULT_$LINE"
8387 else
8388 no_cache=1
8389 fi
8390
8391 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8392
e6cc62c6 8393fi;
1e6feb95
VZ
8394
8395 eval "$ac_cv_use_fontdlg"
8396 if test "$no_cache" != 1; then
8397 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8398 fi
8399
8400 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8401 echo "$as_me:$LINENO: result: yes" >&5
8402echo "${ECHO_T}yes" >&6
1e6feb95 8403 else
e6cc62c6
VS
8404 echo "$as_me:$LINENO: result: no" >&5
8405echo "${ECHO_T}no" >&6
1e6feb95 8406 fi
e6cc62c6 8407
1e6feb95 8408
5005acfe 8409 enablestring=
e6cc62c6
VS
8410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8411echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8412 no_cache=0
8413 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8414if test "${enable_dirdlg+set}" = set; then
8415 enableval="$enable_dirdlg"
e6cc62c6 8416
1e6feb95
VZ
8417 if test "$enableval" = yes; then
8418 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8419 else
8420 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8421 fi
e6cc62c6 8422
1e6feb95 8423else
e6cc62c6 8424
1e6feb95
VZ
8425 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8426 if test "x$LINE" != x ; then
8427 eval "DEFAULT_$LINE"
8428 else
8429 no_cache=1
8430 fi
8431
8432 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8433
e6cc62c6 8434fi;
1e6feb95
VZ
8435
8436 eval "$ac_cv_use_dirdlg"
10f2d63a 8437 if test "$no_cache" != 1; then
1e6feb95 8438 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8439 fi
8440
1e6feb95 8441 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8442 echo "$as_me:$LINENO: result: yes" >&5
8443echo "${ECHO_T}yes" >&6
10f2d63a 8444 else
e6cc62c6
VS
8445 echo "$as_me:$LINENO: result: no" >&5
8446echo "${ECHO_T}no" >&6
10f2d63a 8447 fi
e6cc62c6 8448
698dcdb6 8449
5005acfe 8450 enablestring=
e6cc62c6
VS
8451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8452echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8453 no_cache=0
1e6feb95
VZ
8454 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8455if test "${enable_msgdlg+set}" = set; then
8456 enableval="$enable_msgdlg"
e6cc62c6 8457
10f2d63a 8458 if test "$enableval" = yes; then
1e6feb95 8459 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8460 else
1e6feb95 8461 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8462 fi
e6cc62c6 8463
10f2d63a 8464else
e6cc62c6 8465
1e6feb95 8466 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8467 if test "x$LINE" != x ; then
8468 eval "DEFAULT_$LINE"
8469 else
8470 no_cache=1
8471 fi
8472
1e6feb95 8473 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8474
e6cc62c6 8475fi;
10f2d63a 8476
1e6feb95 8477 eval "$ac_cv_use_msgdlg"
10f2d63a 8478 if test "$no_cache" != 1; then
1e6feb95 8479 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8480 fi
8481
1e6feb95 8482 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8483 echo "$as_me:$LINENO: result: yes" >&5
8484echo "${ECHO_T}yes" >&6
10f2d63a 8485 else
e6cc62c6
VS
8486 echo "$as_me:$LINENO: result: no" >&5
8487echo "${ECHO_T}no" >&6
10f2d63a 8488 fi
e6cc62c6 8489
10f2d63a 8490
5005acfe 8491 enablestring=
e6cc62c6
VS
8492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8493echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8494 no_cache=0
1e6feb95
VZ
8495 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8496if test "${enable_numberdlg+set}" = set; then
8497 enableval="$enable_numberdlg"
e6cc62c6 8498
10f2d63a 8499 if test "$enableval" = yes; then
1e6feb95 8500 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8501 else
1e6feb95 8502 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8503 fi
e6cc62c6 8504
10f2d63a 8505else
e6cc62c6 8506
1e6feb95 8507 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8508 if test "x$LINE" != x ; then
8509 eval "DEFAULT_$LINE"
8510 else
8511 no_cache=1
8512 fi
8513
1e6feb95 8514 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8515
e6cc62c6 8516fi;
10f2d63a 8517
1e6feb95 8518 eval "$ac_cv_use_numberdlg"
10f2d63a 8519 if test "$no_cache" != 1; then
1e6feb95 8520 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8521 fi
8522
1e6feb95 8523 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8524 echo "$as_me:$LINENO: result: yes" >&5
8525echo "${ECHO_T}yes" >&6
10f2d63a 8526 else
e6cc62c6
VS
8527 echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6
10f2d63a 8529 fi
e6cc62c6 8530
10f2d63a 8531
5005acfe 8532 enablestring=
e6cc62c6
VS
8533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8534echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8535 no_cache=0
8536 # Check whether --enable-splash or --disable-splash was given.
8537if test "${enable_splash+set}" = set; then
8538 enableval="$enable_splash"
e6cc62c6 8539
cbca9943
VZ
8540 if test "$enableval" = yes; then
8541 ac_cv_use_splash='wxUSE_SPLASH=yes'
8542 else
8543 ac_cv_use_splash='wxUSE_SPLASH=no'
8544 fi
e6cc62c6 8545
cbca9943 8546else
e6cc62c6 8547
cbca9943
VZ
8548 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8549 if test "x$LINE" != x ; then
8550 eval "DEFAULT_$LINE"
8551 else
8552 no_cache=1
8553 fi
8554
8555 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8556
e6cc62c6 8557fi;
cbca9943
VZ
8558
8559 eval "$ac_cv_use_splash"
8560 if test "$no_cache" != 1; then
8561 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8562 fi
8563
8564 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8565 echo "$as_me:$LINENO: result: yes" >&5
8566echo "${ECHO_T}yes" >&6
cbca9943 8567 else
e6cc62c6
VS
8568 echo "$as_me:$LINENO: result: no" >&5
8569echo "${ECHO_T}no" >&6
cbca9943 8570 fi
e6cc62c6 8571
cbca9943 8572
5005acfe 8573 enablestring=
e6cc62c6
VS
8574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8575echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8576 no_cache=0
8577 # Check whether --enable-textdlg or --disable-textdlg was given.
8578if test "${enable_textdlg+set}" = set; then
8579 enableval="$enable_textdlg"
e6cc62c6 8580
10f2d63a
VZ
8581 if test "$enableval" = yes; then
8582 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8583 else
8584 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8585 fi
e6cc62c6 8586
10f2d63a 8587else
e6cc62c6 8588
10f2d63a
VZ
8589 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8590 if test "x$LINE" != x ; then
8591 eval "DEFAULT_$LINE"
8592 else
8593 no_cache=1
8594 fi
8595
8596 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8597
e6cc62c6 8598fi;
10f2d63a
VZ
8599
8600 eval "$ac_cv_use_textdlg"
8601 if test "$no_cache" != 1; then
8602 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8603 fi
8604
8605 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8606 echo "$as_me:$LINENO: result: yes" >&5
8607echo "${ECHO_T}yes" >&6
10f2d63a 8608 else
e6cc62c6
VS
8609 echo "$as_me:$LINENO: result: no" >&5
8610echo "${ECHO_T}no" >&6
10f2d63a 8611 fi
e6cc62c6 8612
10f2d63a 8613
5005acfe 8614 enablestring=
e6cc62c6
VS
8615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8616echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8617 no_cache=0
8618 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8619if test "${enable_tipdlg+set}" = set; then
8620 enableval="$enable_tipdlg"
e6cc62c6 8621
10f2d63a
VZ
8622 if test "$enableval" = yes; then
8623 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8624 else
8625 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8626 fi
e6cc62c6 8627
10f2d63a 8628else
e6cc62c6 8629
10f2d63a
VZ
8630 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8631 if test "x$LINE" != x ; then
8632 eval "DEFAULT_$LINE"
8633 else
8634 no_cache=1
8635 fi
8636
8637 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8638
e6cc62c6 8639fi;
10f2d63a
VZ
8640
8641 eval "$ac_cv_use_tipdlg"
8642 if test "$no_cache" != 1; then
8643 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8644 fi
8645
8646 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8647 echo "$as_me:$LINENO: result: yes" >&5
8648echo "${ECHO_T}yes" >&6
10f2d63a 8649 else
e6cc62c6
VS
8650 echo "$as_me:$LINENO: result: no" >&5
8651echo "${ECHO_T}no" >&6
10f2d63a 8652 fi
e6cc62c6 8653
10f2d63a 8654
5005acfe 8655 enablestring=
e6cc62c6
VS
8656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8657echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8658 no_cache=0
8659 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8660if test "${enable_progressdlg+set}" = set; then
8661 enableval="$enable_progressdlg"
e6cc62c6 8662
10f2d63a
VZ
8663 if test "$enableval" = yes; then
8664 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8665 else
8666 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8667 fi
e6cc62c6 8668
10f2d63a 8669else
e6cc62c6 8670
10f2d63a
VZ
8671 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8672 if test "x$LINE" != x ; then
8673 eval "DEFAULT_$LINE"
8674 else
8675 no_cache=1
8676 fi
8677
8678 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8679
e6cc62c6 8680fi;
10f2d63a
VZ
8681
8682 eval "$ac_cv_use_progressdlg"
8683 if test "$no_cache" != 1; then
8684 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8685 fi
8686
8687 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8688 echo "$as_me:$LINENO: result: yes" >&5
8689echo "${ECHO_T}yes" >&6
10f2d63a 8690 else
e6cc62c6
VS
8691 echo "$as_me:$LINENO: result: no" >&5
8692echo "${ECHO_T}no" >&6
10f2d63a 8693 fi
e6cc62c6 8694
10f2d63a 8695
5005acfe 8696 enablestring=
e6cc62c6
VS
8697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8698echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8699 no_cache=0
8700 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8701if test "${enable_wizarddlg+set}" = set; then
8702 enableval="$enable_wizarddlg"
e6cc62c6 8703
b1f5d087
VZ
8704 if test "$enableval" = yes; then
8705 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8706 else
8707 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8708 fi
e6cc62c6 8709
b1f5d087 8710else
e6cc62c6 8711
b1f5d087
VZ
8712 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8713 if test "x$LINE" != x ; then
8714 eval "DEFAULT_$LINE"
8715 else
8716 no_cache=1
8717 fi
8718
8719 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8720
e6cc62c6 8721fi;
b1f5d087
VZ
8722
8723 eval "$ac_cv_use_wizarddlg"
8724 if test "$no_cache" != 1; then
8725 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8726 fi
8727
8728 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8729 echo "$as_me:$LINENO: result: yes" >&5
8730echo "${ECHO_T}yes" >&6
b1f5d087 8731 else
e6cc62c6
VS
8732 echo "$as_me:$LINENO: result: no" >&5
8733echo "${ECHO_T}no" >&6
b1f5d087 8734 fi
e6cc62c6 8735
8284b0c5
MB
8736
8737
52127426 8738
5005acfe 8739 enablestring=
e6cc62c6
VS
8740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8741echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8742 no_cache=0
8743 # Check whether --enable-menus or --disable-menus was given.
8744if test "${enable_menus+set}" = set; then
8745 enableval="$enable_menus"
e6cc62c6 8746
1e6feb95
VZ
8747 if test "$enableval" = yes; then
8748 ac_cv_use_menus='wxUSE_MENUS=yes'
8749 else
8750 ac_cv_use_menus='wxUSE_MENUS=no'
8751 fi
e6cc62c6 8752
1e6feb95 8753else
e6cc62c6 8754
1e6feb95
VZ
8755 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8756 if test "x$LINE" != x ; then
8757 eval "DEFAULT_$LINE"
8758 else
8759 no_cache=1
8760 fi
8761
8762 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8763
e6cc62c6 8764fi;
1e6feb95
VZ
8765
8766 eval "$ac_cv_use_menus"
8767 if test "$no_cache" != 1; then
8768 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8769 fi
8770
8771 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8772 echo "$as_me:$LINENO: result: yes" >&5
8773echo "${ECHO_T}yes" >&6
1e6feb95 8774 else
e6cc62c6
VS
8775 echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
1e6feb95 8777 fi
e6cc62c6 8778
1e6feb95 8779
5005acfe 8780 enablestring=
e6cc62c6
VS
8781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8782echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8783 no_cache=0
8784 # Check whether --enable-miniframe or --disable-miniframe was given.
8785if test "${enable_miniframe+set}" = set; then
8786 enableval="$enable_miniframe"
e6cc62c6 8787
10f2d63a
VZ
8788 if test "$enableval" = yes; then
8789 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8790 else
8791 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8792 fi
e6cc62c6 8793
10f2d63a 8794else
e6cc62c6 8795
10f2d63a
VZ
8796 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8797 if test "x$LINE" != x ; then
8798 eval "DEFAULT_$LINE"
8799 else
8800 no_cache=1
8801 fi
8802
8803 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8804
e6cc62c6 8805fi;
10f2d63a
VZ
8806
8807 eval "$ac_cv_use_miniframe"
8808 if test "$no_cache" != 1; then
8809 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8810 fi
8811
8812 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8813 echo "$as_me:$LINENO: result: yes" >&5
8814echo "${ECHO_T}yes" >&6
10f2d63a 8815 else
e6cc62c6
VS
8816 echo "$as_me:$LINENO: result: no" >&5
8817echo "${ECHO_T}no" >&6
10f2d63a 8818 fi
e6cc62c6 8819
10f2d63a 8820
5005acfe 8821 enablestring=
e6cc62c6
VS
8822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8823echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8824 no_cache=0
8825 # Check whether --enable-tooltips or --disable-tooltips was given.
8826if test "${enable_tooltips+set}" = set; then
8827 enableval="$enable_tooltips"
e6cc62c6 8828
10f2d63a
VZ
8829 if test "$enableval" = yes; then
8830 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8831 else
8832 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8833 fi
e6cc62c6 8834
10f2d63a 8835else
e6cc62c6 8836
10f2d63a
VZ
8837 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8838 if test "x$LINE" != x ; then
8839 eval "DEFAULT_$LINE"
8840 else
8841 no_cache=1
8842 fi
8843
8844 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8845
e6cc62c6 8846fi;
10f2d63a
VZ
8847
8848 eval "$ac_cv_use_tooltips"
8849 if test "$no_cache" != 1; then
8850 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8851 fi
8852
8853 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8854 echo "$as_me:$LINENO: result: yes" >&5
8855echo "${ECHO_T}yes" >&6
10f2d63a 8856 else
e6cc62c6
VS
8857 echo "$as_me:$LINENO: result: no" >&5
8858echo "${ECHO_T}no" >&6
10f2d63a 8859 fi
e6cc62c6 8860
10f2d63a 8861
5005acfe 8862 enablestring=
e6cc62c6
VS
8863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8864echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8865 no_cache=0
8866 # Check whether --enable-splines or --disable-splines was given.
8867if test "${enable_splines+set}" = set; then
8868 enableval="$enable_splines"
e6cc62c6 8869
10f2d63a
VZ
8870 if test "$enableval" = yes; then
8871 ac_cv_use_splines='wxUSE_SPLINES=yes'
8872 else
8873 ac_cv_use_splines='wxUSE_SPLINES=no'
8874 fi
e6cc62c6 8875
10f2d63a 8876else
e6cc62c6 8877
10f2d63a
VZ
8878 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8879 if test "x$LINE" != x ; then
8880 eval "DEFAULT_$LINE"
8881 else
8882 no_cache=1
8883 fi
8884
8885 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8886
e6cc62c6 8887fi;
10f2d63a
VZ
8888
8889 eval "$ac_cv_use_splines"
8890 if test "$no_cache" != 1; then
8891 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8892 fi
8893
8894 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8895 echo "$as_me:$LINENO: result: yes" >&5
8896echo "${ECHO_T}yes" >&6
10f2d63a 8897 else
e6cc62c6
VS
8898 echo "$as_me:$LINENO: result: no" >&5
8899echo "${ECHO_T}no" >&6
10f2d63a 8900 fi
e6cc62c6 8901
10f2d63a 8902
5005acfe 8903 enablestring=
e6cc62c6
VS
8904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8905echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8906 no_cache=0
8907 # Check whether --enable-validators or --disable-validators was given.
8908if test "${enable_validators+set}" = set; then
8909 enableval="$enable_validators"
e6cc62c6 8910
10f2d63a
VZ
8911 if test "$enableval" = yes; then
8912 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8913 else
8914 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8915 fi
e6cc62c6 8916
10f2d63a 8917else
e6cc62c6 8918
10f2d63a
VZ
8919 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8920 if test "x$LINE" != x ; then
8921 eval "DEFAULT_$LINE"
8922 else
8923 no_cache=1
8924 fi
8925
8926 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8927
e6cc62c6 8928fi;
10f2d63a
VZ
8929
8930 eval "$ac_cv_use_validators"
8931 if test "$no_cache" != 1; then
8932 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8933 fi
8934
8935 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8936 echo "$as_me:$LINENO: result: yes" >&5
8937echo "${ECHO_T}yes" >&6
10f2d63a 8938 else
e6cc62c6
VS
8939 echo "$as_me:$LINENO: result: no" >&5
8940echo "${ECHO_T}no" >&6
10f2d63a 8941 fi
e6cc62c6 8942
10f2d63a 8943
5005acfe 8944 enablestring=
e6cc62c6
VS
8945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8946echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8947 no_cache=0
8948 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8949if test "${enable_busyinfo+set}" = set; then
8950 enableval="$enable_busyinfo"
e6cc62c6 8951
10f2d63a
VZ
8952 if test "$enableval" = yes; then
8953 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8954 else
8955 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8956 fi
e6cc62c6 8957
10f2d63a 8958else
e6cc62c6 8959
10f2d63a
VZ
8960 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8961 if test "x$LINE" != x ; then
8962 eval "DEFAULT_$LINE"
8963 else
8964 no_cache=1
8965 fi
8966
8967 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8968
e6cc62c6 8969fi;
10f2d63a
VZ
8970
8971 eval "$ac_cv_use_busyinfo"
8972 if test "$no_cache" != 1; then
8973 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8974 fi
8975
8976 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8977 echo "$as_me:$LINENO: result: yes" >&5
8978echo "${ECHO_T}yes" >&6
10f2d63a 8979 else
e6cc62c6
VS
8980 echo "$as_me:$LINENO: result: no" >&5
8981echo "${ECHO_T}no" >&6
10f2d63a 8982 fi
e6cc62c6 8983
10f2d63a 8984
5005acfe 8985 enablestring=
e6cc62c6
VS
8986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8987echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8988 no_cache=0
8989 # Check whether --enable-joystick or --disable-joystick was given.
8990if test "${enable_joystick+set}" = set; then
8991 enableval="$enable_joystick"
e6cc62c6 8992
f6bcfd97
BP
8993 if test "$enableval" = yes; then
8994 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8995 else
8996 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8997 fi
e6cc62c6 8998
f6bcfd97 8999else
e6cc62c6 9000
f6bcfd97
BP
9001 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9002 if test "x$LINE" != x ; then
9003 eval "DEFAULT_$LINE"
9004 else
9005 no_cache=1
9006 fi
9007
9008 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9009
e6cc62c6 9010fi;
f6bcfd97
BP
9011
9012 eval "$ac_cv_use_joystick"
9013 if test "$no_cache" != 1; then
9014 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9015 fi
9016
9017 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9018 echo "$as_me:$LINENO: result: yes" >&5
9019echo "${ECHO_T}yes" >&6
f6bcfd97 9020 else
e6cc62c6
VS
9021 echo "$as_me:$LINENO: result: no" >&5
9022echo "${ECHO_T}no" >&6
f6bcfd97 9023 fi
e6cc62c6 9024
698dcdb6 9025
5005acfe 9026 enablestring=
e6cc62c6
VS
9027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9028echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9029 no_cache=0
9030 # Check whether --enable-metafile or --disable-metafile was given.
9031if test "${enable_metafile+set}" = set; then
9032 enableval="$enable_metafile"
e6cc62c6 9033
1e6feb95
VZ
9034 if test "$enableval" = yes; then
9035 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9036 else
9037 ac_cv_use_metafile='wxUSE_METAFILE=no'
9038 fi
e6cc62c6 9039
1e6feb95 9040else
e6cc62c6 9041
1e6feb95
VZ
9042 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9043 if test "x$LINE" != x ; then
9044 eval "DEFAULT_$LINE"
9045 else
9046 no_cache=1
9047 fi
9048
9049 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9050
e6cc62c6 9051fi;
1e6feb95
VZ
9052
9053 eval "$ac_cv_use_metafile"
9054 if test "$no_cache" != 1; then
9055 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9056 fi
9057
9058 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9059 echo "$as_me:$LINENO: result: yes" >&5
9060echo "${ECHO_T}yes" >&6
1e6feb95 9061 else
e6cc62c6
VS
9062 echo "$as_me:$LINENO: result: no" >&5
9063echo "${ECHO_T}no" >&6
1e6feb95 9064 fi
e6cc62c6 9065
1e6feb95 9066
5005acfe 9067 enablestring=
e6cc62c6
VS
9068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9069echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9070 no_cache=0
9071 # Check whether --enable-dragimage or --disable-dragimage was given.
9072if test "${enable_dragimage+set}" = set; then
9073 enableval="$enable_dragimage"
e6cc62c6 9074
24fd6d87
VZ
9075 if test "$enableval" = yes; then
9076 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9077 else
9078 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9079 fi
e6cc62c6 9080
24fd6d87 9081else
e6cc62c6 9082
24fd6d87
VZ
9083 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9084 if test "x$LINE" != x ; then
9085 eval "DEFAULT_$LINE"
9086 else
9087 no_cache=1
9088 fi
9089
9090 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9091
e6cc62c6 9092fi;
24fd6d87
VZ
9093
9094 eval "$ac_cv_use_dragimage"
9095 if test "$no_cache" != 1; then
9096 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9097 fi
9098
9099 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9100 echo "$as_me:$LINENO: result: yes" >&5
9101echo "${ECHO_T}yes" >&6
24fd6d87 9102 else
e6cc62c6
VS
9103 echo "$as_me:$LINENO: result: no" >&5
9104echo "${ECHO_T}no" >&6
24fd6d87 9105 fi
e6cc62c6 9106
52127426 9107
7bb2947d 9108 enablestring=
e6cc62c6
VS
9109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9110echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9111 no_cache=0
9112 # Check whether --enable-accessibility or --disable-accessibility was given.
9113if test "${enable_accessibility+set}" = set; then
9114 enableval="$enable_accessibility"
e6cc62c6 9115
7bb2947d
MB
9116 if test "$enableval" = yes; then
9117 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9118 else
9119 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9120 fi
e6cc62c6 9121
7bb2947d 9122else
e6cc62c6 9123
7bb2947d
MB
9124 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9125 if test "x$LINE" != x ; then
9126 eval "DEFAULT_$LINE"
9127 else
9128 no_cache=1
9129 fi
9130
9131 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9132
e6cc62c6 9133fi;
7bb2947d
MB
9134
9135 eval "$ac_cv_use_accessibility"
9136 if test "$no_cache" != 1; then
9137 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9138 fi
9139
9140 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9141 echo "$as_me:$LINENO: result: yes" >&5
9142echo "${ECHO_T}yes" >&6
7bb2947d 9143 else
e6cc62c6
VS
9144 echo "$as_me:$LINENO: result: no" >&5
9145echo "${ECHO_T}no" >&6
7bb2947d 9146 fi
e6cc62c6 9147
7bb2947d 9148
8284b0c5
MB
9149
9150
5005acfe 9151 enablestring=
e6cc62c6
VS
9152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9153echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9154 no_cache=0
9155 # Check whether --enable-palette or --disable-palette was given.
9156if test "${enable_palette+set}" = set; then
9157 enableval="$enable_palette"
e6cc62c6 9158
edae8572
VZ
9159 if test "$enableval" = yes; then
9160 ac_cv_use_palette='wxUSE_PALETTE=yes'
9161 else
9162 ac_cv_use_palette='wxUSE_PALETTE=no'
9163 fi
e6cc62c6 9164
edae8572 9165else
e6cc62c6 9166
edae8572
VZ
9167 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9168 if test "x$LINE" != x ; then
9169 eval "DEFAULT_$LINE"
9170 else
9171 no_cache=1
9172 fi
9173
9174 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9175
e6cc62c6 9176fi;
edae8572
VZ
9177
9178 eval "$ac_cv_use_palette"
9179 if test "$no_cache" != 1; then
9180 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9181 fi
9182
9183 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9184 echo "$as_me:$LINENO: result: yes" >&5
9185echo "${ECHO_T}yes" >&6
edae8572 9186 else
e6cc62c6
VS
9187 echo "$as_me:$LINENO: result: no" >&5
9188echo "${ECHO_T}no" >&6
edae8572 9189 fi
e6cc62c6 9190
edae8572 9191
5005acfe 9192 enablestring=
e6cc62c6
VS
9193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9194echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9195 no_cache=0
9196 # Check whether --enable-image or --disable-image was given.
9197if test "${enable_image+set}" = set; then
9198 enableval="$enable_image"
e6cc62c6 9199
0046ff7c
VS
9200 if test "$enableval" = yes; then
9201 ac_cv_use_image='wxUSE_IMAGE=yes'
9202 else
9203 ac_cv_use_image='wxUSE_IMAGE=no'
9204 fi
e6cc62c6 9205
0046ff7c 9206else
e6cc62c6 9207
0046ff7c
VS
9208 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9209 if test "x$LINE" != x ; then
9210 eval "DEFAULT_$LINE"
9211 else
9212 no_cache=1
9213 fi
9214
9215 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9216
e6cc62c6 9217fi;
0046ff7c
VS
9218
9219 eval "$ac_cv_use_image"
9220 if test "$no_cache" != 1; then
9221 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9222 fi
9223
9224 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9225 echo "$as_me:$LINENO: result: yes" >&5
9226echo "${ECHO_T}yes" >&6
0046ff7c 9227 else
e6cc62c6
VS
9228 echo "$as_me:$LINENO: result: no" >&5
9229echo "${ECHO_T}no" >&6
0046ff7c 9230 fi
e6cc62c6 9231
0046ff7c 9232
5005acfe 9233 enablestring=
e6cc62c6
VS
9234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9235echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9236 no_cache=0
9237 # Check whether --enable-gif or --disable-gif was given.
9238if test "${enable_gif+set}" = set; then
9239 enableval="$enable_gif"
e6cc62c6 9240
10f2d63a
VZ
9241 if test "$enableval" = yes; then
9242 ac_cv_use_gif='wxUSE_GIF=yes'
9243 else
9244 ac_cv_use_gif='wxUSE_GIF=no'
9245 fi
e6cc62c6 9246
10f2d63a 9247else
e6cc62c6 9248
10f2d63a
VZ
9249 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9250 if test "x$LINE" != x ; then
9251 eval "DEFAULT_$LINE"
9252 else
9253 no_cache=1
9254 fi
9255
9256 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9257
e6cc62c6 9258fi;
10f2d63a
VZ
9259
9260 eval "$ac_cv_use_gif"
9261 if test "$no_cache" != 1; then
9262 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9263 fi
9264
9265 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9266 echo "$as_me:$LINENO: result: yes" >&5
9267echo "${ECHO_T}yes" >&6
10f2d63a 9268 else
e6cc62c6
VS
9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
10f2d63a 9271 fi
e6cc62c6 9272
10f2d63a 9273
5005acfe 9274 enablestring=
e6cc62c6
VS
9275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9276echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9277 no_cache=0
9278 # Check whether --enable-pcx or --disable-pcx was given.
9279if test "${enable_pcx+set}" = set; then
9280 enableval="$enable_pcx"
e6cc62c6 9281
10f2d63a
VZ
9282 if test "$enableval" = yes; then
9283 ac_cv_use_pcx='wxUSE_PCX=yes'
9284 else
9285 ac_cv_use_pcx='wxUSE_PCX=no'
9286 fi
e6cc62c6 9287
10f2d63a 9288else
e6cc62c6 9289
10f2d63a
VZ
9290 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9291 if test "x$LINE" != x ; then
9292 eval "DEFAULT_$LINE"
9293 else
9294 no_cache=1
9295 fi
9296
9297 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9298
e6cc62c6 9299fi;
10f2d63a
VZ
9300
9301 eval "$ac_cv_use_pcx"
9302 if test "$no_cache" != 1; then
9303 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9304 fi
9305
9306 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9307 echo "$as_me:$LINENO: result: yes" >&5
9308echo "${ECHO_T}yes" >&6
10f2d63a 9309 else
e6cc62c6
VS
9310 echo "$as_me:$LINENO: result: no" >&5
9311echo "${ECHO_T}no" >&6
10f2d63a 9312 fi
e6cc62c6 9313
10f2d63a 9314
5005acfe 9315 enablestring=
e6cc62c6
VS
9316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9317echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9318 no_cache=0
9319 # Check whether --enable-iff or --disable-iff was given.
9320if test "${enable_iff+set}" = set; then
9321 enableval="$enable_iff"
e6cc62c6 9322
4b6b4dfc
RR
9323 if test "$enableval" = yes; then
9324 ac_cv_use_iff='wxUSE_IFF=yes'
9325 else
9326 ac_cv_use_iff='wxUSE_IFF=no'
9327 fi
e6cc62c6 9328
4b6b4dfc 9329else
e6cc62c6 9330
4b6b4dfc
RR
9331 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9332 if test "x$LINE" != x ; then
9333 eval "DEFAULT_$LINE"
9334 else
9335 no_cache=1
9336 fi
9337
9338 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9339
e6cc62c6 9340fi;
4b6b4dfc
RR
9341
9342 eval "$ac_cv_use_iff"
9343 if test "$no_cache" != 1; then
9344 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9345 fi
9346
9347 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9348 echo "$as_me:$LINENO: result: yes" >&5
9349echo "${ECHO_T}yes" >&6
4b6b4dfc 9350 else
e6cc62c6
VS
9351 echo "$as_me:$LINENO: result: no" >&5
9352echo "${ECHO_T}no" >&6
4b6b4dfc 9353 fi
e6cc62c6 9354
4b6b4dfc 9355
5005acfe 9356 enablestring=
e6cc62c6
VS
9357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9358echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9359 no_cache=0
9360 # Check whether --enable-pnm or --disable-pnm was given.
9361if test "${enable_pnm+set}" = set; then
9362 enableval="$enable_pnm"
e6cc62c6 9363
10f2d63a
VZ
9364 if test "$enableval" = yes; then
9365 ac_cv_use_pnm='wxUSE_PNM=yes'
9366 else
9367 ac_cv_use_pnm='wxUSE_PNM=no'
9368 fi
e6cc62c6 9369
10f2d63a 9370else
e6cc62c6 9371
10f2d63a
VZ
9372 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9373 if test "x$LINE" != x ; then
9374 eval "DEFAULT_$LINE"
9375 else
9376 no_cache=1
9377 fi
9378
9379 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9380
e6cc62c6 9381fi;
10f2d63a
VZ
9382
9383 eval "$ac_cv_use_pnm"
9384 if test "$no_cache" != 1; then
9385 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9386 fi
9387
9388 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9389 echo "$as_me:$LINENO: result: yes" >&5
9390echo "${ECHO_T}yes" >&6
10f2d63a 9391 else
e6cc62c6
VS
9392 echo "$as_me:$LINENO: result: no" >&5
9393echo "${ECHO_T}no" >&6
10f2d63a 9394 fi
e6cc62c6 9395
10f2d63a 9396
5005acfe 9397 enablestring=
e6cc62c6
VS
9398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9399echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9400 no_cache=0
69d27ff7
MB
9401 # Check whether --enable-xpm or --disable-xpm was given.
9402if test "${enable_xpm+set}" = set; then
9403 enableval="$enable_xpm"
e6cc62c6 9404
0046ff7c 9405 if test "$enableval" = yes; then
69d27ff7 9406 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9407 else
69d27ff7 9408 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9409 fi
e6cc62c6 9410
0046ff7c 9411else
e6cc62c6 9412
0046ff7c
VS
9413 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9414 if test "x$LINE" != x ; then
9415 eval "DEFAULT_$LINE"
9416 else
9417 no_cache=1
9418 fi
9419
69d27ff7 9420 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9421
e6cc62c6 9422fi;
0046ff7c 9423
69d27ff7 9424 eval "$ac_cv_use_xpm"
0046ff7c 9425 if test "$no_cache" != 1; then
69d27ff7 9426 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9427 fi
9428
9429 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9430 echo "$as_me:$LINENO: result: yes" >&5
9431echo "${ECHO_T}yes" >&6
0046ff7c 9432 else
e6cc62c6
VS
9433 echo "$as_me:$LINENO: result: no" >&5
9434echo "${ECHO_T}no" >&6
0046ff7c 9435 fi
e6cc62c6 9436
0046ff7c 9437
5005acfe 9438 enablestring=
e6cc62c6
VS
9439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9440echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9441 no_cache=0
c7206e64
VS
9442 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9443if test "${enable_ico_cur+set}" = set; then
9444 enableval="$enable_ico_cur"
e6cc62c6 9445
658974ae 9446 if test "$enableval" = yes; then
c7206e64 9447 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9448 else
c7206e64 9449 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9450 fi
e6cc62c6 9451
658974ae 9452else
e6cc62c6 9453
658974ae
VS
9454 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9455 if test "x$LINE" != x ; then
9456 eval "DEFAULT_$LINE"
9457 else
9458 no_cache=1
9459 fi
9460
c7206e64 9461 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9462
e6cc62c6 9463fi;
658974ae 9464
c7206e64 9465 eval "$ac_cv_use_ico_cur"
658974ae 9466 if test "$no_cache" != 1; then
c7206e64 9467 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9468 fi
9469
9470 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9471 echo "$as_me:$LINENO: result: yes" >&5
9472echo "${ECHO_T}yes" >&6
658974ae 9473 else
e6cc62c6
VS
9474 echo "$as_me:$LINENO: result: no" >&5
9475echo "${ECHO_T}no" >&6
658974ae 9476 fi
e6cc62c6 9477
658974ae 9478
b12915c1
VZ
9479fi
9480
029b47ad
VS
9481
9482
9483 enablestring=
9484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9485echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9486 no_cache=0
9487 # Check whether --enable-official_build or --disable-official_build was given.
9488if test "${enable_official_build+set}" = set; then
9489 enableval="$enable_official_build"
9490
9491 if test "$enableval" = yes; then
9492 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9493 else
9494 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9495 fi
9496
9497else
9498
9499 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9500 if test "x$LINE" != x ; then
9501 eval "DEFAULT_$LINE"
9502 else
9503 no_cache=1
9504 fi
9505
9506 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9507
9508fi;
9509
9510 eval "$ac_cv_use_official_build"
9511 if test "$no_cache" != 1; then
9512 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9513 fi
9514
9515 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9516 echo "$as_me:$LINENO: result: yes" >&5
9517echo "${ECHO_T}yes" >&6
9518 else
9519 echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6
9521 fi
9522
9523# Check whether --enable-vendor or --disable-vendor was given.
9524if test "${enable_vendor+set}" = set; then
9525 enableval="$enable_vendor"
9526 VENDOR="$enableval"
9527fi;
9528if test "x$VENDOR" = "x"; then
9529 VENDOR="custom"
9530fi
9531
d558c907
VS
9532case "${host}" in
9533 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9534 PATH_IFS=';'
d558c907
VS
9535 ;;
9536 *)
9537 PATH_IFS=':'
d558c907
VS
9538 ;;
9539esac
9540
8284b0c5
MB
9541
9542
10f2d63a
VZ
9543 echo "saving argument cache $wx_arg_cache_file"
9544 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9545
8284b0c5 9546
e6cc62c6
VS
9547
9548echo "$as_me:$LINENO: checking for toolkit" >&5
9549echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9550
9551# In Wine, we need to default to MSW, not GTK or MOTIF
9552if test "$wxUSE_WINE" = "yes"; then
9553 DEFAULT_DEFAULT_wxUSE_GTK=0
9554 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9555 DEFAULT_DEFAULT_wxUSE_MSW=1
9556fi
10f2d63a
VZ
9557
9558if test "$wxUSE_GUI" = "yes"; then
9559
3a922bb4 9560 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9561 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9562echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9563 { (exit 1); exit 1; }; }
3a922bb4 9564 fi
b12915c1 9565
3a922bb4
RL
9566 if test "$TOOLKIT_GIVEN" = 1; then
9567 for toolkit in `echo $ALL_TOOLKITS`; do
9568 var=wxUSE_$toolkit
9569 eval "value=\$${var}"
9570 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9571 done
10f2d63a 9572 else
3a922bb4
RL
9573 for toolkit in `echo $ALL_TOOLKITS`; do
9574 if test "$has_toolkit_in_cache" != 1; then
9575 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9576 else
9577 var=DEFAULT_wxUSE_$toolkit
9578 fi
9579 eval "wxUSE_$toolkit=\$${var}"
9580 done
10f2d63a 9581 fi
10f2d63a 9582
ac0c4cc3
DE
9583 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9584 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9585 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9586
d558c907 9587 case "${host}" in
6fa882bd 9588 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9589 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9590 esac
10f2d63a 9591
3a922bb4
RL
9592 case "$NUM_TOOLKITS" in
9593 1)
9594 ;;
9595 0)
e6cc62c6
VS
9596 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9597echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9598 { (exit 1); exit 1; }; }
3a922bb4
RL
9599 ;;
9600 *)
e6cc62c6
VS
9601 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9602echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9603 { (exit 1); exit 1; }; }
3a922bb4 9604 esac
10f2d63a 9605
3a922bb4
RL
9606 for toolkit in `echo $ALL_TOOLKITS`; do
9607 var=wxUSE_$toolkit
9608 eval "value=\$${var}"
9609 if test "x$value" != x; then
9610 cache_var=CACHE_$toolkit
9611 eval "cache=\$${cache_var}"
9612 if test "$cache" = 1; then
9613 echo "$var=$value" >> ${wx_arg_cache_file}
9614 fi
9615 if test "$value" = 1; then
9616 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9617 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9618echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9619 fi
9620 fi
9621 done
10f2d63a 9622else
9de9b8f0
VZ
9623 if test "x$host_alias" != "x"; then
9624 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9625echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9626 else
9627 echo "$as_me:$LINENO: result: base only" >&5
9628echo "${ECHO_T}base only" >&6
9629 fi
10f2d63a
VZ
9630fi
9631
43d99b6d
VS
9632wants_win32=0
9633doesnt_want_win32=0
17234b26
MB
9634case "${host}" in
9635 *-*-cygwin*)
9636 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9637 wants_win32=1
9638 else
9639 doesnt_want_win32=1
17234b26
MB
9640 fi
9641 ;;
9642 *-*-mingw*)
43d99b6d 9643 wants_win32=1
17234b26
MB
9644 ;;
9645esac
9646
89e6bf6d
VZ
9647if test "$wxUSE_WINE" = "yes"; then
9648 wants_win32=1
9649 CC=winegcc
9650 CXX=wineg++
9651 RESCOMP=wrc
9652fi
9653
43d99b6d 9654if test "$wants_win32" = 1 ; then
17234b26
MB
9655 USE_UNIX=0
9656 USE_WIN32=1
e6cc62c6 9657 cat >>confdefs.h <<\_ACEOF
17234b26 9658#define __WIN32__ 1
e6cc62c6 9659_ACEOF
17234b26 9660
e6cc62c6 9661 cat >>confdefs.h <<\_ACEOF
17234b26 9662#define __WIN95__ 1
e6cc62c6 9663_ACEOF
17234b26 9664
e6cc62c6 9665 cat >>confdefs.h <<\_ACEOF
17234b26 9666#define __WINDOWS__ 1
e6cc62c6 9667_ACEOF
17234b26 9668
e6cc62c6 9669 cat >>confdefs.h <<\_ACEOF
17234b26 9670#define __GNUWIN32__ 1
e6cc62c6 9671_ACEOF
17234b26 9672
e6cc62c6 9673 cat >>confdefs.h <<\_ACEOF
17234b26 9674#define STRICT 1
e6cc62c6 9675_ACEOF
17234b26 9676
e6cc62c6 9677 cat >>confdefs.h <<\_ACEOF
17234b26 9678#define WINVER 0x0400
e6cc62c6 9679_ACEOF
17234b26 9680
43d99b6d
VS
9681fi
9682if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9683 USE_UNIX=1
9684 USE_WIN32=0
9685fi
9686
9687if test "$USE_UNIX" = 1 ; then
9688 wxUSE_UNIX=yes
e6cc62c6 9689 cat >>confdefs.h <<\_ACEOF
17234b26 9690#define __UNIX__ 1
e6cc62c6 9691_ACEOF
17234b26
MB
9692
9693fi
9694
8284b0c5 9695
e6cc62c6 9696cat >confcache <<\_ACEOF
10f2d63a
VZ
9697# This file is a shell script that caches the results of configure
9698# tests run on this system so they can be shared between configure
e6cc62c6
VS
9699# scripts and configure runs, see configure's option --config-cache.
9700# It is not useful on other systems. If it contains results you don't
9701# want to keep, you may remove or edit it.
10f2d63a 9702#
e6cc62c6
VS
9703# config.status only pays attention to the cache file if you give it
9704# the --recheck option to rerun configure.
10f2d63a 9705#
e6cc62c6
VS
9706# `ac_cv_env_foo' variables (set or unset) will be overridden when
9707# loading this file, other *unset* `ac_cv_foo' will be assigned the
9708# following values.
9709
9710_ACEOF
9711
10f2d63a
VZ
9712# The following way of writing the cache mishandles newlines in values,
9713# but we know of no workaround that is simple, portable, and efficient.
9714# So, don't put newlines in cache variables' values.
9715# Ultrix sh set writes to stderr and can't be redirected directly,
9716# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9717{
9718 (set) 2>&1 |
9719 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9720 *ac_space=\ *)
9721 # `set' does not quote correctly, so add quotes (double-quote
9722 # substitution turns \\\\ into \\, and sed turns \\ into \).
9723 sed -n \
9724 "s/'/'\\\\''/g;
9725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9726 ;;
9727 *)
9728 # `set' quotes correctly as required by POSIX, so do not add quotes.
9729 sed -n \
9730 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9731 ;;
9732 esac;
9733} |
9734 sed '
9735 t clear
9736 : clear
9737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9738 t end
9739 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9740 : end' >>confcache
9741if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9742 if test -w $cache_file; then
e6cc62c6
VS
9743 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9744 cat confcache >$cache_file
10f2d63a
VZ
9745 else
9746 echo "not updating unwritable cache $cache_file"
9747 fi
9748fi
9749rm -f confcache
9750
e59890c3 9751if test "$build" != "$host" ; then
9d353d4a 9752 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9753 CC=$host_alias-gcc
9754 CXX=$host_alias-c++
9755 AR=$host_alias-ar
9756 RANLIB=$host_alias-ranlib
9757 DLLTOOL=$host_alias-dlltool
9758 RESCOMP=$host_alias-windres
9759 LD=$host_alias-ld
9760 NM=$host_alias-nm
9761 STRIP=$host_alias-strip
9762 else
e6cc62c6
VS
9763 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9764echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9765 { (exit 1); exit 1; }; }
3a922bb4 9766 fi
10f2d63a
VZ
9767fi
9768
ec603395 9769CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9770ac_ext=c
9771ac_cpp='$CPP $CPPFLAGS'
9772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9774ac_compiler_gnu=$ac_cv_c_compiler_gnu
9775if test -n "$ac_tool_prefix"; then
9776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9777set dummy ${ac_tool_prefix}gcc; ac_word=$2
9778echo "$as_me:$LINENO: checking for $ac_word" >&5
9779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9780if test "${ac_cv_prog_CC+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782else
9783 if test -n "$CC"; then
9784 ac_cv_prog_CC="$CC" # Let the user override the test.
9785else
9786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787for as_dir in $PATH
9788do
9789 IFS=$as_save_IFS
9790 test -z "$as_dir" && as_dir=.
9791 for ac_exec_ext in '' $ac_executable_extensions; do
9792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9793 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9795 break 2
9796 fi
9797done
9798done
9799
9800fi
9801fi
9802CC=$ac_cv_prog_CC
9803if test -n "$CC"; then
9804 echo "$as_me:$LINENO: result: $CC" >&5
9805echo "${ECHO_T}$CC" >&6
9806else
9807 echo "$as_me:$LINENO: result: no" >&5
9808echo "${ECHO_T}no" >&6
9809fi
9810
9811fi
9812if test -z "$ac_cv_prog_CC"; then
9813 ac_ct_CC=$CC
9814 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9815set dummy gcc; ac_word=$2
e6cc62c6
VS
9816echo "$as_me:$LINENO: checking for $ac_word" >&5
9817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9818if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820else
9821 if test -n "$ac_ct_CC"; then
9822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9823else
9824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825for as_dir in $PATH
9826do
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9831 ac_cv_prog_ac_ct_CC="gcc"
9832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 break 2
9834 fi
9835done
9836done
9837
9838fi
9839fi
9840ac_ct_CC=$ac_cv_prog_ac_ct_CC
9841if test -n "$ac_ct_CC"; then
9842 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9843echo "${ECHO_T}$ac_ct_CC" >&6
9844else
9845 echo "$as_me:$LINENO: result: no" >&5
9846echo "${ECHO_T}no" >&6
9847fi
9848
9849 CC=$ac_ct_CC
9850else
9851 CC="$ac_cv_prog_CC"
9852fi
9853
9854if test -z "$CC"; then
9855 if test -n "$ac_tool_prefix"; then
9856 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9857set dummy ${ac_tool_prefix}cc; ac_word=$2
9858echo "$as_me:$LINENO: checking for $ac_word" >&5
9859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9860if test "${ac_cv_prog_CC+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9862else
9863 if test -n "$CC"; then
9864 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9865else
e6cc62c6
VS
9866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867for as_dir in $PATH
9868do
9869 IFS=$as_save_IFS
9870 test -z "$as_dir" && as_dir=.
9871 for ac_exec_ext in '' $ac_executable_extensions; do
9872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9873 ac_cv_prog_CC="${ac_tool_prefix}cc"
9874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 break 2
9876 fi
9877done
9878done
9879
10f2d63a 9880fi
6232543b 9881fi
e6cc62c6 9882CC=$ac_cv_prog_CC
6232543b 9883if test -n "$CC"; then
e6cc62c6
VS
9884 echo "$as_me:$LINENO: result: $CC" >&5
9885echo "${ECHO_T}$CC" >&6
9886else
9887 echo "$as_me:$LINENO: result: no" >&5
9888echo "${ECHO_T}no" >&6
9889fi
9890
9891fi
9892if test -z "$ac_cv_prog_CC"; then
9893 ac_ct_CC=$CC
9894 # Extract the first word of "cc", so it can be a program name with args.
9895set dummy cc; ac_word=$2
9896echo "$as_me:$LINENO: checking for $ac_word" >&5
9897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9898if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9900else
9901 if test -n "$ac_ct_CC"; then
9902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9903else
9904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905for as_dir in $PATH
9906do
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
9909 for ac_exec_ext in '' $ac_executable_extensions; do
9910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9911 ac_cv_prog_ac_ct_CC="cc"
9912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9913 break 2
9914 fi
9915done
9916done
9917
9918fi
9919fi
9920ac_ct_CC=$ac_cv_prog_ac_ct_CC
9921if test -n "$ac_ct_CC"; then
9922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9923echo "${ECHO_T}$ac_ct_CC" >&6
9924else
9925 echo "$as_me:$LINENO: result: no" >&5
9926echo "${ECHO_T}no" >&6
9927fi
9928
9929 CC=$ac_ct_CC
247f5006 9930else
e6cc62c6 9931 CC="$ac_cv_prog_CC"
247f5006
VZ
9932fi
9933
e6cc62c6 9934fi
5c6fa7d2
RR
9935if test -z "$CC"; then
9936 # Extract the first word of "cc", so it can be a program name with args.
9937set dummy cc; ac_word=$2
e6cc62c6
VS
9938echo "$as_me:$LINENO: checking for $ac_word" >&5
9939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9940if test "${ac_cv_prog_CC+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9942else
9943 if test -n "$CC"; then
9944 ac_cv_prog_CC="$CC" # Let the user override the test.
9945else
9946 ac_prog_rejected=no
e6cc62c6
VS
9947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948for as_dir in $PATH
9949do
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9955 ac_prog_rejected=yes
9956 continue
9957 fi
9958 ac_cv_prog_CC="cc"
9959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9960 break 2
9961 fi
9962done
9963done
9964
328a083c
RR
9965if test $ac_prog_rejected = yes; then
9966 # We found a bogon in the path, so make sure we never use it.
9967 set dummy $ac_cv_prog_CC
9968 shift
e6cc62c6 9969 if test $# != 0; then
328a083c 9970 # We chose a different compiler from the bogus one.
1e487827
VS
9971 # However, it has the same basename, so the bogon will be chosen
9972 # first if we set CC to just the basename; use the full file name.
9973 shift
e6cc62c6 9974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9975 fi
1e487827
VS
9976fi
9977fi
9978fi
e6cc62c6 9979CC=$ac_cv_prog_CC
1e487827 9980if test -n "$CC"; then
e6cc62c6
VS
9981 echo "$as_me:$LINENO: result: $CC" >&5
9982echo "${ECHO_T}$CC" >&6
703e0a69 9983else
e6cc62c6
VS
9984 echo "$as_me:$LINENO: result: no" >&5
9985echo "${ECHO_T}no" >&6
703e0a69 9986fi
1e487827 9987
e6cc62c6
VS
9988fi
9989if test -z "$CC"; then
9990 if test -n "$ac_tool_prefix"; then
9991 for ac_prog in cl
9992 do
9993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9995echo "$as_me:$LINENO: checking for $ac_word" >&5
9996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9997if test "${ac_cv_prog_CC+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9999else
10000 if test -n "$CC"; then
10001 ac_cv_prog_CC="$CC" # Let the user override the test.
10002else
e6cc62c6
VS
10003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004for as_dir in $PATH
10005do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10013 fi
10014done
10015done
10016
f09359cf
VS
10017fi
10018fi
e6cc62c6 10019CC=$ac_cv_prog_CC
f09359cf 10020if test -n "$CC"; then
e6cc62c6
VS
10021 echo "$as_me:$LINENO: result: $CC" >&5
10022echo "${ECHO_T}$CC" >&6
f09359cf 10023else
e6cc62c6
VS
10024 echo "$as_me:$LINENO: result: no" >&5
10025echo "${ECHO_T}no" >&6
5c6fa7d2 10026fi
1e487827 10027
e6cc62c6
VS
10028 test -n "$CC" && break
10029 done
10030fi
10031if test -z "$CC"; then
10032 ac_ct_CC=$CC
10033 for ac_prog in cl
10034do
10035 # Extract the first word of "$ac_prog", so it can be a program name with args.
10036set dummy $ac_prog; ac_word=$2
10037echo "$as_me:$LINENO: checking for $ac_word" >&5
10038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10039if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041else
10042 if test -n "$ac_ct_CC"; then
10043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10044else
10045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046for as_dir in $PATH
10047do
10048 IFS=$as_save_IFS
10049 test -z "$as_dir" && as_dir=.
10050 for ac_exec_ext in '' $ac_executable_extensions; do
10051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10052 ac_cv_prog_ac_ct_CC="$ac_prog"
10053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10054 break 2
10055 fi
10056done
10057done
f09359cf 10058
e6cc62c6
VS
10059fi
10060fi
10061ac_ct_CC=$ac_cv_prog_ac_ct_CC
10062if test -n "$ac_ct_CC"; then
10063 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10064echo "${ECHO_T}$ac_ct_CC" >&6
10065else
10066 echo "$as_me:$LINENO: result: no" >&5
10067echo "${ECHO_T}no" >&6
10068fi
f09359cf 10069
e6cc62c6
VS
10070 test -n "$ac_ct_CC" && break
10071done
247f5006 10072
e6cc62c6
VS
10073 CC=$ac_ct_CC
10074fi
10075
10076fi
10077
10078
10079test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10080See \`config.log' for more details." >&5
10081echo "$as_me: error: no acceptable C compiler found in \$PATH
10082See \`config.log' for more details." >&2;}
10083 { (exit 1); exit 1; }; }
10084
10085# Provide some information about the compiler.
10086echo "$as_me:$LINENO:" \
10087 "checking for C compiler version" >&5
10088ac_compiler=`set X $ac_compile; echo $2`
10089{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10090 (eval $ac_compiler --version </dev/null >&5) 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }
10094{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10095 (eval $ac_compiler -v </dev/null >&5) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }
10099{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10100 (eval $ac_compiler -V </dev/null >&5) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }
10104
10105cat >conftest.$ac_ext <<_ACEOF
10106#line $LINENO "configure"
10107/* confdefs.h. */
10108_ACEOF
10109cat confdefs.h >>conftest.$ac_ext
10110cat >>conftest.$ac_ext <<_ACEOF
10111/* end confdefs.h. */
10112
10113int
10114main ()
10115{
247f5006 10116
e6cc62c6
VS
10117 ;
10118 return 0;
10119}
10120_ACEOF
10121ac_clean_files_save=$ac_clean_files
10122ac_clean_files="$ac_clean_files a.out a.exe b.out"
10123# Try to create an executable without -o first, disregard a.out.
10124# It will help us diagnose broken compilers, and finding out an intuition
10125# of exeext.
10126echo "$as_me:$LINENO: checking for C compiler default output" >&5
10127echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10128ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10129if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10130 (eval $ac_link_default) 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; then
10134 # Find the output, starting from the most likely. This scheme is
10135# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10136# resort.
10137
10138# Be careful to initialize this variable, since it used to be cached.
10139# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10140ac_cv_exeext=
10141# b.out is created by i960 compilers.
10142for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10143do
10144 test -f "$ac_file" || continue
10145 case $ac_file in
10146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10147 ;;
10148 conftest.$ac_ext )
10149 # This is the source file.
10150 ;;
10151 [ab].out )
10152 # We found the default executable, but exeext='' is most
10153 # certainly right.
10154 break;;
10155 *.* )
10156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10157 # FIXME: I believe we export ac_cv_exeext for Libtool,
10158 # but it would be cool to find out if it's true. Does anybody
10159 # maintain Libtool? --akim.
10160 export ac_cv_exeext
10161 break;;
10162 * )
10163 break;;
10164 esac
10165done
10166else
10167 echo "$as_me: failed program was:" >&5
10168sed 's/^/| /' conftest.$ac_ext >&5
10169
10170{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10171See \`config.log' for more details." >&5
10172echo "$as_me: error: C compiler cannot create executables
10173See \`config.log' for more details." >&2;}
10174 { (exit 77); exit 77; }; }
10175fi
10176
10177ac_exeext=$ac_cv_exeext
10178echo "$as_me:$LINENO: result: $ac_file" >&5
10179echo "${ECHO_T}$ac_file" >&6
10180
10181# Check the compiler produces executables we can run. If not, either
10182# the compiler is broken, or we cross compile.
10183echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10184echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10185# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10186# If not cross compiling, check that we can run a simple program.
10187if test "$cross_compiling" != yes; then
10188 if { ac_try='./$ac_file'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 cross_compiling=no
698dcdb6 10195 else
e6cc62c6
VS
10196 if test "$cross_compiling" = maybe; then
10197 cross_compiling=yes
10198 else
10199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10200If you meant to cross compile, use \`--host'.
10201See \`config.log' for more details." >&5
10202echo "$as_me: error: cannot run C compiled programs.
10203If you meant to cross compile, use \`--host'.
10204See \`config.log' for more details." >&2;}
10205 { (exit 1); exit 1; }; }
10206 fi
698dcdb6 10207 fi
52127426 10208fi
e6cc62c6
VS
10209echo "$as_me:$LINENO: result: yes" >&5
10210echo "${ECHO_T}yes" >&6
10211
10212rm -f a.out a.exe conftest$ac_cv_exeext b.out
10213ac_clean_files=$ac_clean_files_save
10214# Check the compiler produces executables we can run. If not, either
10215# the compiler is broken, or we cross compile.
10216echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10217echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10218echo "$as_me:$LINENO: result: $cross_compiling" >&5
10219echo "${ECHO_T}$cross_compiling" >&6
10220
10221echo "$as_me:$LINENO: checking for suffix of executables" >&5
10222echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224 (eval $ac_link) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; then
10228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10229# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10230# work properly (i.e., refer to `conftest.exe'), while it won't with
10231# `rm'.
10232for ac_file in conftest.exe conftest conftest.*; do
10233 test -f "$ac_file" || continue
10234 case $ac_file in
10235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10237 export ac_cv_exeext
10238 break;;
10239 * ) break;;
10240 esac
10241done
5c6fa7d2 10242else
e6cc62c6
VS
10243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10244See \`config.log' for more details." >&5
10245echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10246See \`config.log' for more details." >&2;}
10247 { (exit 1); exit 1; }; }
10248fi
10249
10250rm -f conftest$ac_cv_exeext
10251echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10252echo "${ECHO_T}$ac_cv_exeext" >&6
10253
10254rm -f conftest.$ac_ext
10255EXEEXT=$ac_cv_exeext
10256ac_exeext=$EXEEXT
10257echo "$as_me:$LINENO: checking for suffix of object files" >&5
10258echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10259if test "${ac_cv_objext+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10261else
10262 cat >conftest.$ac_ext <<_ACEOF
10263#line $LINENO "configure"
10264/* confdefs.h. */
10265_ACEOF
10266cat confdefs.h >>conftest.$ac_ext
10267cat >>conftest.$ac_ext <<_ACEOF
10268/* end confdefs.h. */
10269
10270int
10271main ()
10272{
f09359cf 10273
e6cc62c6
VS
10274 ;
10275 return 0;
10276}
10277_ACEOF
10278rm -f conftest.o conftest.obj
10279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10280 (eval $ac_compile) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; then
10284 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10285 case $ac_file in
10286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10288 break;;
10289 esac
10290done
a0b9e27f 10291else
e6cc62c6
VS
10292 echo "$as_me: failed program was:" >&5
10293sed 's/^/| /' conftest.$ac_ext >&5
10294
10295{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10296See \`config.log' for more details." >&5
10297echo "$as_me: error: cannot compute suffix of object files: cannot compile
10298See \`config.log' for more details." >&2;}
10299 { (exit 1); exit 1; }; }
a0b9e27f 10300fi
247f5006 10301
e6cc62c6
VS
10302rm -f conftest.$ac_cv_objext conftest.$ac_ext
10303fi
10304echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10305echo "${ECHO_T}$ac_cv_objext" >&6
10306OBJEXT=$ac_cv_objext
10307ac_objext=$OBJEXT
10308echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10309echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10310if test "${ac_cv_c_compiler_gnu+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10312else
e6cc62c6
VS
10313 cat >conftest.$ac_ext <<_ACEOF
10314#line $LINENO "configure"
10315/* confdefs.h. */
10316_ACEOF
10317cat confdefs.h >>conftest.$ac_ext
10318cat >>conftest.$ac_ext <<_ACEOF
10319/* end confdefs.h. */
10320
10321int
10322main ()
10323{
10324#ifndef __GNUC__
10325 choke me
10326#endif
10327
10328 ;
10329 return 0;
10330}
10331_ACEOF
10332rm -f conftest.$ac_objext
10333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10334 (eval $ac_compile) 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try='test -s conftest.$ac_objext'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 ac_compiler_gnu=yes
10345else
10346 echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
10349ac_compiler_gnu=no
10350fi
10351rm -f conftest.$ac_objext conftest.$ac_ext
10352ac_cv_c_compiler_gnu=$ac_compiler_gnu
10353
10354fi
10355echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10356echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10357GCC=`test $ac_compiler_gnu = yes && echo yes`
10358ac_test_CFLAGS=${CFLAGS+set}
10359ac_save_CFLAGS=$CFLAGS
10360CFLAGS="-g"
10361echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10362echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10363if test "${ac_cv_prog_cc_g+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365else
10366 cat >conftest.$ac_ext <<_ACEOF
10367#line $LINENO "configure"
10368/* confdefs.h. */
10369_ACEOF
10370cat confdefs.h >>conftest.$ac_ext
10371cat >>conftest.$ac_ext <<_ACEOF
10372/* end confdefs.h. */
10373
10374int
10375main ()
10376{
10377
10378 ;
10379 return 0;
10380}
10381_ACEOF
10382rm -f conftest.$ac_objext
10383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384 (eval $ac_compile) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10f2d63a
VZ
10394 ac_cv_prog_cc_g=yes
10395else
e6cc62c6
VS
10396 echo "$as_me: failed program was:" >&5
10397sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10398
e6cc62c6 10399ac_cv_prog_cc_g=no
10f2d63a 10400fi
e6cc62c6
VS
10401rm -f conftest.$ac_objext conftest.$ac_ext
10402fi
10403echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10404echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10405if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10406 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10407elif test $ac_cv_prog_cc_g = yes; then
10408 if test "$GCC" = yes; then
10f2d63a
VZ
10409 CFLAGS="-g -O2"
10410 else
f09359cf 10411 CFLAGS="-g"
10f2d63a 10412 fi
5c0a20c3 10413else
f09359cf
VS
10414 if test "$GCC" = yes; then
10415 CFLAGS="-O2"
10416 else
10417 CFLAGS=
10418 fi
10f2d63a 10419fi
e6cc62c6
VS
10420echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10421echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10422if test "${ac_cv_prog_cc_stdc+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424else
10425 ac_cv_prog_cc_stdc=no
10426ac_save_CC=$CC
10427cat >conftest.$ac_ext <<_ACEOF
10428#line $LINENO "configure"
10429/* confdefs.h. */
10430_ACEOF
10431cat confdefs.h >>conftest.$ac_ext
10432cat >>conftest.$ac_ext <<_ACEOF
10433/* end confdefs.h. */
10434#include <stdarg.h>
10435#include <stdio.h>
10436#include <sys/types.h>
10437#include <sys/stat.h>
10438/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10439struct buf { int x; };
10440FILE * (*rcsopen) (struct buf *, struct stat *, int);
10441static char *e (p, i)
10442 char **p;
10443 int i;
10444{
10445 return p[i];
10446}
10447static char *f (char * (*g) (char **, int), char **p, ...)
10448{
10449 char *s;
10450 va_list v;
10451 va_start (v,p);
10452 s = g (p, va_arg (v,int));
10453 va_end (v);
10454 return s;
10455}
10456int test (int i, double x);
10457struct s1 {int (*f) (int a);};
10458struct s2 {int (*f) (double a);};
10459int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10460int argc;
10461char **argv;
10462int
10463main ()
10464{
10465return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10466 ;
10467 return 0;
10468}
10469_ACEOF
10470# Don't try gcc -ansi; that turns off useful extensions and
10471# breaks some systems' header files.
10472# AIX -qlanglvl=ansi
10473# Ultrix and OSF/1 -std1
10474# HP-UX 10.20 and later -Ae
10475# HP-UX older versions -Aa -D_HPUX_SOURCE
10476# SVR4 -Xc -D__EXTENSIONS__
10477for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10478do
10479 CC="$ac_save_CC $ac_arg"
10480 rm -f conftest.$ac_objext
10481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482 (eval $ac_compile) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try='test -s conftest.$ac_objext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10489 ac_status=$?
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 ac_cv_prog_cc_stdc=$ac_arg
10493break
10494else
10495 echo "$as_me: failed program was:" >&5
10496sed 's/^/| /' conftest.$ac_ext >&5
10497
10498fi
10499rm -f conftest.$ac_objext
10500done
10501rm -f conftest.$ac_ext conftest.$ac_objext
10502CC=$ac_save_CC
10503
10504fi
10505
10506case "x$ac_cv_prog_cc_stdc" in
10507 x|xno)
10508 echo "$as_me:$LINENO: result: none needed" >&5
10509echo "${ECHO_T}none needed" >&6 ;;
10510 *)
10511 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10512echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10513 CC="$CC $ac_cv_prog_cc_stdc" ;;
10514esac
10515
10516# Some people use a C++ compiler to compile C. Since we use `exit',
10517# in C++ we need to declare it. In case someone uses the same compiler
10518# for both compiling C and C++ we need to have the C++ compiler decide
10519# the declaration of exit, since it's the most demanding environment.
10520cat >conftest.$ac_ext <<_ACEOF
10521#ifndef __cplusplus
10522 choke me
10523#endif
10524_ACEOF
10525rm -f conftest.$ac_objext
10526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10527 (eval $ac_compile) 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -s conftest.$ac_objext'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 for ac_declaration in \
0bdb08e7
VS
10538 ''\
10539 '#include <stdlib.h>' \
e6cc62c6
VS
10540 'extern "C" void std::exit (int) throw (); using std::exit;' \
10541 'extern "C" void std::exit (int); using std::exit;' \
10542 'extern "C" void exit (int) throw ();' \
10543 'extern "C" void exit (int);' \
10544 'void exit (int);'
10545do
10546 cat >conftest.$ac_ext <<_ACEOF
10547#line $LINENO "configure"
10548/* confdefs.h. */
10549_ACEOF
10550cat confdefs.h >>conftest.$ac_ext
10551cat >>conftest.$ac_ext <<_ACEOF
10552/* end confdefs.h. */
0e012a93 10553#include <stdlib.h>
0bdb08e7 10554$ac_declaration
e6cc62c6
VS
10555int
10556main ()
10557{
10558exit (42);
10559 ;
10560 return 0;
10561}
10562_ACEOF
10563rm -f conftest.$ac_objext
10564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10565 (eval $ac_compile) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 :
10576else
10577 echo "$as_me: failed program was:" >&5
10578sed 's/^/| /' conftest.$ac_ext >&5
10579
10580continue
10581fi
10582rm -f conftest.$ac_objext conftest.$ac_ext
10583 cat >conftest.$ac_ext <<_ACEOF
10584#line $LINENO "configure"
10585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h. */
10590$ac_declaration
10591int
10592main ()
10593{
10594exit (42);
10595 ;
10596 return 0;
10597}
10598_ACEOF
10599rm -f conftest.$ac_objext
10600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601 (eval $ac_compile) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 break
10612else
10613 echo "$as_me: failed program was:" >&5
10614sed 's/^/| /' conftest.$ac_ext >&5
10615
10616fi
10617rm -f conftest.$ac_objext conftest.$ac_ext
10618done
10619rm -f conftest*
10620if test -n "$ac_declaration"; then
10621 echo '#ifdef __cplusplus' >>confdefs.h
10622 echo $ac_declaration >>confdefs.h
10623 echo '#endif' >>confdefs.h
10624fi
10625
10626else
10627 echo "$as_me: failed program was:" >&5
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
10630fi
10631rm -f conftest.$ac_objext conftest.$ac_ext
10632ac_ext=c
10633ac_cpp='$CPP $CPPFLAGS'
10634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10636ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10637
10638
e6cc62c6
VS
10639
10640ac_ext=c
10641ac_cpp='$CPP $CPPFLAGS'
10642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10644ac_compiler_gnu=$ac_cv_c_compiler_gnu
10645echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10646echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10647# On Suns, sometimes $CPP names a directory.
10648if test -n "$CPP" && test -d "$CPP"; then
10649 CPP=
10650fi
10651if test -z "$CPP"; then
e6cc62c6
VS
10652 if test "${ac_cv_prog_CPP+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10654else
10655 # Double quotes because CPP needs to be expanded
10656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10657 do
10658 ac_preproc_ok=false
10659for ac_c_preproc_warn_flag in '' yes
10660do
10661 # Use a header file that comes with gcc, so configuring glibc
10662 # with a fresh cross-compiler works.
10663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10664 # <limits.h> exists even on freestanding compilers.
10f2d63a 10665 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10666 # not just through cpp. "Syntax error" is here to catch this case.
10667 cat >conftest.$ac_ext <<_ACEOF
10668#line $LINENO "configure"
10669/* confdefs.h. */
10670_ACEOF
10671cat confdefs.h >>conftest.$ac_ext
10672cat >>conftest.$ac_ext <<_ACEOF
10673/* end confdefs.h. */
10674#ifdef __STDC__
10675# include <limits.h>
10676#else
10677# include <assert.h>
10678#endif
10679 Syntax error
10680_ACEOF
10681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10683 ac_status=$?
10684 grep -v '^ *+' conftest.er1 >conftest.err
10685 rm -f conftest.er1
10686 cat conftest.err >&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } >/dev/null; then
10689 if test -s conftest.err; then
10690 ac_cpp_err=$ac_c_preproc_warn_flag
10691 else
10692 ac_cpp_err=
10693 fi
10f2d63a 10694else
e6cc62c6
VS
10695 ac_cpp_err=yes
10696fi
10697if test -z "$ac_cpp_err"; then
a0b9e27f 10698 :
247f5006 10699else
e6cc62c6
VS
10700 echo "$as_me: failed program was:" >&5
10701sed 's/^/| /' conftest.$ac_ext >&5
10702
10703 # Broken: fails on valid input.
10704continue
10705fi
10706rm -f conftest.err conftest.$ac_ext
10707
10708 # OK, works on sane cases. Now check whether non-existent headers
10709 # can be detected and how.
10710 cat >conftest.$ac_ext <<_ACEOF
10711#line $LINENO "configure"
10712/* confdefs.h. */
10713_ACEOF
10714cat confdefs.h >>conftest.$ac_ext
10715cat >>conftest.$ac_ext <<_ACEOF
10716/* end confdefs.h. */
10717#include <ac_nonexistent.h>
10718_ACEOF
10719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } >/dev/null; then
10727 if test -s conftest.err; then
10728 ac_cpp_err=$ac_c_preproc_warn_flag
10729 else
10730 ac_cpp_err=
10731 fi
10f2d63a 10732else
e6cc62c6 10733 ac_cpp_err=yes
579d8138 10734fi
e6cc62c6
VS
10735if test -z "$ac_cpp_err"; then
10736 # Broken: success on invalid input.
10737continue
10738else
10739 echo "$as_me: failed program was:" >&5
10740sed 's/^/| /' conftest.$ac_ext >&5
10741
10742 # Passes both tests.
10743ac_preproc_ok=:
10744break
52127426 10745fi
e6cc62c6
VS
10746rm -f conftest.err conftest.$ac_ext
10747
10748done
10749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10750rm -f conftest.err conftest.$ac_ext
10751if $ac_preproc_ok; then
10752 break
8284b0c5 10753fi
e6cc62c6
VS
10754
10755 done
10756 ac_cv_prog_CPP=$CPP
10757
10758fi
10759 CPP=$ac_cv_prog_CPP
10760else
10761 ac_cv_prog_CPP=$CPP
10762fi
10763echo "$as_me:$LINENO: result: $CPP" >&5
10764echo "${ECHO_T}$CPP" >&6
10765ac_preproc_ok=false
10766for ac_c_preproc_warn_flag in '' yes
10767do
10768 # Use a header file that comes with gcc, so configuring glibc
10769 # with a fresh cross-compiler works.
10770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10771 # <limits.h> exists even on freestanding compilers.
10772 # On the NeXT, cc -E runs the code through the compiler's parser,
10773 # not just through cpp. "Syntax error" is here to catch this case.
10774 cat >conftest.$ac_ext <<_ACEOF
10775#line $LINENO "configure"
10776/* confdefs.h. */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
10780/* end confdefs.h. */
10781#ifdef __STDC__
10782# include <limits.h>
10783#else
10784# include <assert.h>
10785#endif
10786 Syntax error
10787_ACEOF
10788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10790 ac_status=$?
10791 grep -v '^ *+' conftest.er1 >conftest.err
10792 rm -f conftest.er1
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } >/dev/null; then
10796 if test -s conftest.err; then
10797 ac_cpp_err=$ac_c_preproc_warn_flag
10798 else
10799 ac_cpp_err=
10800 fi
10801else
10802 ac_cpp_err=yes
10803fi
10804if test -z "$ac_cpp_err"; then
10805 :
10806else
10807 echo "$as_me: failed program was:" >&5
10808sed 's/^/| /' conftest.$ac_ext >&5
10809
10810 # Broken: fails on valid input.
10811continue
10812fi
10813rm -f conftest.err conftest.$ac_ext
10814
10815 # OK, works on sane cases. Now check whether non-existent headers
10816 # can be detected and how.
10817 cat >conftest.$ac_ext <<_ACEOF
10818#line $LINENO "configure"
10819/* confdefs.h. */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
10823/* end confdefs.h. */
10824#include <ac_nonexistent.h>
10825_ACEOF
10826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } >/dev/null; then
10834 if test -s conftest.err; then
10835 ac_cpp_err=$ac_c_preproc_warn_flag
10836 else
10837 ac_cpp_err=
10838 fi
10839else
10840 ac_cpp_err=yes
10841fi
10842if test -z "$ac_cpp_err"; then
10843 # Broken: success on invalid input.
10844continue
10845else
10846 echo "$as_me: failed program was:" >&5
10847sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 # Passes both tests.
10850ac_preproc_ok=:
10851break
a0b9e27f 10852fi
e6cc62c6
VS
10853rm -f conftest.err conftest.$ac_ext
10854
10855done
10856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10857rm -f conftest.err conftest.$ac_ext
10858if $ac_preproc_ok; then
10859 :
10860else
10861 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10862See \`config.log' for more details." >&5
10863echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10864See \`config.log' for more details." >&2;}
10865 { (exit 1); exit 1; }; }
10866fi
10867
10868ac_ext=c
10869ac_cpp='$CPP $CPPFLAGS'
10870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10872ac_compiler_gnu=$ac_cv_c_compiler_gnu
10873
10874
10875echo "$as_me:$LINENO: checking for egrep" >&5
10876echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10877if test "${ac_cv_prog_egrep+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10879else
e6cc62c6
VS
10880 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10881 then ac_cv_prog_egrep='grep -E'
10882 else ac_cv_prog_egrep='egrep'
10883 fi
10f2d63a 10884fi
e6cc62c6
VS
10885echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10886echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10887 EGREP=$ac_cv_prog_egrep
10888
10f2d63a 10889
e6cc62c6
VS
10890if test $ac_cv_c_compiler_gnu = yes; then
10891 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10892echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10893if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10895else
10896 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10897 cat >conftest.$ac_ext <<_ACEOF
10898#line $LINENO "configure"
10899/* confdefs.h. */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h. */
10f2d63a
VZ
10904#include <sgtty.h>
10905Autoconf TIOCGETP
e6cc62c6 10906_ACEOF
10f2d63a 10907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10908 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10909 ac_cv_prog_gcc_traditional=yes
10910else
10f2d63a
VZ
10911 ac_cv_prog_gcc_traditional=no
10912fi
10913rm -f conftest*
10914
8284b0c5 10915
10f2d63a 10916 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10917 cat >conftest.$ac_ext <<_ACEOF
10918#line $LINENO "configure"
10919/* confdefs.h. */
10920_ACEOF
10921cat confdefs.h >>conftest.$ac_ext
10922cat >>conftest.$ac_ext <<_ACEOF
10923/* end confdefs.h. */
10f2d63a
VZ
10924#include <termio.h>
10925Autoconf TCGETA
e6cc62c6 10926_ACEOF
10f2d63a 10927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10928 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10929 ac_cv_prog_gcc_traditional=yes
10930fi
10931rm -f conftest*
10932
10933 fi
10934fi
e6cc62c6
VS
10935echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10936echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10937 if test $ac_cv_prog_gcc_traditional = yes; then
10938 CC="$CC -traditional"
10939 fi
10940fi
10941
8284b0c5
MB
10942
10943
e6cc62c6
VS
10944
10945ac_ext=cc
1e487827 10946ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10950
698dcdb6 10951
ec603395 10952CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10953ac_ext=cc
10954ac_cpp='$CXXCPP $CPPFLAGS'
10955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10958if test -n "$ac_tool_prefix"; then
10959 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10960 do
10961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10962set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10963echo "$as_me:$LINENO: checking for $ac_word" >&5
10964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10965if test "${ac_cv_prog_CXX+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10967else
10968 if test -n "$CXX"; then
10969 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10970else
e6cc62c6
VS
10971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972for as_dir in $PATH
10973do
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10978 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10981 fi
10982done
10983done
10984
10f2d63a
VZ
10985fi
10986fi
e6cc62c6 10987CXX=$ac_cv_prog_CXX
10f2d63a 10988if test -n "$CXX"; then
e6cc62c6
VS
10989 echo "$as_me:$LINENO: result: $CXX" >&5
10990echo "${ECHO_T}$CXX" >&6
10f2d63a 10991else
e6cc62c6
VS
10992 echo "$as_me:$LINENO: result: no" >&5
10993echo "${ECHO_T}no" >&6
10f2d63a
VZ
10994fi
10995
e6cc62c6
VS
10996 test -n "$CXX" && break
10997 done
10998fi
10999if test -z "$CXX"; then
11000 ac_ct_CXX=$CXX
11001 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11002do
11003 # Extract the first word of "$ac_prog", so it can be a program name with args.
11004set dummy $ac_prog; ac_word=$2
11005echo "$as_me:$LINENO: checking for $ac_word" >&5
11006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11007if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009else
11010 if test -n "$ac_ct_CXX"; then
11011 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11012else
11013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014for as_dir in $PATH
11015do
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_prog_ac_ct_CXX="$ac_prog"
11021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 break 2
11023 fi
11024done
10f2d63a 11025done
a0b9e27f 11026
8284b0c5 11027fi
a0b9e27f 11028fi
e6cc62c6
VS
11029ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11030if test -n "$ac_ct_CXX"; then
11031 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11032echo "${ECHO_T}$ac_ct_CXX" >&6
11033else
11034 echo "$as_me:$LINENO: result: no" >&5
11035echo "${ECHO_T}no" >&6
a0b9e27f 11036fi
10f2d63a 11037
e6cc62c6
VS
11038 test -n "$ac_ct_CXX" && break
11039done
11040test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11041
11042 CXX=$ac_ct_CXX
11043fi
11044
11045
11046# Provide some information about the compiler.
11047echo "$as_me:$LINENO:" \
11048 "checking for C++ compiler version" >&5
11049ac_compiler=`set X $ac_compile; echo $2`
11050{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11051 (eval $ac_compiler --version </dev/null >&5) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }
11055{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11056 (eval $ac_compiler -v </dev/null >&5) 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }
11060{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11061 (eval $ac_compiler -V </dev/null >&5) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }
11065
11066echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11067echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11068if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11070else
11071 cat >conftest.$ac_ext <<_ACEOF
11072#line $LINENO "configure"
11073/* confdefs.h. */
11074_ACEOF
11075cat confdefs.h >>conftest.$ac_ext
11076cat >>conftest.$ac_ext <<_ACEOF
11077/* end confdefs.h. */
11078
11079int
11080main ()
11081{
11082#ifndef __GNUC__
11083 choke me
11084#endif
10f2d63a 11085
e6cc62c6
VS
11086 ;
11087 return 0;
11088}
11089_ACEOF
11090rm -f conftest.$ac_objext
11091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11092 (eval $ac_compile) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try='test -s conftest.$ac_objext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 ac_compiler_gnu=yes
11103else
11104 echo "$as_me: failed program was:" >&5
11105sed 's/^/| /' conftest.$ac_ext >&5
11106
11107ac_compiler_gnu=no
11108fi
11109rm -f conftest.$ac_objext conftest.$ac_ext
11110ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11111
11112fi
11113echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11114echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11115GXX=`test $ac_compiler_gnu = yes && echo yes`
11116ac_test_CXXFLAGS=${CXXFLAGS+set}
11117ac_save_CXXFLAGS=$CXXFLAGS
11118CXXFLAGS="-g"
11119echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11120echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11121if test "${ac_cv_prog_cxx_g+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123else
11124 cat >conftest.$ac_ext <<_ACEOF
11125#line $LINENO "configure"
11126/* confdefs.h. */
11127_ACEOF
11128cat confdefs.h >>conftest.$ac_ext
11129cat >>conftest.$ac_ext <<_ACEOF
11130/* end confdefs.h. */
11131
11132int
11133main ()
11134{
f09359cf 11135
e6cc62c6
VS
11136 ;
11137 return 0;
11138}
11139_ACEOF
11140rm -f conftest.$ac_objext
11141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142 (eval $ac_compile) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -s conftest.$ac_objext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
10f2d63a
VZ
11152 ac_cv_prog_cxx_g=yes
11153else
e6cc62c6
VS
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11156
e6cc62c6 11157ac_cv_prog_cxx_g=no
10f2d63a 11158fi
e6cc62c6
VS
11159rm -f conftest.$ac_objext conftest.$ac_ext
11160fi
11161echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11162echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11163if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11164 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11165elif test $ac_cv_prog_cxx_g = yes; then
11166 if test "$GXX" = yes; then
10f2d63a
VZ
11167 CXXFLAGS="-g -O2"
11168 else
f09359cf 11169 CXXFLAGS="-g"
10f2d63a 11170 fi
5c0a20c3 11171else
f09359cf
VS
11172 if test "$GXX" = yes; then
11173 CXXFLAGS="-O2"
11174 else
11175 CXXFLAGS=
11176 fi
10f2d63a 11177fi
e6cc62c6 11178for ac_declaration in \
0bdb08e7
VS
11179 ''\
11180 '#include <stdlib.h>' \
e6cc62c6
VS
11181 'extern "C" void std::exit (int) throw (); using std::exit;' \
11182 'extern "C" void std::exit (int); using std::exit;' \
11183 'extern "C" void exit (int) throw ();' \
11184 'extern "C" void exit (int);' \
11185 'void exit (int);'
11186do
11187 cat >conftest.$ac_ext <<_ACEOF
11188#line $LINENO "configure"
11189/* confdefs.h. */
11190_ACEOF
11191cat confdefs.h >>conftest.$ac_ext
11192cat >>conftest.$ac_ext <<_ACEOF
11193/* end confdefs.h. */
0e012a93 11194#include <stdlib.h>
0bdb08e7 11195$ac_declaration
e6cc62c6
VS
11196int
11197main ()
11198{
11199exit (42);
11200 ;
11201 return 0;
11202}
11203_ACEOF
11204rm -f conftest.$ac_objext
11205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206 (eval $ac_compile) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -s conftest.$ac_objext'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 :
11217else
11218 echo "$as_me: failed program was:" >&5
11219sed 's/^/| /' conftest.$ac_ext >&5
11220
11221continue
11222fi
11223rm -f conftest.$ac_objext conftest.$ac_ext
11224 cat >conftest.$ac_ext <<_ACEOF
11225#line $LINENO "configure"
11226/* confdefs.h. */
11227_ACEOF
11228cat confdefs.h >>conftest.$ac_ext
11229cat >>conftest.$ac_ext <<_ACEOF
11230/* end confdefs.h. */
11231$ac_declaration
11232int
11233main ()
11234{
11235exit (42);
11236 ;
11237 return 0;
11238}
11239_ACEOF
11240rm -f conftest.$ac_objext
11241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try='test -s conftest.$ac_objext'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 break
11253else
11254 echo "$as_me: failed program was:" >&5
11255sed 's/^/| /' conftest.$ac_ext >&5
11256
11257fi
11258rm -f conftest.$ac_objext conftest.$ac_ext
11259done
11260rm -f conftest*
11261if test -n "$ac_declaration"; then
11262 echo '#ifdef __cplusplus' >>confdefs.h
11263 echo $ac_declaration >>confdefs.h
11264 echo '#endif' >>confdefs.h
11265fi
11266
11267ac_ext=cc
11268ac_cpp='$CXXCPP $CPPFLAGS'
11269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11272
11273
10f2d63a 11274ac_ext=c
10f2d63a 11275ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11278ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11279
11280
e6cc62c6
VS
11281if test -n "$ac_tool_prefix"; then
11282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11283set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11284echo "$as_me:$LINENO: checking for $ac_word" >&5
11285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11286if test "${ac_cv_prog_RANLIB+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11288else
11289 if test -n "$RANLIB"; then
11290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11291else
e6cc62c6
VS
11292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293for as_dir in $PATH
11294do
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 break 2
11302 fi
11303done
11304done
11305
10f2d63a
VZ
11306fi
11307fi
e6cc62c6 11308RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11309if test -n "$RANLIB"; then
e6cc62c6
VS
11310 echo "$as_me:$LINENO: result: $RANLIB" >&5
11311echo "${ECHO_T}$RANLIB" >&6
11312else
11313 echo "$as_me:$LINENO: result: no" >&5
11314echo "${ECHO_T}no" >&6
11315fi
11316
11317fi
11318if test -z "$ac_cv_prog_RANLIB"; then
11319 ac_ct_RANLIB=$RANLIB
11320 # Extract the first word of "ranlib", so it can be a program name with args.
11321set dummy ranlib; ac_word=$2
11322echo "$as_me:$LINENO: checking for $ac_word" >&5
11323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11324if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11326else
e6cc62c6
VS
11327 if test -n "$ac_ct_RANLIB"; then
11328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11329else
11330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $PATH
11332do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11337 ac_cv_prog_ac_ct_RANLIB="ranlib"
11338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11340 fi
11341done
11342done
11343
11344 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11345fi
11346fi
11347ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11348if test -n "$ac_ct_RANLIB"; then
11349 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11350echo "${ECHO_T}$ac_ct_RANLIB" >&6
11351else
11352 echo "$as_me:$LINENO: result: no" >&5
11353echo "${ECHO_T}no" >&6
11354fi
11355
11356 RANLIB=$ac_ct_RANLIB
11357else
11358 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11359fi
11360
10f2d63a
VZ
11361
11362# Extract the first word of "ar", so it can be a program name with args.
11363set dummy ar; ac_word=$2
e6cc62c6
VS
11364echo "$as_me:$LINENO: checking for $ac_word" >&5
11365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11366if test "${ac_cv_prog_AR+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11368else
11369 if test -n "$AR"; then
11370 ac_cv_prog_AR="$AR" # Let the user override the test.
11371else
e6cc62c6
VS
11372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373for as_dir in $PATH
11374do
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
11377 for ac_exec_ext in '' $ac_executable_extensions; do
11378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11379 ac_cv_prog_AR="ar"
11380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11381 break 2
11382 fi
11383done
11384done
11385
10f2d63a
VZ
11386fi
11387fi
e6cc62c6 11388AR=$ac_cv_prog_AR
10f2d63a 11389if test -n "$AR"; then
e6cc62c6
VS
11390 echo "$as_me:$LINENO: result: $AR" >&5
11391echo "${ECHO_T}$AR" >&6
10f2d63a 11392else
e6cc62c6
VS
11393 echo "$as_me:$LINENO: result: no" >&5
11394echo "${ECHO_T}no" >&6
10f2d63a
VZ
11395fi
11396
911740e7
VS
11397if test "x$AR" = "x" ; then
11398 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11399echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11400 { (exit 1); exit 1; }; }
11401fi
8284b0c5 11402
6054113a 11403# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11404# so one script is as good as another. But avoid the broken or
11405# incompatible versions:
11406# SysV /etc/install, /usr/sbin/install
11407# SunOS /usr/etc/install
11408# IRIX /sbin/install
11409# AIX /bin/install
e6cc62c6 11410# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11411# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11412# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11413# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11414# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11415echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11416echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11417if test -z "$INSTALL"; then
e6cc62c6
VS
11418if test "${ac_cv_path_install+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420else
11421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11422for as_dir in $PATH
11423do
11424 IFS=$as_save_IFS
11425 test -z "$as_dir" && as_dir=.
11426 # Account for people who put trailing slashes in PATH elements.
11427case $as_dir/ in
11428 ./ | .// | /cC/* | \
11429 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11430 /usr/ucb/* ) ;;
11431 *)
11432 # OSF1 and SCO ODT 3.0 have their own names for install.
11433 # Don't use installbsd from OSF since it installs stuff as root
11434 # by default.
11435 for ac_prog in ginstall scoinst install; do
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11438 if test $ac_prog = install &&
11439 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11440 # AIX install. It has an incompatible calling convention.
11441 :
11442 elif test $ac_prog = install &&
11443 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11444 # program-specific install script used by HP pwplus--don't use.
11445 :
11446 else
11447 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11448 break 3
11449 fi
11450 fi
10f2d63a 11451 done
e6cc62c6
VS
11452 done
11453 ;;
11454esac
11455done
11456
10f2d63a
VZ
11457
11458fi
11459 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11460 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11461 else
11462 # As a last resort, use the slow shell script. We don't cache a
11463 # path for INSTALL within a source directory, because that will
11464 # break other packages using the cache if that directory is
11465 # removed, or if the path is relative.
e6cc62c6 11466 INSTALL=$ac_install_sh
10f2d63a
VZ
11467 fi
11468fi
e6cc62c6
VS
11469echo "$as_me:$LINENO: result: $INSTALL" >&5
11470echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11471
11472# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11473# It thinks the first close brace ends the variable substitution.
11474test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11475
e6cc62c6 11476test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11477
10f2d63a
VZ
11478test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11479
8284b0c5 11480
1d1b75ac
VZ
11481case ${INSTALL} in
11482 /* ) # Absolute
11483 ;;
4f5a7f74
VZ
11484 ?:* ) # Drive letter, considered as absolute.
11485 ;;
3bd8fb5f 11486 *)
1d1b75ac
VZ
11487 INSTALL=`pwd`/${INSTALL} ;;
11488esac
11489
4f5a7f74
VZ
11490case ${host} in
11491 *-hp-hpux* )
11492 INSTALL_DIR="mkdir"
11493 ;;
11494
11495 *) INSTALL_DIR="$INSTALL -d"
11496 ;;
11497esac
11498
8284b0c5 11499
6054113a
GD
11500case "${host}" in
11501
b5853384 11502 powerpc-*-darwin* )
eb99ae0b
GD
11503 INSTALL_PROGRAM="cp -fp"
11504 INSTALL_DATA="cp -fp"
6054113a
GD
11505 ;;
11506 *)
11507 ;;
d6853540 11508esac
698dcdb6 11509
10f2d63a
VZ
11510# Extract the first word of "strip", so it can be a program name with args.
11511set dummy strip; ac_word=$2
e6cc62c6
VS
11512echo "$as_me:$LINENO: checking for $ac_word" >&5
11513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11514if test "${ac_cv_prog_STRIP+set}" = set; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11516else
11517 if test -n "$STRIP"; then
11518 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11519else
e6cc62c6
VS
11520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521for as_dir in $PATH
11522do
11523 IFS=$as_save_IFS
11524 test -z "$as_dir" && as_dir=.
11525 for ac_exec_ext in '' $ac_executable_extensions; do
11526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11527 ac_cv_prog_STRIP="strip"
11528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11529 break 2
11530 fi
11531done
11532done
11533
10f2d63a
VZ
11534 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11535fi
11536fi
e6cc62c6 11537STRIP=$ac_cv_prog_STRIP
10f2d63a 11538if test -n "$STRIP"; then
e6cc62c6
VS
11539 echo "$as_me:$LINENO: result: $STRIP" >&5
11540echo "${ECHO_T}$STRIP" >&6
10f2d63a 11541else
e6cc62c6
VS
11542 echo "$as_me:$LINENO: result: no" >&5
11543echo "${ECHO_T}no" >&6
10f2d63a
VZ
11544fi
11545
5c6fa7d2 11546
e6cc62c6
VS
11547echo "$as_me:$LINENO: checking if make is GNU make" >&5
11548echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11549if test "${wx_cv_prog_makeisgnu+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11551else
e6cc62c6 11552
414eab6d 11553 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11554 egrep -s GNU > /dev/null); then
414eab6d
VZ
11555 wx_cv_prog_makeisgnu="yes"
11556 else
11557 wx_cv_prog_makeisgnu="no"
11558 fi
11559
11560fi
e6cc62c6
VS
11561echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11562echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11563
11564if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11565 IF_GNU_MAKE=""
11566else
11567 IF_GNU_MAKE="#"
11568fi
11569
8284b0c5
MB
11570
11571
414eab6d 11572if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11573echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11574echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11575if test "${wx_cv_prog_makevpath+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11577else
e6cc62c6 11578
10f2d63a
VZ
11579cat - << EOF > confMake
11580check : file
11581 cp \$? \$@
11582 cp \$? final_file
11583EOF
11584
11585if test ! -d sub ; then
11586 mkdir sub
11587fi
11588echo dummy > sub/file
f6bcfd97 11589${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11590RESULT=$?
11591rm -f sub/file check final_file confMake
11592rmdir sub
11593if test "$RESULT" = 0; then
04e7a216 11594 wx_cv_prog_makevpath="yes"
10f2d63a 11595else
04e7a216
VZ
11596 wx_cv_prog_makevpath="no"
11597fi
11598
11599fi
e6cc62c6
VS
11600echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11601echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11602
11603if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11604{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11605You need a make-utility that is able to use the variable
11606VPATH correctly.
11607If your version of make does not support VPATH correctly,
11608please install GNU-make (possibly as gmake), and start
11609configure with the following command:
11610export MAKE=gmake; ./configure for sh-type shells
11611setenv MAKE gmake; ./configure for csh-type shells
11612Also please do remember to use gmake in this case every time
11613you are trying to compile.
e6cc62c6
VS
11614" >&5
11615echo "$as_me: error:
11616You need a make-utility that is able to use the variable
11617VPATH correctly.
11618If your version of make does not support VPATH correctly,
11619please install GNU-make (possibly as gmake), and start
11620configure with the following command:
11621export MAKE=gmake; ./configure for sh-type shells
11622setenv MAKE gmake; ./configure for csh-type shells
11623Also please do remember to use gmake in this case every time
11624you are trying to compile.
11625" >&2;}
11626 { (exit 1); exit 1; }; }
11627fi fi
e6cc62c6
VS
11628echo "$as_me:$LINENO: checking whether ln -s works" >&5
11629echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11630LN_S=$as_ln_s
11631if test "$LN_S" = "ln -s"; then
11632 echo "$as_me:$LINENO: result: yes" >&5
11633echo "${ECHO_T}yes" >&6
10f2d63a 11634else
e6cc62c6
VS
11635 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11636echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11637fi
5c6fa7d2 11638
247f5006 11639
2b5f62a0
VZ
11640case "${host}" in
11641 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11642 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11643 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11644echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11645if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11647else
e6cc62c6 11648 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11649LIBS="-lcExt $LIBS"
e6cc62c6
VS
11650cat >conftest.$ac_ext <<_ACEOF
11651#line $LINENO "configure"
11652/* confdefs.h. */
11653_ACEOF
11654cat confdefs.h >>conftest.$ac_ext
11655cat >>conftest.$ac_ext <<_ACEOF
11656/* end confdefs.h. */
11657
2b5f62a0 11658/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11659#ifdef __cplusplus
11660extern "C"
11661#endif
2b5f62a0 11662/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11663 builtin and then its argument prototype would still apply. */
11664char drand48 ();
11665int
11666main ()
11667{
11668drand48 ();
11669 ;
11670 return 0;
11671}
11672_ACEOF
11673rm -f conftest.$ac_objext conftest$ac_exeext
11674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11675 (eval $ac_link) 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -s conftest$ac_exeext'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 ac_cv_lib_cExt_drand48=yes
11686else
11687 echo "$as_me: failed program was:" >&5
11688sed 's/^/| /' conftest.$ac_ext >&5
11689
11690ac_cv_lib_cExt_drand48=no
11691fi
11692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11693LIBS=$ac_check_lib_save_LIBS
11694fi
11695echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11696echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11697if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11698 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11699fi
11700
11701 else
11702 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11703 fi
73d617c9
MB
11704 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11705echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11706if test "${wx_cv_gcc3+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708else
11709
11710 cat >conftest.$ac_ext <<_ACEOF
11711#line $LINENO "configure"
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717#include <features.h>
11718int
11719main ()
11720{
11721
11722 #if (__GNUC__ < 3)
11723 #error old gcc
11724 #endif
11725
11726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext
11731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732 (eval $ac_compile) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -s conftest.$ac_objext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742
11743 wx_cv_gcc3=yes
11744
11745else
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749
11750 wx_cv_gcc3=no
11751
11752
11753fi
11754rm -f conftest.$ac_objext conftest.$ac_ext
11755
11756fi
11757echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
11758echo "${ECHO_T}$wx_cv_gcc3" >&6
11759 if test "$wx_cv_gcc3" = "no"; then
11760 LIBS="$LIBS -lstdcpp"
11761 else
11762 LIBS="$LIBS -lstdcxx"
11763 fi
2b5f62a0
VZ
11764 ;;
11765esac
11766
a0b9e27f 11767
01aa5863
VS
11768if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11769 echo "$as_me:$LINENO: checking for strings.h" >&5
11770echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11771if test "${ac_cv_header_strings_h+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773else
11774 ac_cv_header_strings_h=no
11775fi
11776echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11777echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11778 if test "$ac_cv_header_strings_h" = "no"; then
11779 echo "$as_me:$LINENO: result: forced no into cache" >&5
11780echo "${ECHO_T}forced no into cache" >&6
11781 else
11782 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11783echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11784 fi
11785fi
11786echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11787echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11788if test "${ac_cv_header_stdc+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790else
11791 cat >conftest.$ac_ext <<_ACEOF
11792#line $LINENO "configure"
11793/* confdefs.h. */
11794_ACEOF
11795cat confdefs.h >>conftest.$ac_ext
11796cat >>conftest.$ac_ext <<_ACEOF
11797/* end confdefs.h. */
11798#include <stdlib.h>
11799#include <stdarg.h>
11800#include <string.h>
11801#include <float.h>
247f5006 11802
e6cc62c6
VS
11803int
11804main ()
11805{
90dd450c 11806
e6cc62c6
VS
11807 ;
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext
11812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } &&
11817 { ac_try='test -s conftest.$ac_objext'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }; then
11823 ac_cv_header_stdc=yes
8284b0c5 11824else
e6cc62c6
VS
11825 echo "$as_me: failed program was:" >&5
11826sed 's/^/| /' conftest.$ac_ext >&5
11827
11828ac_cv_header_stdc=no
21d1c967 11829fi
e6cc62c6 11830rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11831
e6cc62c6
VS
11832if test $ac_cv_header_stdc = yes; then
11833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11834 cat >conftest.$ac_ext <<_ACEOF
11835#line $LINENO "configure"
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
11841#include <string.h>
11842
11843_ACEOF
11844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11845 $EGREP "memchr" >/dev/null 2>&1; then
11846 :
11847else
11848 ac_cv_header_stdc=no
3a922bb4 11849fi
a0b9e27f 11850rm -f conftest*
e6cc62c6 11851
90dd450c 11852fi
e6cc62c6
VS
11853
11854if test $ac_cv_header_stdc = yes; then
11855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11856 cat >conftest.$ac_ext <<_ACEOF
11857#line $LINENO "configure"
11858/* confdefs.h. */
11859_ACEOF
11860cat confdefs.h >>conftest.$ac_ext
11861cat >>conftest.$ac_ext <<_ACEOF
11862/* end confdefs.h. */
11863#include <stdlib.h>
11864
11865_ACEOF
11866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11867 $EGREP "free" >/dev/null 2>&1; then
11868 :
a0b9e27f 11869else
e6cc62c6 11870 ac_cv_header_stdc=no
21d1c967 11871fi
e6cc62c6 11872rm -f conftest*
247f5006
VZ
11873
11874fi
e6cc62c6
VS
11875
11876if test $ac_cv_header_stdc = yes; then
11877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11878 if test "$cross_compiling" = yes; then
11879 :
11880else
11881 cat >conftest.$ac_ext <<_ACEOF
11882#line $LINENO "configure"
11883/* confdefs.h. */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h. */
11888#include <ctype.h>
11889#if ((' ' & 0x0FF) == 0x020)
11890# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11891# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11892#else
11893# define ISLOWER(c) \
11894 (('a' <= (c) && (c) <= 'i') \
11895 || ('j' <= (c) && (c) <= 'r') \
11896 || ('s' <= (c) && (c) <= 'z'))
11897# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11898#endif
11899
11900#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11901int
11902main ()
11903{
11904 int i;
11905 for (i = 0; i < 256; i++)
11906 if (XOR (islower (i), ISLOWER (i))
11907 || toupper (i) != TOUPPER (i))
11908 exit(2);
11909 exit (0);
11910}
11911_ACEOF
11912rm -f conftest$ac_exeext
11913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914 (eval $ac_link) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 :
a0b9e27f 11924else
e6cc62c6
VS
11925 echo "$as_me: program exited with status $ac_status" >&5
11926echo "$as_me: failed program was:" >&5
11927sed 's/^/| /' conftest.$ac_ext >&5
11928
11929( exit $ac_status )
11930ac_cv_header_stdc=no
11931fi
11932rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11933fi
11934fi
11935fi
11936echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11937echo "${ECHO_T}$ac_cv_header_stdc" >&6
11938if test $ac_cv_header_stdc = yes; then
11939
11940cat >>confdefs.h <<\_ACEOF
11941#define STDC_HEADERS 1
11942_ACEOF
11943
a0b9e27f 11944fi
e6cc62c6
VS
11945
11946# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11957 inttypes.h stdint.h unistd.h
11958do
11959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11960echo "$as_me:$LINENO: checking for $ac_header" >&5
11961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11962if eval "test \"\${$as_ac_Header+set}\" = set"; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11964else
11965 cat >conftest.$ac_ext <<_ACEOF
11966#line $LINENO "configure"
11967/* confdefs.h. */
11968_ACEOF
11969cat confdefs.h >>conftest.$ac_ext
11970cat >>conftest.$ac_ext <<_ACEOF
11971/* end confdefs.h. */
11972$ac_includes_default
11973
11974#include <$ac_header>
11975_ACEOF
11976rm -f conftest.$ac_objext
11977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11978 (eval $ac_compile) 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -s conftest.$ac_objext'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 eval "$as_ac_Header=yes"
11989else
11990 echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993eval "$as_ac_Header=no"
11994fi
11995rm -f conftest.$ac_objext conftest.$ac_ext
11996fi
11997echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11998echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11999if test `eval echo '${'$as_ac_Header'}'` = yes; then
12000 cat >>confdefs.h <<_ACEOF
12001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12002_ACEOF
12003
12004fi
12005
a0b9e27f 12006done
90dd450c 12007
e6cc62c6
VS
12008
12009
12010for ac_header in strings.h
21d1c967 12011do
e6cc62c6
VS
12012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12013if eval "test \"\${$as_ac_Header+set}\" = set"; then
12014 echo "$as_me:$LINENO: checking for $ac_header" >&5
12015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12016if eval "test \"\${$as_ac_Header+set}\" = set"; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018fi
12019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12021else
12022 # Is the header compilable?
12023echo "$as_me:$LINENO: checking $ac_header usability" >&5
12024echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12025cat >conftest.$ac_ext <<_ACEOF
12026#line $LINENO "configure"
12027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
12032$ac_includes_default
12033#include <$ac_header>
12034_ACEOF
12035rm -f conftest.$ac_objext
12036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -s conftest.$ac_objext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_header_compiler=yes
12048else
12049 echo "$as_me: failed program was:" >&5
12050sed 's/^/| /' conftest.$ac_ext >&5
12051
12052ac_header_compiler=no
12053fi
12054rm -f conftest.$ac_objext conftest.$ac_ext
12055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12056echo "${ECHO_T}$ac_header_compiler" >&6
12057
12058# Is the header present?
12059echo "$as_me:$LINENO: checking $ac_header presence" >&5
12060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12061cat >conftest.$ac_ext <<_ACEOF
12062#line $LINENO "configure"
12063/* confdefs.h. */
12064_ACEOF
12065cat confdefs.h >>conftest.$ac_ext
12066cat >>conftest.$ac_ext <<_ACEOF
12067/* end confdefs.h. */
12068#include <$ac_header>
12069_ACEOF
12070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12072 ac_status=$?
12073 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } >/dev/null; then
12078 if test -s conftest.err; then
12079 ac_cpp_err=$ac_c_preproc_warn_flag
12080 else
12081 ac_cpp_err=
12082 fi
12083else
12084 ac_cpp_err=yes
12085fi
12086if test -z "$ac_cpp_err"; then
12087 ac_header_preproc=yes
12088else
12089 echo "$as_me: failed program was:" >&5
12090sed 's/^/| /' conftest.$ac_ext >&5
12091
12092 ac_header_preproc=no
12093fi
12094rm -f conftest.err conftest.$ac_ext
12095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12096echo "${ECHO_T}$ac_header_preproc" >&6
12097
12098# So? What about this header?
12099case $ac_header_compiler:$ac_header_preproc in
12100 yes:no )
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12105 (
12106 cat <<\_ASBOX
12107## ------------------------------------ ##
12108## Report this to bug-autoconf@gnu.org. ##
12109## ------------------------------------ ##
12110_ASBOX
12111 ) |
12112 sed "s/^/$as_me: WARNING: /" >&2
12113 ;;
12114 no:yes )
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12121 (
12122 cat <<\_ASBOX
12123## ------------------------------------ ##
12124## Report this to bug-autoconf@gnu.org. ##
12125## ------------------------------------ ##
12126_ASBOX
12127 ) |
12128 sed "s/^/$as_me: WARNING: /" >&2
12129 ;;
12130esac
12131echo "$as_me:$LINENO: checking for $ac_header" >&5
12132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12133if eval "test \"\${$as_ac_Header+set}\" = set"; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135else
12136 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12137fi
e6cc62c6
VS
12138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12140
a0b9e27f 12141fi
e6cc62c6
VS
12142if test `eval echo '${'$as_ac_Header'}'` = yes; then
12143 cat >>confdefs.h <<_ACEOF
12144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12145_ACEOF
12146
12147fi
12148
12149done
12150
e6cc62c6
VS
12151
12152
12153for ac_header in stdlib.h
12154do
12155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12156if eval "test \"\${$as_ac_Header+set}\" = set"; then
12157 echo "$as_me:$LINENO: checking for $ac_header" >&5
12158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12159if eval "test \"\${$as_ac_Header+set}\" = set"; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161fi
12162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12164else
12165 # Is the header compilable?
12166echo "$as_me:$LINENO: checking $ac_header usability" >&5
12167echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12168cat >conftest.$ac_ext <<_ACEOF
12169#line $LINENO "configure"
12170/* confdefs.h. */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h. */
12175$ac_includes_default
12176#include <$ac_header>
12177_ACEOF
12178rm -f conftest.$ac_objext
12179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180 (eval $ac_compile) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -s conftest.$ac_objext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 ac_header_compiler=yes
12191else
12192 echo "$as_me: failed program was:" >&5
12193sed 's/^/| /' conftest.$ac_ext >&5
12194
12195ac_header_compiler=no
12196fi
12197rm -f conftest.$ac_objext conftest.$ac_ext
12198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12199echo "${ECHO_T}$ac_header_compiler" >&6
12200
12201# Is the header present?
12202echo "$as_me:$LINENO: checking $ac_header presence" >&5
12203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12204cat >conftest.$ac_ext <<_ACEOF
12205#line $LINENO "configure"
12206/* confdefs.h. */
12207_ACEOF
12208cat confdefs.h >>conftest.$ac_ext
12209cat >>conftest.$ac_ext <<_ACEOF
12210/* end confdefs.h. */
12211#include <$ac_header>
12212_ACEOF
12213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } >/dev/null; then
12221 if test -s conftest.err; then
12222 ac_cpp_err=$ac_c_preproc_warn_flag
12223 else
12224 ac_cpp_err=
12225 fi
12226else
12227 ac_cpp_err=yes
12228fi
12229if test -z "$ac_cpp_err"; then
12230 ac_header_preproc=yes
12231else
12232 echo "$as_me: failed program was:" >&5
12233sed 's/^/| /' conftest.$ac_ext >&5
12234
12235 ac_header_preproc=no
12236fi
12237rm -f conftest.err conftest.$ac_ext
12238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12239echo "${ECHO_T}$ac_header_preproc" >&6
12240
12241# So? What about this header?
12242case $ac_header_compiler:$ac_header_preproc in
12243 yes:no )
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12247echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12248 (
12249 cat <<\_ASBOX
12250## ------------------------------------ ##
12251## Report this to bug-autoconf@gnu.org. ##
12252## ------------------------------------ ##
12253_ASBOX
12254 ) |
12255 sed "s/^/$as_me: WARNING: /" >&2
12256 ;;
12257 no:yes )
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12263echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12264 (
12265 cat <<\_ASBOX
12266## ------------------------------------ ##
12267## Report this to bug-autoconf@gnu.org. ##
12268## ------------------------------------ ##
12269_ASBOX
12270 ) |
12271 sed "s/^/$as_me: WARNING: /" >&2
12272 ;;
12273esac
12274echo "$as_me:$LINENO: checking for $ac_header" >&5
12275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12276if eval "test \"\${$as_ac_Header+set}\" = set"; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12278else
e6cc62c6
VS
12279 eval "$as_ac_Header=$ac_header_preproc"
12280fi
12281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12283
21d1c967 12284fi
e6cc62c6
VS
12285if test `eval echo '${'$as_ac_Header'}'` = yes; then
12286 cat >>confdefs.h <<_ACEOF
12287#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12288_ACEOF
12289
12290fi
12291
21d1c967 12292done
4f14bcd8 12293
5c6fa7d2 12294
e6cc62c6 12295for ac_header in malloc.h
21d1c967 12296do
e6cc62c6
VS
12297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12298if eval "test \"\${$as_ac_Header+set}\" = set"; then
12299 echo "$as_me:$LINENO: checking for $ac_header" >&5
12300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12301if eval "test \"\${$as_ac_Header+set}\" = set"; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12303fi
12304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12306else
12307 # Is the header compilable?
12308echo "$as_me:$LINENO: checking $ac_header usability" >&5
12309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12310cat >conftest.$ac_ext <<_ACEOF
12311#line $LINENO "configure"
12312/* confdefs.h. */
12313_ACEOF
12314cat confdefs.h >>conftest.$ac_ext
12315cat >>conftest.$ac_ext <<_ACEOF
12316/* end confdefs.h. */
12317$ac_includes_default
12318#include <$ac_header>
12319_ACEOF
12320rm -f conftest.$ac_objext
12321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12322 (eval $ac_compile) 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try='test -s conftest.$ac_objext'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 ac_header_compiler=yes
12333else
12334 echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337ac_header_compiler=no
12338fi
12339rm -f conftest.$ac_objext conftest.$ac_ext
12340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12341echo "${ECHO_T}$ac_header_compiler" >&6
12342
12343# Is the header present?
12344echo "$as_me:$LINENO: checking $ac_header presence" >&5
12345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12346cat >conftest.$ac_ext <<_ACEOF
12347#line $LINENO "configure"
12348/* confdefs.h. */
12349_ACEOF
12350cat confdefs.h >>conftest.$ac_ext
12351cat >>conftest.$ac_ext <<_ACEOF
12352/* end confdefs.h. */
12353#include <$ac_header>
12354_ACEOF
12355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } >/dev/null; then
12363 if test -s conftest.err; then
12364 ac_cpp_err=$ac_c_preproc_warn_flag
12365 else
12366 ac_cpp_err=
12367 fi
12368else
12369 ac_cpp_err=yes
12370fi
12371if test -z "$ac_cpp_err"; then
12372 ac_header_preproc=yes
12373else
12374 echo "$as_me: failed program was:" >&5
12375sed 's/^/| /' conftest.$ac_ext >&5
12376
12377 ac_header_preproc=no
12378fi
12379rm -f conftest.err conftest.$ac_ext
12380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12381echo "${ECHO_T}$ac_header_preproc" >&6
12382
12383# So? What about this header?
12384case $ac_header_compiler:$ac_header_preproc in
12385 yes:no )
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12390 (
12391 cat <<\_ASBOX
12392## ------------------------------------ ##
12393## Report this to bug-autoconf@gnu.org. ##
12394## ------------------------------------ ##
12395_ASBOX
12396 ) |
12397 sed "s/^/$as_me: WARNING: /" >&2
12398 ;;
12399 no:yes )
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12401echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12403echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12405echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12406 (
12407 cat <<\_ASBOX
12408## ------------------------------------ ##
12409## Report this to bug-autoconf@gnu.org. ##
12410## ------------------------------------ ##
12411_ASBOX
12412 ) |
12413 sed "s/^/$as_me: WARNING: /" >&2
12414 ;;
12415esac
12416echo "$as_me:$LINENO: checking for $ac_header" >&5
12417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12418if eval "test \"\${$as_ac_Header+set}\" = set"; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420else
12421 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12422fi
e6cc62c6
VS
12423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12425
21d1c967 12426fi
e6cc62c6
VS
12427if test `eval echo '${'$as_ac_Header'}'` = yes; then
12428 cat >>confdefs.h <<_ACEOF
12429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12430_ACEOF
12431
12432fi
12433
12434done
12435
12436
12437for ac_header in unistd.h
12438do
12439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12440if eval "test \"\${$as_ac_Header+set}\" = set"; then
12441 echo "$as_me:$LINENO: checking for $ac_header" >&5
12442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12443if eval "test \"\${$as_ac_Header+set}\" = set"; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445fi
12446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12448else
12449 # Is the header compilable?
12450echo "$as_me:$LINENO: checking $ac_header usability" >&5
12451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12452cat >conftest.$ac_ext <<_ACEOF
12453#line $LINENO "configure"
12454/* confdefs.h. */
12455_ACEOF
12456cat confdefs.h >>conftest.$ac_ext
12457cat >>conftest.$ac_ext <<_ACEOF
12458/* end confdefs.h. */
12459$ac_includes_default
12460#include <$ac_header>
12461_ACEOF
12462rm -f conftest.$ac_objext
12463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12464 (eval $ac_compile) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
12468 { ac_try='test -s conftest.$ac_objext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_header_compiler=yes
12475else
12476 echo "$as_me: failed program was:" >&5
12477sed 's/^/| /' conftest.$ac_ext >&5
12478
12479ac_header_compiler=no
12480fi
12481rm -f conftest.$ac_objext conftest.$ac_ext
12482echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12483echo "${ECHO_T}$ac_header_compiler" >&6
12484
12485# Is the header present?
12486echo "$as_me:$LINENO: checking $ac_header presence" >&5
12487echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12488cat >conftest.$ac_ext <<_ACEOF
12489#line $LINENO "configure"
12490/* confdefs.h. */
12491_ACEOF
12492cat confdefs.h >>conftest.$ac_ext
12493cat >>conftest.$ac_ext <<_ACEOF
12494/* end confdefs.h. */
12495#include <$ac_header>
12496_ACEOF
12497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12499 ac_status=$?
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -f conftest.er1
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } >/dev/null; then
12505 if test -s conftest.err; then
12506 ac_cpp_err=$ac_c_preproc_warn_flag
12507 else
12508 ac_cpp_err=
12509 fi
a0b9e27f 12510else
e6cc62c6
VS
12511 ac_cpp_err=yes
12512fi
12513if test -z "$ac_cpp_err"; then
12514 ac_header_preproc=yes
12515else
12516 echo "$as_me: failed program was:" >&5
12517sed 's/^/| /' conftest.$ac_ext >&5
12518
12519 ac_header_preproc=no
12520fi
12521rm -f conftest.err conftest.$ac_ext
12522echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12523echo "${ECHO_T}$ac_header_preproc" >&6
12524
12525# So? What about this header?
12526case $ac_header_compiler:$ac_header_preproc in
12527 yes:no )
12528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12529echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12532 (
12533 cat <<\_ASBOX
12534## ------------------------------------ ##
12535## Report this to bug-autoconf@gnu.org. ##
12536## ------------------------------------ ##
12537_ASBOX
12538 ) |
12539 sed "s/^/$as_me: WARNING: /" >&2
12540 ;;
12541 no:yes )
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12543echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12545echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12548 (
12549 cat <<\_ASBOX
12550## ------------------------------------ ##
12551## Report this to bug-autoconf@gnu.org. ##
12552## ------------------------------------ ##
12553_ASBOX
12554 ) |
12555 sed "s/^/$as_me: WARNING: /" >&2
12556 ;;
12557esac
12558echo "$as_me:$LINENO: checking for $ac_header" >&5
12559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12560if eval "test \"\${$as_ac_Header+set}\" = set"; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12562else
12563 eval "$as_ac_Header=$ac_header_preproc"
12564fi
12565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12567
12568fi
12569if test `eval echo '${'$as_ac_Header'}'` = yes; then
12570 cat >>confdefs.h <<_ACEOF
12571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12572_ACEOF
12573
d4158b5d 12574fi
e6cc62c6 12575
21d1c967 12576done
f6bcfd97 12577
e6cc62c6
VS
12578
12579for ac_header in wchar.h
12580do
12581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12582if eval "test \"\${$as_ac_Header+set}\" = set"; then
12583 echo "$as_me:$LINENO: checking for $ac_header" >&5
12584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12585if eval "test \"\${$as_ac_Header+set}\" = set"; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587fi
12588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12590else
12591 # Is the header compilable?
12592echo "$as_me:$LINENO: checking $ac_header usability" >&5
12593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12594cat >conftest.$ac_ext <<_ACEOF
12595#line $LINENO "configure"
12596/* confdefs.h. */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
12600/* end confdefs.h. */
12601$ac_includes_default
12602#include <$ac_header>
12603_ACEOF
12604rm -f conftest.$ac_objext
12605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606 (eval $ac_compile) 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -s conftest.$ac_objext'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12616 ac_header_compiler=yes
12617else
12618 echo "$as_me: failed program was:" >&5
12619sed 's/^/| /' conftest.$ac_ext >&5
12620
12621ac_header_compiler=no
12622fi
12623rm -f conftest.$ac_objext conftest.$ac_ext
12624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12625echo "${ECHO_T}$ac_header_compiler" >&6
12626
12627# Is the header present?
12628echo "$as_me:$LINENO: checking $ac_header presence" >&5
12629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12630cat >conftest.$ac_ext <<_ACEOF
12631#line $LINENO "configure"
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637#include <$ac_header>
12638_ACEOF
12639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } >/dev/null; then
12647 if test -s conftest.err; then
12648 ac_cpp_err=$ac_c_preproc_warn_flag
12649 else
12650 ac_cpp_err=
12651 fi
12652else
12653 ac_cpp_err=yes
12654fi
12655if test -z "$ac_cpp_err"; then
12656 ac_header_preproc=yes
12657else
12658 echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661 ac_header_preproc=no
12662fi
12663rm -f conftest.err conftest.$ac_ext
12664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12665echo "${ECHO_T}$ac_header_preproc" >&6
12666
12667# So? What about this header?
12668case $ac_header_compiler:$ac_header_preproc in
12669 yes:no )
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12674 (
12675 cat <<\_ASBOX
12676## ------------------------------------ ##
12677## Report this to bug-autoconf@gnu.org. ##
12678## ------------------------------------ ##
12679_ASBOX
12680 ) |
12681 sed "s/^/$as_me: WARNING: /" >&2
12682 ;;
12683 no:yes )
12684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12687echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12690 (
12691 cat <<\_ASBOX
12692## ------------------------------------ ##
12693## Report this to bug-autoconf@gnu.org. ##
12694## ------------------------------------ ##
12695_ASBOX
12696 ) |
12697 sed "s/^/$as_me: WARNING: /" >&2
12698 ;;
12699esac
12700echo "$as_me:$LINENO: checking for $ac_header" >&5
12701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12702if eval "test \"\${$as_ac_Header+set}\" = set"; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704else
12705 eval "$as_ac_Header=$ac_header_preproc"
12706fi
12707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12709
90dd450c 12710fi
e6cc62c6
VS
12711if test `eval echo '${'$as_ac_Header'}'` = yes; then
12712 cat >>confdefs.h <<_ACEOF
12713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12714_ACEOF
12715
12716fi
12717
12718done
90dd450c 12719
e6cc62c6
VS
12720
12721if test "$ac_cv_header_wchar_h" != "yes"; then
12722
12723for ac_header in wcstr.h
21d1c967 12724do
e6cc62c6
VS
12725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12726if eval "test \"\${$as_ac_Header+set}\" = set"; then
12727 echo "$as_me:$LINENO: checking for $ac_header" >&5
12728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12729if eval "test \"\${$as_ac_Header+set}\" = set"; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731fi
12732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12734else
12735 # Is the header compilable?
12736echo "$as_me:$LINENO: checking $ac_header usability" >&5
12737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12738cat >conftest.$ac_ext <<_ACEOF
12739#line $LINENO "configure"
12740/* confdefs.h. */
12741_ACEOF
12742cat confdefs.h >>conftest.$ac_ext
12743cat >>conftest.$ac_ext <<_ACEOF
12744/* end confdefs.h. */
12745$ac_includes_default
12746#include <$ac_header>
12747_ACEOF
12748rm -f conftest.$ac_objext
12749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750 (eval $ac_compile) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -s conftest.$ac_objext'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 ac_header_compiler=yes
12761else
12762 echo "$as_me: failed program was:" >&5
12763sed 's/^/| /' conftest.$ac_ext >&5
12764
12765ac_header_compiler=no
12766fi
12767rm -f conftest.$ac_objext conftest.$ac_ext
12768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12769echo "${ECHO_T}$ac_header_compiler" >&6
12770
12771# Is the header present?
12772echo "$as_me:$LINENO: checking $ac_header presence" >&5
12773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12774cat >conftest.$ac_ext <<_ACEOF
12775#line $LINENO "configure"
12776/* confdefs.h. */
12777_ACEOF
12778cat confdefs.h >>conftest.$ac_ext
12779cat >>conftest.$ac_ext <<_ACEOF
12780/* end confdefs.h. */
12781#include <$ac_header>
12782_ACEOF
12783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } >/dev/null; then
12791 if test -s conftest.err; then
12792 ac_cpp_err=$ac_c_preproc_warn_flag
12793 else
12794 ac_cpp_err=
12795 fi
12796else
12797 ac_cpp_err=yes
12798fi
12799if test -z "$ac_cpp_err"; then
12800 ac_header_preproc=yes
12801else
12802 echo "$as_me: failed program was:" >&5
12803sed 's/^/| /' conftest.$ac_ext >&5
12804
12805 ac_header_preproc=no
12806fi
12807rm -f conftest.err conftest.$ac_ext
12808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12809echo "${ECHO_T}$ac_header_preproc" >&6
12810
12811# So? What about this header?
12812case $ac_header_compiler:$ac_header_preproc in
12813 yes:no )
12814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12818 (
12819 cat <<\_ASBOX
12820## ------------------------------------ ##
12821## Report this to bug-autoconf@gnu.org. ##
12822## ------------------------------------ ##
12823_ASBOX
12824 ) |
12825 sed "s/^/$as_me: WARNING: /" >&2
12826 ;;
12827 no:yes )
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12834 (
12835 cat <<\_ASBOX
12836## ------------------------------------ ##
12837## Report this to bug-autoconf@gnu.org. ##
12838## ------------------------------------ ##
12839_ASBOX
12840 ) |
12841 sed "s/^/$as_me: WARNING: /" >&2
12842 ;;
12843esac
12844echo "$as_me:$LINENO: checking for $ac_header" >&5
12845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12846if eval "test \"\${$as_ac_Header+set}\" = set"; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12848else
12849 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12850fi
e6cc62c6
VS
12851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12853
4f14bcd8 12854fi
e6cc62c6
VS
12855if test `eval echo '${'$as_ac_Header'}'` = yes; then
12856 cat >>confdefs.h <<_ACEOF
12857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12858_ACEOF
12859
12860fi
12861
12862done
12863
12864fi
12865
12866
12867for ac_header in fnmatch.h
12868do
12869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12870if eval "test \"\${$as_ac_Header+set}\" = set"; then
12871 echo "$as_me:$LINENO: checking for $ac_header" >&5
12872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12873if eval "test \"\${$as_ac_Header+set}\" = set"; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12875fi
12876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12878else
12879 # Is the header compilable?
12880echo "$as_me:$LINENO: checking $ac_header usability" >&5
12881echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12882cat >conftest.$ac_ext <<_ACEOF
12883#line $LINENO "configure"
12884/* confdefs.h. */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h. */
12889$ac_includes_default
12890#include <$ac_header>
12891_ACEOF
12892rm -f conftest.$ac_objext
12893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -s conftest.$ac_objext'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 ac_header_compiler=yes
12905else
12906 echo "$as_me: failed program was:" >&5
12907sed 's/^/| /' conftest.$ac_ext >&5
12908
12909ac_header_compiler=no
12910fi
12911rm -f conftest.$ac_objext conftest.$ac_ext
12912echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12913echo "${ECHO_T}$ac_header_compiler" >&6
12914
12915# Is the header present?
12916echo "$as_me:$LINENO: checking $ac_header presence" >&5
12917echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12918cat >conftest.$ac_ext <<_ACEOF
12919#line $LINENO "configure"
12920/* confdefs.h. */
12921_ACEOF
12922cat confdefs.h >>conftest.$ac_ext
12923cat >>conftest.$ac_ext <<_ACEOF
12924/* end confdefs.h. */
12925#include <$ac_header>
12926_ACEOF
12927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } >/dev/null; then
12935 if test -s conftest.err; then
12936 ac_cpp_err=$ac_c_preproc_warn_flag
12937 else
12938 ac_cpp_err=
12939 fi
12940else
12941 ac_cpp_err=yes
12942fi
12943if test -z "$ac_cpp_err"; then
12944 ac_header_preproc=yes
12945else
12946 echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 ac_header_preproc=no
12950fi
12951rm -f conftest.err conftest.$ac_ext
12952echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12953echo "${ECHO_T}$ac_header_preproc" >&6
12954
12955# So? What about this header?
12956case $ac_header_compiler:$ac_header_preproc in
12957 yes:no )
12958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12962 (
12963 cat <<\_ASBOX
12964## ------------------------------------ ##
12965## Report this to bug-autoconf@gnu.org. ##
12966## ------------------------------------ ##
12967_ASBOX
12968 ) |
12969 sed "s/^/$as_me: WARNING: /" >&2
12970 ;;
12971 no:yes )
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12977echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12978 (
12979 cat <<\_ASBOX
12980## ------------------------------------ ##
12981## Report this to bug-autoconf@gnu.org. ##
12982## ------------------------------------ ##
12983_ASBOX
12984 ) |
12985 sed "s/^/$as_me: WARNING: /" >&2
12986 ;;
12987esac
12988echo "$as_me:$LINENO: checking for $ac_header" >&5
12989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12990if eval "test \"\${$as_ac_Header+set}\" = set"; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12992else
e6cc62c6
VS
12993 eval "$as_ac_Header=$ac_header_preproc"
12994fi
12995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12997
21d1c967 12998fi
e6cc62c6
VS
12999if test `eval echo '${'$as_ac_Header'}'` = yes; then
13000 cat >>confdefs.h <<_ACEOF
13001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13002_ACEOF
13003
13004fi
13005
21d1c967 13006done
90dd450c 13007
5c6fa7d2 13008
a0b9e27f 13009if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13010
13011for ac_func in fnmatch
21d1c967 13012do
e6cc62c6
VS
13013as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13014echo "$as_me:$LINENO: checking for $ac_func" >&5
13015echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13016if eval "test \"\${$as_ac_var+set}\" = set"; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018else
13019 cat >conftest.$ac_ext <<_ACEOF
13020#line $LINENO "configure"
13021/* confdefs.h. */
13022_ACEOF
13023cat confdefs.h >>conftest.$ac_ext
13024cat >>conftest.$ac_ext <<_ACEOF
13025/* end confdefs.h. */
a0b9e27f 13026/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13027 which can conflict with char $ac_func (); below.
13028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13029 <limits.h> exists even on freestanding compilers. */
13030#ifdef __STDC__
13031# include <limits.h>
13032#else
13033# include <assert.h>
13034#endif
a0b9e27f 13035/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13036#ifdef __cplusplus
13037extern "C"
13038{
13039#endif
a0b9e27f 13040/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13041 builtin and then its argument prototype would still apply. */
13042char $ac_func ();
a0b9e27f
MB
13043/* The GNU C library defines this for functions which it implements
13044 to always fail with ENOSYS. Some functions are actually named
13045 something starting with __ and the normal name is an alias. */
13046#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13047choke me
13048#else
e6cc62c6
VS
13049char (*f) () = $ac_func;
13050#endif
13051#ifdef __cplusplus
13052}
a0b9e27f
MB
13053#endif
13054
e6cc62c6
VS
13055int
13056main ()
13057{
13058return f != $ac_func;
13059 ;
13060 return 0;
13061}
13062_ACEOF
13063rm -f conftest.$ac_objext conftest$ac_exeext
13064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13065 (eval $ac_link) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -s conftest$ac_exeext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 eval "$as_ac_var=yes"
13076else
13077 echo "$as_me: failed program was:" >&5
13078sed 's/^/| /' conftest.$ac_ext >&5
13079
13080eval "$as_ac_var=no"
13081fi
13082rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13083fi
13084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13085echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13086if test `eval echo '${'$as_ac_var'}'` = yes; then
13087 cat >>confdefs.h <<_ACEOF
13088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13089_ACEOF
32832908 13090
21d1c967
GD
13091fi
13092done
90dd450c 13093
a0b9e27f 13094fi
90dd450c 13095
e6cc62c6
VS
13096
13097for ac_header in langinfo.h
21d1c967 13098do
e6cc62c6
VS
13099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13100if eval "test \"\${$as_ac_Header+set}\" = set"; then
13101 echo "$as_me:$LINENO: checking for $ac_header" >&5
13102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13103if eval "test \"\${$as_ac_Header+set}\" = set"; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13105fi
13106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13108else
13109 # Is the header compilable?
13110echo "$as_me:$LINENO: checking $ac_header usability" >&5
13111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13112cat >conftest.$ac_ext <<_ACEOF
13113#line $LINENO "configure"
13114/* confdefs.h. */
13115_ACEOF
13116cat confdefs.h >>conftest.$ac_ext
13117cat >>conftest.$ac_ext <<_ACEOF
13118/* end confdefs.h. */
13119$ac_includes_default
13120#include <$ac_header>
13121_ACEOF
13122rm -f conftest.$ac_objext
13123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124 (eval $ac_compile) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -s conftest.$ac_objext'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134 ac_header_compiler=yes
13135else
13136 echo "$as_me: failed program was:" >&5
13137sed 's/^/| /' conftest.$ac_ext >&5
13138
13139ac_header_compiler=no
13140fi
13141rm -f conftest.$ac_objext conftest.$ac_ext
13142echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13143echo "${ECHO_T}$ac_header_compiler" >&6
13144
13145# Is the header present?
13146echo "$as_me:$LINENO: checking $ac_header presence" >&5
13147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13148cat >conftest.$ac_ext <<_ACEOF
13149#line $LINENO "configure"
13150/* confdefs.h. */
13151_ACEOF
13152cat confdefs.h >>conftest.$ac_ext
13153cat >>conftest.$ac_ext <<_ACEOF
13154/* end confdefs.h. */
13155#include <$ac_header>
13156_ACEOF
13157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } >/dev/null; then
13165 if test -s conftest.err; then
13166 ac_cpp_err=$ac_c_preproc_warn_flag
13167 else
13168 ac_cpp_err=
13169 fi
13170else
13171 ac_cpp_err=yes
13172fi
13173if test -z "$ac_cpp_err"; then
13174 ac_header_preproc=yes
13175else
13176 echo "$as_me: failed program was:" >&5
13177sed 's/^/| /' conftest.$ac_ext >&5
13178
13179 ac_header_preproc=no
13180fi
13181rm -f conftest.err conftest.$ac_ext
13182echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13183echo "${ECHO_T}$ac_header_preproc" >&6
13184
13185# So? What about this header?
13186case $ac_header_compiler:$ac_header_preproc in
13187 yes:no )
13188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13192 (
13193 cat <<\_ASBOX
13194## ------------------------------------ ##
13195## Report this to bug-autoconf@gnu.org. ##
13196## ------------------------------------ ##
13197_ASBOX
13198 ) |
13199 sed "s/^/$as_me: WARNING: /" >&2
13200 ;;
13201 no:yes )
13202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13208 (
13209 cat <<\_ASBOX
13210## ------------------------------------ ##
13211## Report this to bug-autoconf@gnu.org. ##
13212## ------------------------------------ ##
13213_ASBOX
13214 ) |
13215 sed "s/^/$as_me: WARNING: /" >&2
13216 ;;
13217esac
13218echo "$as_me:$LINENO: checking for $ac_header" >&5
13219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13220if eval "test \"\${$as_ac_Header+set}\" = set"; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222else
13223 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13224fi
e6cc62c6
VS
13225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13227
4f14bcd8 13228fi
e6cc62c6
VS
13229if test `eval echo '${'$as_ac_Header'}'` = yes; then
13230 cat >>confdefs.h <<_ACEOF
13231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13232_ACEOF
13233
21d1c967 13234fi
e6cc62c6 13235
21d1c967 13236done
3a922bb4 13237
8284b0c5 13238
4f5a7f74
VZ
13239case "${host}" in
13240 *-pc-os2_emx | *-pc-os2-emx )
13241 if test $ac_cv_header_langinfo_h = "yes"; then
13242 LIBS="$LIBS -lintl"
13243 fi
13244 ;;
13245esac
1542ea39 13246
a0b9e27f 13247if test "$wxUSE_GUI" = "yes"; then
73d617c9 13248 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13249
eb69fda5 13250for ac_header in X11/Xlib.h
21d1c967 13251do
e6cc62c6
VS
13252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13253if eval "test \"\${$as_ac_Header+set}\" = set"; then
13254 echo "$as_me:$LINENO: checking for $ac_header" >&5
13255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13256if eval "test \"\${$as_ac_Header+set}\" = set"; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13258fi
13259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13261else
13262 # Is the header compilable?
13263echo "$as_me:$LINENO: checking $ac_header usability" >&5
13264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13265cat >conftest.$ac_ext <<_ACEOF
13266#line $LINENO "configure"
13267/* confdefs.h. */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h. */
13272$ac_includes_default
13273#include <$ac_header>
13274_ACEOF
13275rm -f conftest.$ac_objext
13276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13277 (eval $ac_compile) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -s conftest.$ac_objext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_header_compiler=yes
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292ac_header_compiler=no
13293fi
13294rm -f conftest.$ac_objext conftest.$ac_ext
13295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13296echo "${ECHO_T}$ac_header_compiler" >&6
13297
13298# Is the header present?
13299echo "$as_me:$LINENO: checking $ac_header presence" >&5
13300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13301cat >conftest.$ac_ext <<_ACEOF
13302#line $LINENO "configure"
13303/* confdefs.h. */
13304_ACEOF
13305cat confdefs.h >>conftest.$ac_ext
13306cat >>conftest.$ac_ext <<_ACEOF
13307/* end confdefs.h. */
13308#include <$ac_header>
13309_ACEOF
13310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } >/dev/null; then
13318 if test -s conftest.err; then
13319 ac_cpp_err=$ac_c_preproc_warn_flag
13320 else
13321 ac_cpp_err=
13322 fi
13323else
13324 ac_cpp_err=yes
13325fi
13326if test -z "$ac_cpp_err"; then
13327 ac_header_preproc=yes
13328else
13329 echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_header_preproc=no
13333fi
13334rm -f conftest.err conftest.$ac_ext
13335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13336echo "${ECHO_T}$ac_header_preproc" >&6
13337
13338# So? What about this header?
13339case $ac_header_compiler:$ac_header_preproc in
13340 yes:no )
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13345 (
13346 cat <<\_ASBOX
13347## ------------------------------------ ##
13348## Report this to bug-autoconf@gnu.org. ##
13349## ------------------------------------ ##
13350_ASBOX
13351 ) |
13352 sed "s/^/$as_me: WARNING: /" >&2
13353 ;;
13354 no:yes )
13355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13361 (
13362 cat <<\_ASBOX
13363## ------------------------------------ ##
13364## Report this to bug-autoconf@gnu.org. ##
13365## ------------------------------------ ##
13366_ASBOX
13367 ) |
13368 sed "s/^/$as_me: WARNING: /" >&2
13369 ;;
13370esac
13371echo "$as_me:$LINENO: checking for $ac_header" >&5
13372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13373if eval "test \"\${$as_ac_Header+set}\" = set"; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375else
13376 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13377fi
e6cc62c6
VS
13378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13380
90dd450c 13381fi
e6cc62c6
VS
13382if test `eval echo '${'$as_ac_Header'}'` = yes; then
13383 cat >>confdefs.h <<_ACEOF
13384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13385_ACEOF
13386
247f5006 13387fi
e6cc62c6 13388
eb69fda5
VS
13389done
13390
13391
13392for ac_header in X11/XKBlib.h
13393do
13394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13395echo "$as_me:$LINENO: checking for $ac_header" >&5
13396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13397if eval "test \"\${$as_ac_Header+set}\" = set"; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13399else
13400 cat >conftest.$ac_ext <<_ACEOF
13401#line $LINENO "configure"
13402/* confdefs.h. */
13403_ACEOF
13404cat confdefs.h >>conftest.$ac_ext
13405cat >>conftest.$ac_ext <<_ACEOF
13406/* end confdefs.h. */
13407
13408 #if HAVE_X11_XLIB_H
13409 #include <X11/Xlib.h>
13410 #endif
13411
13412
13413#include <$ac_header>
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13417 (eval $ac_compile) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -s conftest.$ac_objext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 eval "$as_ac_Header=yes"
13428else
13429 echo "$as_me: failed program was:" >&5
13430sed 's/^/| /' conftest.$ac_ext >&5
13431
13432eval "$as_ac_Header=no"
13433fi
13434rm -f conftest.$ac_objext conftest.$ac_ext
13435fi
13436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13438if test `eval echo '${'$as_ac_Header'}'` = yes; then
13439 cat >>confdefs.h <<_ACEOF
13440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13441_ACEOF
13442
13443fi
13444
247f5006
VZ
13445done
13446
a0b9e27f
MB
13447 fi
13448fi
247f5006 13449
247f5006 13450
e6cc62c6
VS
13451echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13452echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13453if test "${ac_cv_c_const+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455else
13456 cat >conftest.$ac_ext <<_ACEOF
13457#line $LINENO "configure"
13458/* confdefs.h. */
13459_ACEOF
13460cat confdefs.h >>conftest.$ac_ext
13461cat >>conftest.$ac_ext <<_ACEOF
13462/* end confdefs.h. */
13463
13464int
13465main ()
13466{
13467/* FIXME: Include the comments suggested by Paul. */
13468#ifndef __cplusplus
13469 /* Ultrix mips cc rejects this. */
13470 typedef int charset[2];
13471 const charset x;
13472 /* SunOS 4.1.1 cc rejects this. */
13473 char const *const *ccp;
13474 char **p;
13475 /* NEC SVR4.0.2 mips cc rejects this. */
13476 struct point {int x, y;};
13477 static struct point const zero = {0,0};
13478 /* AIX XL C 1.02.0.0 rejects this.
13479 It does not let you subtract one const X* pointer from another in
13480 an arm of an if-expression whose if-part is not a constant
13481 expression */
13482 const char *g = "string";
13483 ccp = &g + (g ? g-g : 0);
13484 /* HPUX 7.0 cc rejects these. */
13485 ++ccp;
13486 p = (char**) ccp;
13487 ccp = (char const *const *) p;
13488 { /* SCO 3.2v4 cc rejects this. */
13489 char *t;
13490 char const *s = 0 ? (char *) 0 : (char const *) 0;
13491
13492 *t++ = 0;
13493 }
13494 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13495 int x[] = {25, 17};
13496 const int *foo = &x[0];
13497 ++foo;
13498 }
13499 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13500 typedef const int *iptr;
13501 iptr p = 0;
13502 ++p;
13503 }
13504 { /* AIX XL C 1.02.0.0 rejects this saying
13505 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13506 struct s { int j; const int *ap[3]; };
13507 struct s *b; b->j = 5;
13508 }
13509 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13510 const int foo = 10;
13511 }
13512#endif
13513
13514 ;
13515 return 0;
13516}
13517_ACEOF
13518rm -f conftest.$ac_objext
13519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13520 (eval $ac_compile) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } &&
13524 { ac_try='test -s conftest.$ac_objext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
a0b9e27f 13530 ac_cv_c_const=yes
247f5006 13531else
e6cc62c6
VS
13532 echo "$as_me: failed program was:" >&5
13533sed 's/^/| /' conftest.$ac_ext >&5
13534
13535ac_cv_c_const=no
247f5006 13536fi
e6cc62c6 13537rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13538fi
e6cc62c6
VS
13539echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13540echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13541if test $ac_cv_c_const = no; then
e6cc62c6
VS
13542
13543cat >>confdefs.h <<\_ACEOF
13544#define const
13545_ACEOF
10f2d63a 13546
90dd450c 13547fi
81809c07 13548
e6cc62c6
VS
13549echo "$as_me:$LINENO: checking for inline" >&5
13550echo $ECHO_N "checking for inline... $ECHO_C" >&6
13551if test "${ac_cv_c_inline+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13553else
a0b9e27f
MB
13554 ac_cv_c_inline=no
13555for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13556 cat >conftest.$ac_ext <<_ACEOF
13557#line $LINENO "configure"
13558/* confdefs.h. */
13559_ACEOF
13560cat confdefs.h >>conftest.$ac_ext
13561cat >>conftest.$ac_ext <<_ACEOF
13562/* end confdefs.h. */
13563#ifndef __cplusplus
13564typedef int foo_t;
13565static $ac_kw foo_t static_foo () {return 0; }
13566$ac_kw foo_t foo () {return 0; }
13567#endif
a0b9e27f 13568
e6cc62c6
VS
13569_ACEOF
13570rm -f conftest.$ac_objext
13571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
13576 { ac_try='test -s conftest.$ac_objext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
a0b9e27f 13582 ac_cv_c_inline=$ac_kw; break
247f5006 13583else
e6cc62c6
VS
13584 echo "$as_me: failed program was:" >&5
13585sed 's/^/| /' conftest.$ac_ext >&5
13586
247f5006 13587fi
e6cc62c6 13588rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13589done
247f5006
VZ
13590
13591fi
e6cc62c6
VS
13592echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13593echo "${ECHO_T}$ac_cv_c_inline" >&6
13594case $ac_cv_c_inline in
a0b9e27f 13595 inline | yes) ;;
e6cc62c6
VS
13596 no)
13597cat >>confdefs.h <<\_ACEOF
13598#define inline
13599_ACEOF
a0b9e27f 13600 ;;
e6cc62c6 13601 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13602#define inline $ac_cv_c_inline
e6cc62c6 13603_ACEOF
a0b9e27f
MB
13604 ;;
13605esac
247f5006 13606
247f5006 13607
e6cc62c6
VS
13608echo "$as_me:$LINENO: checking for char" >&5
13609echo $ECHO_N "checking for char... $ECHO_C" >&6
13610if test "${ac_cv_type_char+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612else
13613 cat >conftest.$ac_ext <<_ACEOF
13614#line $LINENO "configure"
13615/* confdefs.h. */
13616_ACEOF
13617cat confdefs.h >>conftest.$ac_ext
13618cat >>conftest.$ac_ext <<_ACEOF
13619/* end confdefs.h. */
13620$ac_includes_default
13621int
13622main ()
13623{
13624if ((char *) 0)
13625 return 0;
13626if (sizeof (char))
13627 return 0;
13628 ;
13629 return 0;
13630}
13631_ACEOF
13632rm -f conftest.$ac_objext
13633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634 (eval $ac_compile) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } &&
13638 { ac_try='test -s conftest.$ac_objext'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13644 ac_cv_type_char=yes
13645else
13646 echo "$as_me: failed program was:" >&5
13647sed 's/^/| /' conftest.$ac_ext >&5
13648
13649ac_cv_type_char=no
13650fi
13651rm -f conftest.$ac_objext conftest.$ac_ext
13652fi
13653echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13654echo "${ECHO_T}$ac_cv_type_char" >&6
13655
13656echo "$as_me:$LINENO: checking size of char" >&5
13657echo $ECHO_N "checking size of char... $ECHO_C" >&6
13658if test "${ac_cv_sizeof_char+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13660else
13661 if test "$ac_cv_type_char" = yes; then
13662 # The cast to unsigned long works around a bug in the HP C Compiler
13663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13665 # This bug is HP SR number 8606223364.
a0b9e27f 13666 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13667 # Depending upon the size, compute the lo and hi bounds.
13668cat >conftest.$ac_ext <<_ACEOF
13669#line $LINENO "configure"
13670/* confdefs.h. */
13671_ACEOF
13672cat confdefs.h >>conftest.$ac_ext
13673cat >>conftest.$ac_ext <<_ACEOF
13674/* end confdefs.h. */
13675$ac_includes_default
13676int
13677main ()
13678{
13679static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13680test_array [0] = 0
13681
13682 ;
13683 return 0;
13684}
13685_ACEOF
13686rm -f conftest.$ac_objext
13687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13688 (eval $ac_compile) 2>&5
13689 ac_status=$?
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
13692 { ac_try='test -s conftest.$ac_objext'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
13698 ac_lo=0 ac_mid=0
13699 while :; do
13700 cat >conftest.$ac_ext <<_ACEOF
13701#line $LINENO "configure"
13702/* confdefs.h. */
13703_ACEOF
13704cat confdefs.h >>conftest.$ac_ext
13705cat >>conftest.$ac_ext <<_ACEOF
13706/* end confdefs.h. */
13707$ac_includes_default
13708int
13709main ()
13710{
13711static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13712test_array [0] = 0
13713
13714 ;
13715 return 0;
13716}
13717_ACEOF
13718rm -f conftest.$ac_objext
13719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720 (eval $ac_compile) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_hi=$ac_mid; break
13731else
13732 echo "$as_me: failed program was:" >&5
13733sed 's/^/| /' conftest.$ac_ext >&5
13734
13735ac_lo=`expr $ac_mid + 1`
13736 if test $ac_lo -le $ac_mid; then
13737 ac_lo= ac_hi=
13738 break
13739 fi
13740 ac_mid=`expr 2 '*' $ac_mid + 1`
13741fi
13742rm -f conftest.$ac_objext conftest.$ac_ext
13743 done
a0b9e27f 13744else
e6cc62c6
VS
13745 echo "$as_me: failed program was:" >&5
13746sed 's/^/| /' conftest.$ac_ext >&5
13747
13748cat >conftest.$ac_ext <<_ACEOF
13749#line $LINENO "configure"
13750/* confdefs.h. */
13751_ACEOF
13752cat confdefs.h >>conftest.$ac_ext
13753cat >>conftest.$ac_ext <<_ACEOF
13754/* end confdefs.h. */
13755$ac_includes_default
13756int
13757main ()
13758{
13759static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13760test_array [0] = 0
13761
13762 ;
13763 return 0;
13764}
13765_ACEOF
13766rm -f conftest.$ac_objext
13767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 (eval $ac_compile) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -s conftest.$ac_objext'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 ac_hi=-1 ac_mid=-1
13779 while :; do
13780 cat >conftest.$ac_ext <<_ACEOF
13781#line $LINENO "configure"
13782/* confdefs.h. */
13783_ACEOF
13784cat confdefs.h >>conftest.$ac_ext
13785cat >>conftest.$ac_ext <<_ACEOF
13786/* end confdefs.h. */
13787$ac_includes_default
13788int
13789main ()
13790{
13791static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13792test_array [0] = 0
13793
13794 ;
13795 return 0;
13796}
13797_ACEOF
13798rm -f conftest.$ac_objext
13799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800 (eval $ac_compile) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -s conftest.$ac_objext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_lo=$ac_mid; break
13811else
13812 echo "$as_me: failed program was:" >&5
13813sed 's/^/| /' conftest.$ac_ext >&5
13814
13815ac_hi=`expr '(' $ac_mid ')' - 1`
13816 if test $ac_mid -le $ac_hi; then
13817 ac_lo= ac_hi=
13818 break
13819 fi
13820 ac_mid=`expr 2 '*' $ac_mid`
13821fi
13822rm -f conftest.$ac_objext conftest.$ac_ext
13823 done
13824else
13825 echo "$as_me: failed program was:" >&5
13826sed 's/^/| /' conftest.$ac_ext >&5
13827
13828ac_lo= ac_hi=
13829fi
13830rm -f conftest.$ac_objext conftest.$ac_ext
13831fi
13832rm -f conftest.$ac_objext conftest.$ac_ext
13833# Binary search between lo and hi bounds.
13834while test "x$ac_lo" != "x$ac_hi"; do
13835 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13836 cat >conftest.$ac_ext <<_ACEOF
13837#line $LINENO "configure"
13838/* confdefs.h. */
13839_ACEOF
13840cat confdefs.h >>conftest.$ac_ext
13841cat >>conftest.$ac_ext <<_ACEOF
13842/* end confdefs.h. */
13843$ac_includes_default
13844int
13845main ()
13846{
13847static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13848test_array [0] = 0
13849
13850 ;
13851 return 0;
13852}
13853_ACEOF
13854rm -f conftest.$ac_objext
13855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13856 (eval $ac_compile) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_hi=$ac_mid
13867else
13868 echo "$as_me: failed program was:" >&5
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
13871ac_lo=`expr '(' $ac_mid ')' + 1`
13872fi
13873rm -f conftest.$ac_objext conftest.$ac_ext
13874done
13875case $ac_lo in
13876?*) ac_cv_sizeof_char=$ac_lo;;
13877'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13878See \`config.log' for more details." >&5
13879echo "$as_me: error: cannot compute sizeof (char), 77
13880See \`config.log' for more details." >&2;}
13881 { (exit 1); exit 1; }; } ;;
13882esac
13883else
13884 if test "$cross_compiling" = yes; then
13885 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13886See \`config.log' for more details." >&5
13887echo "$as_me: error: cannot run test program while cross compiling
13888See \`config.log' for more details." >&2;}
13889 { (exit 1); exit 1; }; }
13890else
13891 cat >conftest.$ac_ext <<_ACEOF
13892#line $LINENO "configure"
13893/* confdefs.h. */
13894_ACEOF
13895cat confdefs.h >>conftest.$ac_ext
13896cat >>conftest.$ac_ext <<_ACEOF
13897/* end confdefs.h. */
13898$ac_includes_default
13899long longval () { return (long) (sizeof (char)); }
13900unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13901#include <stdio.h>
e6cc62c6
VS
13902#include <stdlib.h>
13903int
13904main ()
247f5006 13905{
e6cc62c6
VS
13906
13907 FILE *f = fopen ("conftest.val", "w");
13908 if (! f)
13909 exit (1);
13910 if (((long) (sizeof (char))) < 0)
13911 {
13912 long i = longval ();
13913 if (i != ((long) (sizeof (char))))
13914 exit (1);
13915 fprintf (f, "%ld\n", i);
13916 }
13917 else
13918 {
13919 unsigned long i = ulongval ();
13920 if (i != ((long) (sizeof (char))))
13921 exit (1);
13922 fprintf (f, "%lu\n", i);
13923 }
13924 exit (ferror (f) || fclose (f) != 0);
13925
13926 ;
13927 return 0;
52127426 13928}
e6cc62c6
VS
13929_ACEOF
13930rm -f conftest$ac_exeext
13931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932 (eval $ac_link) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 ac_cv_sizeof_char=`cat conftest.val`
13942else
13943 echo "$as_me: program exited with status $ac_status" >&5
13944echo "$as_me: failed program was:" >&5
13945sed 's/^/| /' conftest.$ac_ext >&5
13946
13947( exit $ac_status )
13948{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13949See \`config.log' for more details." >&5
13950echo "$as_me: error: cannot compute sizeof (char), 77
13951See \`config.log' for more details." >&2;}
13952 { (exit 1); exit 1; }; }
13953fi
13954rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13955fi
13956fi
13957rm -f conftest.val
247f5006 13958else
a0b9e27f 13959 ac_cv_sizeof_char=0
247f5006 13960fi
247f5006 13961fi
e6cc62c6
VS
13962echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13963echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13964cat >>confdefs.h <<_ACEOF
13965#define SIZEOF_CHAR $ac_cv_sizeof_char
13966_ACEOF
13967
13968
13969echo "$as_me:$LINENO: checking for short" >&5
13970echo $ECHO_N "checking for short... $ECHO_C" >&6
13971if test "${ac_cv_type_short+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13973else
13974 cat >conftest.$ac_ext <<_ACEOF
13975#line $LINENO "configure"
13976/* confdefs.h. */
13977_ACEOF
13978cat confdefs.h >>conftest.$ac_ext
13979cat >>conftest.$ac_ext <<_ACEOF
13980/* end confdefs.h. */
13981$ac_includes_default
13982int
13983main ()
13984{
13985if ((short *) 0)
13986 return 0;
13987if (sizeof (short))
13988 return 0;
13989 ;
13990 return 0;
13991}
13992_ACEOF
13993rm -f conftest.$ac_objext
13994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13995 (eval $ac_compile) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } &&
13999 { ac_try='test -s conftest.$ac_objext'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
14005 ac_cv_type_short=yes
14006else
14007 echo "$as_me: failed program was:" >&5
14008sed 's/^/| /' conftest.$ac_ext >&5
14009
14010ac_cv_type_short=no
14011fi
14012rm -f conftest.$ac_objext conftest.$ac_ext
14013fi
14014echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14015echo "${ECHO_T}$ac_cv_type_short" >&6
14016
14017echo "$as_me:$LINENO: checking size of short" >&5
14018echo $ECHO_N "checking size of short... $ECHO_C" >&6
14019if test "${ac_cv_sizeof_short+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021else
14022 if test "$ac_cv_type_short" = yes; then
14023 # The cast to unsigned long works around a bug in the HP C Compiler
14024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14026 # This bug is HP SR number 8606223364.
14027 if test "$cross_compiling" = yes; then
14028 # Depending upon the size, compute the lo and hi bounds.
14029cat >conftest.$ac_ext <<_ACEOF
14030#line $LINENO "configure"
14031/* confdefs.h. */
14032_ACEOF
14033cat confdefs.h >>conftest.$ac_ext
14034cat >>conftest.$ac_ext <<_ACEOF
14035/* end confdefs.h. */
14036$ac_includes_default
14037int
14038main ()
14039{
14040static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14041test_array [0] = 0
247f5006 14042
e6cc62c6
VS
14043 ;
14044 return 0;
14045}
14046_ACEOF
14047rm -f conftest.$ac_objext
14048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14049 (eval $ac_compile) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -s conftest.$ac_objext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 ac_lo=0 ac_mid=0
14060 while :; do
14061 cat >conftest.$ac_ext <<_ACEOF
14062#line $LINENO "configure"
14063/* confdefs.h. */
14064_ACEOF
14065cat confdefs.h >>conftest.$ac_ext
14066cat >>conftest.$ac_ext <<_ACEOF
14067/* end confdefs.h. */
14068$ac_includes_default
14069int
14070main ()
14071{
14072static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14073test_array [0] = 0
14074
14075 ;
14076 return 0;
14077}
14078_ACEOF
14079rm -f conftest.$ac_objext
14080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14081 (eval $ac_compile) 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -s conftest.$ac_objext'
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_hi=$ac_mid; break
14092else
14093 echo "$as_me: failed program was:" >&5
14094sed 's/^/| /' conftest.$ac_ext >&5
14095
14096ac_lo=`expr $ac_mid + 1`
14097 if test $ac_lo -le $ac_mid; then
14098 ac_lo= ac_hi=
14099 break
14100 fi
14101 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14102fi
e6cc62c6
VS
14103rm -f conftest.$ac_objext conftest.$ac_ext
14104 done
14105else
14106 echo "$as_me: failed program was:" >&5
14107sed 's/^/| /' conftest.$ac_ext >&5
14108
14109cat >conftest.$ac_ext <<_ACEOF
14110#line $LINENO "configure"
14111/* confdefs.h. */
14112_ACEOF
14113cat confdefs.h >>conftest.$ac_ext
14114cat >>conftest.$ac_ext <<_ACEOF
14115/* end confdefs.h. */
14116$ac_includes_default
14117int
14118main ()
14119{
14120static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14121test_array [0] = 0
247f5006 14122
e6cc62c6
VS
14123 ;
14124 return 0;
14125}
14126_ACEOF
14127rm -f conftest.$ac_objext
14128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -s conftest.$ac_objext'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 ac_hi=-1 ac_mid=-1
14140 while :; do
14141 cat >conftest.$ac_ext <<_ACEOF
14142#line $LINENO "configure"
14143/* confdefs.h. */
14144_ACEOF
14145cat confdefs.h >>conftest.$ac_ext
14146cat >>conftest.$ac_ext <<_ACEOF
14147/* end confdefs.h. */
14148$ac_includes_default
14149int
14150main ()
14151{
14152static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14153test_array [0] = 0
247f5006 14154
e6cc62c6
VS
14155 ;
14156 return 0;
14157}
14158_ACEOF
14159rm -f conftest.$ac_objext
14160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -s conftest.$ac_objext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_lo=$ac_mid; break
14172else
14173 echo "$as_me: failed program was:" >&5
14174sed 's/^/| /' conftest.$ac_ext >&5
14175
14176ac_hi=`expr '(' $ac_mid ')' - 1`
14177 if test $ac_mid -le $ac_hi; then
14178 ac_lo= ac_hi=
14179 break
14180 fi
14181 ac_mid=`expr 2 '*' $ac_mid`
14182fi
14183rm -f conftest.$ac_objext conftest.$ac_ext
14184 done
247f5006 14185else
e6cc62c6
VS
14186 echo "$as_me: failed program was:" >&5
14187sed 's/^/| /' conftest.$ac_ext >&5
14188
14189ac_lo= ac_hi=
14190fi
14191rm -f conftest.$ac_objext conftest.$ac_ext
14192fi
14193rm -f conftest.$ac_objext conftest.$ac_ext
14194# Binary search between lo and hi bounds.
14195while test "x$ac_lo" != "x$ac_hi"; do
14196 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14197 cat >conftest.$ac_ext <<_ACEOF
14198#line $LINENO "configure"
14199/* confdefs.h. */
14200_ACEOF
14201cat confdefs.h >>conftest.$ac_ext
14202cat >>conftest.$ac_ext <<_ACEOF
14203/* end confdefs.h. */
14204$ac_includes_default
14205int
14206main ()
14207{
14208static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14209test_array [0] = 0
14210
14211 ;
14212 return 0;
14213}
14214_ACEOF
14215rm -f conftest.$ac_objext
14216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217 (eval $ac_compile) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_hi=$ac_mid
14228else
14229 echo "$as_me: failed program was:" >&5
14230sed 's/^/| /' conftest.$ac_ext >&5
14231
14232ac_lo=`expr '(' $ac_mid ')' + 1`
14233fi
14234rm -f conftest.$ac_objext conftest.$ac_ext
14235done
14236case $ac_lo in
14237?*) ac_cv_sizeof_short=$ac_lo;;
14238'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14239See \`config.log' for more details." >&5
14240echo "$as_me: error: cannot compute sizeof (short), 77
14241See \`config.log' for more details." >&2;}
14242 { (exit 1); exit 1; }; } ;;
14243esac
247f5006 14244else
e6cc62c6
VS
14245 if test "$cross_compiling" = yes; then
14246 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14247See \`config.log' for more details." >&5
14248echo "$as_me: error: cannot run test program while cross compiling
14249See \`config.log' for more details." >&2;}
14250 { (exit 1); exit 1; }; }
14251else
14252 cat >conftest.$ac_ext <<_ACEOF
14253#line $LINENO "configure"
14254/* confdefs.h. */
14255_ACEOF
14256cat confdefs.h >>conftest.$ac_ext
14257cat >>conftest.$ac_ext <<_ACEOF
14258/* end confdefs.h. */
14259$ac_includes_default
14260long longval () { return (long) (sizeof (short)); }
14261unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14262#include <stdio.h>
e6cc62c6
VS
14263#include <stdlib.h>
14264int
14265main ()
a0b9e27f 14266{
e6cc62c6
VS
14267
14268 FILE *f = fopen ("conftest.val", "w");
14269 if (! f)
14270 exit (1);
14271 if (((long) (sizeof (short))) < 0)
14272 {
14273 long i = longval ();
14274 if (i != ((long) (sizeof (short))))
14275 exit (1);
14276 fprintf (f, "%ld\n", i);
14277 }
14278 else
14279 {
14280 unsigned long i = ulongval ();
14281 if (i != ((long) (sizeof (short))))
14282 exit (1);
14283 fprintf (f, "%lu\n", i);
14284 }
14285 exit (ferror (f) || fclose (f) != 0);
14286
14287 ;
14288 return 0;
a0b9e27f 14289}
e6cc62c6
VS
14290_ACEOF
14291rm -f conftest$ac_exeext
14292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293 (eval $ac_link) 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302 ac_cv_sizeof_short=`cat conftest.val`
14303else
14304 echo "$as_me: program exited with status $ac_status" >&5
14305echo "$as_me: failed program was:" >&5
14306sed 's/^/| /' conftest.$ac_ext >&5
14307
14308( exit $ac_status )
14309{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14310See \`config.log' for more details." >&5
14311echo "$as_me: error: cannot compute sizeof (short), 77
14312See \`config.log' for more details." >&2;}
14313 { (exit 1); exit 1; }; }
14314fi
14315rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14316fi
14317fi
14318rm -f conftest.val
247f5006 14319else
a0b9e27f 14320 ac_cv_sizeof_short=0
247f5006 14321fi
247f5006 14322fi
e6cc62c6
VS
14323echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14324echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14325cat >>confdefs.h <<_ACEOF
14326#define SIZEOF_SHORT $ac_cv_sizeof_short
14327_ACEOF
14328
14329
14330echo "$as_me:$LINENO: checking for void *" >&5
14331echo $ECHO_N "checking for void *... $ECHO_C" >&6
14332if test "${ac_cv_type_void_p+set}" = set; then
14333 echo $ECHO_N "(cached) $ECHO_C" >&6
14334else
14335 cat >conftest.$ac_ext <<_ACEOF
14336#line $LINENO "configure"
14337/* confdefs.h. */
14338_ACEOF
14339cat confdefs.h >>conftest.$ac_ext
14340cat >>conftest.$ac_ext <<_ACEOF
14341/* end confdefs.h. */
14342$ac_includes_default
14343int
14344main ()
14345{
14346if ((void * *) 0)
14347 return 0;
14348if (sizeof (void *))
14349 return 0;
14350 ;
14351 return 0;
14352}
14353_ACEOF
14354rm -f conftest.$ac_objext
14355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356 (eval $ac_compile) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -s conftest.$ac_objext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366 ac_cv_type_void_p=yes
14367else
14368 echo "$as_me: failed program was:" >&5
14369sed 's/^/| /' conftest.$ac_ext >&5
14370
14371ac_cv_type_void_p=no
14372fi
14373rm -f conftest.$ac_objext conftest.$ac_ext
14374fi
14375echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14376echo "${ECHO_T}$ac_cv_type_void_p" >&6
14377
14378echo "$as_me:$LINENO: checking size of void *" >&5
14379echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14380if test "${ac_cv_sizeof_void_p+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14382else
14383 if test "$ac_cv_type_void_p" = yes; then
14384 # The cast to unsigned long works around a bug in the HP C Compiler
14385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14387 # This bug is HP SR number 8606223364.
14388 if test "$cross_compiling" = yes; then
14389 # Depending upon the size, compute the lo and hi bounds.
14390cat >conftest.$ac_ext <<_ACEOF
14391#line $LINENO "configure"
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
14397$ac_includes_default
14398int
14399main ()
14400{
14401static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14402test_array [0] = 0
14403
14404 ;
14405 return 0;
14406}
14407_ACEOF
14408rm -f conftest.$ac_objext
14409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14410 (eval $ac_compile) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
14414 { ac_try='test -s conftest.$ac_objext'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 ac_lo=0 ac_mid=0
14421 while :; do
14422 cat >conftest.$ac_ext <<_ACEOF
14423#line $LINENO "configure"
14424/* confdefs.h. */
14425_ACEOF
14426cat confdefs.h >>conftest.$ac_ext
14427cat >>conftest.$ac_ext <<_ACEOF
14428/* end confdefs.h. */
14429$ac_includes_default
14430int
14431main ()
14432{
14433static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14434test_array [0] = 0
247f5006 14435
e6cc62c6
VS
14436 ;
14437 return 0;
14438}
14439_ACEOF
14440rm -f conftest.$ac_objext
14441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14442 (eval $ac_compile) 2>&5
14443 ac_status=$?
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -s conftest.$ac_objext'
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_hi=$ac_mid; break
14453else
14454 echo "$as_me: failed program was:" >&5
14455sed 's/^/| /' conftest.$ac_ext >&5
14456
14457ac_lo=`expr $ac_mid + 1`
14458 if test $ac_lo -le $ac_mid; then
14459 ac_lo= ac_hi=
14460 break
14461 fi
14462 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14463fi
e6cc62c6
VS
14464rm -f conftest.$ac_objext conftest.$ac_ext
14465 done
14466else
14467 echo "$as_me: failed program was:" >&5
14468sed 's/^/| /' conftest.$ac_ext >&5
14469
14470cat >conftest.$ac_ext <<_ACEOF
14471#line $LINENO "configure"
14472/* confdefs.h. */
14473_ACEOF
14474cat confdefs.h >>conftest.$ac_ext
14475cat >>conftest.$ac_ext <<_ACEOF
14476/* end confdefs.h. */
14477$ac_includes_default
14478int
14479main ()
14480{
14481static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14482test_array [0] = 0
247f5006 14483
e6cc62c6
VS
14484 ;
14485 return 0;
14486}
14487_ACEOF
14488rm -f conftest.$ac_objext
14489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14490 (eval $ac_compile) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -s conftest.$ac_objext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_hi=-1 ac_mid=-1
14501 while :; do
14502 cat >conftest.$ac_ext <<_ACEOF
14503#line $LINENO "configure"
14504/* confdefs.h. */
14505_ACEOF
14506cat confdefs.h >>conftest.$ac_ext
14507cat >>conftest.$ac_ext <<_ACEOF
14508/* end confdefs.h. */
14509$ac_includes_default
14510int
14511main ()
14512{
14513static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14514test_array [0] = 0
247f5006 14515
e6cc62c6
VS
14516 ;
14517 return 0;
14518}
14519_ACEOF
14520rm -f conftest.$ac_objext
14521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522 (eval $ac_compile) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
14526 { ac_try='test -s conftest.$ac_objext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_lo=$ac_mid; break
14533else
14534 echo "$as_me: failed program was:" >&5
14535sed 's/^/| /' conftest.$ac_ext >&5
14536
14537ac_hi=`expr '(' $ac_mid ')' - 1`
14538 if test $ac_mid -le $ac_hi; then
14539 ac_lo= ac_hi=
14540 break
14541 fi
14542 ac_mid=`expr 2 '*' $ac_mid`
14543fi
14544rm -f conftest.$ac_objext conftest.$ac_ext
14545 done
a0b9e27f 14546else
e6cc62c6
VS
14547 echo "$as_me: failed program was:" >&5
14548sed 's/^/| /' conftest.$ac_ext >&5
14549
14550ac_lo= ac_hi=
14551fi
14552rm -f conftest.$ac_objext conftest.$ac_ext
14553fi
14554rm -f conftest.$ac_objext conftest.$ac_ext
14555# Binary search between lo and hi bounds.
14556while test "x$ac_lo" != "x$ac_hi"; do
14557 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14558 cat >conftest.$ac_ext <<_ACEOF
14559#line $LINENO "configure"
14560/* confdefs.h. */
14561_ACEOF
14562cat confdefs.h >>conftest.$ac_ext
14563cat >>conftest.$ac_ext <<_ACEOF
14564/* end confdefs.h. */
14565$ac_includes_default
14566int
14567main ()
14568{
14569static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14570test_array [0] = 0
14571
14572 ;
14573 return 0;
14574}
14575_ACEOF
14576rm -f conftest.$ac_objext
14577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14578 (eval $ac_compile) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_hi=$ac_mid
14589else
14590 echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
14593ac_lo=`expr '(' $ac_mid ')' + 1`
14594fi
14595rm -f conftest.$ac_objext conftest.$ac_ext
14596done
14597case $ac_lo in
14598?*) ac_cv_sizeof_void_p=$ac_lo;;
14599'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14600See \`config.log' for more details." >&5
14601echo "$as_me: error: cannot compute sizeof (void *), 77
14602See \`config.log' for more details." >&2;}
14603 { (exit 1); exit 1; }; } ;;
14604esac
247f5006 14605else
e6cc62c6
VS
14606 if test "$cross_compiling" = yes; then
14607 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14608See \`config.log' for more details." >&5
14609echo "$as_me: error: cannot run test program while cross compiling
14610See \`config.log' for more details." >&2;}
14611 { (exit 1); exit 1; }; }
14612else
14613 cat >conftest.$ac_ext <<_ACEOF
14614#line $LINENO "configure"
14615/* confdefs.h. */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
14619/* end confdefs.h. */
14620$ac_includes_default
14621long longval () { return (long) (sizeof (void *)); }
14622unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14623#include <stdio.h>
e6cc62c6
VS
14624#include <stdlib.h>
14625int
14626main ()
247f5006 14627{
e6cc62c6
VS
14628
14629 FILE *f = fopen ("conftest.val", "w");
14630 if (! f)
14631 exit (1);
14632 if (((long) (sizeof (void *))) < 0)
14633 {
14634 long i = longval ();
14635 if (i != ((long) (sizeof (void *))))
14636 exit (1);
14637 fprintf (f, "%ld\n", i);
14638 }
14639 else
14640 {
14641 unsigned long i = ulongval ();
14642 if (i != ((long) (sizeof (void *))))
14643 exit (1);
14644 fprintf (f, "%lu\n", i);
14645 }
14646 exit (ferror (f) || fclose (f) != 0);
14647
14648 ;
14649 return 0;
5c6fa7d2 14650}
e6cc62c6
VS
14651_ACEOF
14652rm -f conftest$ac_exeext
14653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14654 (eval $ac_link) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14660 ac_status=$?
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14663 ac_cv_sizeof_void_p=`cat conftest.val`
14664else
14665 echo "$as_me: program exited with status $ac_status" >&5
14666echo "$as_me: failed program was:" >&5
14667sed 's/^/| /' conftest.$ac_ext >&5
14668
14669( exit $ac_status )
14670{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14671See \`config.log' for more details." >&5
14672echo "$as_me: error: cannot compute sizeof (void *), 77
14673See \`config.log' for more details." >&2;}
14674 { (exit 1); exit 1; }; }
14675fi
14676rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14677fi
14678fi
14679rm -f conftest.val
a0b9e27f 14680else
a0b9e27f
MB
14681 ac_cv_sizeof_void_p=0
14682fi
a0b9e27f 14683fi
e6cc62c6
VS
14684echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14685echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14686cat >>confdefs.h <<_ACEOF
14687#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14688_ACEOF
14689
14690
14691echo "$as_me:$LINENO: checking for int" >&5
14692echo $ECHO_N "checking for int... $ECHO_C" >&6
14693if test "${ac_cv_type_int+set}" = set; then
14694 echo $ECHO_N "(cached) $ECHO_C" >&6
14695else
14696 cat >conftest.$ac_ext <<_ACEOF
14697#line $LINENO "configure"
14698/* confdefs.h. */
14699_ACEOF
14700cat confdefs.h >>conftest.$ac_ext
14701cat >>conftest.$ac_ext <<_ACEOF
14702/* end confdefs.h. */
14703$ac_includes_default
14704int
14705main ()
14706{
14707if ((int *) 0)
14708 return 0;
14709if (sizeof (int))
14710 return 0;
14711 ;
14712 return 0;
14713}
14714_ACEOF
14715rm -f conftest.$ac_objext
14716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717 (eval $ac_compile) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 ac_cv_type_int=yes
14728else
14729 echo "$as_me: failed program was:" >&5
14730sed 's/^/| /' conftest.$ac_ext >&5
14731
14732ac_cv_type_int=no
14733fi
14734rm -f conftest.$ac_objext conftest.$ac_ext
14735fi
14736echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14737echo "${ECHO_T}$ac_cv_type_int" >&6
14738
14739echo "$as_me:$LINENO: checking size of int" >&5
14740echo $ECHO_N "checking size of int... $ECHO_C" >&6
14741if test "${ac_cv_sizeof_int+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743else
14744 if test "$ac_cv_type_int" = yes; then
14745 # The cast to unsigned long works around a bug in the HP C Compiler
14746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14748 # This bug is HP SR number 8606223364.
14749 if test "$cross_compiling" = yes; then
14750 # Depending upon the size, compute the lo and hi bounds.
14751cat >conftest.$ac_ext <<_ACEOF
14752#line $LINENO "configure"
14753/* confdefs.h. */
14754_ACEOF
14755cat confdefs.h >>conftest.$ac_ext
14756cat >>conftest.$ac_ext <<_ACEOF
14757/* end confdefs.h. */
14758$ac_includes_default
14759int
14760main ()
14761{
14762static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14763test_array [0] = 0
8284b0c5 14764
e6cc62c6
VS
14765 ;
14766 return 0;
14767}
14768_ACEOF
14769rm -f conftest.$ac_objext
14770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14771 (eval $ac_compile) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -s conftest.$ac_objext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 ac_lo=0 ac_mid=0
14782 while :; do
14783 cat >conftest.$ac_ext <<_ACEOF
14784#line $LINENO "configure"
14785/* confdefs.h. */
14786_ACEOF
14787cat confdefs.h >>conftest.$ac_ext
14788cat >>conftest.$ac_ext <<_ACEOF
14789/* end confdefs.h. */
14790$ac_includes_default
14791int
14792main ()
14793{
14794static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14795test_array [0] = 0
14796
14797 ;
14798 return 0;
14799}
14800_ACEOF
14801rm -f conftest.$ac_objext
14802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14803 (eval $ac_compile) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -s conftest.$ac_objext'
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_hi=$ac_mid; break
14814else
14815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818ac_lo=`expr $ac_mid + 1`
14819 if test $ac_lo -le $ac_mid; then
14820 ac_lo= ac_hi=
14821 break
14822 fi
14823 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14824fi
e6cc62c6
VS
14825rm -f conftest.$ac_objext conftest.$ac_ext
14826 done
14827else
14828 echo "$as_me: failed program was:" >&5
14829sed 's/^/| /' conftest.$ac_ext >&5
14830
14831cat >conftest.$ac_ext <<_ACEOF
14832#line $LINENO "configure"
14833/* confdefs.h. */
14834_ACEOF
14835cat confdefs.h >>conftest.$ac_ext
14836cat >>conftest.$ac_ext <<_ACEOF
14837/* end confdefs.h. */
14838$ac_includes_default
14839int
14840main ()
14841{
14842static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14843test_array [0] = 0
247f5006 14844
e6cc62c6
VS
14845 ;
14846 return 0;
14847}
14848_ACEOF
14849rm -f conftest.$ac_objext
14850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14851 (eval $ac_compile) 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } &&
14855 { ac_try='test -s conftest.$ac_objext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_hi=-1 ac_mid=-1
14862 while :; do
14863 cat >conftest.$ac_ext <<_ACEOF
14864#line $LINENO "configure"
14865/* confdefs.h. */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
14869/* end confdefs.h. */
14870$ac_includes_default
14871int
14872main ()
14873{
14874static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14875test_array [0] = 0
247f5006 14876
e6cc62c6
VS
14877 ;
14878 return 0;
14879}
14880_ACEOF
14881rm -f conftest.$ac_objext
14882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } &&
14887 { ac_try='test -s conftest.$ac_objext'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 ac_lo=$ac_mid; break
14894else
14895 echo "$as_me: failed program was:" >&5
14896sed 's/^/| /' conftest.$ac_ext >&5
14897
14898ac_hi=`expr '(' $ac_mid ')' - 1`
14899 if test $ac_mid -le $ac_hi; then
14900 ac_lo= ac_hi=
14901 break
14902 fi
14903 ac_mid=`expr 2 '*' $ac_mid`
14904fi
14905rm -f conftest.$ac_objext conftest.$ac_ext
14906 done
247f5006 14907else
e6cc62c6
VS
14908 echo "$as_me: failed program was:" >&5
14909sed 's/^/| /' conftest.$ac_ext >&5
14910
14911ac_lo= ac_hi=
14912fi
14913rm -f conftest.$ac_objext conftest.$ac_ext
14914fi
14915rm -f conftest.$ac_objext conftest.$ac_ext
14916# Binary search between lo and hi bounds.
14917while test "x$ac_lo" != "x$ac_hi"; do
14918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14919 cat >conftest.$ac_ext <<_ACEOF
14920#line $LINENO "configure"
14921/* confdefs.h. */
14922_ACEOF
14923cat confdefs.h >>conftest.$ac_ext
14924cat >>conftest.$ac_ext <<_ACEOF
14925/* end confdefs.h. */
14926$ac_includes_default
14927int
14928main ()
14929{
14930static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14931test_array [0] = 0
14932
14933 ;
14934 return 0;
14935}
14936_ACEOF
14937rm -f conftest.$ac_objext
14938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14939 (eval $ac_compile) 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -s conftest.$ac_objext'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 ac_hi=$ac_mid
14950else
14951 echo "$as_me: failed program was:" >&5
14952sed 's/^/| /' conftest.$ac_ext >&5
14953
14954ac_lo=`expr '(' $ac_mid ')' + 1`
14955fi
14956rm -f conftest.$ac_objext conftest.$ac_ext
14957done
14958case $ac_lo in
14959?*) ac_cv_sizeof_int=$ac_lo;;
14960'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14961See \`config.log' for more details." >&5
14962echo "$as_me: error: cannot compute sizeof (int), 77
14963See \`config.log' for more details." >&2;}
14964 { (exit 1); exit 1; }; } ;;
14965esac
a0b9e27f 14966else
e6cc62c6
VS
14967 if test "$cross_compiling" = yes; then
14968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14969See \`config.log' for more details." >&5
14970echo "$as_me: error: cannot run test program while cross compiling
14971See \`config.log' for more details." >&2;}
14972 { (exit 1); exit 1; }; }
14973else
14974 cat >conftest.$ac_ext <<_ACEOF
14975#line $LINENO "configure"
14976/* confdefs.h. */
14977_ACEOF
14978cat confdefs.h >>conftest.$ac_ext
14979cat >>conftest.$ac_ext <<_ACEOF
14980/* end confdefs.h. */
14981$ac_includes_default
14982long longval () { return (long) (sizeof (int)); }
14983unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 14984#include <stdio.h>
e6cc62c6
VS
14985#include <stdlib.h>
14986int
14987main ()
247f5006 14988{
e6cc62c6
VS
14989
14990 FILE *f = fopen ("conftest.val", "w");
14991 if (! f)
14992 exit (1);
14993 if (((long) (sizeof (int))) < 0)
14994 {
14995 long i = longval ();
14996 if (i != ((long) (sizeof (int))))
14997 exit (1);
14998 fprintf (f, "%ld\n", i);
14999 }
15000 else
15001 {
15002 unsigned long i = ulongval ();
15003 if (i != ((long) (sizeof (int))))
15004 exit (1);
15005 fprintf (f, "%lu\n", i);
15006 }
15007 exit (ferror (f) || fclose (f) != 0);
15008
15009 ;
15010 return 0;
247f5006 15011}
e6cc62c6
VS
15012_ACEOF
15013rm -f conftest$ac_exeext
15014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15015 (eval $ac_link) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_cv_sizeof_int=`cat conftest.val`
15025else
15026 echo "$as_me: program exited with status $ac_status" >&5
15027echo "$as_me: failed program was:" >&5
15028sed 's/^/| /' conftest.$ac_ext >&5
15029
15030( exit $ac_status )
15031{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15032See \`config.log' for more details." >&5
15033echo "$as_me: error: cannot compute sizeof (int), 77
15034See \`config.log' for more details." >&2;}
15035 { (exit 1); exit 1; }; }
15036fi
15037rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15038fi
15039fi
15040rm -f conftest.val
6f72b082 15041else
a0b9e27f 15042 ac_cv_sizeof_int=0
21d1c967 15043fi
698dcdb6 15044fi
e6cc62c6
VS
15045echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15046echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15047cat >>confdefs.h <<_ACEOF
15048#define SIZEOF_INT $ac_cv_sizeof_int
15049_ACEOF
15050
15051
15052echo "$as_me:$LINENO: checking for long" >&5
15053echo $ECHO_N "checking for long... $ECHO_C" >&6
15054if test "${ac_cv_type_long+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056else
15057 cat >conftest.$ac_ext <<_ACEOF
15058#line $LINENO "configure"
15059/* confdefs.h. */
15060_ACEOF
15061cat confdefs.h >>conftest.$ac_ext
15062cat >>conftest.$ac_ext <<_ACEOF
15063/* end confdefs.h. */
15064$ac_includes_default
15065int
15066main ()
15067{
15068if ((long *) 0)
15069 return 0;
15070if (sizeof (long))
15071 return 0;
15072 ;
15073 return 0;
15074}
15075_ACEOF
15076rm -f conftest.$ac_objext
15077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15078 (eval $ac_compile) 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try='test -s conftest.$ac_objext'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 ac_cv_type_long=yes
15089else
15090 echo "$as_me: failed program was:" >&5
15091sed 's/^/| /' conftest.$ac_ext >&5
15092
15093ac_cv_type_long=no
15094fi
15095rm -f conftest.$ac_objext conftest.$ac_ext
15096fi
15097echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15098echo "${ECHO_T}$ac_cv_type_long" >&6
15099
15100echo "$as_me:$LINENO: checking size of long" >&5
15101echo $ECHO_N "checking size of long... $ECHO_C" >&6
15102if test "${ac_cv_sizeof_long+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15104else
15105 if test "$ac_cv_type_long" = yes; then
15106 # The cast to unsigned long works around a bug in the HP C Compiler
15107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15109 # This bug is HP SR number 8606223364.
15110 if test "$cross_compiling" = yes; then
15111 # Depending upon the size, compute the lo and hi bounds.
15112cat >conftest.$ac_ext <<_ACEOF
15113#line $LINENO "configure"
15114/* confdefs.h. */
15115_ACEOF
15116cat confdefs.h >>conftest.$ac_ext
15117cat >>conftest.$ac_ext <<_ACEOF
15118/* end confdefs.h. */
15119$ac_includes_default
15120int
15121main ()
15122{
15123static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15124test_array [0] = 0
15125
15126 ;
15127 return 0;
15128}
15129_ACEOF
15130rm -f conftest.$ac_objext
15131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15132 (eval $ac_compile) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
15136 { ac_try='test -s conftest.$ac_objext'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15142 ac_lo=0 ac_mid=0
15143 while :; do
15144 cat >conftest.$ac_ext <<_ACEOF
15145#line $LINENO "configure"
15146/* confdefs.h. */
15147_ACEOF
15148cat confdefs.h >>conftest.$ac_ext
15149cat >>conftest.$ac_ext <<_ACEOF
15150/* end confdefs.h. */
15151$ac_includes_default
15152int
15153main ()
15154{
15155static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15156test_array [0] = 0
4f14bcd8 15157
e6cc62c6
VS
15158 ;
15159 return 0;
15160}
15161_ACEOF
15162rm -f conftest.$ac_objext
15163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164 (eval $ac_compile) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -s conftest.$ac_objext'
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_hi=$ac_mid; break
15175else
15176 echo "$as_me: failed program was:" >&5
15177sed 's/^/| /' conftest.$ac_ext >&5
15178
15179ac_lo=`expr $ac_mid + 1`
15180 if test $ac_lo -le $ac_mid; then
15181 ac_lo= ac_hi=
15182 break
15183 fi
15184 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15185fi
e6cc62c6
VS
15186rm -f conftest.$ac_objext conftest.$ac_ext
15187 done
15188else
15189 echo "$as_me: failed program was:" >&5
15190sed 's/^/| /' conftest.$ac_ext >&5
15191
15192cat >conftest.$ac_ext <<_ACEOF
15193#line $LINENO "configure"
15194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h. */
15199$ac_includes_default
15200int
15201main ()
15202{
15203static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15204test_array [0] = 0
4f14bcd8 15205
e6cc62c6
VS
15206 ;
15207 return 0;
15208}
15209_ACEOF
15210rm -f conftest.$ac_objext
15211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15212 (eval $ac_compile) 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } &&
15216 { ac_try='test -s conftest.$ac_objext'
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15219 ac_status=$?
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; }; then
15222 ac_hi=-1 ac_mid=-1
15223 while :; do
15224 cat >conftest.$ac_ext <<_ACEOF
15225#line $LINENO "configure"
15226/* confdefs.h. */
15227_ACEOF
15228cat confdefs.h >>conftest.$ac_ext
15229cat >>conftest.$ac_ext <<_ACEOF
15230/* end confdefs.h. */
15231$ac_includes_default
15232int
15233main ()
15234{
15235static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15236test_array [0] = 0
5c6fa7d2 15237
e6cc62c6
VS
15238 ;
15239 return 0;
15240}
15241_ACEOF
15242rm -f conftest.$ac_objext
15243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244 (eval $ac_compile) 2>&5
15245 ac_status=$?
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try='test -s conftest.$ac_objext'
15249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; }; then
15254 ac_lo=$ac_mid; break
15255else
15256 echo "$as_me: failed program was:" >&5
15257sed 's/^/| /' conftest.$ac_ext >&5
15258
15259ac_hi=`expr '(' $ac_mid ')' - 1`
15260 if test $ac_mid -le $ac_hi; then
15261 ac_lo= ac_hi=
15262 break
15263 fi
15264 ac_mid=`expr 2 '*' $ac_mid`
15265fi
15266rm -f conftest.$ac_objext conftest.$ac_ext
15267 done
247f5006 15268else
e6cc62c6
VS
15269 echo "$as_me: failed program was:" >&5
15270sed 's/^/| /' conftest.$ac_ext >&5
15271
15272ac_lo= ac_hi=
15273fi
15274rm -f conftest.$ac_objext conftest.$ac_ext
15275fi
15276rm -f conftest.$ac_objext conftest.$ac_ext
15277# Binary search between lo and hi bounds.
15278while test "x$ac_lo" != "x$ac_hi"; do
15279 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15280 cat >conftest.$ac_ext <<_ACEOF
15281#line $LINENO "configure"
15282/* confdefs.h. */
15283_ACEOF
15284cat confdefs.h >>conftest.$ac_ext
15285cat >>conftest.$ac_ext <<_ACEOF
15286/* end confdefs.h. */
15287$ac_includes_default
15288int
15289main ()
15290{
15291static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15292test_array [0] = 0
15293
15294 ;
15295 return 0;
15296}
15297_ACEOF
15298rm -f conftest.$ac_objext
15299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15300 (eval $ac_compile) 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -s conftest.$ac_objext'
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }; then
15310 ac_hi=$ac_mid
15311else
15312 echo "$as_me: failed program was:" >&5
15313sed 's/^/| /' conftest.$ac_ext >&5
15314
15315ac_lo=`expr '(' $ac_mid ')' + 1`
15316fi
15317rm -f conftest.$ac_objext conftest.$ac_ext
15318done
15319case $ac_lo in
15320?*) ac_cv_sizeof_long=$ac_lo;;
15321'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15322See \`config.log' for more details." >&5
15323echo "$as_me: error: cannot compute sizeof (long), 77
15324See \`config.log' for more details." >&2;}
15325 { (exit 1); exit 1; }; } ;;
15326esac
247f5006 15327else
e6cc62c6
VS
15328 if test "$cross_compiling" = yes; then
15329 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15330See \`config.log' for more details." >&5
15331echo "$as_me: error: cannot run test program while cross compiling
15332See \`config.log' for more details." >&2;}
15333 { (exit 1); exit 1; }; }
15334else
15335 cat >conftest.$ac_ext <<_ACEOF
15336#line $LINENO "configure"
15337/* confdefs.h. */
15338_ACEOF
15339cat confdefs.h >>conftest.$ac_ext
15340cat >>conftest.$ac_ext <<_ACEOF
15341/* end confdefs.h. */
15342$ac_includes_default
15343long longval () { return (long) (sizeof (long)); }
15344unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15345#include <stdio.h>
e6cc62c6
VS
15346#include <stdlib.h>
15347int
15348main ()
247f5006 15349{
e6cc62c6
VS
15350
15351 FILE *f = fopen ("conftest.val", "w");
15352 if (! f)
15353 exit (1);
15354 if (((long) (sizeof (long))) < 0)
15355 {
15356 long i = longval ();
15357 if (i != ((long) (sizeof (long))))
15358 exit (1);
15359 fprintf (f, "%ld\n", i);
15360 }
15361 else
15362 {
15363 unsigned long i = ulongval ();
15364 if (i != ((long) (sizeof (long))))
15365 exit (1);
15366 fprintf (f, "%lu\n", i);
15367 }
15368 exit (ferror (f) || fclose (f) != 0);
15369
15370 ;
15371 return 0;
247f5006 15372}
e6cc62c6
VS
15373_ACEOF
15374rm -f conftest$ac_exeext
15375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376 (eval $ac_link) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_cv_sizeof_long=`cat conftest.val`
15386else
15387 echo "$as_me: program exited with status $ac_status" >&5
15388echo "$as_me: failed program was:" >&5
15389sed 's/^/| /' conftest.$ac_ext >&5
15390
15391( exit $ac_status )
15392{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15393See \`config.log' for more details." >&5
15394echo "$as_me: error: cannot compute sizeof (long), 77
15395See \`config.log' for more details." >&2;}
15396 { (exit 1); exit 1; }; }
15397fi
15398rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15399fi
15400fi
15401rm -f conftest.val
247f5006 15402else
a0b9e27f 15403 ac_cv_sizeof_long=0
247f5006 15404fi
247f5006 15405fi
e6cc62c6
VS
15406echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15407echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15408cat >>confdefs.h <<_ACEOF
a0b9e27f 15409#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15410_ACEOF
247f5006 15411
a0b9e27f
MB
15412
15413
15414case "${host}" in
15415 arm-*-linux* )
e6cc62c6
VS
15416 echo "$as_me:$LINENO: checking for long long" >&5
15417echo $ECHO_N "checking for long long... $ECHO_C" >&6
15418if test "${ac_cv_type_long_long+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420else
15421 cat >conftest.$ac_ext <<_ACEOF
15422#line $LINENO "configure"
15423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
15428$ac_includes_default
15429int
15430main ()
15431{
15432if ((long long *) 0)
15433 return 0;
15434if (sizeof (long long))
15435 return 0;
15436 ;
15437 return 0;
15438}
15439_ACEOF
15440rm -f conftest.$ac_objext
15441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15442 (eval $ac_compile) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
15446 { ac_try='test -s conftest.$ac_objext'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15452 ac_cv_type_long_long=yes
15453else
15454 echo "$as_me: failed program was:" >&5
15455sed 's/^/| /' conftest.$ac_ext >&5
15456
15457ac_cv_type_long_long=no
15458fi
15459rm -f conftest.$ac_objext conftest.$ac_ext
15460fi
15461echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15462echo "${ECHO_T}$ac_cv_type_long_long" >&6
15463
15464echo "$as_me:$LINENO: checking size of long long" >&5
15465echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15466if test "${ac_cv_sizeof_long_long+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15468else
15469 if test "$ac_cv_type_long_long" = yes; then
15470 # The cast to unsigned long works around a bug in the HP C Compiler
15471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15473 # This bug is HP SR number 8606223364.
a0b9e27f 15474 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15475 # Depending upon the size, compute the lo and hi bounds.
15476cat >conftest.$ac_ext <<_ACEOF
15477#line $LINENO "configure"
15478/* confdefs.h. */
15479_ACEOF
15480cat confdefs.h >>conftest.$ac_ext
15481cat >>conftest.$ac_ext <<_ACEOF
15482/* end confdefs.h. */
15483$ac_includes_default
15484int
15485main ()
15486{
15487static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15488test_array [0] = 0
15489
15490 ;
15491 return 0;
15492}
15493_ACEOF
15494rm -f conftest.$ac_objext
15495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15496 (eval $ac_compile) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -s conftest.$ac_objext'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_lo=0 ac_mid=0
15507 while :; do
15508 cat >conftest.$ac_ext <<_ACEOF
15509#line $LINENO "configure"
15510/* confdefs.h. */
15511_ACEOF
15512cat confdefs.h >>conftest.$ac_ext
15513cat >>conftest.$ac_ext <<_ACEOF
15514/* end confdefs.h. */
15515$ac_includes_default
15516int
15517main ()
15518{
15519static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15520test_array [0] = 0
15521
15522 ;
15523 return 0;
15524}
15525_ACEOF
15526rm -f conftest.$ac_objext
15527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528 (eval $ac_compile) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try='test -s conftest.$ac_objext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_hi=$ac_mid; break
15539else
15540 echo "$as_me: failed program was:" >&5
15541sed 's/^/| /' conftest.$ac_ext >&5
15542
15543ac_lo=`expr $ac_mid + 1`
15544 if test $ac_lo -le $ac_mid; then
15545 ac_lo= ac_hi=
15546 break
15547 fi
15548 ac_mid=`expr 2 '*' $ac_mid + 1`
15549fi
15550rm -f conftest.$ac_objext conftest.$ac_ext
15551 done
15552else
15553 echo "$as_me: failed program was:" >&5
15554sed 's/^/| /' conftest.$ac_ext >&5
15555
15556cat >conftest.$ac_ext <<_ACEOF
15557#line $LINENO "configure"
15558/* confdefs.h. */
15559_ACEOF
15560cat confdefs.h >>conftest.$ac_ext
15561cat >>conftest.$ac_ext <<_ACEOF
15562/* end confdefs.h. */
15563$ac_includes_default
15564int
15565main ()
15566{
15567static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15568test_array [0] = 0
15569
15570 ;
15571 return 0;
15572}
15573_ACEOF
15574rm -f conftest.$ac_objext
15575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576 (eval $ac_compile) 2>&5
15577 ac_status=$?
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
15580 { ac_try='test -s conftest.$ac_objext'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15583 ac_status=$?
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; }; then
15586 ac_hi=-1 ac_mid=-1
15587 while :; do
15588 cat >conftest.$ac_ext <<_ACEOF
15589#line $LINENO "configure"
15590/* confdefs.h. */
15591_ACEOF
15592cat confdefs.h >>conftest.$ac_ext
15593cat >>conftest.$ac_ext <<_ACEOF
15594/* end confdefs.h. */
15595$ac_includes_default
15596int
15597main ()
15598{
15599static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15600test_array [0] = 0
15601
15602 ;
15603 return 0;
15604}
15605_ACEOF
15606rm -f conftest.$ac_objext
15607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try='test -s conftest.$ac_objext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_lo=$ac_mid; break
15619else
15620 echo "$as_me: failed program was:" >&5
15621sed 's/^/| /' conftest.$ac_ext >&5
15622
15623ac_hi=`expr '(' $ac_mid ')' - 1`
15624 if test $ac_mid -le $ac_hi; then
15625 ac_lo= ac_hi=
15626 break
15627 fi
15628 ac_mid=`expr 2 '*' $ac_mid`
15629fi
15630rm -f conftest.$ac_objext conftest.$ac_ext
15631 done
15632else
15633 echo "$as_me: failed program was:" >&5
15634sed 's/^/| /' conftest.$ac_ext >&5
15635
15636ac_lo= ac_hi=
15637fi
15638rm -f conftest.$ac_objext conftest.$ac_ext
15639fi
15640rm -f conftest.$ac_objext conftest.$ac_ext
15641# Binary search between lo and hi bounds.
15642while test "x$ac_lo" != "x$ac_hi"; do
15643 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15644 cat >conftest.$ac_ext <<_ACEOF
15645#line $LINENO "configure"
15646/* confdefs.h. */
15647_ACEOF
15648cat confdefs.h >>conftest.$ac_ext
15649cat >>conftest.$ac_ext <<_ACEOF
15650/* end confdefs.h. */
15651$ac_includes_default
15652int
15653main ()
15654{
15655static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15656test_array [0] = 0
15657
15658 ;
15659 return 0;
15660}
15661_ACEOF
15662rm -f conftest.$ac_objext
15663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15664 (eval $ac_compile) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } &&
15668 { ac_try='test -s conftest.$ac_objext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_hi=$ac_mid
15675else
15676 echo "$as_me: failed program was:" >&5
15677sed 's/^/| /' conftest.$ac_ext >&5
15678
15679ac_lo=`expr '(' $ac_mid ')' + 1`
15680fi
15681rm -f conftest.$ac_objext conftest.$ac_ext
15682done
15683case $ac_lo in
15684?*) ac_cv_sizeof_long_long=$ac_lo;;
15685'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15686See \`config.log' for more details." >&5
15687echo "$as_me: error: cannot compute sizeof (long long), 77
15688See \`config.log' for more details." >&2;}
15689 { (exit 1); exit 1; }; } ;;
15690esac
a0b9e27f 15691else
e6cc62c6
VS
15692 if test "$cross_compiling" = yes; then
15693 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15694See \`config.log' for more details." >&5
15695echo "$as_me: error: cannot run test program while cross compiling
15696See \`config.log' for more details." >&2;}
15697 { (exit 1); exit 1; }; }
15698else
15699 cat >conftest.$ac_ext <<_ACEOF
15700#line $LINENO "configure"
15701/* confdefs.h. */
15702_ACEOF
15703cat confdefs.h >>conftest.$ac_ext
15704cat >>conftest.$ac_ext <<_ACEOF
15705/* end confdefs.h. */
15706$ac_includes_default
15707long longval () { return (long) (sizeof (long long)); }
15708unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15709#include <stdio.h>
e6cc62c6
VS
15710#include <stdlib.h>
15711int
15712main ()
247f5006 15713{
e6cc62c6
VS
15714
15715 FILE *f = fopen ("conftest.val", "w");
15716 if (! f)
15717 exit (1);
15718 if (((long) (sizeof (long long))) < 0)
15719 {
15720 long i = longval ();
15721 if (i != ((long) (sizeof (long long))))
15722 exit (1);
15723 fprintf (f, "%ld\n", i);
15724 }
15725 else
15726 {
15727 unsigned long i = ulongval ();
15728 if (i != ((long) (sizeof (long long))))
15729 exit (1);
15730 fprintf (f, "%lu\n", i);
15731 }
15732 exit (ferror (f) || fclose (f) != 0);
15733
15734 ;
15735 return 0;
247f5006 15736}
e6cc62c6
VS
15737_ACEOF
15738rm -f conftest$ac_exeext
15739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15740 (eval $ac_link) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 ac_cv_sizeof_long_long=`cat conftest.val`
15750else
15751 echo "$as_me: program exited with status $ac_status" >&5
15752echo "$as_me: failed program was:" >&5
15753sed 's/^/| /' conftest.$ac_ext >&5
15754
15755( exit $ac_status )
15756{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15757See \`config.log' for more details." >&5
15758echo "$as_me: error: cannot compute sizeof (long long), 77
15759See \`config.log' for more details." >&2;}
15760 { (exit 1); exit 1; }; }
15761fi
15762rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15763fi
15764fi
15765rm -f conftest.val
7b4a847f 15766else
a0b9e27f 15767 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15768fi
15769fi
e6cc62c6
VS
15770echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15771echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15772cat >>confdefs.h <<_ACEOF
15773#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15774_ACEOF
15775
15776
15777 ;;
15778 *-hp-hpux* )
15779 echo "$as_me:$LINENO: checking for long long" >&5
15780echo $ECHO_N "checking for long long... $ECHO_C" >&6
15781if test "${ac_cv_type_long_long+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783else
15784 cat >conftest.$ac_ext <<_ACEOF
15785#line $LINENO "configure"
15786/* confdefs.h. */
15787_ACEOF
15788cat confdefs.h >>conftest.$ac_ext
15789cat >>conftest.$ac_ext <<_ACEOF
15790/* end confdefs.h. */
15791$ac_includes_default
15792int
15793main ()
15794{
15795if ((long long *) 0)
15796 return 0;
15797if (sizeof (long long))
15798 return 0;
15799 ;
15800 return 0;
15801}
15802_ACEOF
15803rm -f conftest.$ac_objext
15804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15805 (eval $ac_compile) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
15809 { ac_try='test -s conftest.$ac_objext'
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15812 ac_status=$?
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_cv_type_long_long=yes
15816else
15817 echo "$as_me: failed program was:" >&5
15818sed 's/^/| /' conftest.$ac_ext >&5
15819
15820ac_cv_type_long_long=no
15821fi
15822rm -f conftest.$ac_objext conftest.$ac_ext
15823fi
15824echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15825echo "${ECHO_T}$ac_cv_type_long_long" >&6
15826
15827echo "$as_me:$LINENO: checking size of long long" >&5
15828echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15829if test "${ac_cv_sizeof_long_long+set}" = set; then
15830 echo $ECHO_N "(cached) $ECHO_C" >&6
15831else
15832 if test "$ac_cv_type_long_long" = yes; then
15833 # The cast to unsigned long works around a bug in the HP C Compiler
15834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15836 # This bug is HP SR number 8606223364.
15837 if test "$cross_compiling" = yes; then
15838 # Depending upon the size, compute the lo and hi bounds.
15839cat >conftest.$ac_ext <<_ACEOF
15840#line $LINENO "configure"
15841/* confdefs.h. */
15842_ACEOF
15843cat confdefs.h >>conftest.$ac_ext
15844cat >>conftest.$ac_ext <<_ACEOF
15845/* end confdefs.h. */
15846$ac_includes_default
15847int
15848main ()
15849{
15850static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15851test_array [0] = 0
15852
15853 ;
15854 return 0;
15855}
15856_ACEOF
15857rm -f conftest.$ac_objext
15858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15859 (eval $ac_compile) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_lo=0 ac_mid=0
15870 while :; do
15871 cat >conftest.$ac_ext <<_ACEOF
15872#line $LINENO "configure"
15873/* confdefs.h. */
15874_ACEOF
15875cat confdefs.h >>conftest.$ac_ext
15876cat >>conftest.$ac_ext <<_ACEOF
15877/* end confdefs.h. */
15878$ac_includes_default
15879int
15880main ()
15881{
15882static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15883test_array [0] = 0
8284b0c5 15884
e6cc62c6
VS
15885 ;
15886 return 0;
15887}
15888_ACEOF
15889rm -f conftest.$ac_objext
15890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15891 (eval $ac_compile) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } &&
15895 { ac_try='test -s conftest.$ac_objext'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15901 ac_hi=$ac_mid; break
15902else
15903 echo "$as_me: failed program was:" >&5
15904sed 's/^/| /' conftest.$ac_ext >&5
15905
15906ac_lo=`expr $ac_mid + 1`
15907 if test $ac_lo -le $ac_mid; then
15908 ac_lo= ac_hi=
15909 break
15910 fi
15911 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 15912fi
e6cc62c6
VS
15913rm -f conftest.$ac_objext conftest.$ac_ext
15914 done
15915else
15916 echo "$as_me: failed program was:" >&5
15917sed 's/^/| /' conftest.$ac_ext >&5
15918
15919cat >conftest.$ac_ext <<_ACEOF
15920#line $LINENO "configure"
15921/* confdefs.h. */
15922_ACEOF
15923cat confdefs.h >>conftest.$ac_ext
15924cat >>conftest.$ac_ext <<_ACEOF
15925/* end confdefs.h. */
15926$ac_includes_default
15927int
15928main ()
15929{
15930static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15931test_array [0] = 0
a0b9e27f 15932
e6cc62c6
VS
15933 ;
15934 return 0;
15935}
15936_ACEOF
15937rm -f conftest.$ac_objext
15938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939 (eval $ac_compile) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -s conftest.$ac_objext'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 ac_hi=-1 ac_mid=-1
15950 while :; do
15951 cat >conftest.$ac_ext <<_ACEOF
15952#line $LINENO "configure"
15953/* confdefs.h. */
15954_ACEOF
15955cat confdefs.h >>conftest.$ac_ext
15956cat >>conftest.$ac_ext <<_ACEOF
15957/* end confdefs.h. */
15958$ac_includes_default
15959int
15960main ()
15961{
15962static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15963test_array [0] = 0
a0b9e27f 15964
e6cc62c6
VS
15965 ;
15966 return 0;
15967}
15968_ACEOF
15969rm -f conftest.$ac_objext
15970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15971 (eval $ac_compile) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 ac_lo=$ac_mid; break
15982else
15983 echo "$as_me: failed program was:" >&5
15984sed 's/^/| /' conftest.$ac_ext >&5
15985
15986ac_hi=`expr '(' $ac_mid ')' - 1`
15987 if test $ac_mid -le $ac_hi; then
15988 ac_lo= ac_hi=
15989 break
15990 fi
15991 ac_mid=`expr 2 '*' $ac_mid`
15992fi
15993rm -f conftest.$ac_objext conftest.$ac_ext
15994 done
8284b0c5 15995else
e6cc62c6
VS
15996 echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999ac_lo= ac_hi=
16000fi
16001rm -f conftest.$ac_objext conftest.$ac_ext
16002fi
16003rm -f conftest.$ac_objext conftest.$ac_ext
16004# Binary search between lo and hi bounds.
16005while test "x$ac_lo" != "x$ac_hi"; do
16006 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16007 cat >conftest.$ac_ext <<_ACEOF
16008#line $LINENO "configure"
16009/* confdefs.h. */
16010_ACEOF
16011cat confdefs.h >>conftest.$ac_ext
16012cat >>conftest.$ac_ext <<_ACEOF
16013/* end confdefs.h. */
16014$ac_includes_default
16015int
16016main ()
16017{
16018static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16019test_array [0] = 0
16020
16021 ;
16022 return 0;
16023}
16024_ACEOF
16025rm -f conftest.$ac_objext
16026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027 (eval $ac_compile) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } &&
16031 { ac_try='test -s conftest.$ac_objext'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; }; then
16037 ac_hi=$ac_mid
16038else
16039 echo "$as_me: failed program was:" >&5
16040sed 's/^/| /' conftest.$ac_ext >&5
16041
16042ac_lo=`expr '(' $ac_mid ')' + 1`
16043fi
16044rm -f conftest.$ac_objext conftest.$ac_ext
16045done
16046case $ac_lo in
16047?*) ac_cv_sizeof_long_long=$ac_lo;;
16048'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16049See \`config.log' for more details." >&5
16050echo "$as_me: error: cannot compute sizeof (long long), 77
16051See \`config.log' for more details." >&2;}
16052 { (exit 1); exit 1; }; } ;;
16053esac
8284b0c5 16054else
e6cc62c6
VS
16055 if test "$cross_compiling" = yes; then
16056 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16057See \`config.log' for more details." >&5
16058echo "$as_me: error: cannot run test program while cross compiling
16059See \`config.log' for more details." >&2;}
16060 { (exit 1); exit 1; }; }
16061else
16062 cat >conftest.$ac_ext <<_ACEOF
16063#line $LINENO "configure"
16064/* confdefs.h. */
16065_ACEOF
16066cat confdefs.h >>conftest.$ac_ext
16067cat >>conftest.$ac_ext <<_ACEOF
16068/* end confdefs.h. */
16069$ac_includes_default
16070long longval () { return (long) (sizeof (long long)); }
16071unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16072#include <stdio.h>
e6cc62c6
VS
16073#include <stdlib.h>
16074int
16075main ()
8284b0c5 16076{
e6cc62c6
VS
16077
16078 FILE *f = fopen ("conftest.val", "w");
16079 if (! f)
16080 exit (1);
16081 if (((long) (sizeof (long long))) < 0)
16082 {
16083 long i = longval ();
16084 if (i != ((long) (sizeof (long long))))
16085 exit (1);
16086 fprintf (f, "%ld\n", i);
16087 }
16088 else
16089 {
16090 unsigned long i = ulongval ();
16091 if (i != ((long) (sizeof (long long))))
16092 exit (1);
16093 fprintf (f, "%lu\n", i);
16094 }
16095 exit (ferror (f) || fclose (f) != 0);
16096
16097 ;
16098 return 0;
8284b0c5 16099}
e6cc62c6
VS
16100_ACEOF
16101rm -f conftest$ac_exeext
16102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16103 (eval $ac_link) 2>&5
16104 ac_status=$?
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 ac_cv_sizeof_long_long=`cat conftest.val`
16113else
16114 echo "$as_me: program exited with status $ac_status" >&5
16115echo "$as_me: failed program was:" >&5
16116sed 's/^/| /' conftest.$ac_ext >&5
16117
16118( exit $ac_status )
16119{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16120See \`config.log' for more details." >&5
16121echo "$as_me: error: cannot compute sizeof (long long), 77
16122See \`config.log' for more details." >&2;}
16123 { (exit 1); exit 1; }; }
16124fi
16125rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16126fi
16127fi
16128rm -f conftest.val
5c6fa7d2
RR
16129else
16130 ac_cv_sizeof_long_long=0
52127426 16131fi
4f57cf11 16132fi
e6cc62c6
VS
16133echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16134echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16135cat >>confdefs.h <<_ACEOF
4f57cf11 16136#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16137_ACEOF
4f57cf11
GD
16138
16139
16140 if test "$ac_cv_sizeof_long_long" != "0"; then
16141 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16142 fi
16143 ;;
16144 * )
e6cc62c6
VS
16145 echo "$as_me:$LINENO: checking for long long" >&5
16146echo $ECHO_N "checking for long long... $ECHO_C" >&6
16147if test "${ac_cv_type_long_long+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16149else
16150 cat >conftest.$ac_ext <<_ACEOF
16151#line $LINENO "configure"
16152/* confdefs.h. */
16153_ACEOF
16154cat confdefs.h >>conftest.$ac_ext
16155cat >>conftest.$ac_ext <<_ACEOF
16156/* end confdefs.h. */
16157$ac_includes_default
16158int
16159main ()
16160{
16161if ((long long *) 0)
16162 return 0;
16163if (sizeof (long long))
16164 return 0;
16165 ;
16166 return 0;
16167}
16168_ACEOF
16169rm -f conftest.$ac_objext
16170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171 (eval $ac_compile) 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
16175 { ac_try='test -s conftest.$ac_objext'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_cv_type_long_long=yes
16182else
16183 echo "$as_me: failed program was:" >&5
16184sed 's/^/| /' conftest.$ac_ext >&5
16185
16186ac_cv_type_long_long=no
16187fi
16188rm -f conftest.$ac_objext conftest.$ac_ext
16189fi
16190echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16191echo "${ECHO_T}$ac_cv_type_long_long" >&6
16192
16193echo "$as_me:$LINENO: checking size of long long" >&5
16194echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16195if test "${ac_cv_sizeof_long_long+set}" = set; then
16196 echo $ECHO_N "(cached) $ECHO_C" >&6
16197else
16198 if test "$ac_cv_type_long_long" = yes; then
16199 # The cast to unsigned long works around a bug in the HP C Compiler
16200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16202 # This bug is HP SR number 8606223364.
4f57cf11 16203 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16204 # Depending upon the size, compute the lo and hi bounds.
16205cat >conftest.$ac_ext <<_ACEOF
16206#line $LINENO "configure"
16207/* confdefs.h. */
16208_ACEOF
16209cat confdefs.h >>conftest.$ac_ext
16210cat >>conftest.$ac_ext <<_ACEOF
16211/* end confdefs.h. */
16212$ac_includes_default
16213int
16214main ()
16215{
16216static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16217test_array [0] = 0
16218
16219 ;
16220 return 0;
16221}
16222_ACEOF
16223rm -f conftest.$ac_objext
16224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -s conftest.$ac_objext'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; }; then
16235 ac_lo=0 ac_mid=0
16236 while :; do
16237 cat >conftest.$ac_ext <<_ACEOF
16238#line $LINENO "configure"
16239/* confdefs.h. */
16240_ACEOF
16241cat confdefs.h >>conftest.$ac_ext
16242cat >>conftest.$ac_ext <<_ACEOF
16243/* end confdefs.h. */
16244$ac_includes_default
16245int
16246main ()
16247{
16248static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16249test_array [0] = 0
16250
16251 ;
16252 return 0;
16253}
16254_ACEOF
16255rm -f conftest.$ac_objext
16256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16257 (eval $ac_compile) 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try='test -s conftest.$ac_objext'
16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263 (eval $ac_try) 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_hi=$ac_mid; break
16268else
16269 echo "$as_me: failed program was:" >&5
16270sed 's/^/| /' conftest.$ac_ext >&5
16271
16272ac_lo=`expr $ac_mid + 1`
16273 if test $ac_lo -le $ac_mid; then
16274 ac_lo= ac_hi=
16275 break
16276 fi
16277 ac_mid=`expr 2 '*' $ac_mid + 1`
16278fi
16279rm -f conftest.$ac_objext conftest.$ac_ext
16280 done
16281else
16282 echo "$as_me: failed program was:" >&5
16283sed 's/^/| /' conftest.$ac_ext >&5
16284
16285cat >conftest.$ac_ext <<_ACEOF
16286#line $LINENO "configure"
16287/* confdefs.h. */
16288_ACEOF
16289cat confdefs.h >>conftest.$ac_ext
16290cat >>conftest.$ac_ext <<_ACEOF
16291/* end confdefs.h. */
16292$ac_includes_default
16293int
16294main ()
16295{
16296static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16297test_array [0] = 0
16298
16299 ;
16300 return 0;
16301}
16302_ACEOF
16303rm -f conftest.$ac_objext
16304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305 (eval $ac_compile) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -s conftest.$ac_objext'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; }; then
16315 ac_hi=-1 ac_mid=-1
16316 while :; do
16317 cat >conftest.$ac_ext <<_ACEOF
16318#line $LINENO "configure"
16319/* confdefs.h. */
16320_ACEOF
16321cat confdefs.h >>conftest.$ac_ext
16322cat >>conftest.$ac_ext <<_ACEOF
16323/* end confdefs.h. */
16324$ac_includes_default
16325int
16326main ()
16327{
16328static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16329test_array [0] = 0
16330
16331 ;
16332 return 0;
16333}
16334_ACEOF
16335rm -f conftest.$ac_objext
16336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -s conftest.$ac_objext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 ac_lo=$ac_mid; break
16348else
16349 echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352ac_hi=`expr '(' $ac_mid ')' - 1`
16353 if test $ac_mid -le $ac_hi; then
16354 ac_lo= ac_hi=
16355 break
16356 fi
16357 ac_mid=`expr 2 '*' $ac_mid`
16358fi
16359rm -f conftest.$ac_objext conftest.$ac_ext
16360 done
4f57cf11 16361else
e6cc62c6
VS
16362 echo "$as_me: failed program was:" >&5
16363sed 's/^/| /' conftest.$ac_ext >&5
16364
16365ac_lo= ac_hi=
16366fi
16367rm -f conftest.$ac_objext conftest.$ac_ext
16368fi
16369rm -f conftest.$ac_objext conftest.$ac_ext
16370# Binary search between lo and hi bounds.
16371while test "x$ac_lo" != "x$ac_hi"; do
16372 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16373 cat >conftest.$ac_ext <<_ACEOF
16374#line $LINENO "configure"
16375/* confdefs.h. */
16376_ACEOF
16377cat confdefs.h >>conftest.$ac_ext
16378cat >>conftest.$ac_ext <<_ACEOF
16379/* end confdefs.h. */
16380$ac_includes_default
16381int
16382main ()
16383{
16384static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16385test_array [0] = 0
16386
16387 ;
16388 return 0;
16389}
16390_ACEOF
16391rm -f conftest.$ac_objext
16392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393 (eval $ac_compile) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -s conftest.$ac_objext'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16400 ac_status=$?
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16403 ac_hi=$ac_mid
16404else
16405 echo "$as_me: failed program was:" >&5
16406sed 's/^/| /' conftest.$ac_ext >&5
16407
16408ac_lo=`expr '(' $ac_mid ')' + 1`
16409fi
16410rm -f conftest.$ac_objext conftest.$ac_ext
16411done
16412case $ac_lo in
16413?*) ac_cv_sizeof_long_long=$ac_lo;;
16414'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16415See \`config.log' for more details." >&5
16416echo "$as_me: error: cannot compute sizeof (long long), 77
16417See \`config.log' for more details." >&2;}
16418 { (exit 1); exit 1; }; } ;;
16419esac
16420else
16421 if test "$cross_compiling" = yes; then
16422 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16423See \`config.log' for more details." >&5
16424echo "$as_me: error: cannot run test program while cross compiling
16425See \`config.log' for more details." >&2;}
16426 { (exit 1); exit 1; }; }
16427else
16428 cat >conftest.$ac_ext <<_ACEOF
16429#line $LINENO "configure"
16430/* confdefs.h. */
16431_ACEOF
16432cat confdefs.h >>conftest.$ac_ext
16433cat >>conftest.$ac_ext <<_ACEOF
16434/* end confdefs.h. */
16435$ac_includes_default
16436long longval () { return (long) (sizeof (long long)); }
16437unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16438#include <stdio.h>
e6cc62c6
VS
16439#include <stdlib.h>
16440int
16441main ()
4f57cf11 16442{
e6cc62c6
VS
16443
16444 FILE *f = fopen ("conftest.val", "w");
16445 if (! f)
16446 exit (1);
16447 if (((long) (sizeof (long long))) < 0)
16448 {
16449 long i = longval ();
16450 if (i != ((long) (sizeof (long long))))
16451 exit (1);
16452 fprintf (f, "%ld\n", i);
16453 }
16454 else
16455 {
16456 unsigned long i = ulongval ();
16457 if (i != ((long) (sizeof (long long))))
16458 exit (1);
16459 fprintf (f, "%lu\n", i);
16460 }
16461 exit (ferror (f) || fclose (f) != 0);
16462
16463 ;
16464 return 0;
4f57cf11 16465}
e6cc62c6
VS
16466_ACEOF
16467rm -f conftest$ac_exeext
16468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16469 (eval $ac_link) 2>&5
16470 ac_status=$?
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; }; then
16478 ac_cv_sizeof_long_long=`cat conftest.val`
16479else
16480 echo "$as_me: program exited with status $ac_status" >&5
16481echo "$as_me: failed program was:" >&5
16482sed 's/^/| /' conftest.$ac_ext >&5
16483
16484( exit $ac_status )
16485{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16486See \`config.log' for more details." >&5
16487echo "$as_me: error: cannot compute sizeof (long long), 77
16488See \`config.log' for more details." >&2;}
16489 { (exit 1); exit 1; }; }
16490fi
16491rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16492fi
16493fi
16494rm -f conftest.val
4f57cf11 16495else
4f57cf11
GD
16496 ac_cv_sizeof_long_long=0
16497fi
7b4a847f 16498fi
e6cc62c6
VS
16499echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16500echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16501cat >>confdefs.h <<_ACEOF
21d1c967 16502#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16503_ACEOF
9e691f46 16504
8284b0c5 16505
21d1c967
GD
16506esac
16507
e6cc62c6
VS
16508echo "$as_me:$LINENO: checking size of wchar_t" >&5
16509echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16510if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16512else
e6cc62c6 16513
21d1c967 16514 if test "$cross_compiling" = yes; then
e6cc62c6 16515
2b5f62a0
VZ
16516 case "${host}" in
16517 *-pc-msdosdjgpp )
16518 wx_cv_sizeof_wchar_t=0
16519 ;;
16520 * )
16521 wx_cv_sizeof_wchar_t=4
16522 ;;
16523 esac
e6cc62c6
VS
16524
16525
6f72b082 16526else
e6cc62c6
VS
16527 cat >conftest.$ac_ext <<_ACEOF
16528#line $LINENO "configure"
16529/* confdefs.h. */
16530_ACEOF
16531cat confdefs.h >>conftest.$ac_ext
16532cat >>conftest.$ac_ext <<_ACEOF
16533/* end confdefs.h. */
21d1c967 16534
2b5f62a0
VZ
16535 /* DJGPP only has fake wchar_t: */
16536 #ifdef __DJGPP__
16537 # error "fake wchar_t"
16538 #endif
21d1c967
GD
16539 #ifdef HAVE_WCHAR_H
16540 # ifdef __CYGWIN__
16541 # include <stddef.h>
16542 # endif
16543 # include <wchar.h>
16544 #endif
16545 #ifdef HAVE_STDLIB_H
16546 # include <stdlib.h>
16547 #endif
16548 #include <stdio.h>
16549 int main()
16550 {
16551 FILE *f=fopen("conftestval", "w");
16552 if (!f) exit(1);
16553 fprintf(f, "%i", sizeof(wchar_t));
16554 exit(0);
16555 }
e6cc62c6
VS
16556
16557_ACEOF
16558rm -f conftest$ac_exeext
16559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560 (eval $ac_link) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
21d1c967 16569 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16570else
e6cc62c6
VS
16571 echo "$as_me: program exited with status $ac_status" >&5
16572echo "$as_me: failed program was:" >&5
16573sed 's/^/| /' conftest.$ac_ext >&5
16574
16575( exit $ac_status )
16576wx_cv_sizeof_wchar_t=0
6f72b082 16577fi
e6cc62c6 16578rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16579fi
6f72b082 16580
3f345b47 16581fi
e6cc62c6
VS
16582echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16583echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16584
e6cc62c6 16585cat >>confdefs.h <<_ACEOF
21d1c967 16586#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16587_ACEOF
90dd450c 16588
8284b0c5 16589
21d1c967
GD
16590# Check whether --enable-largefile or --disable-largefile was given.
16591if test "${enable_largefile+set}" = set; then
16592 enableval="$enable_largefile"
3f345b47 16593
e6cc62c6 16594fi;
21d1c967
GD
16595if test "$enable_largefile" != no; then
16596 wx_largefile=no
e6cc62c6
VS
16597
16598 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16599echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16600if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16602else
16603
16604 cat >conftest.$ac_ext <<_ACEOF
16605#line $LINENO "configure"
16606/* confdefs.h. */
16607_ACEOF
16608cat confdefs.h >>conftest.$ac_ext
16609cat >>conftest.$ac_ext <<_ACEOF
16610/* end confdefs.h. */
21d1c967
GD
16611#define _FILE_OFFSET_BITS 64
16612 #include <sys/types.h>
e6cc62c6
VS
16613int
16614main ()
16615{
21d1c967
GD
16616typedef struct {
16617 unsigned int field: sizeof(off_t) == 8;
16618} wxlf;
16619
e6cc62c6
VS
16620 ;
16621 return 0;
16622}
16623_ACEOF
16624rm -f conftest.$ac_objext
16625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16626 (eval $ac_compile) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } &&
16630 { ac_try='test -s conftest.$ac_objext'
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
21d1c967 16636 ac_cv_sys_file_offset_bits=64
f6bcfd97 16637else
e6cc62c6
VS
16638 echo "$as_me: failed program was:" >&5
16639sed 's/^/| /' conftest.$ac_ext >&5
16640
16641ac_cv_sys_file_offset_bits=no
247f5006 16642fi
e6cc62c6
VS
16643rm -f conftest.$ac_objext conftest.$ac_ext
16644
a0b9e27f 16645
e6cc62c6
VS
16646fi
16647echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16648echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16649
16650 if test "$ac_cv_sys_file_offset_bits" != no; then
16651 wx_largefile=yes
e6cc62c6 16652 cat >>confdefs.h <<_ACEOF
21d1c967 16653#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16654_ACEOF
21d1c967
GD
16655
16656 fi
16657
16658 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16659
16660 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16661echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16662if test "${ac_cv_sys_large_files+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16664else
16665
16666 cat >conftest.$ac_ext <<_ACEOF
16667#line $LINENO "configure"
16668/* confdefs.h. */
16669_ACEOF
16670cat confdefs.h >>conftest.$ac_ext
16671cat >>conftest.$ac_ext <<_ACEOF
16672/* end confdefs.h. */
21d1c967
GD
16673#define _LARGE_FILES 1
16674 #include <sys/types.h>
e6cc62c6
VS
16675int
16676main ()
16677{
21d1c967
GD
16678typedef struct {
16679 unsigned int field: sizeof(off_t) == 8;
16680} wxlf;
16681
e6cc62c6
VS
16682 ;
16683 return 0;
16684}
16685_ACEOF
16686rm -f conftest.$ac_objext
16687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16688 (eval $ac_compile) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
16692 { ac_try='test -s conftest.$ac_objext'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
21d1c967 16698 ac_cv_sys_large_files=1
f6bcfd97 16699else
e6cc62c6
VS
16700 echo "$as_me: failed program was:" >&5
16701sed 's/^/| /' conftest.$ac_ext >&5
16702
16703ac_cv_sys_large_files=no
247f5006 16704fi
e6cc62c6 16705rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16706
e6cc62c6
VS
16707
16708fi
16709echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16710echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16711
21d1c967
GD
16712 if test "$ac_cv_sys_large_files" != no; then
16713 wx_largefile=yes
e6cc62c6 16714 cat >>confdefs.h <<_ACEOF
21d1c967 16715#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16716_ACEOF
90dd450c 16717
90dd450c
VZ
16718 fi
16719
90dd450c 16720 fi
90dd450c 16721
e6cc62c6
VS
16722 echo "$as_me:$LINENO: checking if large file support is available" >&5
16723echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16724 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16725 cat >>confdefs.h <<\_ACEOF
21d1c967 16726#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16727_ACEOF
90dd450c 16728
90dd450c 16729 fi
e6cc62c6
VS
16730 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16731echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16732fi
90dd450c 16733
8284b0c5 16734
f02444d0 16735if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16736 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16737 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16738 else
e26c13cf 16739 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16740 fi
e26c13cf 16741 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16742fi
16743
e6cc62c6
VS
16744echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16745echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16746if test "${ac_cv_c_bigendian+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16748else
21d1c967
GD
16749 ac_cv_c_bigendian=unknown
16750# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16751cat >conftest.$ac_ext <<_ACEOF
16752#line $LINENO "configure"
16753/* confdefs.h. */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h. */
21d1c967
GD
16758#include <sys/types.h>
16759#include <sys/param.h>
e6cc62c6
VS
16760int
16761main ()
16762{
21d1c967
GD
16763
16764#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16765 bogus endian macros
16766#endif
e6cc62c6
VS
16767 ;
16768 return 0;
16769}
16770_ACEOF
16771rm -f conftest.$ac_objext
16772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16773 (eval $ac_compile) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } &&
16777 { ac_try='test -s conftest.$ac_objext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
21d1c967 16783 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16784cat >conftest.$ac_ext <<_ACEOF
16785#line $LINENO "configure"
16786/* confdefs.h. */
16787_ACEOF
16788cat confdefs.h >>conftest.$ac_ext
16789cat >>conftest.$ac_ext <<_ACEOF
16790/* end confdefs.h. */
21d1c967
GD
16791#include <sys/types.h>
16792#include <sys/param.h>
e6cc62c6
VS
16793int
16794main ()
16795{
21d1c967
GD
16796
16797#if BYTE_ORDER != BIG_ENDIAN
16798 not big endian
16799#endif
e6cc62c6
VS
16800 ;
16801 return 0;
16802}
16803_ACEOF
16804rm -f conftest.$ac_objext
16805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16806 (eval $ac_compile) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
16810 { ac_try='test -s conftest.$ac_objext'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
21d1c967 16816 ac_cv_c_bigendian=yes
3f345b47 16817else
e6cc62c6
VS
16818 echo "$as_me: failed program was:" >&5
16819sed 's/^/| /' conftest.$ac_ext >&5
16820
16821ac_cv_c_bigendian=no
3f345b47 16822fi
e6cc62c6 16823rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16824else
e6cc62c6
VS
16825 echo "$as_me: failed program was:" >&5
16826sed 's/^/| /' conftest.$ac_ext >&5
16827
3f345b47 16828fi
e6cc62c6 16829rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16830if test $ac_cv_c_bigendian = unknown; then
16831if test "$cross_compiling" = yes; then
16832 ac_cv_c_bigendian=unknown
10f2d63a 16833else
e6cc62c6
VS
16834 cat >conftest.$ac_ext <<_ACEOF
16835#line $LINENO "configure"
16836/* confdefs.h. */
16837_ACEOF
16838cat confdefs.h >>conftest.$ac_ext
16839cat >>conftest.$ac_ext <<_ACEOF
16840/* end confdefs.h. */
21d1c967
GD
16841main () {
16842 /* Are we little or big endian? From Harbison&Steele. */
16843 union
16844 {
16845 long l;
16846 char c[sizeof (long)];
16847 } u;
16848 u.l = 1;
16849 exit (u.c[sizeof (long) - 1] == 1);
16850}
e6cc62c6
VS
16851_ACEOF
16852rm -f conftest$ac_exeext
16853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16854 (eval $ac_link) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
21d1c967 16863 ac_cv_c_bigendian=no
3f345b47 16864else
e6cc62c6
VS
16865 echo "$as_me: program exited with status $ac_status" >&5
16866echo "$as_me: failed program was:" >&5
16867sed 's/^/| /' conftest.$ac_ext >&5
16868
16869( exit $ac_status )
16870ac_cv_c_bigendian=yes
247f5006 16871fi
e6cc62c6 16872rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16873fi
3f345b47 16874fi
8168de4c 16875fi
e6cc62c6
VS
16876echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16877echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16878if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16879 { 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
16880echo "$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
16881fi
16882if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16883 cat >>confdefs.h <<\_ACEOF
247f5006 16884#define WORDS_BIGENDIAN 1
e6cc62c6 16885_ACEOF
247f5006
VZ
16886
16887fi
16888
16889
e6cc62c6
VS
16890
16891ac_ext=cc
16892ac_cpp='$CXXCPP $CPPFLAGS'
16893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16896echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16897echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16898if test -z "$CXXCPP"; then
e6cc62c6
VS
16899 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16901else
16902 # Double quotes because CXXCPP needs to be expanded
16903 for CXXCPP in "$CXX -E" "/lib/cpp"
16904 do
16905 ac_preproc_ok=false
16906for ac_cxx_preproc_warn_flag in '' yes
16907do
16908 # Use a header file that comes with gcc, so configuring glibc
16909 # with a fresh cross-compiler works.
16910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16911 # <limits.h> exists even on freestanding compilers.
16912 # On the NeXT, cc -E runs the code through the compiler's parser,
16913 # not just through cpp. "Syntax error" is here to catch this case.
16914 cat >conftest.$ac_ext <<_ACEOF
16915#line $LINENO "configure"
16916/* confdefs.h. */
16917_ACEOF
16918cat confdefs.h >>conftest.$ac_ext
16919cat >>conftest.$ac_ext <<_ACEOF
16920/* end confdefs.h. */
16921#ifdef __STDC__
16922# include <limits.h>
16923#else
16924# include <assert.h>
16925#endif
16926 Syntax error
16927_ACEOF
16928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16930 ac_status=$?
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } >/dev/null; then
16936 if test -s conftest.err; then
16937 ac_cpp_err=$ac_cxx_preproc_warn_flag
16938 else
16939 ac_cpp_err=
16940 fi
247f5006 16941else
e6cc62c6
VS
16942 ac_cpp_err=yes
16943fi
16944if test -z "$ac_cpp_err"; then
16945 :
16946else
16947 echo "$as_me: failed program was:" >&5
16948sed 's/^/| /' conftest.$ac_ext >&5
16949
16950 # Broken: fails on valid input.
16951continue
16952fi
16953rm -f conftest.err conftest.$ac_ext
16954
16955 # OK, works on sane cases. Now check whether non-existent headers
16956 # can be detected and how.
16957 cat >conftest.$ac_ext <<_ACEOF
16958#line $LINENO "configure"
16959/* confdefs.h. */
16960_ACEOF
16961cat confdefs.h >>conftest.$ac_ext
16962cat >>conftest.$ac_ext <<_ACEOF
16963/* end confdefs.h. */
16964#include <ac_nonexistent.h>
16965_ACEOF
16966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16968 ac_status=$?
16969 grep -v '^ *+' conftest.er1 >conftest.err
16970 rm -f conftest.er1
16971 cat conftest.err >&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } >/dev/null; then
16974 if test -s conftest.err; then
16975 ac_cpp_err=$ac_cxx_preproc_warn_flag
16976 else
16977 ac_cpp_err=
16978 fi
16979else
16980 ac_cpp_err=yes
16981fi
16982if test -z "$ac_cpp_err"; then
16983 # Broken: success on invalid input.
16984continue
16985else
16986 echo "$as_me: failed program was:" >&5
16987sed 's/^/| /' conftest.$ac_ext >&5
16988
16989 # Passes both tests.
16990ac_preproc_ok=:
16991break
16992fi
16993rm -f conftest.err conftest.$ac_ext
16994
16995done
16996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16997rm -f conftest.err conftest.$ac_ext
16998if $ac_preproc_ok; then
16999 break
17000fi
17001
17002 done
17003 ac_cv_prog_CXXCPP=$CXXCPP
17004
17005fi
17006 CXXCPP=$ac_cv_prog_CXXCPP
17007else
17008 ac_cv_prog_CXXCPP=$CXXCPP
17009fi
17010echo "$as_me:$LINENO: result: $CXXCPP" >&5
17011echo "${ECHO_T}$CXXCPP" >&6
17012ac_preproc_ok=false
17013for ac_cxx_preproc_warn_flag in '' yes
17014do
17015 # Use a header file that comes with gcc, so configuring glibc
17016 # with a fresh cross-compiler works.
17017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17018 # <limits.h> exists even on freestanding compilers.
17019 # On the NeXT, cc -E runs the code through the compiler's parser,
17020 # not just through cpp. "Syntax error" is here to catch this case.
17021 cat >conftest.$ac_ext <<_ACEOF
17022#line $LINENO "configure"
17023/* confdefs.h. */
17024_ACEOF
17025cat confdefs.h >>conftest.$ac_ext
17026cat >>conftest.$ac_ext <<_ACEOF
17027/* end confdefs.h. */
17028#ifdef __STDC__
17029# include <limits.h>
17030#else
17031# include <assert.h>
17032#endif
17033 Syntax error
17034_ACEOF
17035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17037 ac_status=$?
17038 grep -v '^ *+' conftest.er1 >conftest.err
17039 rm -f conftest.er1
17040 cat conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } >/dev/null; then
17043 if test -s conftest.err; then
17044 ac_cpp_err=$ac_cxx_preproc_warn_flag
17045 else
17046 ac_cpp_err=
17047 fi
17048else
17049 ac_cpp_err=yes
17050fi
17051if test -z "$ac_cpp_err"; then
21d1c967 17052 :
698dcdb6 17053else
e6cc62c6
VS
17054 echo "$as_me: failed program was:" >&5
17055sed 's/^/| /' conftest.$ac_ext >&5
17056
17057 # Broken: fails on valid input.
17058continue
17059fi
17060rm -f conftest.err conftest.$ac_ext
17061
17062 # OK, works on sane cases. Now check whether non-existent headers
17063 # can be detected and how.
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#include <ac_nonexistent.h>
17072_ACEOF
17073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17075 ac_status=$?
17076 grep -v '^ *+' conftest.er1 >conftest.err
17077 rm -f conftest.er1
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } >/dev/null; then
17081 if test -s conftest.err; then
17082 ac_cpp_err=$ac_cxx_preproc_warn_flag
17083 else
17084 ac_cpp_err=
17085 fi
17086else
17087 ac_cpp_err=yes
247f5006 17088fi
e6cc62c6
VS
17089if test -z "$ac_cpp_err"; then
17090 # Broken: success on invalid input.
17091continue
17092else
17093 echo "$as_me: failed program was:" >&5
17094sed 's/^/| /' conftest.$ac_ext >&5
17095
17096 # Passes both tests.
17097ac_preproc_ok=:
17098break
328a083c 17099fi
e6cc62c6
VS
17100rm -f conftest.err conftest.$ac_ext
17101
17102done
17103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17104rm -f conftest.err conftest.$ac_ext
17105if $ac_preproc_ok; then
17106 :
17107else
17108 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17109See \`config.log' for more details." >&5
17110echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17111See \`config.log' for more details." >&2;}
17112 { (exit 1); exit 1; }; }
90dd450c 17113fi
e6cc62c6
VS
17114
17115ac_ext=cc
17116ac_cpp='$CXXCPP $CPPFLAGS'
17117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17120
1e6feb95 17121
1725144d 17122
21d1c967 17123 if test "$cross_compiling" = "yes"; then
e6cc62c6 17124 cat >>confdefs.h <<\_ACEOF
21d1c967 17125#define wxUSE_IOSTREAMH 1
e6cc62c6 17126_ACEOF
ab9b9eab 17127
21d1c967 17128 else
e6cc62c6
VS
17129
17130
17131 ac_ext=cc
5c6fa7d2 17132ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17136
52127426 17137
247f5006 17138
e6cc62c6 17139for ac_header in iostream
21d1c967 17140do
e6cc62c6
VS
17141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17142if eval "test \"\${$as_ac_Header+set}\" = set"; then
17143 echo "$as_me:$LINENO: checking for $ac_header" >&5
17144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17145if eval "test \"\${$as_ac_Header+set}\" = set"; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17147fi
17148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17150else
17151 # Is the header compilable?
17152echo "$as_me:$LINENO: checking $ac_header usability" >&5
17153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17154cat >conftest.$ac_ext <<_ACEOF
17155#line $LINENO "configure"
17156/* confdefs.h. */
17157_ACEOF
17158cat confdefs.h >>conftest.$ac_ext
17159cat >>conftest.$ac_ext <<_ACEOF
17160/* end confdefs.h. */
17161$ac_includes_default
17162#include <$ac_header>
17163_ACEOF
17164rm -f conftest.$ac_objext
17165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17166 (eval $ac_compile) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
17170 { ac_try='test -s conftest.$ac_objext'
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176 ac_header_compiler=yes
17177else
17178 echo "$as_me: failed program was:" >&5
17179sed 's/^/| /' conftest.$ac_ext >&5
17180
17181ac_header_compiler=no
17182fi
17183rm -f conftest.$ac_objext conftest.$ac_ext
17184echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17185echo "${ECHO_T}$ac_header_compiler" >&6
17186
17187# Is the header present?
17188echo "$as_me:$LINENO: checking $ac_header presence" >&5
17189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17190cat >conftest.$ac_ext <<_ACEOF
17191#line $LINENO "configure"
17192/* confdefs.h. */
17193_ACEOF
17194cat confdefs.h >>conftest.$ac_ext
17195cat >>conftest.$ac_ext <<_ACEOF
17196/* end confdefs.h. */
17197#include <$ac_header>
17198_ACEOF
17199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17201 ac_status=$?
17202 grep -v '^ *+' conftest.er1 >conftest.err
17203 rm -f conftest.er1
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } >/dev/null; then
17207 if test -s conftest.err; then
17208 ac_cpp_err=$ac_cxx_preproc_warn_flag
17209 else
17210 ac_cpp_err=
17211 fi
17212else
17213 ac_cpp_err=yes
17214fi
17215if test -z "$ac_cpp_err"; then
17216 ac_header_preproc=yes
17217else
17218 echo "$as_me: failed program was:" >&5
17219sed 's/^/| /' conftest.$ac_ext >&5
17220
17221 ac_header_preproc=no
17222fi
17223rm -f conftest.err conftest.$ac_ext
17224echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17225echo "${ECHO_T}$ac_header_preproc" >&6
17226
17227# So? What about this header?
17228case $ac_header_compiler:$ac_header_preproc in
17229 yes:no )
17230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17231echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17233echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17234 (
17235 cat <<\_ASBOX
17236## ------------------------------------ ##
17237## Report this to bug-autoconf@gnu.org. ##
17238## ------------------------------------ ##
17239_ASBOX
17240 ) |
17241 sed "s/^/$as_me: WARNING: /" >&2
17242 ;;
17243 no:yes )
17244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17245echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17247echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17249echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17250 (
17251 cat <<\_ASBOX
17252## ------------------------------------ ##
17253## Report this to bug-autoconf@gnu.org. ##
17254## ------------------------------------ ##
17255_ASBOX
17256 ) |
17257 sed "s/^/$as_me: WARNING: /" >&2
17258 ;;
17259esac
17260echo "$as_me:$LINENO: checking for $ac_header" >&5
17261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17262if eval "test \"\${$as_ac_Header+set}\" = set"; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264else
17265 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17266fi
e6cc62c6
VS
17267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17269
90dd450c 17270fi
e6cc62c6
VS
17271if test `eval echo '${'$as_ac_Header'}'` = yes; then
17272 cat >>confdefs.h <<_ACEOF
17273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17274_ACEOF
17275
90dd450c 17276fi
e6cc62c6 17277
21d1c967 17278done
10f2d63a 17279
8284b0c5 17280
21d1c967
GD
17281 if test "$ac_cv_header_iostream" = "yes" ; then
17282 :
17283 else
e6cc62c6 17284 cat >>confdefs.h <<\_ACEOF
21d1c967 17285#define wxUSE_IOSTREAMH 1
e6cc62c6 17286_ACEOF
788deba1 17287
90dd450c 17288 fi
ab9b9eab 17289
21d1c967 17290 ac_ext=c
21d1c967 17291ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17294ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17295
21d1c967 17296 fi
ab9b9eab 17297
52127426 17298
8284b0c5 17299
e6cc62c6
VS
17300 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17301echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17302if test "${wx_cv_cpp_bool+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17304else
e6cc62c6
VS
17305
17306
17307
17308 ac_ext=cc
5c6fa7d2 17309ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17313
8284b0c5 17314
e6cc62c6
VS
17315 cat >conftest.$ac_ext <<_ACEOF
17316#line $LINENO "configure"
17317/* confdefs.h. */
17318_ACEOF
17319cat confdefs.h >>conftest.$ac_ext
17320cat >>conftest.$ac_ext <<_ACEOF
17321/* end confdefs.h. */
21d1c967 17322
e6cc62c6
VS
17323
17324int
17325main ()
17326{
21d1c967
GD
17327
17328 bool b = true;
17329
17330 return 0;
e6cc62c6
VS
17331
17332 ;
17333 return 0;
17334}
17335_ACEOF
17336rm -f conftest.$ac_objext
17337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17338 (eval $ac_compile) 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try='test -s conftest.$ac_objext'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; }; then
17348
21d1c967 17349 wx_cv_cpp_bool=yes
e6cc62c6 17350
698dcdb6 17351else
e6cc62c6
VS
17352 echo "$as_me: failed program was:" >&5
17353sed 's/^/| /' conftest.$ac_ext >&5
17354
17355
21d1c967 17356 wx_cv_cpp_bool=no
e6cc62c6
VS
17357
17358
698dcdb6 17359fi
e6cc62c6 17360rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17361
17362 ac_ext=c
21d1c967 17363ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17366ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17367
a0b9e27f 17368
e6cc62c6
VS
17369fi
17370echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17371echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17372
17373 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17374 cat >>confdefs.h <<\_ACEOF
21d1c967 17375#define HAVE_BOOL 1
e6cc62c6 17376_ACEOF
ab9b9eab 17377
21d1c967
GD
17378 fi
17379
52127426 17380
8284b0c5 17381
e6cc62c6
VS
17382 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17383echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17384if test "${wx_cv_explicit+set}" = set; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17386else
e6cc62c6
VS
17387
17388
17389
17390 ac_ext=cc
5c6fa7d2 17391ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17395
8284b0c5 17396
e6cc62c6
VS
17397 cat >conftest.$ac_ext <<_ACEOF
17398#line $LINENO "configure"
17399/* confdefs.h. */
17400_ACEOF
17401cat confdefs.h >>conftest.$ac_ext
17402cat >>conftest.$ac_ext <<_ACEOF
17403/* end confdefs.h. */
986ecc86
VZ
17404
17405 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17406
17407int
17408main ()
17409{
986ecc86
VZ
17410
17411 return 0;
e6cc62c6
VS
17412
17413 ;
17414 return 0;
17415}
17416_ACEOF
17417rm -f conftest.$ac_objext
17418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17419 (eval $ac_compile) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
17423 { ac_try='test -s conftest.$ac_objext'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429
17430 cat >conftest.$ac_ext <<_ACEOF
17431#line $LINENO "configure"
17432/* confdefs.h. */
17433_ACEOF
17434cat confdefs.h >>conftest.$ac_ext
17435cat >>conftest.$ac_ext <<_ACEOF
17436/* end confdefs.h. */
986ecc86
VZ
17437
17438 class Foo { public: explicit Foo(int) {} };
17439 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17440
17441int
17442main ()
17443{
986ecc86
VZ
17444
17445 TakeFoo(17);
17446 return 0;
e6cc62c6
VS
17447
17448 ;
17449 return 0;
17450}
17451_ACEOF
17452rm -f conftest.$ac_objext
17453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17454 (eval $ac_compile) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
17458 { ac_try='test -s conftest.$ac_objext'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
986ecc86
VZ
17464 wx_cv_explicit=no
17465else
e6cc62c6
VS
17466 echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
17469wx_cv_explicit=yes
17470
986ecc86 17471fi
e6cc62c6
VS
17472rm -f conftest.$ac_objext conftest.$ac_ext
17473
986ecc86 17474else
e6cc62c6
VS
17475 echo "$as_me: failed program was:" >&5
17476sed 's/^/| /' conftest.$ac_ext >&5
17477
17478wx_cv_explicit=no
17479
986ecc86 17480fi
e6cc62c6 17481rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17482
17483 ac_ext=c
986ecc86 17484ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17487ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17488
a0b9e27f 17489
e6cc62c6
VS
17490fi
17491echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17492echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17493
17494 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17495 cat >>confdefs.h <<\_ACEOF
986ecc86 17496#define HAVE_EXPLICIT 1
e6cc62c6 17497_ACEOF
986ecc86
VZ
17498
17499 fi
17500
8284b0c5 17501
e6cc62c6
VS
17502echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17503echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17504if test "${ac_cv_cxx_const_cast+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17506else
521196a2 17507
521196a2 17508
e6cc62c6
VS
17509 ac_ext=cc
17510ac_cpp='$CXXCPP $CPPFLAGS'
17511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17514
17515 cat >conftest.$ac_ext <<_ACEOF
17516#line $LINENO "configure"
17517/* confdefs.h. */
17518_ACEOF
17519cat confdefs.h >>conftest.$ac_ext
17520cat >>conftest.$ac_ext <<_ACEOF
17521/* end confdefs.h. */
17522
17523int
17524main ()
17525{
521196a2 17526int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17527 ;
17528 return 0;
17529}
17530_ACEOF
17531rm -f conftest.$ac_objext
17532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17533 (eval $ac_compile) 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } &&
17537 { ac_try='test -s conftest.$ac_objext'
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; }; then
521196a2
MB
17543 ac_cv_cxx_const_cast=yes
17544else
e6cc62c6
VS
17545 echo "$as_me: failed program was:" >&5
17546sed 's/^/| /' conftest.$ac_ext >&5
17547
17548ac_cv_cxx_const_cast=no
521196a2 17549fi
e6cc62c6 17550rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17551 ac_ext=c
521196a2 17552ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17555ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17556
17557
17558fi
e6cc62c6
VS
17559echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17560echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17561if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17562
17563cat >>confdefs.h <<\_ACEOF
17564#define HAVE_CONST_CAST
17565_ACEOF
521196a2
MB
17566
17567fi
17568
17569
e87b7833
MB
17570if test "$wxUSE_STL" = "yes"; then
17571 ac_ext=cc
17572ac_cpp='$CXXCPP $CPPFLAGS'
17573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17576
17577
17578 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17579echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
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. */
17587#include <string>
17588 #include <functional>
17589 #include <algorithm>
17590 #include <vector>
17591 #include <list>
17592int
17593main ()
17594{
17595std::vector<int> moo;
17596 std::list<int> foo;
17597 std::vector<int>::iterator it =
17598 std::find_if(moo.begin(), moo.end(),
17599 std::bind2nd(std::less<int>(), 3));
17600 ;
17601 return 0;
17602}
17603_ACEOF
17604rm -f conftest.$ac_objext
17605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17606 (eval $ac_compile) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -s conftest.$ac_objext'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 echo "$as_me:$LINENO: result: yes" >&5
17617echo "${ECHO_T}yes" >&6
17618else
17619 echo "$as_me: failed program was:" >&5
17620sed 's/^/| /' conftest.$ac_ext >&5
17621
17622echo "$as_me:$LINENO: result: no" >&5
17623echo "${ECHO_T}no" >&6
17624 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17625echo "$as_me: error: Basic STL functionality missing" >&2;}
17626 { (exit 1); exit 1; }; }
17627fi
17628rm -f conftest.$ac_objext conftest.$ac_ext
17629
17630 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17631echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17632 cat >conftest.$ac_ext <<_ACEOF
17633#line $LINENO "configure"
17634/* confdefs.h. */
17635_ACEOF
17636cat confdefs.h >>conftest.$ac_ext
17637cat >>conftest.$ac_ext <<_ACEOF
17638/* end confdefs.h. */
17639#include <string>
17640int
17641main ()
17642{
17643std::wstring foo;
17644 ;
17645 return 0;
17646}
17647_ACEOF
17648rm -f conftest.$ac_objext
17649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17650 (eval $ac_compile) 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -s conftest.$ac_objext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 echo "$as_me:$LINENO: result: yes" >&5
17661echo "${ECHO_T}yes" >&6
17662 cat >>confdefs.h <<\_ACEOF
17663#define HAVE_STD_WSTRING 1
17664_ACEOF
17665
17666else
17667 echo "$as_me: failed program was:" >&5
17668sed 's/^/| /' conftest.$ac_ext >&5
17669
17670echo "$as_me:$LINENO: result: no" >&5
17671echo "${ECHO_T}no" >&6
17672fi
17673rm -f conftest.$ac_objext conftest.$ac_ext
17674
17675 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17676echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17677 cat >conftest.$ac_ext <<_ACEOF
17678#line $LINENO "configure"
17679/* confdefs.h. */
17680_ACEOF
17681cat confdefs.h >>conftest.$ac_ext
17682cat >>conftest.$ac_ext <<_ACEOF
17683/* end confdefs.h. */
17684#include <string>
17685int
17686main ()
17687{
17688std::string foo, bar;
17689 foo.compare(bar);
17690 foo.compare(1, 1, bar);
17691 foo.compare(1, 1, bar, 1, 1);
17692 foo.compare("");
17693 foo.compare(1, 1, "");
17694 foo.compare(1, 1, "", 2);
17695 ;
17696 return 0;
17697}
17698_ACEOF
17699rm -f conftest.$ac_objext
17700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -s conftest.$ac_objext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 echo "$as_me:$LINENO: result: yes" >&5
17712echo "${ECHO_T}yes" >&6
17713 cat >>confdefs.h <<\_ACEOF
17714#define HAVE_STD_STRING_COMPARE 1
17715_ACEOF
17716
17717else
17718 echo "$as_me: failed program was:" >&5
17719sed 's/^/| /' conftest.$ac_ext >&5
17720
17721echo "$as_me:$LINENO: result: no" >&5
17722echo "${ECHO_T}no" >&6
17723fi
17724rm -f conftest.$ac_objext conftest.$ac_ext
17725
17726 ac_ext=c
17727ac_cpp='$CPP $CPPFLAGS'
17728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17730ac_compiler_gnu=$ac_cv_c_compiler_gnu
17731
17732fi
17733
8284b0c5 17734
21d1c967
GD
17735SEARCH_INCLUDE="\
17736 /usr/local/include \
17737 \
17738 /usr/Motif-1.2/include \
17739 /usr/Motif-2.1/include \
17740 \
17741 /usr/include/Motif1.2 \
17742 /opt/xpm/include/X11 \
17743 /opt/GBxpm/include/ \
17744 /opt/GBxpm/X11/include/ \
17745 \
17746 /usr/Motif1.2/include \
17747 /usr/dt/include \
17748 /usr/openwin/include \
17749 \
17750 /usr/include/Xm \
17751 \
17752 /usr/X11R6/include \
17753 /usr/X11R6.4/include \
17754 /usr/X11R5/include \
17755 /usr/X11R4/include \
17756 \
17757 /usr/include/X11R6 \
17758 /usr/include/X11R5 \
17759 /usr/include/X11R4 \
17760 \
17761 /usr/local/X11R6/include \
17762 /usr/local/X11R5/include \
17763 /usr/local/X11R4/include \
17764 \
17765 /usr/local/include/X11R6 \
17766 /usr/local/include/X11R5 \
17767 /usr/local/include/X11R4 \
17768 \
17769 /usr/X11/include \
17770 /usr/include/X11 \
17771 /usr/local/X11/include \
17772 /usr/local/include/X11 \
17773 \
17774 /usr/X386/include \
17775 /usr/x386/include \
17776 /usr/XFree86/include/X11 \
17777 \
17778 X:/XFree86/include \
17779 X:/XFree86/include/X11 \
17780 \
17781 /usr/include/gtk \
17782 /usr/local/include/gtk \
17783 /usr/include/glib \
17784 /usr/local/include/glib \
17785 \
17786 /usr/include/qt \
17787 /usr/local/include/qt \
17788 \
17789 /usr/include/windows \
17790 /usr/include/wine \
17791 /usr/local/include/wine \
17792 \
17793 /usr/unsupported/include \
17794 /usr/athena/include \
17795 /usr/local/x11r5/include \
17796 /usr/lpp/Xamples/include \
17797 \
2b5f62a0 17798 /usr/openwin/share/include"
21d1c967
GD
17799
17800SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17801
8284b0c5 17802
e6cc62c6 17803cat >confcache <<\_ACEOF
21d1c967
GD
17804# This file is a shell script that caches the results of configure
17805# tests run on this system so they can be shared between configure
e6cc62c6
VS
17806# scripts and configure runs, see configure's option --config-cache.
17807# It is not useful on other systems. If it contains results you don't
17808# want to keep, you may remove or edit it.
21d1c967 17809#
e6cc62c6
VS
17810# config.status only pays attention to the cache file if you give it
17811# the --recheck option to rerun configure.
21d1c967 17812#
e6cc62c6
VS
17813# `ac_cv_env_foo' variables (set or unset) will be overridden when
17814# loading this file, other *unset* `ac_cv_foo' will be assigned the
17815# following values.
17816
17817_ACEOF
17818
21d1c967
GD
17819# The following way of writing the cache mishandles newlines in values,
17820# but we know of no workaround that is simple, portable, and efficient.
17821# So, don't put newlines in cache variables' values.
17822# Ultrix sh set writes to stderr and can't be redirected directly,
17823# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17824{
17825 (set) 2>&1 |
17826 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17827 *ac_space=\ *)
17828 # `set' does not quote correctly, so add quotes (double-quote
17829 # substitution turns \\\\ into \\, and sed turns \\ into \).
17830 sed -n \
17831 "s/'/'\\\\''/g;
17832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17833 ;;
17834 *)
17835 # `set' quotes correctly as required by POSIX, so do not add quotes.
17836 sed -n \
17837 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17838 ;;
17839 esac;
17840} |
17841 sed '
17842 t clear
17843 : clear
17844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17845 t end
17846 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17847 : end' >>confcache
17848if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17849 if test -w $cache_file; then
e6cc62c6
VS
17850 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17851 cat confcache >$cache_file
21d1c967
GD
17852 else
17853 echo "not updating unwritable cache $cache_file"
17854 fi
ab9b9eab 17855fi
21d1c967 17856rm -f confcache
ab9b9eab 17857
fe0895cf 17858if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17859 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17860echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17861if test "${wx_cv_lib_glibc21+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17863else
17864
17865 cat >conftest.$ac_ext <<_ACEOF
17866#line $LINENO "configure"
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
21d1c967 17872#include <features.h>
e6cc62c6
VS
17873int
17874main ()
17875{
ab9b9eab 17876
21d1c967
GD
17877 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17878 #error not glibc2.1
17879 #endif
e6cc62c6
VS
17880
17881 ;
17882 return 0;
17883}
17884_ACEOF
17885rm -f conftest.$ac_objext
17886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17887 (eval $ac_compile) 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); } &&
17891 { ac_try='test -s conftest.$ac_objext'
17892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893 (eval $ac_try) 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897
21d1c967 17898 wx_cv_lib_glibc21=yes
e6cc62c6 17899
698dcdb6 17900else
e6cc62c6
VS
17901 echo "$as_me: failed program was:" >&5
17902sed 's/^/| /' conftest.$ac_ext >&5
17903
17904
21d1c967 17905 wx_cv_lib_glibc21=no
e6cc62c6
VS
17906
17907
247f5006 17908fi
e6cc62c6 17909rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17910
e6cc62c6
VS
17911fi
17912echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17913echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17914 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17915 cat >>confdefs.h <<\_ACEOF
21d1c967 17916#define wxHAVE_GLIBC2 1
e6cc62c6 17917_ACEOF
1e487827 17918
90dd450c 17919 fi
ab9b9eab
VZ
17920fi
17921
5c0a20c3
VZ
17922if test "x$wx_cv_lib_glibc21" = "xyes"; then
17923 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17924 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17925#define _GNU_SOURCE 1
e6cc62c6 17926_ACEOF
5c0a20c3
VZ
17927
17928 fi
17929fi
17930
8284b0c5
MB
17931
17932
21d1c967
GD
17933REGEX_INCLUDE=
17934if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17935 cat >>confdefs.h <<\_ACEOF
21d1c967 17936#define wxUSE_REGEX 1
e6cc62c6 17937_ACEOF
698dcdb6 17938
8284b0c5 17939
21d1c967 17940 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17941 if test "${ac_cv_header_regex_h+set}" = set; then
17942 echo "$as_me:$LINENO: checking for regex.h" >&5
17943echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17944if test "${ac_cv_header_regex_h+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17946fi
17947echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17948echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17949else
17950 # Is the header compilable?
17951echo "$as_me:$LINENO: checking regex.h usability" >&5
17952echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17953cat >conftest.$ac_ext <<_ACEOF
17954#line $LINENO "configure"
17955/* confdefs.h. */
17956_ACEOF
17957cat confdefs.h >>conftest.$ac_ext
17958cat >>conftest.$ac_ext <<_ACEOF
17959/* end confdefs.h. */
17960$ac_includes_default
247f5006 17961#include <regex.h>
e6cc62c6
VS
17962_ACEOF
17963rm -f conftest.$ac_objext
17964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17965 (eval $ac_compile) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try='test -s conftest.$ac_objext'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17975 ac_header_compiler=yes
17976else
17977 echo "$as_me: failed program was:" >&5
17978sed 's/^/| /' conftest.$ac_ext >&5
17979
17980ac_header_compiler=no
17981fi
17982rm -f conftest.$ac_objext conftest.$ac_ext
17983echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17984echo "${ECHO_T}$ac_header_compiler" >&6
17985
17986# Is the header present?
17987echo "$as_me:$LINENO: checking regex.h presence" >&5
17988echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17989cat >conftest.$ac_ext <<_ACEOF
17990#line $LINENO "configure"
17991/* confdefs.h. */
17992_ACEOF
17993cat confdefs.h >>conftest.$ac_ext
17994cat >>conftest.$ac_ext <<_ACEOF
17995/* end confdefs.h. */
17996#include <regex.h>
17997_ACEOF
17998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18000 ac_status=$?
18001 grep -v '^ *+' conftest.er1 >conftest.err
18002 rm -f conftest.er1
18003 cat conftest.err >&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } >/dev/null; then
18006 if test -s conftest.err; then
18007 ac_cpp_err=$ac_c_preproc_warn_flag
18008 else
18009 ac_cpp_err=
18010 fi
18011else
18012 ac_cpp_err=yes
18013fi
18014if test -z "$ac_cpp_err"; then
18015 ac_header_preproc=yes
18016else
18017 echo "$as_me: failed program was:" >&5
18018sed 's/^/| /' conftest.$ac_ext >&5
18019
18020 ac_header_preproc=no
18021fi
18022rm -f conftest.err conftest.$ac_ext
18023echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18024echo "${ECHO_T}$ac_header_preproc" >&6
18025
18026# So? What about this header?
18027case $ac_header_compiler:$ac_header_preproc in
18028 yes:no )
18029 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18030echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18031 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18032echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18033 (
18034 cat <<\_ASBOX
18035## ------------------------------------ ##
18036## Report this to bug-autoconf@gnu.org. ##
18037## ------------------------------------ ##
18038_ASBOX
18039 ) |
18040 sed "s/^/$as_me: WARNING: /" >&2
18041 ;;
18042 no:yes )
18043 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18044echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18045 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18046echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18047 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18048echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18049 (
18050 cat <<\_ASBOX
18051## ------------------------------------ ##
18052## Report this to bug-autoconf@gnu.org. ##
18053## ------------------------------------ ##
18054_ASBOX
18055 ) |
18056 sed "s/^/$as_me: WARNING: /" >&2
18057 ;;
18058esac
18059echo "$as_me:$LINENO: checking for regex.h" >&5
18060echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18061if test "${ac_cv_header_regex_h+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18063else
18064 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18065fi
e6cc62c6
VS
18066echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18067echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18068
698dcdb6 18069fi
e6cc62c6
VS
18070if test $ac_cv_header_regex_h = yes; then
18071
18072for ac_func in regcomp
21d1c967 18073do
e6cc62c6
VS
18074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18075echo "$as_me:$LINENO: checking for $ac_func" >&5
18076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18077if eval "test \"\${$as_ac_var+set}\" = set"; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18079else
18080 cat >conftest.$ac_ext <<_ACEOF
18081#line $LINENO "configure"
18082/* confdefs.h. */
18083_ACEOF
18084cat confdefs.h >>conftest.$ac_ext
18085cat >>conftest.$ac_ext <<_ACEOF
18086/* end confdefs.h. */
a0b9e27f 18087/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18088 which can conflict with char $ac_func (); below.
18089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18090 <limits.h> exists even on freestanding compilers. */
18091#ifdef __STDC__
18092# include <limits.h>
18093#else
18094# include <assert.h>
18095#endif
21d1c967 18096/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18097#ifdef __cplusplus
18098extern "C"
18099{
18100#endif
21d1c967 18101/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18102 builtin and then its argument prototype would still apply. */
18103char $ac_func ();
21d1c967
GD
18104/* The GNU C library defines this for functions which it implements
18105 to always fail with ENOSYS. Some functions are actually named
18106 something starting with __ and the normal name is an alias. */
18107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18108choke me
18109#else
e6cc62c6
VS
18110char (*f) () = $ac_func;
18111#endif
18112#ifdef __cplusplus
18113}
21d1c967 18114#endif
90dd450c 18115
e6cc62c6
VS
18116int
18117main ()
18118{
18119return f != $ac_func;
18120 ;
18121 return 0;
18122}
18123_ACEOF
18124rm -f conftest.$ac_objext conftest$ac_exeext
18125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18126 (eval $ac_link) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -s conftest$ac_exeext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 eval "$as_ac_var=yes"
18137else
18138 echo "$as_me: failed program was:" >&5
18139sed 's/^/| /' conftest.$ac_ext >&5
18140
18141eval "$as_ac_var=no"
18142fi
18143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18144fi
18145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18146echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18147if test `eval echo '${'$as_ac_var'}'` = yes; then
18148 cat >>confdefs.h <<_ACEOF
18149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18150_ACEOF
5c6fa7d2 18151
698dcdb6 18152fi
21d1c967
GD
18153done
18154
ab9b9eab
VZ
18155fi
18156
8284b0c5 18157
e6cc62c6 18158
21d1c967
GD
18159 if test "x$ac_cv_func_regcomp" != "xyes"; then
18160 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18161 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18162echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18163 { (exit 1); exit 1; }; }
21d1c967 18164 else
e6cc62c6
VS
18165 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18166echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18167 wxUSE_REGEX=builtin
18168 fi
18169 else
18170 wxUSE_REGEX=sys
18171 fi
ab9b9eab 18172 fi
90dd450c 18173
21d1c967
GD
18174 if test "$wxUSE_REGEX" = "builtin" ; then
18175 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18176 fi
21d1c967 18177fi
90dd450c 18178
8284b0c5 18179
21d1c967
GD
18180ZLIB_INCLUDE=
18181ZLIB_LINK=
18182if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18183 cat >>confdefs.h <<\_ACEOF
21d1c967 18184#define wxUSE_ZLIB 1
e6cc62c6 18185_ACEOF
21d1c967 18186
8284b0c5 18187
21d1c967 18188 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18189 if test "$USE_DARWIN" = 1; then
18190 system_zlib_h_ok="yes"
18191 else
e6cc62c6
VS
18192 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18193echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18194if test "${ac_cv_header_zlib_h+set}" = set; then
18195 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18196else
18197 if test "$cross_compiling" = yes; then
89e6bf6d 18198 unset ac_cv_header_zlib_h
e6cc62c6 18199
d643b80e 18200else
e6cc62c6
VS
18201 cat >conftest.$ac_ext <<_ACEOF
18202#line $LINENO "configure"
18203/* confdefs.h. */
18204_ACEOF
18205cat confdefs.h >>conftest.$ac_ext
18206cat >>conftest.$ac_ext <<_ACEOF
18207/* end confdefs.h. */
18208
ef33c576 18209 #include <zlib.h>
d775acfa 18210 #include <stdio.h>
d643b80e 18211
d775acfa
VZ
18212 int main()
18213 {
18214 FILE *f=fopen("conftestval", "w");
18215 if (!f) exit(1);
18216 fprintf(f, "%s",
18217 ZLIB_VERSION[0] == '1' &&
18218 (ZLIB_VERSION[2] > '1' ||
18219 (ZLIB_VERSION[2] == '1' &&
18220 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18221 exit(0);
18222 }
e6cc62c6
VS
18223
18224_ACEOF
18225rm -f conftest$ac_exeext
18226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227 (eval $ac_link) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
d643b80e
VZ
18236 ac_cv_header_zlib_h=`cat conftestval`
18237else
e6cc62c6
VS
18238 echo "$as_me: program exited with status $ac_status" >&5
18239echo "$as_me: failed program was:" >&5
18240sed 's/^/| /' conftest.$ac_ext >&5
18241
18242( exit $ac_status )
18243ac_cv_header_zlib_h=no
d643b80e 18244fi
e6cc62c6 18245rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18246fi
18247
d643b80e 18248fi
e6cc62c6
VS
18249echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18250echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18251 if test "${ac_cv_header_zlib_h+set}" = set; then
18252 echo "$as_me:$LINENO: checking for zlib.h" >&5
18253echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18254if test "${ac_cv_header_zlib_h+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18256fi
18257echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18258echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18259else
e6cc62c6
VS
18260 # Is the header compilable?
18261echo "$as_me:$LINENO: checking zlib.h usability" >&5
18262echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18263cat >conftest.$ac_ext <<_ACEOF
18264#line $LINENO "configure"
18265/* confdefs.h. */
18266_ACEOF
18267cat confdefs.h >>conftest.$ac_ext
18268cat >>conftest.$ac_ext <<_ACEOF
18269/* end confdefs.h. */
18270$ac_includes_default
89e6bf6d 18271#include <zlib.h>
e6cc62c6
VS
18272_ACEOF
18273rm -f conftest.$ac_objext
18274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18275 (eval $ac_compile) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -s conftest.$ac_objext'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; }; then
18285 ac_header_compiler=yes
18286else
18287 echo "$as_me: failed program was:" >&5
18288sed 's/^/| /' conftest.$ac_ext >&5
18289
18290ac_header_compiler=no
18291fi
18292rm -f conftest.$ac_objext conftest.$ac_ext
18293echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18294echo "${ECHO_T}$ac_header_compiler" >&6
18295
18296# Is the header present?
18297echo "$as_me:$LINENO: checking zlib.h presence" >&5
18298echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18299cat >conftest.$ac_ext <<_ACEOF
18300#line $LINENO "configure"
18301/* confdefs.h. */
18302_ACEOF
18303cat confdefs.h >>conftest.$ac_ext
18304cat >>conftest.$ac_ext <<_ACEOF
18305/* end confdefs.h. */
18306#include <zlib.h>
18307_ACEOF
18308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18310 ac_status=$?
18311 grep -v '^ *+' conftest.er1 >conftest.err
18312 rm -f conftest.er1
18313 cat conftest.err >&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } >/dev/null; then
18316 if test -s conftest.err; then
18317 ac_cpp_err=$ac_c_preproc_warn_flag
18318 else
18319 ac_cpp_err=
18320 fi
18321else
18322 ac_cpp_err=yes
18323fi
18324if test -z "$ac_cpp_err"; then
18325 ac_header_preproc=yes
18326else
18327 echo "$as_me: failed program was:" >&5
18328sed 's/^/| /' conftest.$ac_ext >&5
18329
18330 ac_header_preproc=no
18331fi
18332rm -f conftest.err conftest.$ac_ext
18333echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18334echo "${ECHO_T}$ac_header_preproc" >&6
18335
18336# So? What about this header?
18337case $ac_header_compiler:$ac_header_preproc in
18338 yes:no )
18339 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18340echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18341 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18342echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18343 (
18344 cat <<\_ASBOX
18345## ------------------------------------ ##
18346## Report this to bug-autoconf@gnu.org. ##
18347## ------------------------------------ ##
18348_ASBOX
18349 ) |
18350 sed "s/^/$as_me: WARNING: /" >&2
18351 ;;
18352 no:yes )
18353 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18354echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18355 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18356echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18357 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18358echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18359 (
18360 cat <<\_ASBOX
18361## ------------------------------------ ##
18362## Report this to bug-autoconf@gnu.org. ##
18363## ------------------------------------ ##
18364_ASBOX
18365 ) |
18366 sed "s/^/$as_me: WARNING: /" >&2
18367 ;;
18368esac
18369echo "$as_me:$LINENO: checking for zlib.h" >&5
18370echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18371if test "${ac_cv_header_zlib_h+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18373else
e6cc62c6
VS
18374 ac_cv_header_zlib_h=$ac_header_preproc
18375fi
18376echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18377echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18378
89e6bf6d
VZ
18379fi
18380
d643b80e 18381
e6cc62c6 18382
d775acfa
VZ
18383 system_zlib_h_ok=$ac_cv_header_zlib_h
18384 fi
18385
18386 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18387 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18388echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18389if test "${ac_cv_lib_z_deflate+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18391else
e6cc62c6 18392 ac_check_lib_save_LIBS=$LIBS
21d1c967 18393LIBS="-lz $LIBS"
e6cc62c6
VS
18394cat >conftest.$ac_ext <<_ACEOF
18395#line $LINENO "configure"
18396/* confdefs.h. */
18397_ACEOF
18398cat confdefs.h >>conftest.$ac_ext
18399cat >>conftest.$ac_ext <<_ACEOF
18400/* end confdefs.h. */
18401
21d1c967 18402/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18403#ifdef __cplusplus
18404extern "C"
18405#endif
21d1c967 18406/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18407 builtin and then its argument prototype would still apply. */
18408char deflate ();
18409int
18410main ()
18411{
18412deflate ();
18413 ;
18414 return 0;
18415}
18416_ACEOF
18417rm -f conftest.$ac_objext conftest$ac_exeext
18418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18419 (eval $ac_link) 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } &&
18423 { ac_try='test -s conftest$ac_exeext'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 ac_cv_lib_z_deflate=yes
18430else
18431 echo "$as_me: failed program was:" >&5
18432sed 's/^/| /' conftest.$ac_ext >&5
18433
18434ac_cv_lib_z_deflate=no
18435fi
18436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18437LIBS=$ac_check_lib_save_LIBS
18438fi
18439echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18440echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18441if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18442 ZLIB_LINK=" -lz"
a0b9e27f 18443fi
698dcdb6 18444
d643b80e 18445 fi
247f5006 18446
21d1c967
GD
18447 if test "x$ZLIB_LINK" = "x" ; then
18448 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18449 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18450echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18451 { (exit 1); exit 1; }; }
21d1c967 18452 else
e6cc62c6
VS
18453 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18454echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18455 wxUSE_ZLIB=builtin
18456 fi
18457 else
18458 wxUSE_ZLIB=sys
18459 fi
18460 fi
18461
18462 if test "$wxUSE_ZLIB" = "builtin" ; then
18463 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18464 fi
ab9b9eab
VZ
18465fi
18466
8284b0c5 18467
21d1c967
GD
18468PNG_INCLUDE=
18469PNG_LINK=
18470if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18471 cat >>confdefs.h <<\_ACEOF
21d1c967 18472#define wxUSE_LIBPNG 1
e6cc62c6 18473_ACEOF
90dd450c 18474
8284b0c5 18475
21d1c967 18476 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18477 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18478echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18479 wxUSE_LIBPNG=sys
18480 fi
90dd450c 18481
21d1c967 18482 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18483 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18484echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18485 wxUSE_LIBPNG=builtin
18486 fi
18487
18488 if test "$wxUSE_MGL" != 1 ; then
18489 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18490 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18491echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18492if test "${ac_cv_header_png_h+set}" = set; then
18493 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18494else
18495 if test "$cross_compiling" = yes; then
89e6bf6d 18496 unset ac_cv_header_png_h
e6cc62c6 18497
5d3f766d 18498else
e6cc62c6
VS
18499 cat >conftest.$ac_ext <<_ACEOF
18500#line $LINENO "configure"
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506
ef33c576 18507 #include <png.h>
5d3f766d
VZ
18508 #include <stdio.h>
18509
18510 int main()
18511 {
18512 FILE *f=fopen("conftestval", "w");
18513 if (!f) exit(1);
18514 fprintf(f, "%s",
18515 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18516 exit(0);
18517 }
e6cc62c6
VS
18518
18519_ACEOF
18520rm -f conftest$ac_exeext
18521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18522 (eval $ac_link) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; }; then
5d3f766d
VZ
18531 ac_cv_header_png_h=`cat conftestval`
18532else
e6cc62c6
VS
18533 echo "$as_me: program exited with status $ac_status" >&5
18534echo "$as_me: failed program was:" >&5
18535sed 's/^/| /' conftest.$ac_ext >&5
18536
18537( exit $ac_status )
18538ac_cv_header_png_h=no
5d3f766d 18539fi
e6cc62c6 18540rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18541fi
18542
5d3f766d 18543fi
e6cc62c6
VS
18544echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18545echo "${ECHO_T}$ac_cv_header_png_h" >&6
18546 if test "${ac_cv_header_png_h+set}" = set; then
18547 echo "$as_me:$LINENO: checking for png.h" >&5
18548echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18549if test "${ac_cv_header_png_h+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18551fi
18552echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18553echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18554else
e6cc62c6
VS
18555 # Is the header compilable?
18556echo "$as_me:$LINENO: checking png.h usability" >&5
18557echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18558cat >conftest.$ac_ext <<_ACEOF
18559#line $LINENO "configure"
18560/* confdefs.h. */
18561_ACEOF
18562cat confdefs.h >>conftest.$ac_ext
18563cat >>conftest.$ac_ext <<_ACEOF
18564/* end confdefs.h. */
18565$ac_includes_default
89e6bf6d 18566#include <png.h>
e6cc62c6
VS
18567_ACEOF
18568rm -f conftest.$ac_objext
18569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18570 (eval $ac_compile) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
18574 { ac_try='test -s conftest.$ac_objext'
18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18577 ac_status=$?
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; }; then
18580 ac_header_compiler=yes
18581else
18582 echo "$as_me: failed program was:" >&5
18583sed 's/^/| /' conftest.$ac_ext >&5
18584
18585ac_header_compiler=no
18586fi
18587rm -f conftest.$ac_objext conftest.$ac_ext
18588echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18589echo "${ECHO_T}$ac_header_compiler" >&6
18590
18591# Is the header present?
18592echo "$as_me:$LINENO: checking png.h presence" >&5
18593echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18594cat >conftest.$ac_ext <<_ACEOF
18595#line $LINENO "configure"
18596/* confdefs.h. */
18597_ACEOF
18598cat confdefs.h >>conftest.$ac_ext
18599cat >>conftest.$ac_ext <<_ACEOF
18600/* end confdefs.h. */
18601#include <png.h>
18602_ACEOF
18603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } >/dev/null; then
18611 if test -s conftest.err; then
18612 ac_cpp_err=$ac_c_preproc_warn_flag
18613 else
18614 ac_cpp_err=
18615 fi
18616else
18617 ac_cpp_err=yes
18618fi
18619if test -z "$ac_cpp_err"; then
18620 ac_header_preproc=yes
18621else
18622 echo "$as_me: failed program was:" >&5
18623sed 's/^/| /' conftest.$ac_ext >&5
18624
18625 ac_header_preproc=no
18626fi
18627rm -f conftest.err conftest.$ac_ext
18628echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18629echo "${ECHO_T}$ac_header_preproc" >&6
18630
18631# So? What about this header?
18632case $ac_header_compiler:$ac_header_preproc in
18633 yes:no )
18634 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18635echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18636 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18637echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18638 (
18639 cat <<\_ASBOX
18640## ------------------------------------ ##
18641## Report this to bug-autoconf@gnu.org. ##
18642## ------------------------------------ ##
18643_ASBOX
18644 ) |
18645 sed "s/^/$as_me: WARNING: /" >&2
18646 ;;
18647 no:yes )
18648 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18649echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18651echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18652 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18653echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18654 (
18655 cat <<\_ASBOX
18656## ------------------------------------ ##
18657## Report this to bug-autoconf@gnu.org. ##
18658## ------------------------------------ ##
18659_ASBOX
18660 ) |
18661 sed "s/^/$as_me: WARNING: /" >&2
18662 ;;
18663esac
18664echo "$as_me:$LINENO: checking for png.h" >&5
18665echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18666if test "${ac_cv_header_png_h+set}" = set; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18668else
e6cc62c6
VS
18669 ac_cv_header_png_h=$ac_header_preproc
18670fi
18671echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18672echo "${ECHO_T}$ac_cv_header_png_h" >&6
18673
89e6bf6d
VZ
18674fi
18675
5d3f766d 18676
e6cc62c6 18677
5d3f766d 18678 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18679 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18680echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18681if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18683else
e6cc62c6 18684 ac_check_lib_save_LIBS=$LIBS
21d1c967 18685LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18686cat >conftest.$ac_ext <<_ACEOF
18687#line $LINENO "configure"
18688/* confdefs.h. */
18689_ACEOF
18690cat confdefs.h >>conftest.$ac_ext
18691cat >>conftest.$ac_ext <<_ACEOF
18692/* end confdefs.h. */
18693
21d1c967 18694/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18695#ifdef __cplusplus
18696extern "C"
18697#endif
21d1c967 18698/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18699 builtin and then its argument prototype would still apply. */
18700char png_check_sig ();
18701int
18702main ()
18703{
18704png_check_sig ();
18705 ;
18706 return 0;
18707}
18708_ACEOF
18709rm -f conftest.$ac_objext conftest$ac_exeext
18710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18711 (eval $ac_link) 2>&5
18712 ac_status=$?
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -s conftest$ac_exeext'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18718 ac_status=$?
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 ac_cv_lib_png_png_check_sig=yes
18722else
18723 echo "$as_me: failed program was:" >&5
18724sed 's/^/| /' conftest.$ac_ext >&5
18725
18726ac_cv_lib_png_png_check_sig=no
18727fi
18728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18729LIBS=$ac_check_lib_save_LIBS
18730fi
18731echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18732echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18733if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18734 PNG_LINK=" -lpng"
a0b9e27f 18735fi
90dd450c 18736
5d3f766d 18737 fi
247f5006 18738
21d1c967
GD
18739 if test "x$PNG_LINK" = "x" ; then
18740 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18741 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18742echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18743 { (exit 1); exit 1; }; }
21d1c967 18744 else
e6cc62c6
VS
18745 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18746echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18747 wxUSE_LIBPNG=builtin
18748 fi
18749 else
2b5f62a0 18750 wxUSE_LIBPNG=sys
21d1c967
GD
18751 fi
18752 fi
18753 fi
90dd450c 18754
21d1c967
GD
18755 if test "$wxUSE_LIBPNG" = "builtin" ; then
18756 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18757 fi
90dd450c 18758
21d1c967 18759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18760fi
18761
8284b0c5 18762
21d1c967
GD
18763JPEG_INCLUDE=
18764JPEG_LINK=
18765if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18766 cat >>confdefs.h <<\_ACEOF
21d1c967 18767#define wxUSE_LIBJPEG 1
e6cc62c6 18768_ACEOF
90dd450c 18769
8284b0c5 18770
21d1c967 18771 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18772 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18773echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18774 wxUSE_LIBJPEG=sys
18775 fi
90dd450c 18776
21d1c967
GD
18777 if test "$wxUSE_MGL" != 1 ; then
18778 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18779 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18780echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18781 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18783else
18784 cat >conftest.$ac_ext <<_ACEOF
18785#line $LINENO "configure"
18786/* confdefs.h. */
18787_ACEOF
18788cat confdefs.h >>conftest.$ac_ext
18789cat >>conftest.$ac_ext <<_ACEOF
18790/* end confdefs.h. */
90dd450c 18791
21d1c967
GD
18792 #undef HAVE_STDLIB_H
18793 #include <stdio.h>
18794 #include <jpeglib.h>
90dd450c 18795
e6cc62c6
VS
18796int
18797main ()
18798{
18799
18800
18801 ;
18802 return 0;
18803}
18804_ACEOF
18805rm -f conftest.$ac_objext
18806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18807 (eval $ac_compile) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -s conftest.$ac_objext'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
21d1c967 18817 ac_cv_header_jpeglib_h=yes
90dd450c 18818else
e6cc62c6
VS
18819 echo "$as_me: failed program was:" >&5
18820sed 's/^/| /' conftest.$ac_ext >&5
18821
18822ac_cv_header_jpeglib_h=no
18823
90dd450c 18824fi
e6cc62c6
VS
18825rm -f conftest.$ac_objext conftest.$ac_ext
18826
90dd450c
VZ
18827fi
18828
e6cc62c6
VS
18829 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18830echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18831
21d1c967 18832 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18833 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18834echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18835if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18837else
e6cc62c6 18838 ac_check_lib_save_LIBS=$LIBS
21d1c967 18839LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18840cat >conftest.$ac_ext <<_ACEOF
18841#line $LINENO "configure"
18842/* confdefs.h. */
18843_ACEOF
18844cat confdefs.h >>conftest.$ac_ext
18845cat >>conftest.$ac_ext <<_ACEOF
18846/* end confdefs.h. */
18847
21d1c967 18848/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18849#ifdef __cplusplus
18850extern "C"
18851#endif
21d1c967 18852/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18853 builtin and then its argument prototype would still apply. */
18854char jpeg_read_header ();
18855int
18856main ()
18857{
18858jpeg_read_header ();
18859 ;
18860 return 0;
18861}
18862_ACEOF
18863rm -f conftest.$ac_objext conftest$ac_exeext
18864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18865 (eval $ac_link) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } &&
18869 { ac_try='test -s conftest$ac_exeext'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18875 ac_cv_lib_jpeg_jpeg_read_header=yes
18876else
18877 echo "$as_me: failed program was:" >&5
18878sed 's/^/| /' conftest.$ac_ext >&5
18879
18880ac_cv_lib_jpeg_jpeg_read_header=no
18881fi
18882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18883LIBS=$ac_check_lib_save_LIBS
18884fi
18885echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18886echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18887if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18888 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18889fi
18890
21d1c967 18891 fi
90dd450c 18892
21d1c967
GD
18893 if test "x$JPEG_LINK" = "x" ; then
18894 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18895 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18896echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18897 { (exit 1); exit 1; }; }
21d1c967 18898 else
e6cc62c6
VS
18899 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18900echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18901 wxUSE_LIBJPEG=builtin
18902 fi
18903 else
18904 wxUSE_LIBJPEG=sys
18905 fi
18906 fi
18907 fi
90dd450c 18908
21d1c967
GD
18909 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18910 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18911 fi
18912fi
90dd450c 18913
8284b0c5 18914
21d1c967
GD
18915TIFF_INCLUDE=
18916TIFF_LINK=
2b5f62a0 18917TIFF_PREREQ_LINKS=-lm
21d1c967 18918if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18919 cat >>confdefs.h <<\_ACEOF
21d1c967 18920#define wxUSE_LIBTIFF 1
e6cc62c6 18921_ACEOF
21d1c967 18922
8284b0c5 18923
21d1c967 18924 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18925 if test "$wxUSE_LIBJPEG" = "sys"; then
18926 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18927 fi
18928 if test "$wxUSE_ZLIB" = "sys"; then
18929 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18930 fi
e6cc62c6
VS
18931 if test "${ac_cv_header_tiffio_h+set}" = set; then
18932 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18933echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18934if test "${ac_cv_header_tiffio_h+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18936fi
18937echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18938echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18939else
18940 # Is the header compilable?
18941echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18942echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18943cat >conftest.$ac_ext <<_ACEOF
18944#line $LINENO "configure"
18945/* confdefs.h. */
18946_ACEOF
18947cat confdefs.h >>conftest.$ac_ext
18948cat >>conftest.$ac_ext <<_ACEOF
18949/* end confdefs.h. */
18950$ac_includes_default
247f5006 18951#include <tiffio.h>
e6cc62c6
VS
18952_ACEOF
18953rm -f conftest.$ac_objext
18954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18955 (eval $ac_compile) 2>&5
18956 ac_status=$?
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
18959 { ac_try='test -s conftest.$ac_objext'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18962 ac_status=$?
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 ac_header_compiler=yes
18966else
18967 echo "$as_me: failed program was:" >&5
18968sed 's/^/| /' conftest.$ac_ext >&5
18969
18970ac_header_compiler=no
18971fi
18972rm -f conftest.$ac_objext conftest.$ac_ext
18973echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18974echo "${ECHO_T}$ac_header_compiler" >&6
18975
18976# Is the header present?
18977echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18978echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18979cat >conftest.$ac_ext <<_ACEOF
18980#line $LINENO "configure"
18981/* confdefs.h. */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h. */
18986#include <tiffio.h>
18987_ACEOF
18988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } >/dev/null; then
18996 if test -s conftest.err; then
18997 ac_cpp_err=$ac_c_preproc_warn_flag
18998 else
18999 ac_cpp_err=
19000 fi
19001else
19002 ac_cpp_err=yes
19003fi
19004if test -z "$ac_cpp_err"; then
19005 ac_header_preproc=yes
19006else
19007 echo "$as_me: failed program was:" >&5
19008sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 ac_header_preproc=no
19011fi
19012rm -f conftest.err conftest.$ac_ext
19013echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19014echo "${ECHO_T}$ac_header_preproc" >&6
19015
19016# So? What about this header?
19017case $ac_header_compiler:$ac_header_preproc in
19018 yes:no )
19019 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19020echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19022echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19023 (
19024 cat <<\_ASBOX
19025## ------------------------------------ ##
19026## Report this to bug-autoconf@gnu.org. ##
19027## ------------------------------------ ##
19028_ASBOX
19029 ) |
19030 sed "s/^/$as_me: WARNING: /" >&2
19031 ;;
19032 no:yes )
19033 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19034echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19035 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19036echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19038echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19039 (
19040 cat <<\_ASBOX
19041## ------------------------------------ ##
19042## Report this to bug-autoconf@gnu.org. ##
19043## ------------------------------------ ##
19044_ASBOX
19045 ) |
19046 sed "s/^/$as_me: WARNING: /" >&2
19047 ;;
19048esac
19049echo "$as_me:$LINENO: checking for tiffio.h" >&5
19050echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19051if test "${ac_cv_header_tiffio_h+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19053else
19054 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19055fi
e6cc62c6
VS
19056echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19057echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19058
21d1c967 19059fi
e6cc62c6 19060if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
19061
19062 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
19063echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19064if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19065 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19066else
e6cc62c6 19067 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19068LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
19069cat >conftest.$ac_ext <<_ACEOF
19070#line $LINENO "configure"
19071/* confdefs.h. */
19072_ACEOF
19073cat confdefs.h >>conftest.$ac_ext
19074cat >>conftest.$ac_ext <<_ACEOF
19075/* end confdefs.h. */
19076
ab9b9eab 19077/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19078#ifdef __cplusplus
19079extern "C"
19080#endif
ab9b9eab 19081/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19082 builtin and then its argument prototype would still apply. */
19083char TIFFError ();
19084int
19085main ()
19086{
19087TIFFError ();
19088 ;
19089 return 0;
19090}
19091_ACEOF
19092rm -f conftest.$ac_objext conftest$ac_exeext
19093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19094 (eval $ac_link) 2>&5
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } &&
19098 { ac_try='test -s conftest$ac_exeext'
19099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100 (eval $ac_try) 2>&5
19101 ac_status=$?
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); }; }; then
19104 ac_cv_lib_tiff_TIFFError=yes
19105else
19106 echo "$as_me: failed program was:" >&5
19107sed 's/^/| /' conftest.$ac_ext >&5
19108
19109ac_cv_lib_tiff_TIFFError=no
19110fi
19111rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19112LIBS=$ac_check_lib_save_LIBS
19113fi
19114echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19115echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19116if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19117 TIFF_LINK=" -ltiff"
a0b9e27f 19118fi
cd6d6d5b 19119
e6cc62c6 19120
0e012a93 19121
a0b9e27f 19122fi
8284b0c5 19123
247f5006 19124
e6cc62c6 19125
21d1c967
GD
19126 if test "x$TIFF_LINK" = "x" ; then
19127 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19128 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19129echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19130 { (exit 1); exit 1; }; }
90dd450c 19131 else
e6cc62c6
VS
19132 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19133echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19134 wxUSE_LIBTIFF=builtin
d8356fa3 19135 fi
d8356fa3 19136 else
21d1c967 19137 wxUSE_LIBTIFF=sys
d8356fa3 19138 fi
21d1c967 19139 fi
d8356fa3 19140
21d1c967
GD
19141 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19142 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19143 fi
21d1c967 19144fi
10f2d63a 19145
8284b0c5 19146
672abd7a 19147if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19148 wxUSE_XML=yes
672abd7a
VS
19149 cat >>confdefs.h <<\_ACEOF
19150#define wxUSE_EXPAT 1
19151_ACEOF
19152
19153 cat >>confdefs.h <<\_ACEOF
19154#define wxUSE_XML 1
19155_ACEOF
19156
19157
19158 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19159 if test "${ac_cv_header_expat_h+set}" = set; then
19160 echo "$as_me:$LINENO: checking for expat.h" >&5
19161echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19162if test "${ac_cv_header_expat_h+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19164fi
19165echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19166echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19167else
19168 # Is the header compilable?
19169echo "$as_me:$LINENO: checking expat.h usability" >&5
19170echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19171cat >conftest.$ac_ext <<_ACEOF
19172#line $LINENO "configure"
19173/* confdefs.h. */
19174_ACEOF
19175cat confdefs.h >>conftest.$ac_ext
19176cat >>conftest.$ac_ext <<_ACEOF
19177/* end confdefs.h. */
19178$ac_includes_default
19179#include <expat.h>
19180_ACEOF
19181rm -f conftest.$ac_objext
19182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19183 (eval $ac_compile) 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; }; then
19193 ac_header_compiler=yes
19194else
19195 echo "$as_me: failed program was:" >&5
19196sed 's/^/| /' conftest.$ac_ext >&5
19197
19198ac_header_compiler=no
19199fi
19200rm -f conftest.$ac_objext conftest.$ac_ext
19201echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19202echo "${ECHO_T}$ac_header_compiler" >&6
19203
19204# Is the header present?
19205echo "$as_me:$LINENO: checking expat.h presence" >&5
19206echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19207cat >conftest.$ac_ext <<_ACEOF
19208#line $LINENO "configure"
19209/* confdefs.h. */
19210_ACEOF
19211cat confdefs.h >>conftest.$ac_ext
19212cat >>conftest.$ac_ext <<_ACEOF
19213/* end confdefs.h. */
19214#include <expat.h>
19215_ACEOF
19216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19218 ac_status=$?
19219 grep -v '^ *+' conftest.er1 >conftest.err
19220 rm -f conftest.er1
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } >/dev/null; then
19224 if test -s conftest.err; then
19225 ac_cpp_err=$ac_c_preproc_warn_flag
19226 else
19227 ac_cpp_err=
19228 fi
19229else
19230 ac_cpp_err=yes
19231fi
19232if test -z "$ac_cpp_err"; then
19233 ac_header_preproc=yes
19234else
19235 echo "$as_me: failed program was:" >&5
19236sed 's/^/| /' conftest.$ac_ext >&5
19237
19238 ac_header_preproc=no
19239fi
19240rm -f conftest.err conftest.$ac_ext
19241echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19242echo "${ECHO_T}$ac_header_preproc" >&6
19243
19244# So? What about this header?
19245case $ac_header_compiler:$ac_header_preproc in
19246 yes:no )
19247 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19248echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19249 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19250echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19251 (
19252 cat <<\_ASBOX
19253## ------------------------------------ ##
19254## Report this to bug-autoconf@gnu.org. ##
19255## ------------------------------------ ##
19256_ASBOX
19257 ) |
19258 sed "s/^/$as_me: WARNING: /" >&2
19259 ;;
19260 no:yes )
19261 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19262echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19263 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19264echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19265 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19266echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19267 (
19268 cat <<\_ASBOX
19269## ------------------------------------ ##
19270## Report this to bug-autoconf@gnu.org. ##
19271## ------------------------------------ ##
19272_ASBOX
19273 ) |
19274 sed "s/^/$as_me: WARNING: /" >&2
19275 ;;
19276esac
19277echo "$as_me:$LINENO: checking for expat.h" >&5
19278echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19279if test "${ac_cv_header_expat_h+set}" = set; then
19280 echo $ECHO_N "(cached) $ECHO_C" >&6
19281else
19282 ac_cv_header_expat_h=$ac_header_preproc
19283fi
19284echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19285echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19286
19287fi
5f0b6dff
VS
19288if test $ac_cv_header_expat_h = yes; then
19289 found_expat_h=1
19290fi
19291
19292
19293 if test "x$found_expat_h" = "x1"; then
19294 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19295echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19296if test "${wx_cv_expat_is_not_broken+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19298else
19299
19300
672abd7a 19301
5f0b6dff
VS
19302 ac_ext=cc
19303ac_cpp='$CXXCPP $CPPFLAGS'
19304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19307
19308 cat >conftest.$ac_ext <<_ACEOF
19309#line $LINENO "configure"
19310/* confdefs.h. */
19311_ACEOF
19312cat confdefs.h >>conftest.$ac_ext
19313cat >>conftest.$ac_ext <<_ACEOF
19314/* end confdefs.h. */
19315#include <expat.h>
19316int
19317main ()
19318{
672abd7a 19319
5f0b6dff
VS
19320 ;
19321 return 0;
19322}
19323_ACEOF
19324rm -f conftest.$ac_objext
19325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19326 (eval $ac_compile) 2>&5
19327 ac_status=$?
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
19330 { ac_try='test -s conftest.$ac_objext'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
19336 wx_cv_expat_is_not_broken=yes
19337else
19338 echo "$as_me: failed program was:" >&5
19339sed 's/^/| /' conftest.$ac_ext >&5
19340
19341wx_cv_expat_is_not_broken=no
19342
19343fi
19344rm -f conftest.$ac_objext conftest.$ac_ext
19345 ac_ext=c
19346ac_cpp='$CPP $CPPFLAGS'
19347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19349ac_compiler_gnu=$ac_cv_c_compiler_gnu
19350
19351
19352
19353fi
19354echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19355echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19356 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19357 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19358echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19359if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361else
19362 ac_check_lib_save_LIBS=$LIBS
19363LIBS="-lexpat $LIBS"
19364cat >conftest.$ac_ext <<_ACEOF
19365#line $LINENO "configure"
19366/* confdefs.h. */
19367_ACEOF
19368cat confdefs.h >>conftest.$ac_ext
19369cat >>conftest.$ac_ext <<_ACEOF
19370/* end confdefs.h. */
19371
19372/* Override any gcc2 internal prototype to avoid an error. */
19373#ifdef __cplusplus
19374extern "C"
19375#endif
19376/* We use char because int might match the return type of a gcc2
19377 builtin and then its argument prototype would still apply. */
19378char XML_ParserCreate ();
19379int
19380main ()
19381{
19382XML_ParserCreate ();
19383 ;
19384 return 0;
19385}
19386_ACEOF
19387rm -f conftest.$ac_objext conftest$ac_exeext
19388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19389 (eval $ac_link) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } &&
19393 { ac_try='test -s conftest$ac_exeext'
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; }; then
19399 ac_cv_lib_expat_XML_ParserCreate=yes
19400else
19401 echo "$as_me: failed program was:" >&5
19402sed 's/^/| /' conftest.$ac_ext >&5
19403
19404ac_cv_lib_expat_XML_ParserCreate=no
19405fi
19406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19407LIBS=$ac_check_lib_save_LIBS
19408fi
19409echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19410echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19411if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19412 EXPAT_LINK=" -lexpat"
19413fi
19414
5f0b6dff 19415 fi
672abd7a
VS
19416 fi
19417 if test "x$EXPAT_LINK" = "x" ; then
19418 if test "$wxUSE_EXPAT" = "sys" ; then
19419 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19420echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19421 { (exit 1); exit 1; }; }
19422 else
19423 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19424echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19425 wxUSE_EXPAT=builtin
19426 fi
19427 else
19428 wxUSE_EXPAT=sys
19429 fi
19430 fi
19431 if test "$wxUSE_EXPAT" = "builtin" ; then
19432
19433
19434subdirs="$subdirs src/expat"
19435
19436 fi
19437fi
19438
19439
19440
21d1c967 19441AFMINSTALL=
2b5f62a0 19442WIN32INSTALL=
90dd450c 19443
21d1c967
GD
19444TOOLKIT=
19445TOOLKIT_INCLUDE=
19446WIDGET_SET=
19447
19448if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19449
19450for ac_header in w32api.h
21d1c967 19451do
e6cc62c6
VS
19452as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19453if eval "test \"\${$as_ac_Header+set}\" = set"; then
19454 echo "$as_me:$LINENO: checking for $ac_header" >&5
19455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19456if eval "test \"\${$as_ac_Header+set}\" = set"; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
19458fi
19459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19461else
19462 # Is the header compilable?
19463echo "$as_me:$LINENO: checking $ac_header usability" >&5
19464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19465cat >conftest.$ac_ext <<_ACEOF
19466#line $LINENO "configure"
19467/* confdefs.h. */
19468_ACEOF
19469cat confdefs.h >>conftest.$ac_ext
19470cat >>conftest.$ac_ext <<_ACEOF
19471/* end confdefs.h. */
19472$ac_includes_default
19473#include <$ac_header>
19474_ACEOF
19475rm -f conftest.$ac_objext
19476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19477 (eval $ac_compile) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -s conftest.$ac_objext'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19484 ac_status=$?
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; }; then
19487 ac_header_compiler=yes
19488else
19489 echo "$as_me: failed program was:" >&5
19490sed 's/^/| /' conftest.$ac_ext >&5
19491
19492ac_header_compiler=no
19493fi
19494rm -f conftest.$ac_objext conftest.$ac_ext
19495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19496echo "${ECHO_T}$ac_header_compiler" >&6
19497
19498# Is the header present?
19499echo "$as_me:$LINENO: checking $ac_header presence" >&5
19500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19501cat >conftest.$ac_ext <<_ACEOF
19502#line $LINENO "configure"
19503/* confdefs.h. */
19504_ACEOF
19505cat confdefs.h >>conftest.$ac_ext
19506cat >>conftest.$ac_ext <<_ACEOF
19507/* end confdefs.h. */
19508#include <$ac_header>
19509_ACEOF
19510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } >/dev/null; then
19518 if test -s conftest.err; then
19519 ac_cpp_err=$ac_c_preproc_warn_flag
19520 else
19521 ac_cpp_err=
19522 fi
19523else
19524 ac_cpp_err=yes
19525fi
19526if test -z "$ac_cpp_err"; then
19527 ac_header_preproc=yes
19528else
19529 echo "$as_me: failed program was:" >&5
19530sed 's/^/| /' conftest.$ac_ext >&5
19531
19532 ac_header_preproc=no
19533fi
19534rm -f conftest.err conftest.$ac_ext
19535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19536echo "${ECHO_T}$ac_header_preproc" >&6
19537
19538# So? What about this header?
19539case $ac_header_compiler:$ac_header_preproc in
19540 yes:no )
19541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19544echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19545 (
19546 cat <<\_ASBOX
19547## ------------------------------------ ##
19548## Report this to bug-autoconf@gnu.org. ##
19549## ------------------------------------ ##
19550_ASBOX
19551 ) |
19552 sed "s/^/$as_me: WARNING: /" >&2
19553 ;;
19554 no:yes )
19555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19560echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19561 (
19562 cat <<\_ASBOX
19563## ------------------------------------ ##
19564## Report this to bug-autoconf@gnu.org. ##
19565## ------------------------------------ ##
19566_ASBOX
19567 ) |
19568 sed "s/^/$as_me: WARNING: /" >&2
19569 ;;
19570esac
19571echo "$as_me:$LINENO: checking for $ac_header" >&5
19572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19573if eval "test \"\${$as_ac_Header+set}\" = set"; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575else
19576 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19577fi
e6cc62c6
VS
19578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19580
21d1c967 19581fi
e6cc62c6
VS
19582if test `eval echo '${'$as_ac_Header'}'` = yes; then
19583 cat >>confdefs.h <<_ACEOF
19584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19585_ACEOF
19586
21d1c967 19587fi
e6cc62c6 19588
21d1c967 19589done
f79bd02d 19590
e6cc62c6
VS
19591 if test "${ac_cv_header_windows_h+set}" = set; then
19592 echo "$as_me:$LINENO: checking for windows.h" >&5
19593echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19594if test "${ac_cv_header_windows_h+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596fi
19597echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19598echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19599else
19600 # Is the header compilable?
19601echo "$as_me:$LINENO: checking windows.h usability" >&5
19602echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19603cat >conftest.$ac_ext <<_ACEOF
19604#line $LINENO "configure"
19605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
19609/* end confdefs.h. */
19610$ac_includes_default
247f5006 19611#include <windows.h>
e6cc62c6
VS
19612_ACEOF
19613rm -f conftest.$ac_objext
19614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19615 (eval $ac_compile) 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } &&
19619 { ac_try='test -s conftest.$ac_objext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_header_compiler=yes
19626else
19627 echo "$as_me: failed program was:" >&5
19628sed 's/^/| /' conftest.$ac_ext >&5
19629
19630ac_header_compiler=no
19631fi
19632rm -f conftest.$ac_objext conftest.$ac_ext
19633echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19634echo "${ECHO_T}$ac_header_compiler" >&6
19635
19636# Is the header present?
19637echo "$as_me:$LINENO: checking windows.h presence" >&5
19638echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19639cat >conftest.$ac_ext <<_ACEOF
19640#line $LINENO "configure"
19641/* confdefs.h. */
19642_ACEOF
19643cat confdefs.h >>conftest.$ac_ext
19644cat >>conftest.$ac_ext <<_ACEOF
19645/* end confdefs.h. */
19646#include <windows.h>
19647_ACEOF
19648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19650 ac_status=$?
19651 grep -v '^ *+' conftest.er1 >conftest.err
19652 rm -f conftest.er1
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } >/dev/null; then
19656 if test -s conftest.err; then
19657 ac_cpp_err=$ac_c_preproc_warn_flag
19658 else
19659 ac_cpp_err=
19660 fi
19661else
19662 ac_cpp_err=yes
19663fi
19664if test -z "$ac_cpp_err"; then
19665 ac_header_preproc=yes
19666else
19667 echo "$as_me: failed program was:" >&5
19668sed 's/^/| /' conftest.$ac_ext >&5
19669
19670 ac_header_preproc=no
19671fi
19672rm -f conftest.err conftest.$ac_ext
19673echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19674echo "${ECHO_T}$ac_header_preproc" >&6
19675
19676# So? What about this header?
19677case $ac_header_compiler:$ac_header_preproc in
19678 yes:no )
19679 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19680echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19681 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19682echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19683 (
19684 cat <<\_ASBOX
19685## ------------------------------------ ##
19686## Report this to bug-autoconf@gnu.org. ##
19687## ------------------------------------ ##
19688_ASBOX
19689 ) |
19690 sed "s/^/$as_me: WARNING: /" >&2
19691 ;;
19692 no:yes )
19693 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19694echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19695 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19696echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19697 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19698echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19699 (
19700 cat <<\_ASBOX
19701## ------------------------------------ ##
19702## Report this to bug-autoconf@gnu.org. ##
19703## ------------------------------------ ##
19704_ASBOX
19705 ) |
19706 sed "s/^/$as_me: WARNING: /" >&2
19707 ;;
19708esac
19709echo "$as_me:$LINENO: checking for windows.h" >&5
19710echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19711if test "${ac_cv_header_windows_h+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713else
19714 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19715fi
e6cc62c6
VS
19716echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19717echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19718
90dd450c 19719fi
e6cc62c6 19720if test $ac_cv_header_windows_h = yes; then
21d1c967 19721 :
90dd450c 19722else
21d1c967 19723
e6cc62c6
VS
19724 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19725echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19726 { (exit 1); exit 1; }; }
19727
5c6fa7d2 19728fi
7b4a847f 19729
5c6fa7d2 19730
e6cc62c6 19731
b3dfbbc9 19732 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19733
7bb2947d
MB
19734 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19735 LIBS="$LIBS -loleacc"
19736 fi
19737
21d1c967
GD
19738 case "${host}" in
19739 *-*-cygwin* )
b3dfbbc9 19740 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19741 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19742 esac
f79bd02d 19743
8647bec6
RG
19744 if test "$wxUSE_ODBC" = "sys" ; then
19745 wxUSE_ODBC = "yes"
21d1c967 19746 fi
8647bec6
RG
19747 if test "$wxUSE_ODBC" = "yes" ; then
19748 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19749 cat >>confdefs.h <<\_ACEOF
8647bec6 19750#define wxUSE_ODBC 1
e6cc62c6 19751_ACEOF
f79bd02d 19752
8647bec6 19753 fi
e6cc62c6 19754
21d1c967
GD
19755 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19756 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19757
19758 WIN32INSTALL=win32install
f79bd02d 19759fi
f79bd02d 19760
21d1c967
GD
19761if test "$wxUSE_GUI" = "yes"; then
19762 USE_GUI=1
f79bd02d 19763
21d1c967 19764 GUI_TK_LIBRARY=
f79bd02d 19765
21d1c967
GD
19766 WXGTK12=
19767 WXGTK127=
19768 WXGTK20=
f79bd02d 19769
21d1c967
GD
19770 if test "$wxUSE_MSW" = 1 ; then
19771 TOOLKIT=MSW
19772 GUIDIST=MSW_DIST
ffef10f6
VS
19773
19774 case "${host}" in
19775 *-*-mingw32* )
19776 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19777 esac
f79bd02d
JS
19778 fi
19779
21d1c967 19780 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19781 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19782echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19783
19784 gtk_version_cached=1
e6cc62c6
VS
19785 if test "${wx_cv_lib_gtk+set}" = set; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19787else
e6cc62c6 19788
21d1c967 19789 gtk_version_cached=0
e6cc62c6
VS
19790 echo "$as_me:$LINENO: result: " >&5
19791echo "${ECHO_T}" >&6
f79bd02d 19792
21d1c967
GD
19793 GTK_MODULES=
19794 if test "$wxUSE_THREADS" = "yes"; then
19795 GTK_MODULES=gthread
19796 fi
f79bd02d 19797
2b5f62a0 19798 wx_cv_lib_gtk=
21d1c967
GD
19799 if test "x$wxUSE_GTK2" = "xyes"; then
19800 # Check whether --enable-gtktest or --disable-gtktest was given.
19801if test "${enable_gtktest+set}" = set; then
19802 enableval="$enable_gtktest"
e6cc62c6 19803
f79bd02d 19804else
21d1c967 19805 enable_gtktest=yes
e6cc62c6 19806fi;
f79bd02d 19807
21d1c967
GD
19808 pkg_config_args=gtk+-2.0
19809 for module in . $GTK_MODULES
19810 do
19811 case "$module" in
e6cc62c6 19812 gthread)
21d1c967
GD
19813 pkg_config_args="$pkg_config_args gthread-2.0"
19814 ;;
19815 esac
19816 done
19817
19818 no_gtk=""
f79bd02d 19819
21d1c967
GD
19820 # Extract the first word of "pkg-config", so it can be a program name with args.
19821set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19822echo "$as_me:$LINENO: checking for $ac_word" >&5
19823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19824if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19826else
e6cc62c6
VS
19827 case $PKG_CONFIG in
19828 [\\/]* | ?:[\\/]*)
21d1c967
GD
19829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19830 ;;
21d1c967 19831 *)
e6cc62c6
VS
19832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19833for as_dir in $PATH
19834do
19835 IFS=$as_save_IFS
19836 test -z "$as_dir" && as_dir=.
19837 for ac_exec_ext in '' $ac_executable_extensions; do
19838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19839 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19841 break 2
19842 fi
19843done
19844done
19845
21d1c967
GD
19846 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19847 ;;
19848esac
f79bd02d 19849fi
e6cc62c6
VS
19850PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19851
21d1c967 19852if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19853 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19854echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19855else
e6cc62c6
VS
19856 echo "$as_me:$LINENO: result: no" >&5
19857echo "${ECHO_T}no" >&6
f79bd02d
JS
19858fi
19859
8284b0c5 19860
21d1c967
GD
19861 if test x$PKG_CONFIG != xno ; then
19862 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19863 :
19864 else
19865 echo *** pkg-config too old; version 0.7 or better required.
19866 no_gtk=yes
19867 PKG_CONFIG=no
19868 fi
19869 else
19870 no_gtk=yes
19871 fi
f79bd02d 19872
21d1c967 19873 min_gtk_version=2.0.0
e6cc62c6
VS
19874 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19875echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19876
21d1c967
GD
19877 if test x$PKG_CONFIG != xno ; then
19878 ## don't try to run the test against uninstalled libtool libs
19879 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19880 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19881 enable_gtktest=no
19882 fi
f79bd02d 19883
21d1c967
GD
19884 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19885 :
19886 else
19887 no_gtk=yes
19888 fi
19889 fi
f79bd02d 19890
21d1c967
GD
19891 if test x"$no_gtk" = x ; then
19892 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19893 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19894 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19895 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19896 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19897 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19898 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19899 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19900 if test "x$enable_gtktest" = "xyes" ; then
19901 ac_save_CFLAGS="$CFLAGS"
19902 ac_save_LIBS="$LIBS"
19903 CFLAGS="$CFLAGS $GTK_CFLAGS"
19904 LIBS="$GTK_LIBS $LIBS"
19905 rm -f conf.gtktest
19906 if test "$cross_compiling" = yes; then
19907 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19908else
e6cc62c6
VS
19909 cat >conftest.$ac_ext <<_ACEOF
19910#line $LINENO "configure"
19911/* confdefs.h. */
19912_ACEOF
19913cat confdefs.h >>conftest.$ac_ext
19914cat >>conftest.$ac_ext <<_ACEOF
19915/* end confdefs.h. */
f79bd02d 19916
21d1c967
GD
19917#include <gtk/gtk.h>
19918#include <stdio.h>
19919#include <stdlib.h>
f79bd02d 19920
e6cc62c6 19921int
21d1c967
GD
19922main ()
19923{
19924 int major, minor, micro;
19925 char *tmp_version;
f79bd02d 19926
21d1c967 19927 system ("touch conf.gtktest");
f79bd02d 19928
21d1c967
GD
19929 /* HP/UX 9 (%@#!) writes to sscanf strings */
19930 tmp_version = g_strdup("$min_gtk_version");
19931 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19932 printf("%s, bad version string\n", "$min_gtk_version");
19933 exit(1);
19934 }
f79bd02d 19935
21d1c967
GD
19936 if ((gtk_major_version != $gtk_config_major_version) ||
19937 (gtk_minor_version != $gtk_config_minor_version) ||
19938 (gtk_micro_version != $gtk_config_micro_version))
19939 {
e6cc62c6 19940 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19941 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19942 gtk_major_version, gtk_minor_version, gtk_micro_version);
19943 printf ("*** was found! If pkg-config was correct, then it is best\n");
19944 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19945 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19946 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19947 printf("*** required on your system.\n");
19948 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19949 printf("*** to point to the correct configuration files\n");
e6cc62c6 19950 }
21d1c967
GD
19951 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19952 (gtk_minor_version != GTK_MINOR_VERSION) ||
19953 (gtk_micro_version != GTK_MICRO_VERSION))
19954 {
19955 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19956 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19957 printf("*** library (version %d.%d.%d)\n",
19958 gtk_major_version, gtk_minor_version, gtk_micro_version);
19959 }
19960 else
19961 {
19962 if ((gtk_major_version > major) ||
19963 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19964 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19965 {
19966 return 0;
19967 }
19968 else
19969 {
19970 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19971 gtk_major_version, gtk_minor_version, gtk_micro_version);
19972 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19973 major, minor, micro);
19974 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19975 printf("***\n");
19976 printf("*** If you have already installed a sufficiently new version, this error\n");
19977 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19978 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19979 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19980 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19981 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19982 printf("*** so that the correct libraries are found at run-time))\n");
19983 }
19984 }
19985 return 1;
19986}
f79bd02d 19987
e6cc62c6
VS
19988_ACEOF
19989rm -f conftest$ac_exeext
19990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19991 (eval $ac_link) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
21d1c967 20000 :
f79bd02d 20001else
e6cc62c6
VS
20002 echo "$as_me: program exited with status $ac_status" >&5
20003echo "$as_me: failed program was:" >&5
20004sed 's/^/| /' conftest.$ac_ext >&5
20005
20006( exit $ac_status )
20007no_gtk=yes
f79bd02d 20008fi
e6cc62c6 20009rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20010fi
21d1c967
GD
20011 CFLAGS="$ac_save_CFLAGS"
20012 LIBS="$ac_save_LIBS"
20013 fi
20014 fi
20015 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20016 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20017echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20018 wx_cv_lib_gtk=2.0
21d1c967 20019 else
e6cc62c6
VS
20020 echo "$as_me:$LINENO: result: no" >&5
20021echo "${ECHO_T}no" >&6
21d1c967
GD
20022 if test "$PKG_CONFIG" = "no" ; then
20023 echo "*** A new enough version of pkg-config was not found."
20024 echo "*** See http://pkgconfig.sourceforge.net"
20025 else
20026 if test -f conf.gtktest ; then
20027 :
20028 else
20029 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20030 ac_save_CFLAGS="$CFLAGS"
20031 ac_save_LIBS="$LIBS"
21d1c967
GD
20032 CFLAGS="$CFLAGS $GTK_CFLAGS"
20033 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20034 cat >conftest.$ac_ext <<_ACEOF
20035#line $LINENO "configure"
20036/* confdefs.h. */
20037_ACEOF
20038cat confdefs.h >>conftest.$ac_ext
20039cat >>conftest.$ac_ext <<_ACEOF
20040/* end confdefs.h. */
21d1c967
GD
20041
20042#include <gtk/gtk.h>
20043#include <stdio.h>
f79bd02d 20044
e6cc62c6
VS
20045int
20046main ()
20047{
20048 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20049 ;
20050 return 0;
20051}
20052_ACEOF
20053rm -f conftest.$ac_objext conftest$ac_exeext
20054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20055 (eval $ac_link) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } &&
20059 { ac_try='test -s conftest$ac_exeext'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
21d1c967
GD
20065 echo "*** The test program compiled, but did not run. This usually means"
20066 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20067 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20068 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20069 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20070 echo "*** is required on your system"
20071 echo "***"
20072 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20073 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20074else
e6cc62c6
VS
20075 echo "$as_me: failed program was:" >&5
20076sed 's/^/| /' conftest.$ac_ext >&5
20077
20078 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20079 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20080fi
e6cc62c6 20081rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20082 CFLAGS="$ac_save_CFLAGS"
20083 LIBS="$ac_save_LIBS"
20084 fi
20085 fi
20086 GTK_CFLAGS=""
20087 GTK_LIBS=""
20088 :
20089 fi
e6cc62c6
VS
20090
20091
21d1c967 20092 rm -f conf.gtktest
f79bd02d 20093
2b5f62a0 20094 else
e6cc62c6
VS
20095
20096# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20097if test "${with_gtk_prefix+set}" = set; then
20098 withval="$with_gtk_prefix"
20099 gtk_config_prefix="$withval"
20100else
20101 gtk_config_prefix=""
e6cc62c6 20102fi;
f79bd02d 20103
21d1c967
GD
20104# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20105if test "${with_gtk_exec_prefix+set}" = set; then
20106 withval="$with_gtk_exec_prefix"
20107 gtk_config_exec_prefix="$withval"
20108else
20109 gtk_config_exec_prefix=""
e6cc62c6 20110fi;
21d1c967
GD
20111# Check whether --enable-gtktest or --disable-gtktest was given.
20112if test "${enable_gtktest+set}" = set; then
20113 enableval="$enable_gtktest"
e6cc62c6 20114
21d1c967
GD
20115else
20116 enable_gtktest=yes
e6cc62c6 20117fi;
21d1c967
GD
20118
20119 for module in . $GTK_MODULES
20120 do
20121 case "$module" in
e6cc62c6 20122 gthread)
21d1c967
GD
20123 gtk_config_args="$gtk_config_args gthread"
20124 ;;
20125 esac
20126 done
20127
20128 if test x$gtk_config_exec_prefix != x ; then
20129 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20130 if test x${GTK_CONFIG+set} != xset ; then
20131 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20132 fi
20133 fi
20134 if test x$gtk_config_prefix != x ; then
20135 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20136 if test x${GTK_CONFIG+set} != xset ; then
20137 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20138 fi
20139 fi
20140
20141 # Extract the first word of "gtk-config", so it can be a program name with args.
20142set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20143echo "$as_me:$LINENO: checking for $ac_word" >&5
20144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20145if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20147else
e6cc62c6
VS
20148 case $GTK_CONFIG in
20149 [\\/]* | ?:[\\/]*)
21d1c967
GD
20150 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20151 ;;
21d1c967 20152 *)
e6cc62c6
VS
20153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20154for as_dir in $PATH
20155do
20156 IFS=$as_save_IFS
20157 test -z "$as_dir" && as_dir=.
20158 for ac_exec_ext in '' $ac_executable_extensions; do
20159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20160 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20162 break 2
20163 fi
20164done
20165done
20166
21d1c967
GD
20167 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20168 ;;
20169esac
20170fi
e6cc62c6
VS
20171GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20172
21d1c967 20173if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20174 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20175echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20176else
e6cc62c6
VS
20177 echo "$as_me:$LINENO: result: no" >&5
20178echo "${ECHO_T}no" >&6
21d1c967
GD
20179fi
20180
20181 min_gtk_version=1.2.7
e6cc62c6
VS
20182 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20183echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20184 no_gtk=""
20185 if test "$GTK_CONFIG" = "no" ; then
20186 no_gtk=yes
20187 else
20188 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20189 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20190 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20191 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20192 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20193 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20194 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20195 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20196 if test "x$enable_gtktest" = "xyes" ; then
20197 ac_save_CFLAGS="$CFLAGS"
20198 ac_save_LIBS="$LIBS"
20199 CFLAGS="$CFLAGS $GTK_CFLAGS"
20200 LIBS="$GTK_LIBS $LIBS"
20201 rm -f conf.gtktest
20202 if test "$cross_compiling" = yes; then
20203 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20204else
e6cc62c6
VS
20205 cat >conftest.$ac_ext <<_ACEOF
20206#line $LINENO "configure"
20207/* confdefs.h. */
20208_ACEOF
20209cat confdefs.h >>conftest.$ac_ext
20210cat >>conftest.$ac_ext <<_ACEOF
20211/* end confdefs.h. */
f79bd02d 20212
21d1c967
GD
20213#include <gtk/gtk.h>
20214#include <stdio.h>
20215#include <stdlib.h>
f79bd02d 20216
e6cc62c6 20217int
21d1c967
GD
20218main ()
20219{
20220 int major, minor, micro;
20221 char *tmp_version;
20222
20223 system ("touch conf.gtktest");
20224
20225 /* HP/UX 9 (%@#!) writes to sscanf strings */
20226 tmp_version = g_strdup("$min_gtk_version");
20227 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20228 printf("%s, bad version string\n", "$min_gtk_version");
20229 exit(1);
20230 }
90dd450c 20231
21d1c967
GD
20232 if ((gtk_major_version != $gtk_config_major_version) ||
20233 (gtk_minor_version != $gtk_config_minor_version) ||
20234 (gtk_micro_version != $gtk_config_micro_version))
20235 {
e6cc62c6 20236 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20237 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20238 gtk_major_version, gtk_minor_version, gtk_micro_version);
20239 printf ("*** was found! If gtk-config was correct, then it is best\n");
20240 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20241 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20242 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20243 printf("*** required on your system.\n");
20244 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20245 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20246 printf("*** before re-running configure\n");
e6cc62c6 20247 }
21d1c967
GD
20248#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20249 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20250 (gtk_minor_version != GTK_MINOR_VERSION) ||
20251 (gtk_micro_version != GTK_MICRO_VERSION))
20252 {
20253 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20254 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20255 printf("*** library (version %d.%d.%d)\n",
20256 gtk_major_version, gtk_minor_version, gtk_micro_version);
20257 }
20258#endif /* defined (GTK_MAJOR_VERSION) ... */
20259 else
20260 {
20261 if ((gtk_major_version > major) ||
20262 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20263 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20264 {
20265 return 0;
20266 }
20267 else
20268 {
20269 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20270 gtk_major_version, gtk_minor_version, gtk_micro_version);
20271 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20272 major, minor, micro);
20273 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20274 printf("***\n");
20275 printf("*** If you have already installed a sufficiently new version, this error\n");
20276 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20277 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20278 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20279 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20280 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20281 printf("*** so that the correct libraries are found at run-time))\n");
20282 }
20283 }
20284 return 1;
20285}
20286
e6cc62c6
VS
20287_ACEOF
20288rm -f conftest$ac_exeext
20289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20290 (eval $ac_link) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
21d1c967
GD
20299 :
20300else
e6cc62c6
VS
20301 echo "$as_me: program exited with status $ac_status" >&5
20302echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
20305( exit $ac_status )
20306no_gtk=yes
21d1c967 20307fi
e6cc62c6 20308rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20309fi
21d1c967
GD
20310 CFLAGS="$ac_save_CFLAGS"
20311 LIBS="$ac_save_LIBS"
20312 fi
20313 fi
20314 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20315 echo "$as_me:$LINENO: result: yes" >&5
20316echo "${ECHO_T}yes" >&6
20317 wx_cv_lib_gtk=1.2.7
21d1c967 20318 else
e6cc62c6
VS
20319 echo "$as_me:$LINENO: result: no" >&5
20320echo "${ECHO_T}no" >&6
21d1c967
GD
20321 if test "$GTK_CONFIG" = "no" ; then
20322 echo "*** The gtk-config script installed by GTK could not be found"
20323 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20324 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20325 echo "*** full path to gtk-config."
20326 else
20327 if test -f conf.gtktest ; then
20328 :
20329 else
20330 echo "*** Could not run GTK test program, checking why..."
20331 CFLAGS="$CFLAGS $GTK_CFLAGS"
20332 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20333 cat >conftest.$ac_ext <<_ACEOF
20334#line $LINENO "configure"
20335/* confdefs.h. */
20336_ACEOF
20337cat confdefs.h >>conftest.$ac_ext
20338cat >>conftest.$ac_ext <<_ACEOF
20339/* end confdefs.h. */
21d1c967
GD
20340
20341#include <gtk/gtk.h>
20342#include <stdio.h>
20343
e6cc62c6
VS
20344int
20345main ()
20346{
20347 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20348 ;
20349 return 0;
20350}
20351_ACEOF
20352rm -f conftest.$ac_objext conftest$ac_exeext
20353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20354 (eval $ac_link) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } &&
20358 { ac_try='test -s conftest$ac_exeext'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
21d1c967
GD
20364 echo "*** The test program compiled, but did not run. This usually means"
20365 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20366 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20367 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20368 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20369 echo "*** is required on your system"
20370 echo "***"
20371 echo "*** If you have an old version installed, it is best to remove it, although"
20372 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20373 echo "***"
20374 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20375 echo "*** came with the system with the command"
20376 echo "***"
e6cc62c6 20377 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20378else
e6cc62c6
VS
20379 echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20383 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20384 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20385 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20386fi
e6cc62c6 20387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20388 CFLAGS="$ac_save_CFLAGS"
20389 LIBS="$ac_save_LIBS"
20390 fi
20391 fi
20392 GTK_CFLAGS=""
20393 GTK_LIBS=""
20394 :
20395 fi
e6cc62c6
VS
20396
20397
21d1c967
GD
20398 rm -f conf.gtktest
20399
21d1c967 20400
2b5f62a0 20401 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20402
20403# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20404if test "${with_gtk_prefix+set}" = set; then
20405 withval="$with_gtk_prefix"
20406 gtk_config_prefix="$withval"
20407else
20408 gtk_config_prefix=""
e6cc62c6 20409fi;
f79bd02d 20410
21d1c967
GD
20411# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20412if test "${with_gtk_exec_prefix+set}" = set; then
20413 withval="$with_gtk_exec_prefix"
20414 gtk_config_exec_prefix="$withval"
20415else
20416 gtk_config_exec_prefix=""
e6cc62c6 20417fi;
21d1c967
GD
20418# Check whether --enable-gtktest or --disable-gtktest was given.
20419if test "${enable_gtktest+set}" = set; then
20420 enableval="$enable_gtktest"
e6cc62c6 20421
90dd450c 20422else
21d1c967 20423 enable_gtktest=yes
e6cc62c6 20424fi;
21d1c967
GD
20425
20426 for module in . $GTK_MODULES
20427 do
20428 case "$module" in
e6cc62c6 20429 gthread)
21d1c967
GD
20430 gtk_config_args="$gtk_config_args gthread"
20431 ;;
20432 esac
20433 done
20434
20435 if test x$gtk_config_exec_prefix != x ; then
20436 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20437 if test x${GTK_CONFIG+set} != xset ; then
20438 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20439 fi
20440 fi
20441 if test x$gtk_config_prefix != x ; then
20442 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20443 if test x${GTK_CONFIG+set} != xset ; then
20444 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20445 fi
20446 fi
20447
20448 # Extract the first word of "gtk-config", so it can be a program name with args.
20449set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20450echo "$as_me:$LINENO: checking for $ac_word" >&5
20451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20452if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20454else
e6cc62c6
VS
20455 case $GTK_CONFIG in
20456 [\\/]* | ?:[\\/]*)
21d1c967
GD
20457 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20458 ;;
21d1c967 20459 *)
e6cc62c6
VS
20460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20461for as_dir in $PATH
20462do
20463 IFS=$as_save_IFS
20464 test -z "$as_dir" && as_dir=.
20465 for ac_exec_ext in '' $ac_executable_extensions; do
20466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20467 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20469 break 2
20470 fi
20471done
20472done
20473
21d1c967
GD
20474 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20475 ;;
20476esac
20477fi
e6cc62c6
VS
20478GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20479
21d1c967 20480if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20481 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20482echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20483else
e6cc62c6
VS
20484 echo "$as_me:$LINENO: result: no" >&5
20485echo "${ECHO_T}no" >&6
21d1c967
GD
20486fi
20487
20488 min_gtk_version=1.2.3
e6cc62c6
VS
20489 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20490echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20491 no_gtk=""
20492 if test "$GTK_CONFIG" = "no" ; then
20493 no_gtk=yes
20494 else
20495 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20496 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20497 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20498 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20499 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20500 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20501 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20502 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20503 if test "x$enable_gtktest" = "xyes" ; then
20504 ac_save_CFLAGS="$CFLAGS"
20505 ac_save_LIBS="$LIBS"
20506 CFLAGS="$CFLAGS $GTK_CFLAGS"
20507 LIBS="$GTK_LIBS $LIBS"
20508 rm -f conf.gtktest
20509 if test "$cross_compiling" = yes; then
20510 echo $ac_n "cross compiling; assumed OK... $ac_c"
20511else
e6cc62c6
VS
20512 cat >conftest.$ac_ext <<_ACEOF
20513#line $LINENO "configure"
20514/* confdefs.h. */
20515_ACEOF
20516cat confdefs.h >>conftest.$ac_ext
20517cat >>conftest.$ac_ext <<_ACEOF
20518/* end confdefs.h. */
21d1c967
GD
20519
20520#include <gtk/gtk.h>
20521#include <stdio.h>
20522#include <stdlib.h>
20523
e6cc62c6 20524int
21d1c967
GD
20525main ()
20526{
20527 int major, minor, micro;
20528 char *tmp_version;
20529
20530 system ("touch conf.gtktest");
20531
20532 /* HP/UX 9 (%@#!) writes to sscanf strings */
20533 tmp_version = g_strdup("$min_gtk_version");
20534 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20535 printf("%s, bad version string\n", "$min_gtk_version");
20536 exit(1);
20537 }
20538
20539 if ((gtk_major_version != $gtk_config_major_version) ||
20540 (gtk_minor_version != $gtk_config_minor_version) ||
20541 (gtk_micro_version != $gtk_config_micro_version))
20542 {
e6cc62c6 20543 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20544 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20545 gtk_major_version, gtk_minor_version, gtk_micro_version);
20546 printf ("*** was found! If gtk-config was correct, then it is best\n");
20547 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20548 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20549 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20550 printf("*** required on your system.\n");
20551 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20552 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20553 printf("*** before re-running configure\n");
e6cc62c6 20554 }
21d1c967
GD
20555#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20556 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20557 (gtk_minor_version != GTK_MINOR_VERSION) ||
20558 (gtk_micro_version != GTK_MICRO_VERSION))
20559 {
20560 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20561 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20562 printf("*** library (version %d.%d.%d)\n",
20563 gtk_major_version, gtk_minor_version, gtk_micro_version);
20564 }
20565#endif /* defined (GTK_MAJOR_VERSION) ... */
20566 else
20567 {
20568 if ((gtk_major_version > major) ||
20569 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20570 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20571 {
20572 return 0;
20573 }
20574 else
20575 {
20576 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20577 gtk_major_version, gtk_minor_version, gtk_micro_version);
20578 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20579 major, minor, micro);
20580 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20581 printf("***\n");
20582 printf("*** If you have already installed a sufficiently new version, this error\n");
20583 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20584 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20585 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20586 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20587 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20588 printf("*** so that the correct libraries are found at run-time))\n");
20589 }
20590 }
20591 return 1;
20592}
20593
e6cc62c6
VS
20594_ACEOF
20595rm -f conftest$ac_exeext
20596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20597 (eval $ac_link) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; }; then
21d1c967
GD
20606 :
20607else
e6cc62c6
VS
20608 echo "$as_me: program exited with status $ac_status" >&5
20609echo "$as_me: failed program was:" >&5
20610sed 's/^/| /' conftest.$ac_ext >&5
20611
20612( exit $ac_status )
20613no_gtk=yes
21d1c967 20614fi
e6cc62c6 20615rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20616fi
21d1c967
GD
20617 CFLAGS="$ac_save_CFLAGS"
20618 LIBS="$ac_save_LIBS"
20619 fi
20620 fi
20621 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20622 echo "$as_me:$LINENO: result: yes" >&5
20623echo "${ECHO_T}yes" >&6
20624 wx_cv_lib_gtk=1.2.3
21d1c967 20625 else
e6cc62c6
VS
20626 echo "$as_me:$LINENO: result: no" >&5
20627echo "${ECHO_T}no" >&6
21d1c967
GD
20628 if test "$GTK_CONFIG" = "no" ; then
20629 echo "*** The gtk-config script installed by GTK could not be found"
20630 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20631 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20632 echo "*** full path to gtk-config."
20633 else
20634 if test -f conf.gtktest ; then
20635 :
20636 else
20637 echo "*** Could not run GTK test program, checking why..."
20638 CFLAGS="$CFLAGS $GTK_CFLAGS"
20639 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20640 cat >conftest.$ac_ext <<_ACEOF
20641#line $LINENO "configure"
20642/* confdefs.h. */
20643_ACEOF
20644cat confdefs.h >>conftest.$ac_ext
20645cat >>conftest.$ac_ext <<_ACEOF
20646/* end confdefs.h. */
21d1c967
GD
20647
20648#include <gtk/gtk.h>
20649#include <stdio.h>
f79bd02d 20650
e6cc62c6
VS
20651int
20652main ()
20653{
20654 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20655 ;
20656 return 0;
20657}
20658_ACEOF
20659rm -f conftest.$ac_objext conftest$ac_exeext
20660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20661 (eval $ac_link) 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } &&
20665 { ac_try='test -s conftest$ac_exeext'
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20668 ac_status=$?
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
21d1c967
GD
20671 echo "*** The test program compiled, but did not run. This usually means"
20672 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20673 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20674 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20675 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20676 echo "*** is required on your system"
20677 echo "***"
20678 echo "*** If you have an old version installed, it is best to remove it, although"
20679 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20680 echo "***"
20681 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20682 echo "*** came with the system with the command"
20683 echo "***"
e6cc62c6 20684 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20685else
e6cc62c6
VS
20686 echo "$as_me: failed program was:" >&5
20687sed 's/^/| /' conftest.$ac_ext >&5
20688
20689 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20690 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20691 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20692 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20693fi
e6cc62c6 20694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20695 CFLAGS="$ac_save_CFLAGS"
20696 LIBS="$ac_save_LIBS"
20697 fi
20698 fi
20699 GTK_CFLAGS=""
20700 GTK_LIBS=""
20701 :
20702 fi
e6cc62c6
VS
20703
20704
21d1c967 20705 rm -f conf.gtktest
f79bd02d 20706
2b5f62a0 20707 fi
21d1c967
GD
20708 fi
20709
20710 if test -z "$wx_cv_lib_gtk"; then
20711 wx_cv_lib_gtk=none
20712 else
20713 wx_cv_cflags_gtk=$GTK_CFLAGS
20714 wx_cv_libs_gtk=$GTK_LIBS
20715 fi
e6cc62c6
VS
20716
20717
5c6fa7d2 20718fi
52127426 20719
8284b0c5 20720
21d1c967 20721 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20722 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20723echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20724 fi
20725
20726 case "$wx_cv_lib_gtk" in
20727 2.0) WXGTK20=1
2b5f62a0 20728 TOOLKIT_VERSION=2
21d1c967
GD
20729 ;;
20730 1.2.7) WXGTK127=1
20731 WXGTK12=1
20732 ;;
20733 1.2.3) WXGTK12=1
20734 ;;
e6cc62c6
VS
20735 *) { { echo "$as_me:$LINENO: error:
20736Please check that gtk-config is in path, the directory
20737where GTK+ libraries are installed (returned by
20738'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20739equivalent variable and GTK+ is version 1.2.3 or above.
20740 " >&5
20741echo "$as_me: error:
247f5006
VZ
20742Please check that gtk-config is in path, the directory
20743where GTK+ libraries are installed (returned by
20744'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20745equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20746 " >&2;}
20747 { (exit 1); exit 1; }; }
21d1c967
GD
20748 ;;
20749 esac
20750
b13cd66e
VZ
20751 if test "$WXGTK20" = 1; then
20752 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20753
f09359cf
VS
20754 succeeded=no
20755
20756 if test -z "$PKG_CONFIG"; then
20757 # Extract the first word of "pkg-config", so it can be a program name with args.
20758set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20759echo "$as_me:$LINENO: checking for $ac_word" >&5
20760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20761if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20763else
e6cc62c6
VS
20764 case $PKG_CONFIG in
20765 [\\/]* | ?:[\\/]*)
f09359cf
VS
20766 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20767 ;;
f09359cf 20768 *)
e6cc62c6
VS
20769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20770for as_dir in $PATH
20771do
20772 IFS=$as_save_IFS
20773 test -z "$as_dir" && as_dir=.
20774 for ac_exec_ext in '' $ac_executable_extensions; do
20775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20776 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20778 break 2
20779 fi
20780done
20781done
20782
f09359cf
VS
20783 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20784 ;;
20785esac
20786fi
e6cc62c6
VS
20787PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20788
f09359cf 20789if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20790 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20791echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20792else
e6cc62c6
VS
20793 echo "$as_me:$LINENO: result: no" >&5
20794echo "${ECHO_T}no" >&6
f09359cf
VS
20795fi
20796
20797 fi
20798
20799 if test "$PKG_CONFIG" = "no" ; then
20800 echo "*** The pkg-config script could not be found. Make sure it is"
20801 echo "*** in your path, or set the PKG_CONFIG environment variable"
20802 echo "*** to the full path to pkg-config."
20803 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20804 else
20805 PKG_CONFIG_MIN_VERSION=0.9.0
20806 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20807 echo "$as_me:$LINENO: checking for pangoft2" >&5
20808echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20809
20810 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20811 echo "$as_me:$LINENO: result: yes" >&5
20812echo "${ECHO_T}yes" >&6
f09359cf
VS
20813 succeeded=yes
20814
e6cc62c6
VS
20815 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20816echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20817 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20818 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20819echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20820
e6cc62c6
VS
20821 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20822echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20823 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20824 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20825echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20826 else
20827 PANGOFT2_CFLAGS=""
20828 PANGOFT2_LIBS=""
e6cc62c6 20829 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20830 ## do set a variable so people can do so.
20831 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20832
f09359cf
VS
20833 fi
20834
e6cc62c6
VS
20835
20836
f09359cf
VS
20837 else
20838 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20839 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20840 fi
20841 fi
20842
20843 if test $succeeded = yes; then
e6cc62c6 20844
b13cd66e 20845 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20846 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20847
f09359cf 20848 else
e6cc62c6
VS
20849
20850 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20851echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20852 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20853
20854
f09359cf
VS
20855 fi
20856
b13cd66e 20857 fi
2b5f62a0
VZ
20858 else
20859 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20860 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20861echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20862 wxUSE_UNICODE=no
20863 fi
20864 fi
20865
20866 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20867
20868for ac_func in poll
2b5f62a0 20869do
e6cc62c6
VS
20870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20871echo "$as_me:$LINENO: checking for $ac_func" >&5
20872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20873if eval "test \"\${$as_ac_var+set}\" = set"; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20875else
20876 cat >conftest.$ac_ext <<_ACEOF
20877#line $LINENO "configure"
20878/* confdefs.h. */
20879_ACEOF
20880cat confdefs.h >>conftest.$ac_ext
20881cat >>conftest.$ac_ext <<_ACEOF
20882/* end confdefs.h. */
2b5f62a0 20883/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20884 which can conflict with char $ac_func (); below.
20885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20886 <limits.h> exists even on freestanding compilers. */
20887#ifdef __STDC__
20888# include <limits.h>
20889#else
20890# include <assert.h>
20891#endif
2b5f62a0 20892/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20893#ifdef __cplusplus
20894extern "C"
20895{
20896#endif
2b5f62a0 20897/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20898 builtin and then its argument prototype would still apply. */
20899char $ac_func ();
2b5f62a0
VZ
20900/* The GNU C library defines this for functions which it implements
20901 to always fail with ENOSYS. Some functions are actually named
20902 something starting with __ and the normal name is an alias. */
20903#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20904choke me
20905#else
e6cc62c6
VS
20906char (*f) () = $ac_func;
20907#endif
20908#ifdef __cplusplus
20909}
2b5f62a0
VZ
20910#endif
20911
e6cc62c6
VS
20912int
20913main ()
20914{
20915return f != $ac_func;
20916 ;
20917 return 0;
20918}
20919_ACEOF
20920rm -f conftest.$ac_objext conftest$ac_exeext
20921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20922 (eval $ac_link) 2>&5
20923 ac_status=$?
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } &&
20926 { ac_try='test -s conftest$ac_exeext'
20927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20928 (eval $ac_try) 2>&5
20929 ac_status=$?
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; }; then
20932 eval "$as_ac_var=yes"
20933else
20934 echo "$as_me: failed program was:" >&5
20935sed 's/^/| /' conftest.$ac_ext >&5
20936
20937eval "$as_ac_var=no"
20938fi
20939rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20940fi
20941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20943if test `eval echo '${'$as_ac_var'}'` = yes; then
20944 cat >>confdefs.h <<_ACEOF
20945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20946_ACEOF
2b5f62a0 20947
2b5f62a0
VZ
20948fi
20949done
20950
f09359cf
VS
20951 fi
20952
21d1c967 20953 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 20954 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
20955
20956 AFMINSTALL=afminstall
20957 TOOLKIT=GTK
20958 GUIDIST=GTK_DIST
20959
e6cc62c6
VS
20960 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20961echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20962if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20964else
e6cc62c6 20965 ac_check_lib_save_LIBS=$LIBS
21d1c967 20966LIBS="-lgdk $LIBS"
e6cc62c6
VS
20967cat >conftest.$ac_ext <<_ACEOF
20968#line $LINENO "configure"
20969/* confdefs.h. */
20970_ACEOF
20971cat confdefs.h >>conftest.$ac_ext
20972cat >>conftest.$ac_ext <<_ACEOF
20973/* end confdefs.h. */
20974
5c6fa7d2 20975/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20976#ifdef __cplusplus
20977extern "C"
20978#endif
5c6fa7d2 20979/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20980 builtin and then its argument prototype would still apply. */
20981char gdk_im_open ();
20982int
20983main ()
20984{
20985gdk_im_open ();
20986 ;
20987 return 0;
20988}
20989_ACEOF
20990rm -f conftest.$ac_objext conftest$ac_exeext
20991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20992 (eval $ac_link) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } &&
20996 { ac_try='test -s conftest$ac_exeext'
20997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998 (eval $ac_try) 2>&5
20999 ac_status=$?
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; }; then
21002 ac_cv_lib_gdk_gdk_im_open=yes
21003else
21004 echo "$as_me: failed program was:" >&5
21005sed 's/^/| /' conftest.$ac_ext >&5
21006
21007ac_cv_lib_gdk_gdk_im_open=no
21008fi
21009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21010LIBS=$ac_check_lib_save_LIBS
21011fi
21012echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21013echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21014if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21015 cat >>confdefs.h <<\_ACEOF
21d1c967 21016#define HAVE_XIM 1
e6cc62c6 21017_ACEOF
21d1c967 21018
90dd450c 21019fi
1e6feb95 21020
21d1c967 21021 fi
1e6feb95 21022
21d1c967 21023 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21024 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21025echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21026 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21027 echo "$as_me:$LINENO: result: not found" >&5
21028echo "${ECHO_T}not found" >&6
21029 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21030echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21031 { (exit 1); exit 1; }; }
21d1c967 21032 else
e6cc62c6
VS
21033 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21034echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21035 fi
21036
e6cc62c6
VS
21037 echo "$as_me:$LINENO: checking for libmgl location" >&5
21038echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 21039 case "${host}" in
21d1c967 21040 *-*-linux* )
e46d2a18
VS
21041 if test "x$wxUSE_SHARED" = xyes ; then
21042 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 21043 else
e46d2a18 21044 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 21045 fi
21d1c967
GD
21046 ;;
21047 *-pc-msdosdjgpp )
63a76696 21048 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21049 ;;
21050 *)
e6cc62c6
VS
21051 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21052echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21053 { (exit 1); exit 1; }; }
21d1c967 21054 esac
1e6feb95 21055
21d1c967 21056 mgl_lib_type=""
63a76696
VS
21057 mgl_os=""
21058
21059 for mgl_os_i in $mgl_os_candidates ; do
21060 if test "x$mgl_os" = x ; then
21061 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21062 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21063 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21064 mgl_lib_type=debug
21065 mgl_os=$mgl_os_i
21066 fi
21067 fi
21068 if test "x$mgl_lib_type" = x ; then
21069 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21070 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21071 mgl_lib_type=release
21072 mgl_os=$mgl_os_i
21073 fi
21074 fi
21d1c967 21075 fi
63a76696 21076 done
2224580a 21077
63a76696 21078 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21079 echo "$as_me:$LINENO: result: not found" >&5
21080echo "${ECHO_T}not found" >&6
21081 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21082echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21083 { (exit 1); exit 1; }; }
63a76696 21084 fi
e6cc62c6
VS
21085 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21086echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21087
1d1b75ac
VZ
21088 wxUSE_UNIVERSAL="yes"
21089
21d1c967
GD
21090 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21091 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21092
90dd450c 21093 AFMINSTALL=afminstall
21d1c967
GD
21094 TOOLKIT=MGL
21095 GUIDIST=MGL_DIST
21096 fi
dad6c0ea 21097
21d1c967 21098 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21099 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21100echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21101 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21102 echo "$as_me:$LINENO: result: not found" >&5
21103echo "${ECHO_T}not found" >&6
21104 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21105echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21106 { (exit 1); exit 1; }; }
21d1c967 21107 else
e6cc62c6
VS
21108 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21109echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21110 fi
f6bcfd97 21111
21d1c967 21112 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21113 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21114echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21115 else
e6cc62c6
VS
21116 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21117echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21118 { (exit 1); exit 1; }; }
90dd450c 21119 fi
0b2effe9 21120
21d1c967
GD
21121 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21122 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21123
1d1b75ac
VZ
21124 wxUSE_UNIVERSAL="yes"
21125
21d1c967
GD
21126 AFMINSTALL=afminstall
21127 TOOLKIT=MICROWIN
21128 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21129
21130 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21131 fi
f6bcfd97 21132
21d1c967 21133 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21134 echo "$as_me:$LINENO: checking for X" >&5
21135echo $ECHO_N "checking for X... $ECHO_C" >&6
21136
d8356fa3 21137
21d1c967
GD
21138# Check whether --with-x or --without-x was given.
21139if test "${with_x+set}" = set; then
21140 withval="$with_x"
2224580a 21141
e6cc62c6 21142fi;
21d1c967
GD
21143# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21144if test "x$with_x" = xno; then
21145 # The user explicitly disabled X.
21146 have_x=disabled
21147else
21148 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21149 # Both variables are already set.
21150 have_x=yes
21151 else
e6cc62c6
VS
21152 if test "${ac_cv_have_x+set}" = set; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21154else
21155 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21156ac_x_includes=no ac_x_libraries=no
21157rm -fr conftest.dir
21158if mkdir conftest.dir; then
21159 cd conftest.dir
21d1c967 21160 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21161 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21162acfindx:
21163 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21164_ACEOF
21d1c967
GD
21165 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21167 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21168 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21169 for ac_extension in a so sl; do
21170 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21171 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21172 ac_im_usrlibdir=$ac_im_libdir; break
21173 fi
21174 done
21175 # Screen out bogus values from the imake configuration. They are
21176 # bogus both because they are the default anyway, and because
21177 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21178 case $ac_im_incroot in
21d1c967 21179 /usr/include) ;;
e6cc62c6 21180 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21181 esac
e6cc62c6 21182 case $ac_im_usrlibdir in
21d1c967 21183 /usr/lib | /lib) ;;
e6cc62c6 21184 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21185 esac
21186 fi
21187 cd ..
e6cc62c6 21188 rm -fr conftest.dir
21d1c967 21189fi
10f2d63a 21190
e6cc62c6
VS
21191# Standard set of common directories for X headers.
21192# Check X11 before X11Rn because it is often a symlink to the current release.
21193ac_x_header_dirs='
21194/usr/X11/include
21195/usr/X11R6/include
21196/usr/X11R5/include
21197/usr/X11R4/include
21198
21199/usr/include/X11
21200/usr/include/X11R6
21201/usr/include/X11R5
21202/usr/include/X11R4
21203
21204/usr/local/X11/include
21205/usr/local/X11R6/include
21206/usr/local/X11R5/include
21207/usr/local/X11R4/include
21208
21209/usr/local/include/X11
21210/usr/local/include/X11R6
21211/usr/local/include/X11R5
21212/usr/local/include/X11R4
21213
21214/usr/X386/include
21215/usr/x386/include
21216/usr/XFree86/include/X11
21217
21218/usr/include
21219/usr/local/include
21220/usr/unsupported/include
21221/usr/athena/include
21222/usr/local/x11r5/include
21223/usr/lpp/Xamples/include
21224
21225/usr/openwin/include
21226/usr/openwin/share/include'
21227
21228if test "$ac_x_includes" = no; then
21229 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21230 # First, try using that file with no special directory specified.
e6cc62c6
VS
21231 cat >conftest.$ac_ext <<_ACEOF
21232#line $LINENO "configure"
21233/* confdefs.h. */
21234_ACEOF
21235cat confdefs.h >>conftest.$ac_ext
21236cat >>conftest.$ac_ext <<_ACEOF
21237/* end confdefs.h. */
21238#include <X11/Intrinsic.h>
21239_ACEOF
21240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21242 ac_status=$?
21243 grep -v '^ *+' conftest.er1 >conftest.err
21244 rm -f conftest.er1
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } >/dev/null; then
21248 if test -s conftest.err; then
21249 ac_cpp_err=$ac_c_preproc_warn_flag
21250 else
21251 ac_cpp_err=
21252 fi
21253else
21254 ac_cpp_err=yes
21255fi
21256if test -z "$ac_cpp_err"; then
21d1c967
GD
21257 # We can compile using X headers with no special include directory.
21258ac_x_includes=
90dd450c 21259else
e6cc62c6
VS
21260 echo "$as_me: failed program was:" >&5
21261sed 's/^/| /' conftest.$ac_ext >&5
21262
21263 for ac_dir in $ac_x_header_dirs; do
21264 if test -r "$ac_dir/X11/Intrinsic.h"; then
21265 ac_x_includes=$ac_dir
21266 break
21267 fi
21268done
3a922bb4 21269fi
e6cc62c6
VS
21270rm -f conftest.err conftest.$ac_ext
21271fi # $ac_x_includes = no
10f2d63a 21272
e6cc62c6 21273if test "$ac_x_libraries" = no; then
21d1c967 21274 # Check for the libraries.
21d1c967
GD
21275 # See if we find them without any special options.
21276 # Don't add to $LIBS permanently.
e6cc62c6
VS
21277 ac_save_LIBS=$LIBS
21278 LIBS="-lXt $LIBS"
21279 cat >conftest.$ac_ext <<_ACEOF
21280#line $LINENO "configure"
21281/* confdefs.h. */
21282_ACEOF
21283cat confdefs.h >>conftest.$ac_ext
21284cat >>conftest.$ac_ext <<_ACEOF
21285/* end confdefs.h. */
21286#include <X11/Intrinsic.h>
21287int
21288main ()
21289{
21290XtMalloc (0)
21291 ;
21292 return 0;
21293}
21294_ACEOF
21295rm -f conftest.$ac_objext conftest$ac_exeext
21296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21297 (eval $ac_link) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } &&
21301 { ac_try='test -s conftest$ac_exeext'
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21304 ac_status=$?
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 LIBS=$ac_save_LIBS
21d1c967
GD
21308# We can link X programs with no special library path.
21309ac_x_libraries=
3a922bb4 21310else
e6cc62c6
VS
21311 echo "$as_me: failed program was:" >&5
21312sed 's/^/| /' conftest.$ac_ext >&5
21313
21314LIBS=$ac_save_LIBS
21315for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21316do
e6cc62c6 21317 # Don't even attempt the hair of trying to link an X program!
21d1c967 21318 for ac_extension in a so sl; do
e6cc62c6 21319 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21320 ac_x_libraries=$ac_dir
21321 break 2
21322 fi
21323 done
21324done
3a922bb4 21325fi
e6cc62c6
VS
21326rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21327fi # $ac_x_libraries = no
90dd450c 21328
e6cc62c6 21329if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21330 # Didn't find X anywhere. Cache the known absence of X.
21331 ac_cv_have_x="have_x=no"
21332else
21333 # Record where we found X for the cache.
21334 ac_cv_have_x="have_x=yes \
21335 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21336fi
21d1c967 21337fi
e6cc62c6 21338
21d1c967
GD
21339 fi
21340 eval "$ac_cv_have_x"
21341fi # $with_x != no
90dd450c 21342
21d1c967 21343if test "$have_x" != yes; then
e6cc62c6
VS
21344 echo "$as_me:$LINENO: result: $have_x" >&5
21345echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21346 no_x=yes
21347else
21348 # If each of the values was on the command line, it overrides each guess.
21349 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21350 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21351 # Update the cache value to reflect the command line values.
21352 ac_cv_have_x="have_x=yes \
21353 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21354 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21355echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21356fi
90dd450c 21357
21d1c967 21358if test "$no_x" = yes; then
90dd450c 21359 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21360
21361cat >>confdefs.h <<\_ACEOF
90dd450c 21362#define X_DISPLAY_MISSING 1
e6cc62c6 21363_ACEOF
90dd450c
VZ
21364
21365 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21366else
21367 if test -n "$x_includes"; then
21368 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21369 fi
3a922bb4 21370
90dd450c
VZ
21371 # It would also be nice to do this for all -L options, not just this one.
21372 if test -n "$x_libraries"; then
21373 X_LIBS="$X_LIBS -L$x_libraries"
21374 # For Solaris; some versions of Sun CC require a space after -R and
21375 # others require no space. Words are not sufficient . . . .
e6cc62c6 21376 case `(uname -sr) 2>/dev/null` in
90dd450c 21377 "SunOS 5"*)
e6cc62c6
VS
21378 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21379echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21380 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21381 cat >conftest.$ac_ext <<_ACEOF
21382#line $LINENO "configure"
21383/* confdefs.h. */
21384_ACEOF
21385cat confdefs.h >>conftest.$ac_ext
21386cat >>conftest.$ac_ext <<_ACEOF
21387/* end confdefs.h. */
21388
21389int
21390main ()
21391{
90dd450c 21392
e6cc62c6
VS
21393 ;
21394 return 0;
21395}
21396_ACEOF
21397rm -f conftest.$ac_objext conftest$ac_exeext
21398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21399 (eval $ac_link) 2>&5
21400 ac_status=$?
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } &&
21403 { ac_try='test -s conftest$ac_exeext'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }; then
90dd450c 21409 ac_R_nospace=yes
3a922bb4 21410else
e6cc62c6
VS
21411 echo "$as_me: failed program was:" >&5
21412sed 's/^/| /' conftest.$ac_ext >&5
21413
21414ac_R_nospace=no
3a922bb4 21415fi
e6cc62c6 21416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21417 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21418 echo "$as_me:$LINENO: result: no" >&5
21419echo "${ECHO_T}no" >&6
90dd450c
VZ
21420 X_LIBS="$X_LIBS -R$x_libraries"
21421 else
21422 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21423 cat >conftest.$ac_ext <<_ACEOF
21424#line $LINENO "configure"
21425/* confdefs.h. */
21426_ACEOF
21427cat confdefs.h >>conftest.$ac_ext
21428cat >>conftest.$ac_ext <<_ACEOF
21429/* end confdefs.h. */
21430
21431int
21432main ()
21433{
6f754473 21434
e6cc62c6
VS
21435 ;
21436 return 0;
21437}
21438_ACEOF
21439rm -f conftest.$ac_objext conftest$ac_exeext
21440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21441 (eval $ac_link) 2>&5
21442 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } &&
21445 { ac_try='test -s conftest$ac_exeext'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
90dd450c
VZ
21451 ac_R_space=yes
21452else
e6cc62c6
VS
21453 echo "$as_me: failed program was:" >&5
21454sed 's/^/| /' conftest.$ac_ext >&5
21455
21456ac_R_space=no
90dd450c 21457fi
e6cc62c6 21458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21459 if test $ac_R_space = yes; then
e6cc62c6
VS
21460 echo "$as_me:$LINENO: result: yes" >&5
21461echo "${ECHO_T}yes" >&6
90dd450c
VZ
21462 X_LIBS="$X_LIBS -R $x_libraries"
21463 else
e6cc62c6
VS
21464 echo "$as_me:$LINENO: result: neither works" >&5
21465echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21466 fi
21467 fi
e6cc62c6 21468 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21469 esac
21470 fi
21471
21472 # Check for system-dependent libraries X programs must link with.
21473 # Do this before checking for the system-independent R6 libraries
21474 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21475
90dd450c
VZ
21476 if test "$ISC" = yes; then
21477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21478 else
e6cc62c6
VS
21479 # Martyn Johnson says this is needed for Ultrix, if the X
21480 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21481 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21482 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21483 cat >conftest.$ac_ext <<_ACEOF
21484#line $LINENO "configure"
21485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
21489/* end confdefs.h. */
21490
247f5006 21491/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21492#ifdef __cplusplus
21493extern "C"
21494#endif
247f5006 21495/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21496 builtin and then its argument prototype would still apply. */
21497char XOpenDisplay ();
21498int
21499main ()
21500{
21501XOpenDisplay ();
21502 ;
21503 return 0;
21504}
21505_ACEOF
21506rm -f conftest.$ac_objext conftest$ac_exeext
21507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21508 (eval $ac_link) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -s conftest$ac_exeext'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
21518 :
21519else
21520 echo "$as_me: failed program was:" >&5
21521sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21522
e6cc62c6
VS
21523echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21524echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21525if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21527else
e6cc62c6
VS
21528 ac_check_lib_save_LIBS=$LIBS
21529LIBS="-ldnet $LIBS"
21530cat >conftest.$ac_ext <<_ACEOF
21531#line $LINENO "configure"
21532/* confdefs.h. */
21533_ACEOF
21534cat confdefs.h >>conftest.$ac_ext
21535cat >>conftest.$ac_ext <<_ACEOF
21536/* end confdefs.h. */
a0b9e27f 21537
e6cc62c6
VS
21538/* Override any gcc2 internal prototype to avoid an error. */
21539#ifdef __cplusplus
21540extern "C"
21541#endif
21542/* We use char because int might match the return type of a gcc2
21543 builtin and then its argument prototype would still apply. */
21544char dnet_ntoa ();
21545int
21546main ()
21547{
21548dnet_ntoa ();
21549 ;
21550 return 0;
21551}
21552_ACEOF
21553rm -f conftest.$ac_objext conftest$ac_exeext
21554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555 (eval $ac_link) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } &&
21559 { ac_try='test -s conftest$ac_exeext'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 ac_cv_lib_dnet_dnet_ntoa=yes
21566else
21567 echo "$as_me: failed program was:" >&5
21568sed 's/^/| /' conftest.$ac_ext >&5
21569
21570ac_cv_lib_dnet_dnet_ntoa=no
21571fi
21572rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21573LIBS=$ac_check_lib_save_LIBS
21574fi
21575echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21576echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21577if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21578 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21579fi
21580
90dd450c 21581 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21582 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21583echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21584if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21585 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21586else
e6cc62c6 21587 ac_check_lib_save_LIBS=$LIBS
90dd450c 21588LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21589cat >conftest.$ac_ext <<_ACEOF
21590#line $LINENO "configure"
21591/* confdefs.h. */
21592_ACEOF
21593cat confdefs.h >>conftest.$ac_ext
21594cat >>conftest.$ac_ext <<_ACEOF
21595/* end confdefs.h. */
21596
90dd450c 21597/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21598#ifdef __cplusplus
21599extern "C"
21600#endif
90dd450c 21601/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21602 builtin and then its argument prototype would still apply. */
21603char dnet_ntoa ();
21604int
21605main ()
21606{
21607dnet_ntoa ();
21608 ;
21609 return 0;
21610}
21611_ACEOF
21612rm -f conftest.$ac_objext conftest$ac_exeext
21613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21614 (eval $ac_link) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } &&
21618 { ac_try='test -s conftest$ac_exeext'
21619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620 (eval $ac_try) 2>&5
21621 ac_status=$?
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); }; }; then
21624 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21625else
21626 echo "$as_me: failed program was:" >&5
21627sed 's/^/| /' conftest.$ac_ext >&5
21628
21629ac_cv_lib_dnet_stub_dnet_ntoa=no
21630fi
21631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21632LIBS=$ac_check_lib_save_LIBS
21633fi
21634echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21635echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21636if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21637 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21638fi
21639
90dd450c 21640 fi
e6cc62c6
VS
21641fi
21642rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21643 LIBS="$ac_xsave_LIBS"
978f1259 21644
90dd450c
VZ
21645 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21646 # to get the SysV transport functions.
e6cc62c6 21647 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21648 # needs -lnsl.
21649 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21650 # on Irix 5.2, according to T.E. Dickey.
21651 # The functions gethostbyname, getservbyname, and inet_addr are
21652 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21653 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21654echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21655if test "${ac_cv_func_gethostbyname+set}" = set; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21657else
21658 cat >conftest.$ac_ext <<_ACEOF
21659#line $LINENO "configure"
21660/* confdefs.h. */
21661_ACEOF
21662cat confdefs.h >>conftest.$ac_ext
21663cat >>conftest.$ac_ext <<_ACEOF
21664/* end confdefs.h. */
90dd450c 21665/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21666 which can conflict with char gethostbyname (); below.
21667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21668 <limits.h> exists even on freestanding compilers. */
21669#ifdef __STDC__
21670# include <limits.h>
21671#else
21672# include <assert.h>
21673#endif
90dd450c 21674/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21675#ifdef __cplusplus
21676extern "C"
21677{
21678#endif
90dd450c 21679/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21680 builtin and then its argument prototype would still apply. */
21681char gethostbyname ();
90dd450c
VZ
21682/* The GNU C library defines this for functions which it implements
21683 to always fail with ENOSYS. Some functions are actually named
21684 something starting with __ and the normal name is an alias. */
21685#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21686choke me
21687#else
e6cc62c6
VS
21688char (*f) () = gethostbyname;
21689#endif
21690#ifdef __cplusplus
21691}
90dd450c 21692#endif
978f1259 21693
e6cc62c6
VS
21694int
21695main ()
21696{
21697return f != gethostbyname;
21698 ;
21699 return 0;
21700}
21701_ACEOF
21702rm -f conftest.$ac_objext conftest$ac_exeext
21703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21704 (eval $ac_link) 2>&5
21705 ac_status=$?
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
21708 { ac_try='test -s conftest$ac_exeext'
21709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710 (eval $ac_try) 2>&5
21711 ac_status=$?
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; }; then
21714 ac_cv_func_gethostbyname=yes
21715else
21716 echo "$as_me: failed program was:" >&5
21717sed 's/^/| /' conftest.$ac_ext >&5
21718
21719ac_cv_func_gethostbyname=no
21720fi
21721rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21722fi
21723echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21724echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21725
90dd450c 21726 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21727 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21728echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21729if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21731else
e6cc62c6 21732 ac_check_lib_save_LIBS=$LIBS
90dd450c 21733LIBS="-lnsl $LIBS"
e6cc62c6
VS
21734cat >conftest.$ac_ext <<_ACEOF
21735#line $LINENO "configure"
21736/* confdefs.h. */
21737_ACEOF
21738cat confdefs.h >>conftest.$ac_ext
21739cat >>conftest.$ac_ext <<_ACEOF
21740/* end confdefs.h. */
21741
90dd450c 21742/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21743#ifdef __cplusplus
21744extern "C"
21745#endif
90dd450c 21746/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21747 builtin and then its argument prototype would still apply. */
21748char gethostbyname ();
21749int
21750main ()
21751{
21752gethostbyname ();
21753 ;
21754 return 0;
21755}
21756_ACEOF
21757rm -f conftest.$ac_objext conftest$ac_exeext
21758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21759 (eval $ac_link) 2>&5
21760 ac_status=$?
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } &&
21763 { ac_try='test -s conftest$ac_exeext'
21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765 (eval $ac_try) 2>&5
21766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; }; then
21769 ac_cv_lib_nsl_gethostbyname=yes
21770else
21771 echo "$as_me: failed program was:" >&5
21772sed 's/^/| /' conftest.$ac_ext >&5
21773
21774ac_cv_lib_nsl_gethostbyname=no
21775fi
21776rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21777LIBS=$ac_check_lib_save_LIBS
21778fi
21779echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21780echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21781if test $ac_cv_lib_nsl_gethostbyname = yes; then
21782 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21783fi
247f5006 21784
e6cc62c6
VS
21785 if test $ac_cv_lib_nsl_gethostbyname = no; then
21786 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21787echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21788if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21789 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21790else
e6cc62c6
VS
21791 ac_check_lib_save_LIBS=$LIBS
21792LIBS="-lbsd $LIBS"
21793cat >conftest.$ac_ext <<_ACEOF
21794#line $LINENO "configure"
21795/* confdefs.h. */
21796_ACEOF
21797cat confdefs.h >>conftest.$ac_ext
21798cat >>conftest.$ac_ext <<_ACEOF
21799/* end confdefs.h. */
21800
21801/* Override any gcc2 internal prototype to avoid an error. */
21802#ifdef __cplusplus
21803extern "C"
21804#endif
21805/* We use char because int might match the return type of a gcc2
21806 builtin and then its argument prototype would still apply. */
21807char gethostbyname ();
21808int
21809main ()
21810{
21811gethostbyname ();
21812 ;
21813 return 0;
21814}
21815_ACEOF
21816rm -f conftest.$ac_objext conftest$ac_exeext
21817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21818 (eval $ac_link) 2>&5
21819 ac_status=$?
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } &&
21822 { ac_try='test -s conftest$ac_exeext'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
21828 ac_cv_lib_bsd_gethostbyname=yes
21829else
21830 echo "$as_me: failed program was:" >&5
21831sed 's/^/| /' conftest.$ac_ext >&5
21832
21833ac_cv_lib_bsd_gethostbyname=no
21834fi
21835rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21836LIBS=$ac_check_lib_save_LIBS
21837fi
21838echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21839echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21840if test $ac_cv_lib_bsd_gethostbyname = yes; then
21841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21842fi
b12915c1 21843
e6cc62c6 21844 fi
90dd450c
VZ
21845 fi
21846
21847 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21848 # socket/setsockopt and other routines are undefined under SCO ODT
21849 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21850 # on later versions), says Simon Leinen: it contains gethostby*
21851 # variants that don't use the name server (or something). -lsocket
21852 # must be given before -lnsl if both are needed. We assume that
21853 # if connect needs -lnsl, so does gethostbyname.
21854 echo "$as_me:$LINENO: checking for connect" >&5
21855echo $ECHO_N "checking for connect... $ECHO_C" >&6
21856if test "${ac_cv_func_connect+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858else
21859 cat >conftest.$ac_ext <<_ACEOF
21860#line $LINENO "configure"
21861/* confdefs.h. */
21862_ACEOF
21863cat confdefs.h >>conftest.$ac_ext
21864cat >>conftest.$ac_ext <<_ACEOF
21865/* end confdefs.h. */
90dd450c 21866/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21867 which can conflict with char connect (); below.
21868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21869 <limits.h> exists even on freestanding compilers. */
21870#ifdef __STDC__
21871# include <limits.h>
21872#else
21873# include <assert.h>
21874#endif
90dd450c 21875/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21876#ifdef __cplusplus
21877extern "C"
21878{
21879#endif
90dd450c 21880/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21881 builtin and then its argument prototype would still apply. */
21882char connect ();
90dd450c
VZ
21883/* The GNU C library defines this for functions which it implements
21884 to always fail with ENOSYS. Some functions are actually named
21885 something starting with __ and the normal name is an alias. */
21886#if defined (__stub_connect) || defined (__stub___connect)
21887choke me
21888#else
e6cc62c6
VS
21889char (*f) () = connect;
21890#endif
21891#ifdef __cplusplus
21892}
90dd450c
VZ
21893#endif
21894
e6cc62c6
VS
21895int
21896main ()
21897{
21898return f != connect;
21899 ;
21900 return 0;
21901}
21902_ACEOF
21903rm -f conftest.$ac_objext conftest$ac_exeext
21904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21905 (eval $ac_link) 2>&5
21906 ac_status=$?
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } &&
21909 { ac_try='test -s conftest$ac_exeext'
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; }; then
21915 ac_cv_func_connect=yes
21916else
21917 echo "$as_me: failed program was:" >&5
21918sed 's/^/| /' conftest.$ac_ext >&5
21919
21920ac_cv_func_connect=no
21921fi
21922rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21923fi
21924echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21925echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21926
90dd450c 21927 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21928 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21929echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21930if test "${ac_cv_lib_socket_connect+set}" = set; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21932else
e6cc62c6 21933 ac_check_lib_save_LIBS=$LIBS
90dd450c 21934LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21935cat >conftest.$ac_ext <<_ACEOF
21936#line $LINENO "configure"
21937/* confdefs.h. */
21938_ACEOF
21939cat confdefs.h >>conftest.$ac_ext
21940cat >>conftest.$ac_ext <<_ACEOF
21941/* end confdefs.h. */
21942
90dd450c 21943/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21944#ifdef __cplusplus
21945extern "C"
21946#endif
90dd450c 21947/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21948 builtin and then its argument prototype would still apply. */
21949char connect ();
21950int
21951main ()
21952{
21953connect ();
21954 ;
21955 return 0;
21956}
21957_ACEOF
21958rm -f conftest.$ac_objext conftest$ac_exeext
21959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21960 (eval $ac_link) 2>&5
21961 ac_status=$?
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } &&
21964 { ac_try='test -s conftest$ac_exeext'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 ac_cv_lib_socket_connect=yes
21971else
21972 echo "$as_me: failed program was:" >&5
21973sed 's/^/| /' conftest.$ac_ext >&5
21974
21975ac_cv_lib_socket_connect=no
21976fi
21977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21978LIBS=$ac_check_lib_save_LIBS
21979fi
21980echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21981echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21982if test $ac_cv_lib_socket_connect = yes; then
90dd450c 21983 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 21984fi
77e13408 21985
90dd450c 21986 fi
25d0687a 21987
e6cc62c6
VS
21988 # Guillermo Gomez says -lposix is necessary on A/UX.
21989 echo "$as_me:$LINENO: checking for remove" >&5
21990echo $ECHO_N "checking for remove... $ECHO_C" >&6
21991if test "${ac_cv_func_remove+set}" = set; then
21992 echo $ECHO_N "(cached) $ECHO_C" >&6
21993else
21994 cat >conftest.$ac_ext <<_ACEOF
21995#line $LINENO "configure"
21996/* confdefs.h. */
21997_ACEOF
21998cat confdefs.h >>conftest.$ac_ext
21999cat >>conftest.$ac_ext <<_ACEOF
22000/* end confdefs.h. */
90dd450c 22001/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22002 which can conflict with char remove (); below.
22003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22004 <limits.h> exists even on freestanding compilers. */
22005#ifdef __STDC__
22006# include <limits.h>
22007#else
22008# include <assert.h>
22009#endif
90dd450c 22010/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22011#ifdef __cplusplus
22012extern "C"
22013{
22014#endif
90dd450c 22015/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22016 builtin and then its argument prototype would still apply. */
22017char remove ();
90dd450c
VZ
22018/* The GNU C library defines this for functions which it implements
22019 to always fail with ENOSYS. Some functions are actually named
22020 something starting with __ and the normal name is an alias. */
22021#if defined (__stub_remove) || defined (__stub___remove)
22022choke me
22023#else
e6cc62c6
VS
22024char (*f) () = remove;
22025#endif
22026#ifdef __cplusplus
22027}
90dd450c 22028#endif
55e80573 22029
e6cc62c6
VS
22030int
22031main ()
22032{
22033return f != remove;
22034 ;
22035 return 0;
22036}
22037_ACEOF
22038rm -f conftest.$ac_objext conftest$ac_exeext
22039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22040 (eval $ac_link) 2>&5
22041 ac_status=$?
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } &&
22044 { ac_try='test -s conftest$ac_exeext'
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; }; then
22050 ac_cv_func_remove=yes
22051else
22052 echo "$as_me: failed program was:" >&5
22053sed 's/^/| /' conftest.$ac_ext >&5
22054
22055ac_cv_func_remove=no
22056fi
22057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22058fi
22059echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22060echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22061
90dd450c 22062 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22063 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22064echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22065if test "${ac_cv_lib_posix_remove+set}" = set; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22067else
e6cc62c6 22068 ac_check_lib_save_LIBS=$LIBS
90dd450c 22069LIBS="-lposix $LIBS"
e6cc62c6
VS
22070cat >conftest.$ac_ext <<_ACEOF
22071#line $LINENO "configure"
22072/* confdefs.h. */
22073_ACEOF
22074cat confdefs.h >>conftest.$ac_ext
22075cat >>conftest.$ac_ext <<_ACEOF
22076/* end confdefs.h. */
22077
90dd450c 22078/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22079#ifdef __cplusplus
22080extern "C"
22081#endif
90dd450c 22082/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22083 builtin and then its argument prototype would still apply. */
22084char remove ();
22085int
22086main ()
22087{
22088remove ();
22089 ;
22090 return 0;
22091}
22092_ACEOF
22093rm -f conftest.$ac_objext conftest$ac_exeext
22094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22095 (eval $ac_link) 2>&5
22096 ac_status=$?
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } &&
22099 { ac_try='test -s conftest$ac_exeext'
22100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101 (eval $ac_try) 2>&5
22102 ac_status=$?
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); }; }; then
22105 ac_cv_lib_posix_remove=yes
22106else
22107 echo "$as_me: failed program was:" >&5
22108sed 's/^/| /' conftest.$ac_ext >&5
22109
22110ac_cv_lib_posix_remove=no
22111fi
22112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22113LIBS=$ac_check_lib_save_LIBS
22114fi
22115echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22116echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22117if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22118 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22119fi
f6bcfd97 22120
6fa882bd
RR
22121 fi
22122
90dd450c 22123 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22124 echo "$as_me:$LINENO: checking for shmat" >&5
22125echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22126if test "${ac_cv_func_shmat+set}" = set; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22128else
22129 cat >conftest.$ac_ext <<_ACEOF
22130#line $LINENO "configure"
22131/* confdefs.h. */
22132_ACEOF
22133cat confdefs.h >>conftest.$ac_ext
22134cat >>conftest.$ac_ext <<_ACEOF
22135/* end confdefs.h. */
90dd450c 22136/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22137 which can conflict with char shmat (); below.
22138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22139 <limits.h> exists even on freestanding compilers. */
22140#ifdef __STDC__
22141# include <limits.h>
22142#else
22143# include <assert.h>
22144#endif
90dd450c 22145/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22146#ifdef __cplusplus
22147extern "C"
22148{
22149#endif
90dd450c 22150/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22151 builtin and then its argument prototype would still apply. */
22152char shmat ();
90dd450c
VZ
22153/* The GNU C library defines this for functions which it implements
22154 to always fail with ENOSYS. Some functions are actually named
22155 something starting with __ and the normal name is an alias. */
22156#if defined (__stub_shmat) || defined (__stub___shmat)
22157choke me
22158#else
e6cc62c6
VS
22159char (*f) () = shmat;
22160#endif
22161#ifdef __cplusplus
22162}
90dd450c 22163#endif
10f2d63a 22164
e6cc62c6
VS
22165int
22166main ()
22167{
22168return f != shmat;
22169 ;
22170 return 0;
22171}
22172_ACEOF
22173rm -f conftest.$ac_objext conftest$ac_exeext
22174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22175 (eval $ac_link) 2>&5
22176 ac_status=$?
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } &&
22179 { ac_try='test -s conftest$ac_exeext'
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
22185 ac_cv_func_shmat=yes
22186else
22187 echo "$as_me: failed program was:" >&5
22188sed 's/^/| /' conftest.$ac_ext >&5
22189
22190ac_cv_func_shmat=no
22191fi
22192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22193fi
22194echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22195echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22196
90dd450c 22197 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22198 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22199echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22200if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22202else
e6cc62c6 22203 ac_check_lib_save_LIBS=$LIBS
90dd450c 22204LIBS="-lipc $LIBS"
e6cc62c6
VS
22205cat >conftest.$ac_ext <<_ACEOF
22206#line $LINENO "configure"
22207/* confdefs.h. */
22208_ACEOF
22209cat confdefs.h >>conftest.$ac_ext
22210cat >>conftest.$ac_ext <<_ACEOF
22211/* end confdefs.h. */
22212
8284b0c5 22213/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22214#ifdef __cplusplus
22215extern "C"
22216#endif
90dd450c 22217/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22218 builtin and then its argument prototype would still apply. */
22219char shmat ();
22220int
22221main ()
22222{
22223shmat ();
22224 ;
22225 return 0;
22226}
22227_ACEOF
22228rm -f conftest.$ac_objext conftest$ac_exeext
22229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22230 (eval $ac_link) 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } &&
22234 { ac_try='test -s conftest$ac_exeext'
22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236 (eval $ac_try) 2>&5
22237 ac_status=$?
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); }; }; then
22240 ac_cv_lib_ipc_shmat=yes
22241else
22242 echo "$as_me: failed program was:" >&5
22243sed 's/^/| /' conftest.$ac_ext >&5
22244
22245ac_cv_lib_ipc_shmat=no
22246fi
22247rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22248LIBS=$ac_check_lib_save_LIBS
22249fi
22250echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22251echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22252if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22253 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22254fi
22255
d558c907 22256 fi
90dd450c 22257 fi
3a922bb4 22258
90dd450c 22259 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22260 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22261 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22262 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22263 # check for ICE first), but we must link in the order -lSM -lICE or
22264 # we get undefined symbols. So assume we have SM if we have ICE.
22265 # These have to be linked with before -lX11, unlike the other
22266 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22267 # John Interrante, Karl Berry
22268 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22269echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22270if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22271 echo $ECHO_N "(cached) $ECHO_C" >&6
22272else
22273 ac_check_lib_save_LIBS=$LIBS
f09359cf 22274LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22275cat >conftest.$ac_ext <<_ACEOF
22276#line $LINENO "configure"
22277/* confdefs.h. */
22278_ACEOF
22279cat confdefs.h >>conftest.$ac_ext
22280cat >>conftest.$ac_ext <<_ACEOF
22281/* end confdefs.h. */
22282
90dd450c 22283/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22284#ifdef __cplusplus
22285extern "C"
22286#endif
90dd450c 22287/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22288 builtin and then its argument prototype would still apply. */
22289char IceConnectionNumber ();
22290int
22291main ()
22292{
22293IceConnectionNumber ();
22294 ;
22295 return 0;
22296}
22297_ACEOF
22298rm -f conftest.$ac_objext conftest$ac_exeext
22299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22300 (eval $ac_link) 2>&5
22301 ac_status=$?
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } &&
22304 { ac_try='test -s conftest$ac_exeext'
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; }; then
22310 ac_cv_lib_ICE_IceConnectionNumber=yes
22311else
22312 echo "$as_me: failed program was:" >&5
22313sed 's/^/| /' conftest.$ac_ext >&5
22314
22315ac_cv_lib_ICE_IceConnectionNumber=no
22316fi
22317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22318LIBS=$ac_check_lib_save_LIBS
22319fi
22320echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22321echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22322if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22323 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22324fi
10f2d63a 22325
e6cc62c6 22326 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22327
22328fi
22329
8284b0c5 22330
90dd450c 22331 if test "$no_x" = "yes"; then
e6cc62c6
VS
22332 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22333echo "$as_me: error: X11 not found" >&2;}
22334 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22335 fi
22336
22337 GUI_TK_LIBRARY="$X_LIBS"
22338 TOOLKIT_INCLUDE="$X_CFLAGS"
22339 AFMINSTALL=afminstall
22340 COMPILED_X_PROGRAM=0
22341
21d1c967 22342 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22343 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22344echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22345 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22346 echo "$as_me:$LINENO: result: not found" >&5
22347echo "${ECHO_T}not found" >&6
22348 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22349echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22350 { (exit 1); exit 1; }; }
90dd450c 22351 else
e6cc62c6
VS
22352 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22353echo "${ECHO_T}$MICROWIN" >&6
22354 cat >>confdefs.h <<\_ACEOF
21d1c967 22355#define wxUSE_NANOX 1
e6cc62c6 22356_ACEOF
21d1c967 22357
90dd450c
VZ
22358 fi
22359 fi
22360
22361 xpm_link=
e6cc62c6
VS
22362 echo "$as_me:$LINENO: checking for Xpm library" >&5
22363echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22364
90dd450c 22365ac_find_libraries=
2b5f62a0 22366for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22367 do
22368 for ac_extension in a so sl dylib; do
22369 if test -f "$ac_dir/libXpm.$ac_extension"; then
22370 ac_find_libraries=$ac_dir
22371 break 2
22372 fi
22373 done
22374 done
22375
22376 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22377
90dd450c
VZ
22378 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22379 result=$?
22380 if test $result = 0; then
22381 ac_path_to_link=""
22382 else
22383 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22384 fi
90dd450c 22385
21d1c967
GD
22386 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22387 xpm_link=" -lXpm"
e6cc62c6 22388 cat >>confdefs.h <<\_ACEOF
21d1c967 22389#define wxHAVE_LIB_XPM 1
e6cc62c6 22390_ACEOF
90dd450c 22391
e6cc62c6
VS
22392 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22393echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22394 else
e6cc62c6
VS
22395 cat >conftest.$ac_ext <<_ACEOF
22396#line $LINENO "configure"
22397/* confdefs.h. */
22398_ACEOF
22399cat confdefs.h >>conftest.$ac_ext
22400cat >>conftest.$ac_ext <<_ACEOF
22401/* end confdefs.h. */
90dd450c 22402
21d1c967 22403 #include <X11/xpm.h>
e6cc62c6
VS
22404
22405int
22406main ()
22407{
6f72b082 22408
21d1c967
GD
22409 int version;
22410 version = XpmLibraryVersion();
e6cc62c6
VS
22411
22412 ;
22413 return 0;
22414}
22415_ACEOF
22416rm -f conftest.$ac_objext
22417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22418 (eval $ac_compile) 2>&5
22419 ac_status=$?
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } &&
22422 { ac_try='test -s conftest.$ac_objext'
22423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424 (eval $ac_try) 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; }; then
22428
21d1c967 22429 xpm_link=" -lXpm"
e6cc62c6 22430 cat >>confdefs.h <<\_ACEOF
21d1c967 22431#define wxHAVE_LIB_XPM 1
e6cc62c6 22432_ACEOF
90dd450c 22433
e6cc62c6
VS
22434 echo "$as_me:$LINENO: result: found in default search path" >&5
22435echo "${ECHO_T}found in default search path" >&6
21d1c967 22436 COMPILED_X_PROGRAM=0
e6cc62c6 22437
21d1c967 22438else
e6cc62c6
VS
22439 echo "$as_me: failed program was:" >&5
22440sed 's/^/| /' conftest.$ac_ext >&5
22441
22442
22443 echo "$as_me:$LINENO: result: no" >&5
22444echo "${ECHO_T}no" >&6
22445 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22446echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22447
22448
6f72b082 22449fi
e6cc62c6 22450rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22451 fi
90dd450c 22452
e6cc62c6
VS
22453 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22454echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22455if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22456 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22457else
e6cc62c6 22458 ac_check_lib_save_LIBS=$LIBS
f7f78039 22459LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22460cat >conftest.$ac_ext <<_ACEOF
22461#line $LINENO "configure"
22462/* confdefs.h. */
22463_ACEOF
22464cat confdefs.h >>conftest.$ac_ext
22465cat >>conftest.$ac_ext <<_ACEOF
22466/* end confdefs.h. */
22467
f7f78039 22468/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22469#ifdef __cplusplus
22470extern "C"
22471#endif
f7f78039 22472/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22473 builtin and then its argument prototype would still apply. */
22474char XShapeQueryExtension ();
22475int
22476main ()
22477{
22478XShapeQueryExtension ();
22479 ;
22480 return 0;
22481}
22482_ACEOF
22483rm -f conftest.$ac_objext conftest$ac_exeext
22484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22485 (eval $ac_link) 2>&5
22486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } &&
22489 { ac_try='test -s conftest$ac_exeext'
22490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22491 (eval $ac_try) 2>&5
22492 ac_status=$?
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); }; }; then
22495 ac_cv_lib_Xext_XShapeQueryExtension=yes
22496else
22497 echo "$as_me: failed program was:" >&5
22498sed 's/^/| /' conftest.$ac_ext >&5
22499
22500ac_cv_lib_Xext_XShapeQueryExtension=no
22501fi
22502rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22503LIBS=$ac_check_lib_save_LIBS
22504fi
22505echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22506echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22507if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22508
f7f78039
MB
22509 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22510 wxHAVE_XEXT_LIB=1
e6cc62c6 22511
f7f78039
MB
22512fi
22513
22514
2b5f62a0 22515 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22516
2b5f62a0 22517 succeeded=no
90dd450c 22518
2b5f62a0
VZ
22519 if test -z "$PKG_CONFIG"; then
22520 # Extract the first word of "pkg-config", so it can be a program name with args.
22521set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22522echo "$as_me:$LINENO: checking for $ac_word" >&5
22523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22524if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22526else
e6cc62c6
VS
22527 case $PKG_CONFIG in
22528 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22530 ;;
2b5f62a0 22531 *)
e6cc62c6
VS
22532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22533for as_dir in $PATH
22534do
22535 IFS=$as_save_IFS
22536 test -z "$as_dir" && as_dir=.
22537 for ac_exec_ext in '' $ac_executable_extensions; do
22538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22539 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22541 break 2
22542 fi
22543done
22544done
22545
2b5f62a0
VZ
22546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22547 ;;
22548esac
22549fi
e6cc62c6
VS
22550PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22551
2b5f62a0 22552if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22553 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22554echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22555else
e6cc62c6
VS
22556 echo "$as_me:$LINENO: result: no" >&5
22557echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22558fi
22559
22560 fi
22561
22562 if test "$PKG_CONFIG" = "no" ; then
22563 echo "*** The pkg-config script could not be found. Make sure it is"
22564 echo "*** in your path, or set the PKG_CONFIG environment variable"
22565 echo "*** to the full path to pkg-config."
22566 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22567 else
22568 PKG_CONFIG_MIN_VERSION=0.9.0
22569 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22570 echo "$as_me:$LINENO: checking for pangox" >&5
22571echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22572
22573 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22574 echo "$as_me:$LINENO: result: yes" >&5
22575echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22576 succeeded=yes
22577
e6cc62c6
VS
22578 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22579echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22580 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22581 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22582echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22583
e6cc62c6
VS
22584 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22585echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22586 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22587 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22588echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22589 else
22590 PANGOX_CFLAGS=""
22591 PANGOX_LIBS=""
e6cc62c6 22592 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22593 ## do set a variable so people can do so.
22594 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22595
2b5f62a0
VZ
22596 fi
22597
e6cc62c6
VS
22598
22599
2b5f62a0
VZ
22600 else
22601 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22602 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22603 fi
22604 fi
22605
22606 if test $succeeded = yes; then
e6cc62c6 22607
2b5f62a0 22608 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22609 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22610
2b5f62a0 22611 else
e6cc62c6
VS
22612
22613 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22614echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22615 { (exit 1); exit 1; }; }
22616
22617
2b5f62a0
VZ
22618 fi
22619
e6cc62c6 22620
2b5f62a0
VZ
22621 succeeded=no
22622
22623 if test -z "$PKG_CONFIG"; then
22624 # Extract the first word of "pkg-config", so it can be a program name with args.
22625set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22626echo "$as_me:$LINENO: checking for $ac_word" >&5
22627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22628if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22629 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22630else
e6cc62c6
VS
22631 case $PKG_CONFIG in
22632 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22633 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22634 ;;
2b5f62a0 22635 *)
e6cc62c6
VS
22636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22637for as_dir in $PATH
22638do
22639 IFS=$as_save_IFS
22640 test -z "$as_dir" && as_dir=.
22641 for ac_exec_ext in '' $ac_executable_extensions; do
22642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22643 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22645 break 2
22646 fi
22647done
22648done
22649
2b5f62a0
VZ
22650 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22651 ;;
22652esac
22653fi
e6cc62c6
VS
22654PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22655
2b5f62a0 22656if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22657 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22658echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22659else
e6cc62c6
VS
22660 echo "$as_me:$LINENO: result: no" >&5
22661echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22662fi
22663
22664 fi
22665
22666 if test "$PKG_CONFIG" = "no" ; then
22667 echo "*** The pkg-config script could not be found. Make sure it is"
22668 echo "*** in your path, or set the PKG_CONFIG environment variable"
22669 echo "*** to the full path to pkg-config."
22670 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22671 else
22672 PKG_CONFIG_MIN_VERSION=0.9.0
22673 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22674 echo "$as_me:$LINENO: checking for pangoft2" >&5
22675echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22676
22677 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22678 echo "$as_me:$LINENO: result: yes" >&5
22679echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22680 succeeded=yes
22681
e6cc62c6
VS
22682 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22683echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22684 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22685 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22686echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22687
e6cc62c6
VS
22688 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22689echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22690 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22691 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22692echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22693 else
22694 PANGOFT2_CFLAGS=""
22695 PANGOFT2_LIBS=""
e6cc62c6 22696 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22697 ## do set a variable so people can do so.
22698 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22699
2b5f62a0
VZ
22700 fi
22701
e6cc62c6
VS
22702
22703
2b5f62a0
VZ
22704 else
22705 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22706 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22707 fi
22708 fi
22709
22710 if test $succeeded = yes; then
e6cc62c6 22711
2b5f62a0 22712 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22713 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22714
2b5f62a0 22715 else
e6cc62c6
VS
22716
22717 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22718echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22719 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22720
22721
2b5f62a0
VZ
22722 fi
22723
e6cc62c6 22724
2b5f62a0
VZ
22725 succeeded=no
22726
22727 if test -z "$PKG_CONFIG"; then
22728 # Extract the first word of "pkg-config", so it can be a program name with args.
22729set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22730echo "$as_me:$LINENO: checking for $ac_word" >&5
22731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22732if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22733 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22734else
e6cc62c6
VS
22735 case $PKG_CONFIG in
22736 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22738 ;;
2b5f62a0 22739 *)
e6cc62c6
VS
22740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22741for as_dir in $PATH
22742do
22743 IFS=$as_save_IFS
22744 test -z "$as_dir" && as_dir=.
22745 for ac_exec_ext in '' $ac_executable_extensions; do
22746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22749 break 2
22750 fi
22751done
22752done
22753
2b5f62a0
VZ
22754 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22755 ;;
22756esac
22757fi
e6cc62c6
VS
22758PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22759
2b5f62a0 22760if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22761 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22762echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22763else
e6cc62c6
VS
22764 echo "$as_me:$LINENO: result: no" >&5
22765echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22766fi
22767
22768 fi
22769
22770 if test "$PKG_CONFIG" = "no" ; then
22771 echo "*** The pkg-config script could not be found. Make sure it is"
22772 echo "*** in your path, or set the PKG_CONFIG environment variable"
22773 echo "*** to the full path to pkg-config."
22774 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22775 else
22776 PKG_CONFIG_MIN_VERSION=0.9.0
22777 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22778 echo "$as_me:$LINENO: checking for pangoxft" >&5
22779echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22780
22781 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22782 echo "$as_me:$LINENO: result: yes" >&5
22783echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22784 succeeded=yes
22785
e6cc62c6
VS
22786 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22787echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22788 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22789 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22790echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22791
e6cc62c6
VS
22792 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22793echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22794 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22795 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22796echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22797 else
22798 PANGOXFT_CFLAGS=""
22799 PANGOXFT_LIBS=""
e6cc62c6 22800 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22801 ## do set a variable so people can do so.
22802 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22803
2b5f62a0
VZ
22804 fi
22805
e6cc62c6
VS
22806
22807
2b5f62a0
VZ
22808 else
22809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22811 fi
22812 fi
22813
22814 if test $succeeded = yes; then
e6cc62c6 22815
2b5f62a0 22816 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22817 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22818
2b5f62a0 22819 else
e6cc62c6
VS
22820
22821 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22822echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22823
22824
2b5f62a0
VZ
22825 fi
22826
22827 fi
22828
22829 wxUSE_UNIVERSAL="yes"
22830
22831 if test "$wxUSE_NANOX" = "yes"; then
22832 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22833 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
22834 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22835 else
22836 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22837 fi
22838
22839 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22840 TOOLKIT=X11
22841 GUIDIST=X11_DIST
22842 fi
22843
21d1c967
GD
22844 if test "$wxUSE_MOTIF" = 1; then
22845 if test "$no_x" = yes; then
22846 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22847
22848cat >>confdefs.h <<\_ACEOF
21d1c967 22849#define X_DISPLAY_MISSING 1
e6cc62c6 22850_ACEOF
21d1c967
GD
22851
22852 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22853else
22854 if test -n "$x_includes"; then
22855 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22856 fi
22857
21d1c967
GD
22858 # It would also be nice to do this for all -L options, not just this one.
22859 if test -n "$x_libraries"; then
22860 X_LIBS="$X_LIBS -L$x_libraries"
22861 # For Solaris; some versions of Sun CC require a space after -R and
22862 # others require no space. Words are not sufficient . . . .
e6cc62c6 22863 case `(uname -sr) 2>/dev/null` in
21d1c967 22864 "SunOS 5"*)
e6cc62c6
VS
22865 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22866echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22867 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22868 cat >conftest.$ac_ext <<_ACEOF
22869#line $LINENO "configure"
22870/* confdefs.h. */
22871_ACEOF
22872cat confdefs.h >>conftest.$ac_ext
22873cat >>conftest.$ac_ext <<_ACEOF
22874/* end confdefs.h. */
22875
22876int
22877main ()
22878{
21d1c967 22879
e6cc62c6
VS
22880 ;
22881 return 0;
22882}
22883_ACEOF
22884rm -f conftest.$ac_objext conftest$ac_exeext
22885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22886 (eval $ac_link) 2>&5
22887 ac_status=$?
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } &&
22890 { ac_try='test -s conftest$ac_exeext'
22891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892 (eval $ac_try) 2>&5
22893 ac_status=$?
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); }; }; then
21d1c967 22896 ac_R_nospace=yes
698dcdb6 22897else
e6cc62c6
VS
22898 echo "$as_me: failed program was:" >&5
22899sed 's/^/| /' conftest.$ac_ext >&5
22900
22901ac_R_nospace=no
10f2d63a 22902fi
e6cc62c6 22903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22904 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22905 echo "$as_me:$LINENO: result: no" >&5
22906echo "${ECHO_T}no" >&6
21d1c967
GD
22907 X_LIBS="$X_LIBS -R$x_libraries"
22908 else
22909 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22910 cat >conftest.$ac_ext <<_ACEOF
22911#line $LINENO "configure"
22912/* confdefs.h. */
22913_ACEOF
22914cat confdefs.h >>conftest.$ac_ext
22915cat >>conftest.$ac_ext <<_ACEOF
22916/* end confdefs.h. */
22917
22918int
22919main ()
22920{
f0c87536 22921
e6cc62c6
VS
22922 ;
22923 return 0;
22924}
22925_ACEOF
22926rm -f conftest.$ac_objext conftest$ac_exeext
22927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22928 (eval $ac_link) 2>&5
22929 ac_status=$?
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } &&
22932 { ac_try='test -s conftest$ac_exeext'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22935 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; }; then
21d1c967
GD
22938 ac_R_space=yes
22939else
e6cc62c6
VS
22940 echo "$as_me: failed program was:" >&5
22941sed 's/^/| /' conftest.$ac_ext >&5
22942
22943ac_R_space=no
21d1c967 22944fi
e6cc62c6 22945rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22946 if test $ac_R_space = yes; then
e6cc62c6
VS
22947 echo "$as_me:$LINENO: result: yes" >&5
22948echo "${ECHO_T}yes" >&6
21d1c967
GD
22949 X_LIBS="$X_LIBS -R $x_libraries"
22950 else
e6cc62c6
VS
22951 echo "$as_me:$LINENO: result: neither works" >&5
22952echo "${ECHO_T}neither works" >&6
21d1c967
GD
22953 fi
22954 fi
e6cc62c6 22955 LIBS=$ac_xsave_LIBS
21d1c967
GD
22956 esac
22957 fi
90dd450c 22958
21d1c967
GD
22959 # Check for system-dependent libraries X programs must link with.
22960 # Do this before checking for the system-independent R6 libraries
22961 # (-lICE), since we may need -lsocket or whatever for X linking.
22962
22963 if test "$ISC" = yes; then
22964 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22965 else
e6cc62c6
VS
22966 # Martyn Johnson says this is needed for Ultrix, if the X
22967 # libraries were built with DECnet support. And Karl Berry says
21d1c967 22968 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22969 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22970 cat >conftest.$ac_ext <<_ACEOF
22971#line $LINENO "configure"
22972/* confdefs.h. */
22973_ACEOF
22974cat confdefs.h >>conftest.$ac_ext
22975cat >>conftest.$ac_ext <<_ACEOF
22976/* end confdefs.h. */
22977
247f5006 22978/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22979#ifdef __cplusplus
22980extern "C"
22981#endif
247f5006 22982/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22983 builtin and then its argument prototype would still apply. */
22984char XOpenDisplay ();
22985int
22986main ()
22987{
22988XOpenDisplay ();
22989 ;
22990 return 0;
22991}
22992_ACEOF
22993rm -f conftest.$ac_objext conftest$ac_exeext
22994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22995 (eval $ac_link) 2>&5
22996 ac_status=$?
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } &&
22999 { ac_try='test -s conftest$ac_exeext'
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23002 ac_status=$?
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; }; then
23005 :
23006else
23007 echo "$as_me: failed program was:" >&5
23008sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23009
e6cc62c6
VS
23010echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23011echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23012if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23014else
e6cc62c6
VS
23015 ac_check_lib_save_LIBS=$LIBS
23016LIBS="-ldnet $LIBS"
23017cat >conftest.$ac_ext <<_ACEOF
23018#line $LINENO "configure"
23019/* confdefs.h. */
23020_ACEOF
23021cat confdefs.h >>conftest.$ac_ext
23022cat >>conftest.$ac_ext <<_ACEOF
23023/* end confdefs.h. */
a0b9e27f 23024
e6cc62c6
VS
23025/* Override any gcc2 internal prototype to avoid an error. */
23026#ifdef __cplusplus
23027extern "C"
23028#endif
23029/* We use char because int might match the return type of a gcc2
23030 builtin and then its argument prototype would still apply. */
23031char dnet_ntoa ();
23032int
23033main ()
23034{
23035dnet_ntoa ();
23036 ;
23037 return 0;
23038}
23039_ACEOF
23040rm -f conftest.$ac_objext conftest$ac_exeext
23041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23042 (eval $ac_link) 2>&5
23043 ac_status=$?
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } &&
23046 { ac_try='test -s conftest$ac_exeext'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23049 ac_status=$?
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 ac_cv_lib_dnet_dnet_ntoa=yes
23053else
23054 echo "$as_me: failed program was:" >&5
23055sed 's/^/| /' conftest.$ac_ext >&5
23056
23057ac_cv_lib_dnet_dnet_ntoa=no
23058fi
23059rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23060LIBS=$ac_check_lib_save_LIBS
23061fi
23062echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23063echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23064if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23065 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23066fi
0fb0dd83 23067
21d1c967 23068 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23069 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23070echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23071if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23072 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23073else
e6cc62c6 23074 ac_check_lib_save_LIBS=$LIBS
21d1c967 23075LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
23076cat >conftest.$ac_ext <<_ACEOF
23077#line $LINENO "configure"
23078/* confdefs.h. */
23079_ACEOF
23080cat confdefs.h >>conftest.$ac_ext
23081cat >>conftest.$ac_ext <<_ACEOF
23082/* end confdefs.h. */
23083
21d1c967 23084/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23085#ifdef __cplusplus
23086extern "C"
23087#endif
21d1c967 23088/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23089 builtin and then its argument prototype would still apply. */
23090char dnet_ntoa ();
23091int
23092main ()
23093{
23094dnet_ntoa ();
23095 ;
23096 return 0;
23097}
23098_ACEOF
23099rm -f conftest.$ac_objext conftest$ac_exeext
23100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23101 (eval $ac_link) 2>&5
23102 ac_status=$?
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } &&
23105 { ac_try='test -s conftest$ac_exeext'
23106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23108 ac_status=$?
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; }; then
23111 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23112else
23113 echo "$as_me: failed program was:" >&5
23114sed 's/^/| /' conftest.$ac_ext >&5
23115
23116ac_cv_lib_dnet_stub_dnet_ntoa=no
23117fi
23118rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23119LIBS=$ac_check_lib_save_LIBS
23120fi
23121echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23122echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23123if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23124 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23125fi
23126
21d1c967 23127 fi
e6cc62c6
VS
23128fi
23129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23130 LIBS="$ac_xsave_LIBS"
90dd450c 23131
21d1c967
GD
23132 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23133 # to get the SysV transport functions.
e6cc62c6 23134 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23135 # needs -lnsl.
23136 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23137 # on Irix 5.2, according to T.E. Dickey.
23138 # The functions gethostbyname, getservbyname, and inet_addr are
23139 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23140 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23141echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23142if test "${ac_cv_func_gethostbyname+set}" = set; then
23143 echo $ECHO_N "(cached) $ECHO_C" >&6
23144else
23145 cat >conftest.$ac_ext <<_ACEOF
23146#line $LINENO "configure"
23147/* confdefs.h. */
23148_ACEOF
23149cat confdefs.h >>conftest.$ac_ext
23150cat >>conftest.$ac_ext <<_ACEOF
23151/* end confdefs.h. */
21d1c967 23152/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23153 which can conflict with char gethostbyname (); below.
23154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23155 <limits.h> exists even on freestanding compilers. */
23156#ifdef __STDC__
23157# include <limits.h>
23158#else
23159# include <assert.h>
23160#endif
21d1c967 23161/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23162#ifdef __cplusplus
23163extern "C"
23164{
23165#endif
21d1c967 23166/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23167 builtin and then its argument prototype would still apply. */
23168char gethostbyname ();
21d1c967
GD
23169/* The GNU C library defines this for functions which it implements
23170 to always fail with ENOSYS. Some functions are actually named
23171 something starting with __ and the normal name is an alias. */
23172#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23173choke me
23174#else
e6cc62c6
VS
23175char (*f) () = gethostbyname;
23176#endif
23177#ifdef __cplusplus
23178}
21d1c967 23179#endif
90dd450c 23180
e6cc62c6
VS
23181int
23182main ()
23183{
23184return f != gethostbyname;
23185 ;
23186 return 0;
23187}
23188_ACEOF
23189rm -f conftest.$ac_objext conftest$ac_exeext
23190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23191 (eval $ac_link) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } &&
23195 { ac_try='test -s conftest$ac_exeext'
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
23201 ac_cv_func_gethostbyname=yes
23202else
23203 echo "$as_me: failed program was:" >&5
23204sed 's/^/| /' conftest.$ac_ext >&5
23205
23206ac_cv_func_gethostbyname=no
23207fi
23208rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23209fi
23210echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23211echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23212
21d1c967 23213 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23214 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23215echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23216if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23217 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23218else
e6cc62c6 23219 ac_check_lib_save_LIBS=$LIBS
21d1c967 23220LIBS="-lnsl $LIBS"
e6cc62c6
VS
23221cat >conftest.$ac_ext <<_ACEOF
23222#line $LINENO "configure"
23223/* confdefs.h. */
23224_ACEOF
23225cat confdefs.h >>conftest.$ac_ext
23226cat >>conftest.$ac_ext <<_ACEOF
23227/* end confdefs.h. */
23228
21d1c967 23229/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23230#ifdef __cplusplus
23231extern "C"
23232#endif
21d1c967 23233/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23234 builtin and then its argument prototype would still apply. */
23235char gethostbyname ();
23236int
23237main ()
23238{
23239gethostbyname ();
23240 ;
23241 return 0;
23242}
23243_ACEOF
23244rm -f conftest.$ac_objext conftest$ac_exeext
23245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23246 (eval $ac_link) 2>&5
23247 ac_status=$?
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); } &&
23250 { ac_try='test -s conftest$ac_exeext'
23251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23252 (eval $ac_try) 2>&5
23253 ac_status=$?
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); }; }; then
23256 ac_cv_lib_nsl_gethostbyname=yes
23257else
23258 echo "$as_me: failed program was:" >&5
23259sed 's/^/| /' conftest.$ac_ext >&5
23260
23261ac_cv_lib_nsl_gethostbyname=no
23262fi
23263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23264LIBS=$ac_check_lib_save_LIBS
23265fi
23266echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23267echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23268if test $ac_cv_lib_nsl_gethostbyname = yes; then
23269 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23270fi
247f5006 23271
e6cc62c6
VS
23272 if test $ac_cv_lib_nsl_gethostbyname = no; then
23273 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23274echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23275if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23276 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23277else
e6cc62c6
VS
23278 ac_check_lib_save_LIBS=$LIBS
23279LIBS="-lbsd $LIBS"
23280cat >conftest.$ac_ext <<_ACEOF
23281#line $LINENO "configure"
23282/* confdefs.h. */
23283_ACEOF
23284cat confdefs.h >>conftest.$ac_ext
23285cat >>conftest.$ac_ext <<_ACEOF
23286/* end confdefs.h. */
23287
23288/* Override any gcc2 internal prototype to avoid an error. */
23289#ifdef __cplusplus
23290extern "C"
23291#endif
23292/* We use char because int might match the return type of a gcc2
23293 builtin and then its argument prototype would still apply. */
23294char gethostbyname ();
23295int
23296main ()
23297{
23298gethostbyname ();
23299 ;
23300 return 0;
23301}
23302_ACEOF
23303rm -f conftest.$ac_objext conftest$ac_exeext
23304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23305 (eval $ac_link) 2>&5
23306 ac_status=$?
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } &&
23309 { ac_try='test -s conftest$ac_exeext'
23310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23311 (eval $ac_try) 2>&5
23312 ac_status=$?
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); }; }; then
23315 ac_cv_lib_bsd_gethostbyname=yes
23316else
23317 echo "$as_me: failed program was:" >&5
23318sed 's/^/| /' conftest.$ac_ext >&5
23319
23320ac_cv_lib_bsd_gethostbyname=no
23321fi
23322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23323LIBS=$ac_check_lib_save_LIBS
23324fi
23325echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23326echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23327if test $ac_cv_lib_bsd_gethostbyname = yes; then
23328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23329fi
90dd450c 23330
e6cc62c6 23331 fi
90dd450c
VZ
23332 fi
23333
21d1c967
GD
23334 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23335 # socket/setsockopt and other routines are undefined under SCO ODT
23336 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23337 # on later versions), says Simon Leinen: it contains gethostby*
23338 # variants that don't use the name server (or something). -lsocket
23339 # must be given before -lnsl if both are needed. We assume that
23340 # if connect needs -lnsl, so does gethostbyname.
23341 echo "$as_me:$LINENO: checking for connect" >&5
23342echo $ECHO_N "checking for connect... $ECHO_C" >&6
23343if test "${ac_cv_func_connect+set}" = set; then
23344 echo $ECHO_N "(cached) $ECHO_C" >&6
23345else
23346 cat >conftest.$ac_ext <<_ACEOF
23347#line $LINENO "configure"
23348/* confdefs.h. */
23349_ACEOF
23350cat confdefs.h >>conftest.$ac_ext
23351cat >>conftest.$ac_ext <<_ACEOF
23352/* end confdefs.h. */
21d1c967 23353/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23354 which can conflict with char connect (); below.
23355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23356 <limits.h> exists even on freestanding compilers. */
23357#ifdef __STDC__
23358# include <limits.h>
23359#else
23360# include <assert.h>
23361#endif
21d1c967 23362/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23363#ifdef __cplusplus
23364extern "C"
23365{
23366#endif
21d1c967 23367/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23368 builtin and then its argument prototype would still apply. */
23369char connect ();
21d1c967
GD
23370/* The GNU C library defines this for functions which it implements
23371 to always fail with ENOSYS. Some functions are actually named
23372 something starting with __ and the normal name is an alias. */
23373#if defined (__stub_connect) || defined (__stub___connect)
23374choke me
23375#else
e6cc62c6
VS
23376char (*f) () = connect;
23377#endif
23378#ifdef __cplusplus
23379}
21d1c967 23380#endif
90dd450c 23381
e6cc62c6
VS
23382int
23383main ()
23384{
23385return f != connect;
23386 ;
23387 return 0;
23388}
23389_ACEOF
23390rm -f conftest.$ac_objext conftest$ac_exeext
23391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23392 (eval $ac_link) 2>&5
23393 ac_status=$?
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } &&
23396 { ac_try='test -s conftest$ac_exeext'
23397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398 (eval $ac_try) 2>&5
23399 ac_status=$?
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; }; then
23402 ac_cv_func_connect=yes
23403else
23404 echo "$as_me: failed program was:" >&5
23405sed 's/^/| /' conftest.$ac_ext >&5
23406
23407ac_cv_func_connect=no
23408fi
23409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23410fi
23411echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23412echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23413
21d1c967 23414 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23415 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23416echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23417if test "${ac_cv_lib_socket_connect+set}" = set; then
23418 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23419else
e6cc62c6 23420 ac_check_lib_save_LIBS=$LIBS
21d1c967 23421LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23422cat >conftest.$ac_ext <<_ACEOF
23423#line $LINENO "configure"
23424/* confdefs.h. */
23425_ACEOF
23426cat confdefs.h >>conftest.$ac_ext
23427cat >>conftest.$ac_ext <<_ACEOF
23428/* end confdefs.h. */
23429
21d1c967 23430/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23431#ifdef __cplusplus
23432extern "C"
23433#endif
21d1c967 23434/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23435 builtin and then its argument prototype would still apply. */
23436char connect ();
23437int
23438main ()
23439{
23440connect ();
23441 ;
23442 return 0;
23443}
23444_ACEOF
23445rm -f conftest.$ac_objext conftest$ac_exeext
23446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23447 (eval $ac_link) 2>&5
23448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } &&
23451 { ac_try='test -s conftest$ac_exeext'
23452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23454 ac_status=$?
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; }; then
23457 ac_cv_lib_socket_connect=yes
23458else
23459 echo "$as_me: failed program was:" >&5
23460sed 's/^/| /' conftest.$ac_ext >&5
23461
23462ac_cv_lib_socket_connect=no
23463fi
23464rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23465LIBS=$ac_check_lib_save_LIBS
23466fi
23467echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23468echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23469if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23470 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23471fi
90dd450c 23472
21d1c967 23473 fi
90dd450c 23474
e6cc62c6
VS
23475 # Guillermo Gomez says -lposix is necessary on A/UX.
23476 echo "$as_me:$LINENO: checking for remove" >&5
23477echo $ECHO_N "checking for remove... $ECHO_C" >&6
23478if test "${ac_cv_func_remove+set}" = set; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23480else
23481 cat >conftest.$ac_ext <<_ACEOF
23482#line $LINENO "configure"
23483/* confdefs.h. */
23484_ACEOF
23485cat confdefs.h >>conftest.$ac_ext
23486cat >>conftest.$ac_ext <<_ACEOF
23487/* end confdefs.h. */
21d1c967 23488/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23489 which can conflict with char remove (); below.
23490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23491 <limits.h> exists even on freestanding compilers. */
23492#ifdef __STDC__
23493# include <limits.h>
23494#else
23495# include <assert.h>
23496#endif
21d1c967 23497/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23498#ifdef __cplusplus
23499extern "C"
23500{
23501#endif
21d1c967 23502/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23503 builtin and then its argument prototype would still apply. */
23504char remove ();
21d1c967
GD
23505/* The GNU C library defines this for functions which it implements
23506 to always fail with ENOSYS. Some functions are actually named
23507 something starting with __ and the normal name is an alias. */
23508#if defined (__stub_remove) || defined (__stub___remove)
23509choke me
23510#else
e6cc62c6
VS
23511char (*f) () = remove;
23512#endif
23513#ifdef __cplusplus
23514}
21d1c967 23515#endif
90dd450c 23516
e6cc62c6
VS
23517int
23518main ()
23519{
23520return f != remove;
23521 ;
23522 return 0;
23523}
23524_ACEOF
23525rm -f conftest.$ac_objext conftest$ac_exeext
23526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23527 (eval $ac_link) 2>&5
23528 ac_status=$?
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } &&
23531 { ac_try='test -s conftest$ac_exeext'
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
23534 ac_status=$?
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; }; then
23537 ac_cv_func_remove=yes
23538else
23539 echo "$as_me: failed program was:" >&5
23540sed 's/^/| /' conftest.$ac_ext >&5
23541
23542ac_cv_func_remove=no
23543fi
23544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23545fi
23546echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23547echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23548
21d1c967 23549 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23550 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23551echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23552if test "${ac_cv_lib_posix_remove+set}" = set; then
23553 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23554else
e6cc62c6 23555 ac_check_lib_save_LIBS=$LIBS
21d1c967 23556LIBS="-lposix $LIBS"
e6cc62c6
VS
23557cat >conftest.$ac_ext <<_ACEOF
23558#line $LINENO "configure"
23559/* confdefs.h. */
23560_ACEOF
23561cat confdefs.h >>conftest.$ac_ext
23562cat >>conftest.$ac_ext <<_ACEOF
23563/* end confdefs.h. */
23564
21d1c967 23565/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23566#ifdef __cplusplus
23567extern "C"
23568#endif
21d1c967 23569/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23570 builtin and then its argument prototype would still apply. */
23571char remove ();
23572int
23573main ()
23574{
23575remove ();
23576 ;
23577 return 0;
23578}
23579_ACEOF
23580rm -f conftest.$ac_objext conftest$ac_exeext
23581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23582 (eval $ac_link) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } &&
23586 { ac_try='test -s conftest$ac_exeext'
23587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588 (eval $ac_try) 2>&5
23589 ac_status=$?
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; }; then
23592 ac_cv_lib_posix_remove=yes
23593else
23594 echo "$as_me: failed program was:" >&5
23595sed 's/^/| /' conftest.$ac_ext >&5
23596
23597ac_cv_lib_posix_remove=no
23598fi
23599rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23600LIBS=$ac_check_lib_save_LIBS
23601fi
23602echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23603echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23604if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23606fi
19bc6aad 23607
90dd450c 23608 fi
19bc6aad 23609
21d1c967 23610 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23611 echo "$as_me:$LINENO: checking for shmat" >&5
23612echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23613if test "${ac_cv_func_shmat+set}" = set; then
23614 echo $ECHO_N "(cached) $ECHO_C" >&6
23615else
23616 cat >conftest.$ac_ext <<_ACEOF
23617#line $LINENO "configure"
23618/* confdefs.h. */
23619_ACEOF
23620cat confdefs.h >>conftest.$ac_ext
23621cat >>conftest.$ac_ext <<_ACEOF
23622/* end confdefs.h. */
21d1c967 23623/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23624 which can conflict with char shmat (); below.
23625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23626 <limits.h> exists even on freestanding compilers. */
23627#ifdef __STDC__
23628# include <limits.h>
23629#else
23630# include <assert.h>
23631#endif
21d1c967 23632/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23633#ifdef __cplusplus
23634extern "C"
23635{
23636#endif
21d1c967 23637/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23638 builtin and then its argument prototype would still apply. */
23639char shmat ();
21d1c967
GD
23640/* The GNU C library defines this for functions which it implements
23641 to always fail with ENOSYS. Some functions are actually named
23642 something starting with __ and the normal name is an alias. */
23643#if defined (__stub_shmat) || defined (__stub___shmat)
23644choke me
23645#else
e6cc62c6
VS
23646char (*f) () = shmat;
23647#endif
23648#ifdef __cplusplus
23649}
21d1c967 23650#endif
90dd450c 23651
e6cc62c6
VS
23652int
23653main ()
23654{
23655return f != shmat;
23656 ;
23657 return 0;
23658}
23659_ACEOF
23660rm -f conftest.$ac_objext conftest$ac_exeext
23661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23662 (eval $ac_link) 2>&5
23663 ac_status=$?
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); } &&
23666 { ac_try='test -s conftest$ac_exeext'
23667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668 (eval $ac_try) 2>&5
23669 ac_status=$?
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); }; }; then
23672 ac_cv_func_shmat=yes
23673else
23674 echo "$as_me: failed program was:" >&5
23675sed 's/^/| /' conftest.$ac_ext >&5
23676
23677ac_cv_func_shmat=no
23678fi
23679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23680fi
23681echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23682echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23683
21d1c967 23684 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23685 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23686echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23687if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23689else
e6cc62c6 23690 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23691LIBS="-lipc $LIBS"
e6cc62c6
VS
23692cat >conftest.$ac_ext <<_ACEOF
23693#line $LINENO "configure"
23694/* confdefs.h. */
23695_ACEOF
23696cat confdefs.h >>conftest.$ac_ext
23697cat >>conftest.$ac_ext <<_ACEOF
23698/* end confdefs.h. */
23699
5c6fa7d2 23700/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23701#ifdef __cplusplus
23702extern "C"
23703#endif
5c6fa7d2 23704/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23705 builtin and then its argument prototype would still apply. */
23706char shmat ();
23707int
23708main ()
23709{
23710shmat ();
23711 ;
23712 return 0;
23713}
23714_ACEOF
23715rm -f conftest.$ac_objext conftest$ac_exeext
23716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23717 (eval $ac_link) 2>&5
23718 ac_status=$?
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); } &&
23721 { ac_try='test -s conftest$ac_exeext'
23722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723 (eval $ac_try) 2>&5
23724 ac_status=$?
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; }; then
23727 ac_cv_lib_ipc_shmat=yes
23728else
23729 echo "$as_me: failed program was:" >&5
23730sed 's/^/| /' conftest.$ac_ext >&5
23731
23732ac_cv_lib_ipc_shmat=no
23733fi
23734rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23735LIBS=$ac_check_lib_save_LIBS
23736fi
23737echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23738echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23739if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23740 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23741fi
90dd450c 23742
90dd450c 23743 fi
21d1c967 23744 fi
10f2d63a 23745
21d1c967 23746 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23747 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23748 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23749 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23750 # check for ICE first), but we must link in the order -lSM -lICE or
23751 # we get undefined symbols. So assume we have SM if we have ICE.
23752 # These have to be linked with before -lX11, unlike the other
23753 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23754 # John Interrante, Karl Berry
23755 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23756echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23757if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23758 echo $ECHO_N "(cached) $ECHO_C" >&6
23759else
23760 ac_check_lib_save_LIBS=$LIBS
f09359cf 23761LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23762cat >conftest.$ac_ext <<_ACEOF
23763#line $LINENO "configure"
23764/* confdefs.h. */
23765_ACEOF
23766cat confdefs.h >>conftest.$ac_ext
23767cat >>conftest.$ac_ext <<_ACEOF
23768/* end confdefs.h. */
23769
21d1c967 23770/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23771#ifdef __cplusplus
23772extern "C"
23773#endif
21d1c967 23774/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23775 builtin and then its argument prototype would still apply. */
23776char IceConnectionNumber ();
23777int
23778main ()
23779{
23780IceConnectionNumber ();
23781 ;
23782 return 0;
23783}
23784_ACEOF
23785rm -f conftest.$ac_objext conftest$ac_exeext
23786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23787 (eval $ac_link) 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } &&
23791 { ac_try='test -s conftest$ac_exeext'
23792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793 (eval $ac_try) 2>&5
23794 ac_status=$?
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); }; }; then
23797 ac_cv_lib_ICE_IceConnectionNumber=yes
23798else
23799 echo "$as_me: failed program was:" >&5
23800sed 's/^/| /' conftest.$ac_ext >&5
23801
23802ac_cv_lib_ICE_IceConnectionNumber=no
23803fi
23804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23805LIBS=$ac_check_lib_save_LIBS
23806fi
23807echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23808echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23809if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23810 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23811fi
21d1c967 23812
e6cc62c6 23813 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23814
10f2d63a
VZ
23815fi
23816
8284b0c5 23817
21d1c967 23818 if test "$no_x" = "yes"; then
e6cc62c6
VS
23819 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23820echo "$as_me: error: X11 not found" >&2;}
23821 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23822 fi
23823
2b5f62a0
VZ
23824 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23825 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23826 AFMINSTALL=afminstall
23827 COMPILED_X_PROGRAM=0
23828
e6cc62c6
VS
23829 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23830echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23831
21d1c967 23832ac_find_includes=
2b5f62a0 23833for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23834 do
23835 if test -f "$ac_dir/Xm/Xm.h"; then
23836 ac_find_includes=$ac_dir
23837 break
23838 fi
23839 done
23840
23841 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23842 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23843echo "${ECHO_T}found in $ac_find_includes" >&6
23844
2b5f62a0 23845 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23846 ac_path_to_include=""
23847 else
2b5f62a0
VZ
23848 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23849 result=$?
23850 if test $result = 0; then
23851 ac_path_to_include=""
23852 else
23853 ac_path_to_include=" -I$ac_find_includes"
23854 fi
dd0e4a90
VZ
23855 fi
23856
23857 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23858 else
e6cc62c6
VS
23859 cat >conftest.$ac_ext <<_ACEOF
23860#line $LINENO "configure"
23861/* confdefs.h. */
23862_ACEOF
23863cat confdefs.h >>conftest.$ac_ext
23864cat >>conftest.$ac_ext <<_ACEOF
23865/* end confdefs.h. */
21d1c967
GD
23866
23867 #include <Xm/Xm.h>
e6cc62c6
VS
23868
23869int
23870main ()
23871{
21d1c967
GD
23872
23873 int version;
23874 version = xmUseVersion;
e6cc62c6
VS
23875
23876 ;
23877 return 0;
23878}
23879_ACEOF
23880rm -f conftest.$ac_objext
23881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23882 (eval $ac_compile) 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); } &&
23886 { ac_try='test -s conftest.$ac_objext'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892
23893 echo "$as_me:$LINENO: result: found in default search path" >&5
23894echo "${ECHO_T}found in default search path" >&6
21d1c967 23895 COMPILED_X_PROGRAM=1
e6cc62c6 23896
10f2d63a 23897else
e6cc62c6
VS
23898 echo "$as_me: failed program was:" >&5
23899sed 's/^/| /' conftest.$ac_ext >&5
23900
23901
23902 echo "$as_me:$LINENO: result: no" >&5
23903echo "${ECHO_T}no" >&6
23904 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23905echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23906 { (exit 1); exit 1; }; }
23907
23908
10f2d63a 23909fi
e6cc62c6 23910rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23911 fi
10f2d63a 23912
21d1c967 23913 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23914 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23915echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23916
21d1c967 23917ac_find_libraries=
2b5f62a0 23918for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23919 do
23920 for ac_extension in a so sl dylib; do
23921 if test -f "$ac_dir/libXm.$ac_extension"; then
23922 ac_find_libraries=$ac_dir
23923 break 2
23924 fi
23925 done
23926 done
23927
23928 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23929 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23930echo "${ECHO_T}found at $ac_find_libraries" >&6
23931
21d1c967 23932
21d1c967
GD
23933 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23934 result=$?
23935 if test $result = 0; then
23936 ac_path_to_link=""
23937 else
23938 ac_path_to_link=" -L$ac_find_libraries"
23939 fi
23940
21d1c967 23941 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23942 else
dd0e4a90
VZ
23943 save_CFLAGS=$CFLAGS
23944 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23945
e6cc62c6
VS
23946 cat >conftest.$ac_ext <<_ACEOF
23947#line $LINENO "configure"
23948/* confdefs.h. */
23949_ACEOF
23950cat confdefs.h >>conftest.$ac_ext
23951cat >>conftest.$ac_ext <<_ACEOF
23952/* end confdefs.h. */
21d1c967
GD
23953
23954 #include <Xm/Xm.h>
e6cc62c6
VS
23955
23956int
23957main ()
23958{
21d1c967
GD
23959
23960 int version;
23961 version = xmUseVersion;
e6cc62c6
VS
23962
23963 ;
23964 return 0;
23965}
23966_ACEOF
23967rm -f conftest.$ac_objext
23968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23969 (eval $ac_compile) 2>&5
23970 ac_status=$?
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } &&
23973 { ac_try='test -s conftest.$ac_objext'
23974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23975 (eval $ac_try) 2>&5
23976 ac_status=$?
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); }; }; then
23979
23980 echo "$as_me:$LINENO: result: found in default search path" >&5
23981echo "${ECHO_T}found in default search path" >&6
21d1c967 23982 COMPILED_X_PROGRAM=1
e6cc62c6 23983
d836ee96 23984else
e6cc62c6
VS
23985 echo "$as_me: failed program was:" >&5
23986sed 's/^/| /' conftest.$ac_ext >&5
23987
23988
23989 echo "$as_me:$LINENO: result: no" >&5
23990echo "${ECHO_T}no" >&6
23991 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23992echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23993 { (exit 1); exit 1; }; }
23994
23995
d836ee96 23996fi
e6cc62c6 23997rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23998
23999 CFLAGS=$save_CFLAGS
21d1c967
GD
24000 fi
24001 fi
24002
24003 xpm_link=
e6cc62c6
VS
24004 echo "$as_me:$LINENO: checking for Xpm library" >&5
24005echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24006
21d1c967 24007ac_find_libraries=
2b5f62a0 24008for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24009 do
24010 for ac_extension in a so sl dylib; do
24011 if test -f "$ac_dir/libXpm.$ac_extension"; then
24012 ac_find_libraries=$ac_dir
24013 break 2
24014 fi
24015 done
24016 done
24017
24018 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24019
21d1c967
GD
24020 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24021 result=$?
24022 if test $result = 0; then
24023 ac_path_to_link=""
24024 else
24025 ac_path_to_link=" -L$ac_find_libraries"
24026 fi
24027
24028 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 24029
21d1c967 24030 xpm_link=" -lXpm"
e6cc62c6 24031 cat >>confdefs.h <<\_ACEOF
21d1c967 24032#define wxHAVE_LIB_XPM 1
e6cc62c6 24033_ACEOF
90dd450c 24034
e6cc62c6
VS
24035 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24036echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 24037 else
dd0e4a90
VZ
24038 save_CFLAGS=$CFLAGS
24039 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24040
e6cc62c6
VS
24041 cat >conftest.$ac_ext <<_ACEOF
24042#line $LINENO "configure"
24043/* confdefs.h. */
24044_ACEOF
24045cat confdefs.h >>conftest.$ac_ext
24046cat >>conftest.$ac_ext <<_ACEOF
24047/* end confdefs.h. */
21d1c967
GD
24048
24049 #include <X11/xpm.h>
e6cc62c6
VS
24050
24051int
24052main ()
24053{
21d1c967
GD
24054
24055 int version;
24056 version = XpmLibraryVersion();
e6cc62c6
VS
24057
24058 ;
24059 return 0;
24060}
24061_ACEOF
24062rm -f conftest.$ac_objext
24063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24064 (eval $ac_compile) 2>&5
24065 ac_status=$?
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } &&
24068 { ac_try='test -s conftest.$ac_objext'
24069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070 (eval $ac_try) 2>&5
24071 ac_status=$?
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); }; }; then
24074
21d1c967 24075 xpm_link=" -lXpm"
e6cc62c6 24076 cat >>confdefs.h <<\_ACEOF
21d1c967 24077#define wxHAVE_LIB_XPM 1
e6cc62c6 24078_ACEOF
21d1c967 24079
e6cc62c6
VS
24080 echo "$as_me:$LINENO: result: found in default search path" >&5
24081echo "${ECHO_T}found in default search path" >&6
21d1c967 24082 COMPILED_X_PROGRAM=0
e6cc62c6 24083
d836ee96 24084else
e6cc62c6
VS
24085 echo "$as_me: failed program was:" >&5
24086sed 's/^/| /' conftest.$ac_ext >&5
24087
24088
24089 echo "$as_me:$LINENO: result: no" >&5
24090echo "${ECHO_T}no" >&6
24091 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24092echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24093
24094
d836ee96 24095fi
e6cc62c6 24096rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24097
24098 CFLAGS=$save_CFLAGS
21d1c967
GD
24099 fi
24100
e6cc62c6
VS
24101 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24102echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24103 libp_link=""
24104 libsm_ice_link=""
24105 libs_found=0
24106 for libp in "" " -lXp"; do
24107 if test "$libs_found" = "0"; then
24108 for libsm_ice in " -lSM -lICE"; do
e26c13cf 24109 if test "$libs_found" = "0"; then
6a30f1c8
MB
24110 save_LIBS="$LIBS"
24111 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24112 save_CFLAGS=$CFLAGS
24113 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24114
e6cc62c6
VS
24115 cat >conftest.$ac_ext <<_ACEOF
24116#line $LINENO "configure"
24117/* confdefs.h. */
24118_ACEOF
24119cat confdefs.h >>conftest.$ac_ext
24120cat >>conftest.$ac_ext <<_ACEOF
24121/* end confdefs.h. */
17234b26 24122
6a30f1c8
MB
24123 #include <Xm/Xm.h>
24124 #include <Xm/List.h>
e6cc62c6
VS
24125
24126int
24127main ()
24128{
6a30f1c8
MB
24129
24130 XmString string = NULL;
24131 Widget w = NULL;
24132 int position = 0;
24133 XmListAddItem(w, string, position);
e6cc62c6
VS
24134
24135 ;
24136 return 0;
24137}
24138_ACEOF
24139rm -f conftest.$ac_objext conftest$ac_exeext
24140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24141 (eval $ac_link) 2>&5
24142 ac_status=$?
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); } &&
24145 { ac_try='test -s conftest$ac_exeext'
24146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24147 (eval $ac_try) 2>&5
24148 ac_status=$?
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); }; }; then
24151
6a30f1c8
MB
24152 libp_link="$libp"
24153 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24154 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24155echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24156 libs_found=1
e6cc62c6 24157
6a30f1c8 24158else
e6cc62c6
VS
24159 echo "$as_me: failed program was:" >&5
24160sed 's/^/| /' conftest.$ac_ext >&5
24161
24162
24163
6a30f1c8 24164fi
e6cc62c6 24165rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24166
6a30f1c8 24167 LIBS="$save_LIBS"
dd0e4a90 24168 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24169 fi
24170 done
24171 fi
24172 done
24173
24174 if test "$libs_found" = "0"; then
e6cc62c6
VS
24175 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24176echo "${ECHO_T}can't find the right libraries" >&6
24177 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24178echo "$as_me: error: can't link a simple motif program" >&2;}
24179 { (exit 1); exit 1; }; }
6a30f1c8
MB
24180 fi
24181
da494b40
MB
24182 save_CFLAGS=$CFLAGS
24183 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24184 echo "$as_me:$LINENO: checking for Motif 2" >&5
24185echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24186 cat >conftest.$ac_ext <<_ACEOF
24187#line $LINENO "configure"
24188/* confdefs.h. */
24189_ACEOF
24190cat confdefs.h >>conftest.$ac_ext
24191cat >>conftest.$ac_ext <<_ACEOF
24192/* end confdefs.h. */
da494b40
MB
24193
24194 #include <Xm/Xm.h>
e6cc62c6
VS
24195
24196int
24197main ()
24198{
da494b40
MB
24199
24200 #if XmVersion < 2000
24201 #error "Not Motif 2"
24202 #endif
e6cc62c6
VS
24203
24204 ;
24205 return 0;
24206}
24207_ACEOF
24208rm -f conftest.$ac_objext
24209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24210 (eval $ac_compile) 2>&5
24211 ac_status=$?
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); } &&
24214 { ac_try='test -s conftest.$ac_objext'
24215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24216 (eval $ac_try) 2>&5
24217 ac_status=$?
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); }; }; then
24220
24221 cat >>confdefs.h <<\_ACEOF
da494b40 24222#define __WXMOTIF20__ 1
e6cc62c6
VS
24223_ACEOF
24224
24225 echo "$as_me:$LINENO: result: found" >&5
24226echo "${ECHO_T}found" >&6
da494b40 24227
da494b40 24228else
e6cc62c6
VS
24229 echo "$as_me: failed program was:" >&5
24230sed 's/^/| /' conftest.$ac_ext >&5
24231
24232
24233 cat >>confdefs.h <<\_ACEOF
da494b40 24234#define __WXMOTIF20__ 0
e6cc62c6
VS
24235_ACEOF
24236
24237 echo "$as_me:$LINENO: result: not found" >&5
24238echo "${ECHO_T}not found" >&6
da494b40 24239
da494b40 24240fi
e6cc62c6 24241rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24242 CFLAGS=$save_CFLAGS
24243
6a30f1c8 24244 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24245 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24246 TOOLKIT=MOTIF
24247 GUIDIST=MOTIF_DIST
f7f78039
MB
24248 wxHAVE_XEXT_LIB=1
24249 fi
24250
24251 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24252 test "$wxHAVE_XEXT_LIB" = 1; then
24253 save_CFLAGS="$CFLAGS"
24254 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24255
e6cc62c6
VS
24256 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24257echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24258 cat >conftest.$ac_ext <<_ACEOF
24259#line $LINENO "configure"
24260/* confdefs.h. */
24261_ACEOF
24262cat confdefs.h >>conftest.$ac_ext
24263cat >>conftest.$ac_ext <<_ACEOF
24264/* end confdefs.h. */
24265
24266 #include <X11/Xlib.h>
f7f78039 24267 #include <X11/extensions/shape.h>
e6cc62c6
VS
24268
24269int
24270main ()
24271{
f7f78039
MB
24272
24273 int dummy1, dummy2;
24274 XShapeQueryExtension((Display*)NULL,
24275 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24276
24277 ;
24278 return 0;
24279}
24280_ACEOF
24281rm -f conftest.$ac_objext
24282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24283 (eval $ac_compile) 2>&5
24284 ac_status=$?
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); } &&
24287 { ac_try='test -s conftest.$ac_objext'
24288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24289 (eval $ac_try) 2>&5
24290 ac_status=$?
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); }; }; then
24293
24294 cat >>confdefs.h <<\_ACEOF
f7f78039 24295#define HAVE_XSHAPE 1
e6cc62c6
VS
24296_ACEOF
24297
24298 echo "$as_me:$LINENO: result: found" >&5
24299echo "${ECHO_T}found" >&6
f7f78039 24300
f7f78039 24301else
e6cc62c6
VS
24302 echo "$as_me: failed program was:" >&5
24303sed 's/^/| /' conftest.$ac_ext >&5
24304
24305
24306 echo "$as_me:$LINENO: result: not found" >&5
24307echo "${ECHO_T}not found" >&6
24308
f7f78039 24309fi
e6cc62c6 24310rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24311 CFLAGS="$save_CFLAGS"
21d1c967
GD
24312 fi
24313
24314 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
24315 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
24316echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
24317 if test "$GCC" = yes; then
24318 echo "$as_me:$LINENO: result: gcc" >&5
24319echo "${ECHO_T}gcc" >&6
24320 CPPFLAGS_PASCAL="-fpascal-strings"
24321 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
24322 echo "$as_me:$LINENO: result: xlc" >&5
24323echo "${ECHO_T}xlc" >&6
24324 CPPFLAGS_PASCAL="-qmacpstr"
24325 else
24326 echo "$as_me:$LINENO: result: none" >&5
24327echo "${ECHO_T}none" >&6
24328 fi
24329
24330 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24331
0c98a14e 24332 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24333 TOOLKIT=MAC
24334 GUIDIST=MACX_DIST
cf615ebb 24335 WXBASEPORT="_carbon"
21d1c967
GD
24336 fi
24337
ac0c4cc3
DE
24338 if test "$wxUSE_COCOA" = 1; then
24339 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24340 TOOLKIT=COCOA
24341 GUIDIST=COCOA_DIST
24342 fi
24343
21d1c967
GD
24344 if test "$wxUSE_PM" = 1; then
24345 TOOLKIT=PM
24346 GUIDIST=GTK_DIST
24347 fi
24348
24349 if test "$TOOLKIT" = "PM" ; then
24350 TOOLKIT_DIR="os2"
24351 else
24352 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24353 fi
24354
24355 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24356
24357 if test "$wxUSE_UNIVERSAL" = "yes"; then
24358 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24359
24360 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24361 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24362
24363 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24364 if test "$wxUSE_X11" = 1; then
24365 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24366 else
24367 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24368 fi
24369 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24370 WIDGET_SET=univ
24371 else
24372 ALL_OBJECTS="\$(GUIOBJS)"
24373 ALL_SOURCES="\$(ALL_SOURCES)"
24374 ALL_HEADERS="\$(ALL_HEADERS)"
24375 fi
24376
24377 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24378
24379 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24380 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24381 fi
24382
24383 if test "$wxUSE_HTML" = "yes"; then
24384 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24385 fi
24386
24387 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24388 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24389 fi
24390 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24391 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24392 fi
24393 if test "$wxUSE_LIBPNG" = "builtin" ; then
24394 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24395 fi
24396
24397 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24398 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24399else
21d1c967
GD
24400 USE_GUI=0
24401
24402 TOOLKIT_DIR="base"
24403
24404 if test "$USE_WIN32" = 1 ; then
24405 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24406 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24407
24408 TOOLKIT="MSW"
24409 else
24410 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24411 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24412 fi
24413
24414 ALL_SOURCES="\$(ALL_SOURCES)"
24415 ALL_HEADERS="\$(ALL_HEADERS)"
24416
24417 PORT_FILES="\${top_srcdir}/src/files.lst"
24418
24419 GUIDIST="BASE_DIST"
24420 DISTDIR="wxBase"
d836ee96
VZ
24421fi
24422
8284b0c5 24423
8647bec6
RG
24424
24425
24426IODBC_C_SRC=""
24427
24428
24429if test "$TOOLKIT" != "MSW" ; then
24430
bb41dcbe 24431 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24432
bb41dcbe 24433 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24434 echo "$as_me:$LINENO: checking for sql.h" >&5
24435echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24436if test "${ac_cv_header_sql_h+set}" = set; then
24437 echo $ECHO_N "(cached) $ECHO_C" >&6
24438fi
24439echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24440echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24441else
24442 # Is the header compilable?
24443echo "$as_me:$LINENO: checking sql.h usability" >&5
24444echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24445cat >conftest.$ac_ext <<_ACEOF
24446#line $LINENO "configure"
24447/* confdefs.h. */
24448_ACEOF
24449cat confdefs.h >>conftest.$ac_ext
24450cat >>conftest.$ac_ext <<_ACEOF
24451/* end confdefs.h. */
24452$ac_includes_default
8647bec6 24453#include <sql.h>
e6cc62c6
VS
24454_ACEOF
24455rm -f conftest.$ac_objext
24456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24457 (eval $ac_compile) 2>&5
24458 ac_status=$?
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); } &&
24461 { ac_try='test -s conftest.$ac_objext'
24462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463 (eval $ac_try) 2>&5
24464 ac_status=$?
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); }; }; then
24467 ac_header_compiler=yes
24468else
24469 echo "$as_me: failed program was:" >&5
24470sed 's/^/| /' conftest.$ac_ext >&5
24471
24472ac_header_compiler=no
24473fi
24474rm -f conftest.$ac_objext conftest.$ac_ext
24475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24476echo "${ECHO_T}$ac_header_compiler" >&6
24477
24478# Is the header present?
24479echo "$as_me:$LINENO: checking sql.h presence" >&5
24480echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24481cat >conftest.$ac_ext <<_ACEOF
24482#line $LINENO "configure"
24483/* confdefs.h. */
24484_ACEOF
24485cat confdefs.h >>conftest.$ac_ext
24486cat >>conftest.$ac_ext <<_ACEOF
24487/* end confdefs.h. */
24488#include <sql.h>
24489_ACEOF
24490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24492 ac_status=$?
24493 grep -v '^ *+' conftest.er1 >conftest.err
24494 rm -f conftest.er1
24495 cat conftest.err >&5
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } >/dev/null; then
24498 if test -s conftest.err; then
24499 ac_cpp_err=$ac_c_preproc_warn_flag
24500 else
24501 ac_cpp_err=
24502 fi
24503else
24504 ac_cpp_err=yes
24505fi
24506if test -z "$ac_cpp_err"; then
24507 ac_header_preproc=yes
24508else
24509 echo "$as_me: failed program was:" >&5
24510sed 's/^/| /' conftest.$ac_ext >&5
24511
24512 ac_header_preproc=no
24513fi
24514rm -f conftest.err conftest.$ac_ext
24515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24516echo "${ECHO_T}$ac_header_preproc" >&6
24517
24518# So? What about this header?
24519case $ac_header_compiler:$ac_header_preproc in
24520 yes:no )
24521 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24522echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24523 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24524echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24525 (
24526 cat <<\_ASBOX
24527## ------------------------------------ ##
24528## Report this to bug-autoconf@gnu.org. ##
24529## ------------------------------------ ##
24530_ASBOX
24531 ) |
24532 sed "s/^/$as_me: WARNING: /" >&2
24533 ;;
24534 no:yes )
24535 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24536echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24537 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24538echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24539 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24540echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24541 (
24542 cat <<\_ASBOX
24543## ------------------------------------ ##
24544## Report this to bug-autoconf@gnu.org. ##
24545## ------------------------------------ ##
24546_ASBOX
24547 ) |
24548 sed "s/^/$as_me: WARNING: /" >&2
24549 ;;
24550esac
24551echo "$as_me:$LINENO: checking for sql.h" >&5
24552echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24553if test "${ac_cv_header_sql_h+set}" = set; then
24554 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24555else
e6cc62c6
VS
24556 ac_cv_header_sql_h=$ac_header_preproc
24557fi
24558echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24559echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24560
bb41dcbe
VS
24561fi
24562if test $ac_cv_header_sql_h = yes; then
24563 found_sql_h=1
8647bec6
RG
24564fi
24565
e6cc62c6 24566
bb41dcbe 24567 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
24568 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
24569echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
24570if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 24571 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24572else
bb41dcbe 24573 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24574LIBS="-liodbc $LIBS"
e6cc62c6
VS
24575cat >conftest.$ac_ext <<_ACEOF
24576#line $LINENO "configure"
24577/* confdefs.h. */
24578_ACEOF
24579cat confdefs.h >>conftest.$ac_ext
24580cat >>conftest.$ac_ext <<_ACEOF
24581/* end confdefs.h. */
24582
8647bec6 24583/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24584#ifdef __cplusplus
24585extern "C"
24586#endif
8647bec6 24587/* We use char because int might match the return type of a gcc2
e6cc62c6 24588 builtin and then its argument prototype would still apply. */
e46d2a18 24589char SQLAllocEnv ();
e6cc62c6
VS
24590int
24591main ()
24592{
e46d2a18 24593SQLAllocEnv ();
e6cc62c6
VS
24594 ;
24595 return 0;
24596}
24597_ACEOF
24598rm -f conftest.$ac_objext conftest$ac_exeext
24599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24600 (eval $ac_link) 2>&5
24601 ac_status=$?
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); } &&
24604 { ac_try='test -s conftest$ac_exeext'
24605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24606 (eval $ac_try) 2>&5
24607 ac_status=$?
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); }; }; then
e46d2a18 24610 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 24611else
e6cc62c6
VS
24612 echo "$as_me: failed program was:" >&5
24613sed 's/^/| /' conftest.$ac_ext >&5
24614
e46d2a18 24615ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 24616fi
e6cc62c6 24617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24618LIBS=$ac_check_lib_save_LIBS
24619fi
e46d2a18
VS
24620echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
24621echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
24622if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24623 ODBC_LINK=" -liodbc"
24624else
24625
e46d2a18
VS
24626 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
24627echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
24628if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24630else
24631 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24632LIBS="-lunixodbc $LIBS"
bb41dcbe 24633cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24634#line $LINENO "configure"
24635/* confdefs.h. */
24636_ACEOF
24637cat confdefs.h >>conftest.$ac_ext
24638cat >>conftest.$ac_ext <<_ACEOF
24639/* end confdefs.h. */
24640
8647bec6 24641/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24642#ifdef __cplusplus
24643extern "C"
24644#endif
8647bec6 24645/* We use char because int might match the return type of a gcc2
e6cc62c6 24646 builtin and then its argument prototype would still apply. */
e46d2a18 24647char SQLAllocEnv ();
e6cc62c6
VS
24648int
24649main ()
24650{
e46d2a18 24651SQLAllocEnv ();
e6cc62c6
VS
24652 ;
24653 return 0;
24654}
24655_ACEOF
24656rm -f conftest.$ac_objext conftest$ac_exeext
24657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24658 (eval $ac_link) 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } &&
24662 { ac_try='test -s conftest$ac_exeext'
24663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); }; }; then
e46d2a18 24668 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 24669else
e6cc62c6
VS
24670 echo "$as_me: failed program was:" >&5
24671sed 's/^/| /' conftest.$ac_ext >&5
24672
e46d2a18 24673ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 24674fi
e6cc62c6 24675rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24676LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24677fi
e46d2a18
VS
24678echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
24679echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
24680if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24681 ODBC_LINK=" -lunixodbc"
24682else
24683
e46d2a18
VS
24684 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
24685echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
24686if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
24687 echo $ECHO_N "(cached) $ECHO_C" >&6
24688else
24689 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24690LIBS="-lodbc $LIBS"
bb41dcbe
VS
24691cat >conftest.$ac_ext <<_ACEOF
24692#line $LINENO "configure"
24693/* confdefs.h. */
24694_ACEOF
24695cat confdefs.h >>conftest.$ac_ext
24696cat >>conftest.$ac_ext <<_ACEOF
24697/* end confdefs.h. */
e6cc62c6 24698
bb41dcbe
VS
24699/* Override any gcc2 internal prototype to avoid an error. */
24700#ifdef __cplusplus
24701extern "C"
24702#endif
24703/* We use char because int might match the return type of a gcc2
24704 builtin and then its argument prototype would still apply. */
e46d2a18 24705char SQLAllocEnv ();
bb41dcbe
VS
24706int
24707main ()
24708{
e46d2a18 24709SQLAllocEnv ();
bb41dcbe
VS
24710 ;
24711 return 0;
24712}
24713_ACEOF
24714rm -f conftest.$ac_objext conftest$ac_exeext
24715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24716 (eval $ac_link) 2>&5
24717 ac_status=$?
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); } &&
24720 { ac_try='test -s conftest$ac_exeext'
24721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24722 (eval $ac_try) 2>&5
24723 ac_status=$?
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); }; }; then
e46d2a18 24726 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 24727else
bb41dcbe
VS
24728 echo "$as_me: failed program was:" >&5
24729sed 's/^/| /' conftest.$ac_ext >&5
24730
e46d2a18 24731ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe
VS
24732fi
24733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24734LIBS=$ac_check_lib_save_LIBS
24735fi
e46d2a18
VS
24736echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
24737echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
24738if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24739 ODBC_LINK=" -lodbc"
24740fi
24741
24742
24743fi
e6cc62c6 24744
e6cc62c6 24745
8647bec6 24746fi
e6cc62c6 24747
fd3d7534 24748 fi
bb41dcbe
VS
24749 if test "x$ODBC_LINK" = "x" ; then
24750 if test "$wxUSE_ODBC" = "sys" ; then
24751 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24752echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24753 { (exit 1); exit 1; }; }
24754 else
24755 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24756echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24757 wxUSE_ODBC=builtin
24758 fi
24759 else
24760 wxUSE_ODBC=sys
8647bec6 24761 fi
8647bec6 24762 fi
bb41dcbe
VS
24763 if test "$wxUSE_ODBC" != "no" ; then
24764 cat >>confdefs.h <<\_ACEOF
24765#define wxUSE_ODBC 1
24766_ACEOF
e6cc62c6 24767
0bdb08e7
VS
24768 if test "$wxUSE_ODBC" = "builtin" ; then
24769 cat >>confdefs.h <<\_ACEOF
24770#define wxUSE_BUILTIN_IODBC 1
24771_ACEOF
24772
24773 fi
bb41dcbe
VS
24774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24775
24776 WXODBCFLAG="-D_IODBC_"
24777 fi
6232543b 24778fi
21d1c967
GD
24779
24780if test "$wxUSE_REGEX" = "builtin" ; then
24781 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24782fi
21d1c967
GD
24783if test "$wxUSE_ZLIB" = "builtin" ; then
24784 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24785fi
24786
8284b0c5 24787
4d264332 24788USE_OPENGL=0
21d1c967 24789if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24790 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24791 OPENGL_LIBS="-framework OpenGL -framework AGL"
24792 elif test "$wxUSE_MSW" = 1; then
24793 OPENGL_LIBS="-lopengl32 -lglu32"
24794 else
01aa5863
VS
24795
24796
24797ac_find_includes=
24798for ac_dir in $SEARCH_INCLUDE /usr/include;
24799 do
24800 if test -f "$ac_dir/GL/gl.h"; then
24801 ac_find_includes=$ac_dir
24802 break
24803 fi
24804 done
24805
24806 if test "$ac_find_includes" != "" ; then
24807 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24808echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
24809
24810 if test "x$ac_find_includes" = "x/usr/include"; then
24811 ac_path_to_include=""
24812 else
24813 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24814 result=$?
24815 if test $result = 0; then
24816 ac_path_to_include=""
24817 else
24818 ac_path_to_include=" -I$ac_find_includes"
24819 fi
24820 fi
24821
24822 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
24823 fi
24824
e6cc62c6
VS
24825 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24826 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24827echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24828if test "${ac_cv_header_GL_gl_h+set}" = set; then
24829 echo $ECHO_N "(cached) $ECHO_C" >&6
24830fi
24831echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24832echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24833else
24834 # Is the header compilable?
24835echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24836echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24837cat >conftest.$ac_ext <<_ACEOF
24838#line $LINENO "configure"
24839/* confdefs.h. */
24840_ACEOF
24841cat confdefs.h >>conftest.$ac_ext
24842cat >>conftest.$ac_ext <<_ACEOF
24843/* end confdefs.h. */
24844$ac_includes_default
21d1c967 24845#include <GL/gl.h>
e6cc62c6
VS
24846_ACEOF
24847rm -f conftest.$ac_objext
24848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24849 (eval $ac_compile) 2>&5
24850 ac_status=$?
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); } &&
24853 { ac_try='test -s conftest.$ac_objext'
24854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855 (eval $ac_try) 2>&5
24856 ac_status=$?
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); }; }; then
24859 ac_header_compiler=yes
24860else
24861 echo "$as_me: failed program was:" >&5
24862sed 's/^/| /' conftest.$ac_ext >&5
24863
24864ac_header_compiler=no
24865fi
24866rm -f conftest.$ac_objext conftest.$ac_ext
24867echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24868echo "${ECHO_T}$ac_header_compiler" >&6
24869
24870# Is the header present?
24871echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24872echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24873cat >conftest.$ac_ext <<_ACEOF
24874#line $LINENO "configure"
24875/* confdefs.h. */
24876_ACEOF
24877cat confdefs.h >>conftest.$ac_ext
24878cat >>conftest.$ac_ext <<_ACEOF
24879/* end confdefs.h. */
24880#include <GL/gl.h>
24881_ACEOF
24882if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24884 ac_status=$?
24885 grep -v '^ *+' conftest.er1 >conftest.err
24886 rm -f conftest.er1
24887 cat conftest.err >&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); } >/dev/null; then
24890 if test -s conftest.err; then
24891 ac_cpp_err=$ac_c_preproc_warn_flag
24892 else
24893 ac_cpp_err=
24894 fi
24895else
24896 ac_cpp_err=yes
24897fi
24898if test -z "$ac_cpp_err"; then
24899 ac_header_preproc=yes
24900else
24901 echo "$as_me: failed program was:" >&5
24902sed 's/^/| /' conftest.$ac_ext >&5
24903
24904 ac_header_preproc=no
24905fi
24906rm -f conftest.err conftest.$ac_ext
24907echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24908echo "${ECHO_T}$ac_header_preproc" >&6
24909
24910# So? What about this header?
24911case $ac_header_compiler:$ac_header_preproc in
24912 yes:no )
24913 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24914echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24915 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24916echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24917 (
24918 cat <<\_ASBOX
24919## ------------------------------------ ##
24920## Report this to bug-autoconf@gnu.org. ##
24921## ------------------------------------ ##
24922_ASBOX
24923 ) |
24924 sed "s/^/$as_me: WARNING: /" >&2
24925 ;;
24926 no:yes )
24927 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24928echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24929 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24930echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24931 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24932echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24933 (
24934 cat <<\_ASBOX
24935## ------------------------------------ ##
24936## Report this to bug-autoconf@gnu.org. ##
24937## ------------------------------------ ##
24938_ASBOX
24939 ) |
24940 sed "s/^/$as_me: WARNING: /" >&2
24941 ;;
24942esac
24943echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24944echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24945if test "${ac_cv_header_GL_gl_h+set}" = set; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24947else
24948 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24949fi
e6cc62c6
VS
24950echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24951echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24952
698dcdb6 24953fi
e6cc62c6
VS
24954if test $ac_cv_header_GL_gl_h = yes; then
24955
89e3b3e4
VZ
24956 found_gl=0
24957
e6cc62c6
VS
24958 echo "$as_me:$LINENO: checking for -lGL" >&5
24959echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24960
21d1c967 24961ac_find_libraries=
2b5f62a0 24962for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24963 do
24964 for ac_extension in a so sl dylib; do
24965 if test -f "$ac_dir/libGL.$ac_extension"; then
24966 ac_find_libraries=$ac_dir
24967 break 2
24968 fi
24969 done
24970 done
24971
24972 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24973
21d1c967
GD
24974 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24975 result=$?
24976 if test $result = 0; then
24977 ac_path_to_link=""
24978 else
24979 ac_path_to_link=" -L$ac_find_libraries"
24980 fi
24981
89e3b3e4
VZ
24982 if test "$ac_path_to_link" != " -L/usr/lib" ; then
24983 LDFLAGS_GL="$ac_path_to_link"
21d1c967 24984 fi
89e3b3e4 24985
e6cc62c6 24986
89e3b3e4
VZ
24987ac_find_libraries=
24988for ac_dir in $SEARCH_LIB /usr/lib;
24989 do
24990 for ac_extension in a so sl dylib; do
24991 if test -f "$ac_dir/libGLU.$ac_extension"; then
24992 ac_find_libraries=$ac_dir
24993 break 2
24994 fi
24995 done
24996 done
24997
24998 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24999
89e3b3e4
VZ
25000 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25001 result=$?
25002 if test $result = 0; then
25003 ac_path_to_link=""
25004 else
25005 ac_path_to_link=" -L$ac_find_libraries"
25006 fi
25007
25008 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25009 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25010 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25011 fi
25012
25013 found_gl=1
25014 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25015 echo "$as_me:$LINENO: result: yes" >&5
25016echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25017 fi
25018 fi
25019
bb41dcbe 25020 if test "$found_gl" != 1; then
e6cc62c6
VS
25021 echo "$as_me:$LINENO: result: no" >&5
25022echo "${ECHO_T}no" >&6
25023 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25024echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25025
21d1c967 25026ac_find_libraries=
2b5f62a0 25027for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25028 do
25029 for ac_extension in a so sl dylib; do
25030 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25031 ac_find_libraries=$ac_dir
25032 break 2
25033 fi
25034 done
25035 done
25036
25037 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25038
21d1c967
GD
25039 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25040 result=$?
25041 if test $result = 0; then
25042 ac_path_to_link=""
25043 else
25044 ac_path_to_link=" -L$ac_find_libraries"
25045 fi
25046
25047 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25048 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25049 echo "$as_me:$LINENO: result: yes" >&5
25050echo "${ECHO_T}yes" >&6
21d1c967 25051 else
e6cc62c6
VS
25052 echo "$as_me:$LINENO: result: no" >&5
25053echo "${ECHO_T}no" >&6
21d1c967
GD
25054 fi
25055 fi
e6cc62c6 25056
5c6fa7d2 25057fi
52127426 25058
8284b0c5 25059
e6cc62c6 25060
21d1c967 25061 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25062 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25063echo "$as_me: error: OpenGL libraries not available" >&2;}
25064 { (exit 1); exit 1; }; }
21d1c967
GD
25065 fi
25066 fi
90dd450c 25067
21d1c967 25068 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25069 USE_OPENGL=1
e6cc62c6 25070 cat >>confdefs.h <<\_ACEOF
21d1c967 25071#define wxUSE_OPENGL 1
e6cc62c6 25072_ACEOF
21d1c967 25073
e6cc62c6 25074 cat >>confdefs.h <<\_ACEOF
21d1c967 25075#define wxUSE_GLCANVAS 1
e6cc62c6 25076_ACEOF
21d1c967 25077
520755bb 25078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25079 fi
10f2d63a 25080fi
21d1c967
GD
25081
25082if test -z "$TOOLKIT_VPATH" ; then
25083 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25084fi
21d1c967
GD
25085
25086if test -n "$TOOLKIT" ; then
25087 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25088fi
25089
fe0895cf 25090UNICODE=0
21d1c967
GD
25091lib_unicode_suffix=
25092if test "$wxUSE_UNICODE" = "yes"; then
25093 lib_unicode_suffix=u
fe0895cf 25094 UNICODE=1
90dd450c 25095fi
698dcdb6 25096
21d1c967 25097lib_debug_suffix=
6c67131a 25098DEBUG_FLAG=0
21d1c967
GD
25099if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25100 lib_debug_suffix=d
6c67131a
VS
25101 DEBUG_FLAG=1
25102fi
25103
25104DEBUG_INFO=0
25105if test "$wxUSE_DEBUG_INFO" = "yes"; then
25106 DEBUG_INFO=1
21d1c967 25107fi
698dcdb6 25108
1cbb95a2 25109WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25110
25111TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25112TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25113
25114if test "$cross_compiling" = "yes"; then
25115 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25116 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25117 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25118fi
25119
25120WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25121WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25122WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25123WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25124
25125WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25126WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25127
25128WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25129WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25130WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25131WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25132
25133case "${host}" in
25134 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25135 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25136 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25137 ;;
25138
25139 *-*-darwin* )
e6cc62c6 25140
05159a27
GD
25141 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25142 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25143
25144 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25145 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25146 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25147 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25148
21d1c967 25149 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25150 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25151 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25152 fi
25153 ;;
25154esac
25155
25156WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25157WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25158
25159WXCONFIG_LIBS="-l${WX_LIBRARY}"
25160WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25161
25162if test "$wxUSE_OPENGL" = "yes"; then
25163 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25164 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25165fi
25166
8284b0c5
MB
25167
25168
21d1c967
GD
25169if test "$wxUSE_SHARED" = "yes"; then
25170 case "${host}" in
25171 *-pc-os2_emx | *-pc-os2-emx | \
25172 *-pc-msdosdjgpp )
25173 wxUSE_SHARED=no
e6cc62c6
VS
25174 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25175echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25176 ;;
25177 esac
25178fi
25179
fe0895cf 25180SHARED=0
2b5f62a0 25181if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25182 SHARED=1
2b5f62a0 25183
e6cc62c6 25184
2b5f62a0
VZ
25185 found_versioning=no
25186
e6cc62c6 25187
2b5f62a0 25188 if test $found_versioning = no ; then
e6cc62c6
VS
25189 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25190echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25191if test "${wx_cv_version_script+set}" = set; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25193else
e6cc62c6 25194
2b5f62a0
VZ
25195 echo "VER_1 { *; };" >conftest.sym
25196 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25197
2b5f62a0
VZ
25198 if { ac_try='
25199 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25200 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202 (eval $ac_try) 2>&5
25203 ac_status=$?
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25206 if test -s conftest.stderr ; then
25207 wx_cv_version_script=no
25208 else
25209 wx_cv_version_script=yes
25210 fi
25211 else
25212 wx_cv_version_script=no
25213 fi
25214 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25215
e6cc62c6
VS
25216fi
25217echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25218echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25219 if test $wx_cv_version_script = yes ; then
e6cc62c6 25220 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25221 fi
25222 fi
21d1c967 25223
21d1c967 25224
21d1c967 25225 case "${host}" in
fe0895cf 25226 *-*-linux* | *-*-gnu* )
e6cc62c6 25227 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 25228 ;;
21d1c967
GD
25229
25230 *-*-solaris2* )
25231 if test "$GCC" = yes ; then
25232 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25233
25234 saveLdflags="$LDFLAGS"
25235 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25236 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25237echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25238 cat >conftest.$ac_ext <<_ACEOF
25239#line $LINENO "configure"
25240/* confdefs.h. */
25241_ACEOF
25242cat confdefs.h >>conftest.$ac_ext
25243cat >>conftest.$ac_ext <<_ACEOF
25244/* end confdefs.h. */
25245
25246int
25247main ()
25248{
fe0895cf 25249
e6cc62c6
VS
25250 ;
25251 return 0;
25252}
25253_ACEOF
25254rm -f conftest.$ac_objext conftest$ac_exeext
25255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25256 (eval $ac_link) 2>&5
25257 ac_status=$?
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); } &&
25260 { ac_try='test -s conftest$ac_exeext'
25261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262 (eval $ac_try) 2>&5
25263 ac_status=$?
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); }; }; then
25266
25267 echo "$as_me:$LINENO: result: yes" >&5
25268echo "${ECHO_T}yes" >&6
25269 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25270
25271else
25272 echo "$as_me: failed program was:" >&5
25273sed 's/^/| /' conftest.$ac_ext >&5
25274
25275
25276 echo "$as_me:$LINENO: result: no" >&5
25277echo "${ECHO_T}no" >&6
25278 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25279echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25280 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25281 cat >conftest.$ac_ext <<_ACEOF
25282#line $LINENO "configure"
25283/* confdefs.h. */
25284_ACEOF
25285cat confdefs.h >>conftest.$ac_ext
25286cat >>conftest.$ac_ext <<_ACEOF
25287/* end confdefs.h. */
25288
25289int
25290main ()
25291{
25292
25293 ;
25294 return 0;
25295}
25296_ACEOF
25297rm -f conftest.$ac_objext conftest$ac_exeext
25298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25299 (eval $ac_link) 2>&5
25300 ac_status=$?
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } &&
25303 { ac_try='test -s conftest$ac_exeext'
25304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25305 (eval $ac_try) 2>&5
25306 ac_status=$?
25307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); }; }; then
25309
25310 echo "$as_me:$LINENO: result: yes" >&5
25311echo "${ECHO_T}yes" >&6
25312 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25313else
25314 echo "$as_me: failed program was:" >&5
25315sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25316
fe0895cf 25317
e6cc62c6
VS
25318 echo "$as_me:$LINENO: result: no" >&5
25319echo "${ECHO_T}no" >&6
25320
fe0895cf 25321fi
e6cc62c6
VS
25322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25323
25324fi
25325rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25326 LDFLAGS="$saveLdflags"
21d1c967
GD
25327 else
25328 SHARED_LD="${CXX} -G -o"
25329 PIC_FLAG="-KPIC"
e6cc62c6 25330 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25331 fi
25332 ;;
0f1bc9c2
VS
25333
25334 powerpc-*-darwin* )
ef0add05
VS
25335 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25336 cat <<EOF >change-install-names
25337#!/bin/sh
25338libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25339inst_cmd="install_name_tool "
25340for i in \${libnames} ; do
25341 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25342done
25343\${inst_cmd} \${3}
25344EOF
25345 chmod +x change-install-names
0f1bc9c2
VS
25346 ;;
25347
21d1c967
GD
25348 esac
25349
25350 if test "x$WX_TARGET_LIBRARY" = "x"; then
25351 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25352 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25353 fi
25354
25355 WX_TARGET_LIBRARY_TYPE="so"
25356 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25357fi
10f2d63a 25358
21d1c967
GD
25359if test "$wxUSE_SHARED" = "no"; then
25360
25361 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25362 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25363 fi
25364
ac0c4cc3 25365 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25366 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25367 fi
25368
25369 if test "$wxUSE_OPENGL" = "yes"; then
25370 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25371 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25372 else
25373 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25374 fi
25375
25376 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25377 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25378
25379 WX_TARGET_LIBRARY_TYPE="a"
25380 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25381
25382 STATIC_FLAG="yes"
25383else
25384 STATIC_FLAG="no"
90dd450c 25385fi
1e487827 25386
93fac604
VZ
25387MACRESCOMP="@#"
25388MACSETFILE="@#"
36825681 25389MACRESWXCONFIG="#"
21d1c967 25390if test "$wxUSE_MAC" = 1; then
e6cc62c6 25391 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25392 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25393 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25394 # Extract the first word of "Rez", so it can be a program name with args.
25395set dummy Rez; ac_word=$2
e6cc62c6
VS
25396echo "$as_me:$LINENO: checking for $ac_word" >&5
25397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25398if test "${ac_cv_prog_RESCOMP+set}" = set; then
25399 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25400else
21d1c967
GD
25401 if test -n "$RESCOMP"; then
25402 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25403else
e6cc62c6
VS
25404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25405for as_dir in $PATH
25406do
25407 IFS=$as_save_IFS
25408 test -z "$as_dir" && as_dir=.
25409 for ac_exec_ext in '' $ac_executable_extensions; do
25410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25411 ac_cv_prog_RESCOMP="Rez"
25412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25413 break 2
25414 fi
25415done
25416done
25417
21d1c967 25418 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25419fi
b93d0d08 25420fi
e6cc62c6 25421RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25422if test -n "$RESCOMP"; then
e6cc62c6
VS
25423 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25424echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25425else
e6cc62c6
VS
25426 echo "$as_me:$LINENO: result: no" >&5
25427echo "${ECHO_T}no" >&6
90dd450c 25428fi
b93d0d08 25429
21d1c967
GD
25430 # Extract the first word of "DeRez", so it can be a program name with args.
25431set dummy DeRez; ac_word=$2
e6cc62c6
VS
25432echo "$as_me:$LINENO: checking for $ac_word" >&5
25433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25434if test "${ac_cv_prog_DEREZ+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25436else
21d1c967
GD
25437 if test -n "$DEREZ"; then
25438 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25439else
e6cc62c6
VS
25440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25441for as_dir in $PATH
25442do
25443 IFS=$as_save_IFS
25444 test -z "$as_dir" && as_dir=.
25445 for ac_exec_ext in '' $ac_executable_extensions; do
25446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25447 ac_cv_prog_DEREZ="DeRez"
25448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25449 break 2
25450 fi
25451done
25452done
25453
21d1c967 25454 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25455fi
90dd450c 25456fi
e6cc62c6 25457DEREZ=$ac_cv_prog_DEREZ
21d1c967 25458if test -n "$DEREZ"; then
e6cc62c6
VS
25459 echo "$as_me:$LINENO: result: $DEREZ" >&5
25460echo "${ECHO_T}$DEREZ" >&6
90dd450c 25461else
e6cc62c6
VS
25462 echo "$as_me:$LINENO: result: no" >&5
25463echo "${ECHO_T}no" >&6
3a922bb4 25464fi
698dcdb6 25465
36825681
GD
25466 # Extract the first word of "SetFile", so it can be a program name with args.
25467set dummy SetFile; ac_word=$2
e6cc62c6
VS
25468echo "$as_me:$LINENO: checking for $ac_word" >&5
25469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25470if test "${ac_cv_prog_SETFILE+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25472else
25473 if test -n "$SETFILE"; then
25474 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25475else
e6cc62c6
VS
25476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25477for as_dir in $PATH
25478do
25479 IFS=$as_save_IFS
25480 test -z "$as_dir" && as_dir=.
25481 for ac_exec_ext in '' $ac_executable_extensions; do
25482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25483 ac_cv_prog_SETFILE="SetFile"
25484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25485 break 2
25486 fi
25487done
25488done
25489
36825681
GD
25490 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25491fi
25492fi
e6cc62c6 25493SETFILE=$ac_cv_prog_SETFILE
36825681 25494if test -n "$SETFILE"; then
e6cc62c6
VS
25495 echo "$as_me:$LINENO: result: $SETFILE" >&5
25496echo "${ECHO_T}$SETFILE" >&6
36825681 25497else
e6cc62c6
VS
25498 echo "$as_me:$LINENO: result: no" >&5
25499echo "${ECHO_T}no" >&6
36825681
GD
25500fi
25501
21d1c967 25502 MACOSX_BUNDLE="bundle"
36825681
GD
25503 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25504 MACSETFILE="\$(SETFILE)"
9711d31e 25505 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25506elif test "$wxUSE_COCOA" = 1; then
25507 # Extract the first word of "Rez", so it can be a program name with args.
25508set dummy Rez; ac_word=$2
e6cc62c6
VS
25509echo "$as_me:$LINENO: checking for $ac_word" >&5
25510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25511if test "${ac_cv_prog_RESCOMP+set}" = set; then
25512 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25513else
25514 if test -n "$RESCOMP"; then
25515 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25516else
e6cc62c6
VS
25517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25518for as_dir in $PATH
25519do
25520 IFS=$as_save_IFS
25521 test -z "$as_dir" && as_dir=.
25522 for ac_exec_ext in '' $ac_executable_extensions; do
25523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25524 ac_cv_prog_RESCOMP="Rez"
25525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25526 break 2
25527 fi
25528done
25529done
25530
64440d77
DE
25531 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25532fi
25533fi
e6cc62c6 25534RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25535if test -n "$RESCOMP"; then
e6cc62c6
VS
25536 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25537echo "${ECHO_T}$RESCOMP" >&6
64440d77 25538else
e6cc62c6
VS
25539 echo "$as_me:$LINENO: result: no" >&5
25540echo "${ECHO_T}no" >&6
64440d77
DE
25541fi
25542
25543 # Extract the first word of "DeRez", so it can be a program name with args.
25544set dummy DeRez; ac_word=$2
e6cc62c6
VS
25545echo "$as_me:$LINENO: checking for $ac_word" >&5
25546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25547if test "${ac_cv_prog_DEREZ+set}" = set; then
25548 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25549else
25550 if test -n "$DEREZ"; then
25551 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25552else
e6cc62c6
VS
25553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25554for as_dir in $PATH
25555do
25556 IFS=$as_save_IFS
25557 test -z "$as_dir" && as_dir=.
25558 for ac_exec_ext in '' $ac_executable_extensions; do
25559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25560 ac_cv_prog_DEREZ="DeRez"
25561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25562 break 2
25563 fi
25564done
25565done
25566
64440d77
DE
25567 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25568fi
25569fi
e6cc62c6 25570DEREZ=$ac_cv_prog_DEREZ
64440d77 25571if test -n "$DEREZ"; then
e6cc62c6
VS
25572 echo "$as_me:$LINENO: result: $DEREZ" >&5
25573echo "${ECHO_T}$DEREZ" >&6
64440d77 25574else
e6cc62c6
VS
25575 echo "$as_me:$LINENO: result: no" >&5
25576echo "${ECHO_T}no" >&6
64440d77
DE
25577fi
25578
25579 # Extract the first word of "SetFile", so it can be a program name with args.
25580set dummy SetFile; ac_word=$2
e6cc62c6
VS
25581echo "$as_me:$LINENO: checking for $ac_word" >&5
25582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25583if test "${ac_cv_prog_SETFILE+set}" = set; then
25584 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25585else
25586 if test -n "$SETFILE"; then
25587 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25588else
e6cc62c6
VS
25589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25590for as_dir in $PATH
25591do
25592 IFS=$as_save_IFS
25593 test -z "$as_dir" && as_dir=.
25594 for ac_exec_ext in '' $ac_executable_extensions; do
25595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25596 ac_cv_prog_SETFILE="SetFile"
25597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25598 break 2
25599 fi
25600done
25601done
25602
64440d77
DE
25603 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25604fi
25605fi
e6cc62c6 25606SETFILE=$ac_cv_prog_SETFILE
64440d77 25607if test -n "$SETFILE"; then
e6cc62c6
VS
25608 echo "$as_me:$LINENO: result: $SETFILE" >&5
25609echo "${ECHO_T}$SETFILE" >&6
64440d77 25610else
e6cc62c6
VS
25611 echo "$as_me:$LINENO: result: no" >&5
25612echo "${ECHO_T}no" >&6
64440d77
DE
25613fi
25614
25615 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25616 MACSETFILE="\$(SETFILE)"
9711d31e 25617 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25618else
25619 if test "$wxUSE_PM" = 1; then
36825681 25620 MACRESCOMP="emxbind -ep"
90dd450c 25621 fi
4f14bcd8 25622fi
10f2d63a 25623
8284b0c5 25624
e6cc62c6
VS
25625echo "$as_me:$LINENO: checking for mode_t" >&5
25626echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25627if test "${ac_cv_type_mode_t+set}" = set; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25629else
e6cc62c6
VS
25630 cat >conftest.$ac_ext <<_ACEOF
25631#line $LINENO "configure"
25632/* confdefs.h. */
25633_ACEOF
25634cat confdefs.h >>conftest.$ac_ext
25635cat >>conftest.$ac_ext <<_ACEOF
25636/* end confdefs.h. */
25637$ac_includes_default
25638int
25639main ()
25640{
25641if ((mode_t *) 0)
25642 return 0;
25643if (sizeof (mode_t))
25644 return 0;
25645 ;
25646 return 0;
25647}
25648_ACEOF
25649rm -f conftest.$ac_objext
25650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25651 (eval $ac_compile) 2>&5
25652 ac_status=$?
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); } &&
25655 { ac_try='test -s conftest.$ac_objext'
25656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657 (eval $ac_try) 2>&5
25658 ac_status=$?
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); }; }; then
25661 ac_cv_type_mode_t=yes
a0b9e27f 25662else
e6cc62c6
VS
25663 echo "$as_me: failed program was:" >&5
25664sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25665
e6cc62c6 25666ac_cv_type_mode_t=no
a0b9e27f 25667fi
e6cc62c6 25668rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25669fi
e6cc62c6
VS
25670echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25671echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25672if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25673 :
25674else
a0b9e27f 25675
e6cc62c6
VS
25676cat >>confdefs.h <<_ACEOF
25677#define mode_t int
25678_ACEOF
8284b0c5
MB
25679
25680fi
25681
e6cc62c6
VS
25682echo "$as_me:$LINENO: checking for off_t" >&5
25683echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25684if test "${ac_cv_type_off_t+set}" = set; then
25685 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25686else
e6cc62c6
VS
25687 cat >conftest.$ac_ext <<_ACEOF
25688#line $LINENO "configure"
25689/* confdefs.h. */
25690_ACEOF
25691cat confdefs.h >>conftest.$ac_ext
25692cat >>conftest.$ac_ext <<_ACEOF
25693/* end confdefs.h. */
25694$ac_includes_default
25695int
25696main ()
25697{
25698if ((off_t *) 0)
25699 return 0;
25700if (sizeof (off_t))
25701 return 0;
25702 ;
25703 return 0;
25704}
25705_ACEOF
25706rm -f conftest.$ac_objext
25707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25708 (eval $ac_compile) 2>&5
25709 ac_status=$?
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); } &&
25712 { ac_try='test -s conftest.$ac_objext'
25713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25714 (eval $ac_try) 2>&5
25715 ac_status=$?
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); }; }; then
25718 ac_cv_type_off_t=yes
5c6fa7d2 25719else
e6cc62c6
VS
25720 echo "$as_me: failed program was:" >&5
25721sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25722
e6cc62c6 25723ac_cv_type_off_t=no
8284b0c5 25724fi
e6cc62c6 25725rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25726fi
e6cc62c6
VS
25727echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25728echo "${ECHO_T}$ac_cv_type_off_t" >&6
25729if test $ac_cv_type_off_t = yes; then
25730 :
247f5006
VZ
25731else
25732
e6cc62c6 25733cat >>confdefs.h <<_ACEOF
90dd450c 25734#define off_t long
e6cc62c6 25735_ACEOF
10f2d63a 25736
90dd450c 25737fi
10f2d63a 25738
e6cc62c6
VS
25739echo "$as_me:$LINENO: checking for pid_t" >&5
25740echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25741if test "${ac_cv_type_pid_t+set}" = set; then
25742 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25743else
e6cc62c6
VS
25744 cat >conftest.$ac_ext <<_ACEOF
25745#line $LINENO "configure"
25746/* confdefs.h. */
25747_ACEOF
25748cat confdefs.h >>conftest.$ac_ext
25749cat >>conftest.$ac_ext <<_ACEOF
25750/* end confdefs.h. */
25751$ac_includes_default
25752int
25753main ()
25754{
25755if ((pid_t *) 0)
25756 return 0;
25757if (sizeof (pid_t))
25758 return 0;
25759 ;
25760 return 0;
25761}
25762_ACEOF
25763rm -f conftest.$ac_objext
25764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25765 (eval $ac_compile) 2>&5
25766 ac_status=$?
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } &&
25769 { ac_try='test -s conftest.$ac_objext'
25770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771 (eval $ac_try) 2>&5
25772 ac_status=$?
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); }; }; then
90dd450c 25775 ac_cv_type_pid_t=yes
698dcdb6 25776else
e6cc62c6
VS
25777 echo "$as_me: failed program was:" >&5
25778sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25779
e6cc62c6
VS
25780ac_cv_type_pid_t=no
25781fi
25782rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25783fi
e6cc62c6
VS
25784echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25785echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25786if test $ac_cv_type_pid_t = yes; then
25787 :
25788else
25789
25790cat >>confdefs.h <<_ACEOF
90dd450c 25791#define pid_t int
e6cc62c6 25792_ACEOF
10f2d63a 25793
7b4a847f
RR
25794fi
25795
e6cc62c6
VS
25796echo "$as_me:$LINENO: checking for size_t" >&5
25797echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25798if test "${ac_cv_type_size_t+set}" = set; then
25799 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25800else
e6cc62c6
VS
25801 cat >conftest.$ac_ext <<_ACEOF
25802#line $LINENO "configure"
25803/* confdefs.h. */
25804_ACEOF
25805cat confdefs.h >>conftest.$ac_ext
25806cat >>conftest.$ac_ext <<_ACEOF
25807/* end confdefs.h. */
25808$ac_includes_default
25809int
25810main ()
25811{
25812if ((size_t *) 0)
25813 return 0;
25814if (sizeof (size_t))
25815 return 0;
25816 ;
25817 return 0;
25818}
25819_ACEOF
25820rm -f conftest.$ac_objext
25821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25822 (eval $ac_compile) 2>&5
25823 ac_status=$?
25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 (exit $ac_status); } &&
25826 { ac_try='test -s conftest.$ac_objext'
25827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828 (eval $ac_try) 2>&5
25829 ac_status=$?
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); }; }; then
90dd450c 25832 ac_cv_type_size_t=yes
18dbb1f6 25833else
e6cc62c6
VS
25834 echo "$as_me: failed program was:" >&5
25835sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25836
e6cc62c6 25837ac_cv_type_size_t=no
a0b9e27f 25838fi
e6cc62c6
VS
25839rm -f conftest.$ac_objext conftest.$ac_ext
25840fi
25841echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25842echo "${ECHO_T}$ac_cv_type_size_t" >&6
25843if test $ac_cv_type_size_t = yes; then
25844 :
25845else
25846
25847cat >>confdefs.h <<_ACEOF
90dd450c 25848#define size_t unsigned
e6cc62c6 25849_ACEOF
90dd450c
VZ
25850
25851fi
25852
e6cc62c6
VS
25853echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25854echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25855if test "${ac_cv_type_uid_t+set}" = set; then
25856 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25857else
e6cc62c6
VS
25858 cat >conftest.$ac_ext <<_ACEOF
25859#line $LINENO "configure"
25860/* confdefs.h. */
25861_ACEOF
25862cat confdefs.h >>conftest.$ac_ext
25863cat >>conftest.$ac_ext <<_ACEOF
25864/* end confdefs.h. */
90dd450c 25865#include <sys/types.h>
e6cc62c6
VS
25866
25867_ACEOF
90dd450c 25868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25869 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25870 ac_cv_type_uid_t=yes
b3e8d00a 25871else
90dd450c 25872 ac_cv_type_uid_t=no
b3e8d00a 25873fi
90dd450c 25874rm -f conftest*
b3e8d00a 25875
4f14bcd8 25876fi
e6cc62c6
VS
25877echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25878echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25879if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25880
25881cat >>confdefs.h <<\_ACEOF
90dd450c 25882#define uid_t int
e6cc62c6 25883_ACEOF
247f5006 25884
e6cc62c6
VS
25885
25886cat >>confdefs.h <<\_ACEOF
90dd450c 25887#define gid_t int
e6cc62c6 25888_ACEOF
4f14bcd8 25889
b3e8d00a 25890fi
b3e8d00a 25891
8284b0c5
MB
25892
25893
e6cc62c6
VS
25894
25895ac_ext=cc
4f14bcd8 25896ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25900
25901echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25902echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25903if test "${wx_cv_size_t_is_uint+set}" = set; then
25904 echo $ECHO_N "(cached) $ECHO_C" >&6
25905else
25906
25907 cat >conftest.$ac_ext <<_ACEOF
25908#line $LINENO "configure"
25909/* confdefs.h. */
25910_ACEOF
25911cat confdefs.h >>conftest.$ac_ext
25912cat >>conftest.$ac_ext <<_ACEOF
25913/* end confdefs.h. */
90dd450c 25914#include <stddef.h>
e6cc62c6
VS
25915int
25916main ()
25917{
90dd450c
VZ
25918
25919 return 0; }
25920
25921 struct Foo { void foo(size_t); void foo(unsigned int); };
25922
25923 int bar() {
e6cc62c6
VS
25924
25925 ;
25926 return 0;
25927}
25928_ACEOF
25929rm -f conftest.$ac_objext
25930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25931 (eval $ac_compile) 2>&5
25932 ac_status=$?
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); } &&
25935 { ac_try='test -s conftest.$ac_objext'
25936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; }; then
90dd450c 25941 wx_cv_size_t_is_uint=no
698dcdb6 25942else
e6cc62c6
VS
25943 echo "$as_me: failed program was:" >&5
25944sed 's/^/| /' conftest.$ac_ext >&5
25945
25946wx_cv_size_t_is_uint=yes
8284b0c5 25947
247f5006 25948fi
e6cc62c6
VS
25949rm -f conftest.$ac_objext conftest.$ac_ext
25950
a0b9e27f 25951
e6cc62c6
VS
25952fi
25953echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25954echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 25955
90dd450c 25956if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 25957 cat >>confdefs.h <<\_ACEOF
90dd450c 25958#define wxSIZE_T_IS_UINT 1
e6cc62c6 25959_ACEOF
698dcdb6 25960
90dd450c 25961else
e6cc62c6
VS
25962 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25963echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25964if test "${wx_cv_size_t_is_ulong+set}" = set; then
25965 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25966else
e6cc62c6
VS
25967 cat >conftest.$ac_ext <<_ACEOF
25968#line $LINENO "configure"
25969/* confdefs.h. */
25970_ACEOF
25971cat confdefs.h >>conftest.$ac_ext
25972cat >>conftest.$ac_ext <<_ACEOF
25973/* end confdefs.h. */
90dd450c 25974#include <stddef.h>
e6cc62c6
VS
25975int
25976main ()
25977{
90dd450c
VZ
25978
25979 return 0; }
25980
25981 struct Foo { void foo(size_t); void foo(unsigned long); };
25982
25983 int bar() {
e6cc62c6
VS
25984
25985 ;
25986 return 0;
25987}
25988_ACEOF
25989rm -f conftest.$ac_objext
25990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25991 (eval $ac_compile) 2>&5
25992 ac_status=$?
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } &&
25995 { ac_try='test -s conftest.$ac_objext'
25996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997 (eval $ac_try) 2>&5
25998 ac_status=$?
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); }; }; then
90dd450c 26001 wx_cv_size_t_is_ulong=no
698dcdb6 26002else
e6cc62c6
VS
26003 echo "$as_me: failed program was:" >&5
26004sed 's/^/| /' conftest.$ac_ext >&5
26005
26006wx_cv_size_t_is_ulong=yes
26007
247f5006 26008fi
e6cc62c6 26009rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26010
e6cc62c6
VS
26011fi
26012echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26013echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26014
90dd450c 26015 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26016 cat >>confdefs.h <<\_ACEOF
90dd450c 26017#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26018_ACEOF
4f14bcd8
GD
26019
26020 fi
90dd450c 26021fi
1e487827 26022
90dd450c 26023ac_ext=c
4f14bcd8 26024ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26027ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26028
5c6fa7d2 26029
8284b0c5 26030
e6cc62c6
VS
26031echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26032echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26033if test "${wx_cv_struct_pw_gecos+set}" = set; then
26034 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26035else
e6cc62c6
VS
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 <pwd.h>
e6cc62c6
VS
26045int
26046main ()
26047{
f6bcfd97 26048
90dd450c
VZ
26049 char *p;
26050 struct passwd *pw;
26051 p = pw->pw_gecos;
e6cc62c6
VS
26052
26053 ;
26054 return 0;
26055}
26056_ACEOF
26057rm -f conftest.$ac_objext
26058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26059 (eval $ac_compile) 2>&5
26060 ac_status=$?
26061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062 (exit $ac_status); } &&
26063 { ac_try='test -s conftest.$ac_objext'
26064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26065 (eval $ac_try) 2>&5
26066 ac_status=$?
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); }; }; then
26069
90dd450c 26070 wx_cv_struct_pw_gecos=yes
e6cc62c6 26071
10f2d63a 26072else
e6cc62c6
VS
26073 echo "$as_me: failed program was:" >&5
26074sed 's/^/| /' conftest.$ac_ext >&5
26075
26076
90dd450c 26077 wx_cv_struct_pw_gecos=no
e6cc62c6 26078
247f5006
VZ
26079
26080fi
e6cc62c6 26081rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26082
e6cc62c6
VS
26083
26084fi
26085echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26086echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26087
90dd450c 26088if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26089 cat >>confdefs.h <<\_ACEOF
90dd450c 26090#define HAVE_PW_GECOS 1
e6cc62c6 26091_ACEOF
c521c494 26092
90dd450c 26093fi
4f14bcd8 26094
8284b0c5 26095
d29b553b 26096if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26097 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26098#define wxUSE_WCHAR_T 1
e6cc62c6 26099_ACEOF
d74f4b5a 26100
8284b0c5 26101
d74f4b5a
VZ
26102 WCSLEN_FOUND=0
26103 WCHAR_LINK=
e6cc62c6
VS
26104
26105for ac_func in wcslen
7a30264c 26106do
e6cc62c6
VS
26107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26108echo "$as_me:$LINENO: checking for $ac_func" >&5
26109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26110if eval "test \"\${$as_ac_var+set}\" = set"; then
26111 echo $ECHO_N "(cached) $ECHO_C" >&6
26112else
26113 cat >conftest.$ac_ext <<_ACEOF
26114#line $LINENO "configure"
26115/* confdefs.h. */
26116_ACEOF
26117cat confdefs.h >>conftest.$ac_ext
26118cat >>conftest.$ac_ext <<_ACEOF
26119/* end confdefs.h. */
7a30264c 26120/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26121 which can conflict with char $ac_func (); below.
26122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26123 <limits.h> exists even on freestanding compilers. */
26124#ifdef __STDC__
26125# include <limits.h>
26126#else
26127# include <assert.h>
26128#endif
4f14bcd8 26129/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26130#ifdef __cplusplus
26131extern "C"
26132{
26133#endif
4f14bcd8 26134/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26135 builtin and then its argument prototype would still apply. */
26136char $ac_func ();
7a30264c
VZ
26137/* The GNU C library defines this for functions which it implements
26138 to always fail with ENOSYS. Some functions are actually named
26139 something starting with __ and the normal name is an alias. */
26140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26141choke me
26142#else
e6cc62c6
VS
26143char (*f) () = $ac_func;
26144#endif
26145#ifdef __cplusplus
26146}
7a30264c
VZ
26147#endif
26148
e6cc62c6
VS
26149int
26150main ()
26151{
26152return f != $ac_func;
26153 ;
26154 return 0;
26155}
26156_ACEOF
26157rm -f conftest.$ac_objext conftest$ac_exeext
26158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26159 (eval $ac_link) 2>&5
26160 ac_status=$?
26161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } &&
26163 { ac_try='test -s conftest$ac_exeext'
26164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26165 (eval $ac_try) 2>&5
26166 ac_status=$?
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168 (exit $ac_status); }; }; then
26169 eval "$as_ac_var=yes"
26170else
26171 echo "$as_me: failed program was:" >&5
26172sed 's/^/| /' conftest.$ac_ext >&5
26173
26174eval "$as_ac_var=no"
26175fi
26176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26177fi
26178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26180if test `eval echo '${'$as_ac_var'}'` = yes; then
26181 cat >>confdefs.h <<_ACEOF
26182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26183_ACEOF
d74f4b5a 26184 WCSLEN_FOUND=1
7a30264c
VZ
26185fi
26186done
9d8deca0 26187
8284b0c5 26188
d74f4b5a 26189 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26190 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26191 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26192echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26193if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26194 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26195else
e6cc62c6 26196 ac_check_lib_save_LIBS=$LIBS
7a30264c 26197LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26198cat >conftest.$ac_ext <<_ACEOF
26199#line $LINENO "configure"
26200/* confdefs.h. */
26201_ACEOF
26202cat confdefs.h >>conftest.$ac_ext
26203cat >>conftest.$ac_ext <<_ACEOF
26204/* end confdefs.h. */
26205
4f14bcd8 26206/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26207#ifdef __cplusplus
26208extern "C"
26209#endif
4f14bcd8 26210/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26211 builtin and then its argument prototype would still apply. */
26212char wcslen ();
26213int
26214main ()
26215{
26216wcslen ();
26217 ;
26218 return 0;
26219}
26220_ACEOF
26221rm -f conftest.$ac_objext conftest$ac_exeext
26222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26223 (eval $ac_link) 2>&5
26224 ac_status=$?
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); } &&
26227 { ac_try='test -s conftest$ac_exeext'
26228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26229 (eval $ac_try) 2>&5
26230 ac_status=$?
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); }; }; then
26233 ac_cv_lib_msvcrt_wcslen=yes
26234else
26235 echo "$as_me: failed program was:" >&5
26236sed 's/^/| /' conftest.$ac_ext >&5
26237
26238ac_cv_lib_msvcrt_wcslen=no
26239fi
26240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26241LIBS=$ac_check_lib_save_LIBS
26242fi
26243echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26244echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26245if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26246 WCHAR_OK=1
d29b553b 26247fi
698dcdb6 26248
7a30264c 26249 else
e6cc62c6
VS
26250 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26251echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26252if test "${ac_cv_lib_w_wcslen+set}" = set; then
26253 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26254else
e6cc62c6 26255 ac_check_lib_save_LIBS=$LIBS
7a30264c 26256LIBS="-lw $LIBS"
e6cc62c6
VS
26257cat >conftest.$ac_ext <<_ACEOF
26258#line $LINENO "configure"
26259/* confdefs.h. */
26260_ACEOF
26261cat confdefs.h >>conftest.$ac_ext
26262cat >>conftest.$ac_ext <<_ACEOF
26263/* end confdefs.h. */
26264
4f14bcd8 26265/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26266#ifdef __cplusplus
26267extern "C"
26268#endif
4f14bcd8 26269/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26270 builtin and then its argument prototype would still apply. */
26271char wcslen ();
26272int
26273main ()
26274{
26275wcslen ();
26276 ;
26277 return 0;
26278}
26279_ACEOF
26280rm -f conftest.$ac_objext conftest$ac_exeext
26281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26282 (eval $ac_link) 2>&5
26283 ac_status=$?
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); } &&
26286 { ac_try='test -s conftest$ac_exeext'
26287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26288 (eval $ac_try) 2>&5
26289 ac_status=$?
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); }; }; then
26292 ac_cv_lib_w_wcslen=yes
26293else
26294 echo "$as_me: failed program was:" >&5
26295sed 's/^/| /' conftest.$ac_ext >&5
26296
26297ac_cv_lib_w_wcslen=no
26298fi
26299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26300LIBS=$ac_check_lib_save_LIBS
26301fi
26302echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26303echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26304if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26305
7a30264c 26306 WCHAR_LINK=" -lw"
d74f4b5a 26307 WCSLEN_FOUND=1
e6cc62c6 26308
4f14bcd8 26309fi
10f2d63a 26310
7a30264c 26311 fi
d29b553b 26312 fi
95c8801c 26313
d74f4b5a 26314 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26315 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26316#define HAVE_WCSLEN 1
e6cc62c6 26317_ACEOF
10f2d63a 26318
d74f4b5a 26319 fi
52127426 26320
e6cc62c6
VS
26321
26322for ac_func in wcsrtombs
eb4efbdc 26323do
e6cc62c6
VS
26324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26325echo "$as_me:$LINENO: checking for $ac_func" >&5
26326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26327if eval "test \"\${$as_ac_var+set}\" = set"; then
26328 echo $ECHO_N "(cached) $ECHO_C" >&6
26329else
26330 cat >conftest.$ac_ext <<_ACEOF
26331#line $LINENO "configure"
26332/* confdefs.h. */
26333_ACEOF
26334cat confdefs.h >>conftest.$ac_ext
26335cat >>conftest.$ac_ext <<_ACEOF
26336/* end confdefs.h. */
eb4efbdc 26337/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26338 which can conflict with char $ac_func (); below.
26339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26340 <limits.h> exists even on freestanding compilers. */
26341#ifdef __STDC__
26342# include <limits.h>
26343#else
26344# include <assert.h>
26345#endif
eb4efbdc 26346/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26347#ifdef __cplusplus
26348extern "C"
26349{
26350#endif
4f14bcd8 26351/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26352 builtin and then its argument prototype would still apply. */
26353char $ac_func ();
10f2d63a
VZ
26354/* The GNU C library defines this for functions which it implements
26355 to always fail with ENOSYS. Some functions are actually named
26356 something starting with __ and the normal name is an alias. */
247f5006 26357#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26358choke me
26359#else
e6cc62c6
VS
26360char (*f) () = $ac_func;
26361#endif
26362#ifdef __cplusplus
26363}
10f2d63a
VZ
26364#endif
26365
e6cc62c6
VS
26366int
26367main ()
26368{
26369return f != $ac_func;
26370 ;
26371 return 0;
26372}
26373_ACEOF
26374rm -f conftest.$ac_objext conftest$ac_exeext
26375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26376 (eval $ac_link) 2>&5
26377 ac_status=$?
26378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379 (exit $ac_status); } &&
26380 { ac_try='test -s conftest$ac_exeext'
26381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26382 (eval $ac_try) 2>&5
26383 ac_status=$?
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); }; }; then
26386 eval "$as_ac_var=yes"
26387else
26388 echo "$as_me: failed program was:" >&5
26389sed 's/^/| /' conftest.$ac_ext >&5
26390
26391eval "$as_ac_var=no"
26392fi
26393rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26394fi
26395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26397if test `eval echo '${'$as_ac_var'}'` = yes; then
26398 cat >>confdefs.h <<_ACEOF
26399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26400_ACEOF
270a909e 26401
4f14bcd8 26402fi
247f5006 26403done
1e487827 26404
af15babd 26405else
e6cc62c6
VS
26406 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26407echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26408fi
52127426 26409
8284b0c5 26410
e6cc62c6
VS
26411
26412ac_ext=cc
247f5006 26413ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26417
af15babd 26418
247f5006
VZ
26419
26420for ac_func in vsnprintf
26421do
e6cc62c6
VS
26422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26423echo "$as_me:$LINENO: checking for $ac_func" >&5
26424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26425if eval "test \"\${$as_ac_var+set}\" = set"; then
26426 echo $ECHO_N "(cached) $ECHO_C" >&6
26427else
26428 cat >conftest.$ac_ext <<_ACEOF
26429#line $LINENO "configure"
26430/* confdefs.h. */
26431_ACEOF
26432cat confdefs.h >>conftest.$ac_ext
26433cat >>conftest.$ac_ext <<_ACEOF
26434/* end confdefs.h. */
247f5006 26435/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26436 which can conflict with char $ac_func (); below.
26437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26438 <limits.h> exists even on freestanding compilers. */
26439#ifdef __STDC__
26440# include <limits.h>
26441#else
26442# include <assert.h>
26443#endif
247f5006
VZ
26444/* Override any gcc2 internal prototype to avoid an error. */
26445#ifdef __cplusplus
26446extern "C"
e6cc62c6 26447{
247f5006
VZ
26448#endif
26449/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26450 builtin and then its argument prototype would still apply. */
26451char $ac_func ();
247f5006
VZ
26452/* The GNU C library defines this for functions which it implements
26453 to always fail with ENOSYS. Some functions are actually named
26454 something starting with __ and the normal name is an alias. */
26455#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26456choke me
26457#else
e6cc62c6
VS
26458char (*f) () = $ac_func;
26459#endif
26460#ifdef __cplusplus
26461}
247f5006 26462#endif
af15babd 26463
e6cc62c6
VS
26464int
26465main ()
26466{
26467return f != $ac_func;
26468 ;
26469 return 0;
26470}
26471_ACEOF
26472rm -f conftest.$ac_objext conftest$ac_exeext
26473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26474 (eval $ac_link) 2>&5
26475 ac_status=$?
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); } &&
26478 { ac_try='test -s conftest$ac_exeext'
26479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26480 (eval $ac_try) 2>&5
26481 ac_status=$?
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); }; }; then
26484 eval "$as_ac_var=yes"
26485else
26486 echo "$as_me: failed program was:" >&5
26487sed 's/^/| /' conftest.$ac_ext >&5
26488
26489eval "$as_ac_var=no"
26490fi
26491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26492fi
26493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26495if test `eval echo '${'$as_ac_var'}'` = yes; then
26496 cat >>confdefs.h <<_ACEOF
26497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26498_ACEOF
52127426 26499
5c6fa7d2 26500fi
247f5006 26501done
8284b0c5 26502
4f14bcd8 26503
8d90d2f2 26504if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26505 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26506echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26507if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26508 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26509else
e6cc62c6
VS
26510
26511 cat >conftest.$ac_ext <<_ACEOF
26512#line $LINENO "configure"
26513/* confdefs.h. */
26514_ACEOF
26515cat confdefs.h >>conftest.$ac_ext
26516cat >>conftest.$ac_ext <<_ACEOF
26517/* end confdefs.h. */
8d90d2f2
VZ
26518
26519 #include <stdio.h>
26520 #include <stdarg.h>
e6cc62c6
VS
26521
26522int
26523main ()
26524{
8d90d2f2
VZ
26525
26526 char *buf;
26527 va_list ap;
26528 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26529
26530 ;
26531 return 0;
26532}
26533_ACEOF
26534rm -f conftest.$ac_objext
26535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26536 (eval $ac_compile) 2>&5
26537 ac_status=$?
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } &&
26540 { ac_try='test -s conftest.$ac_objext'
26541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542 (eval $ac_try) 2>&5
26543 ac_status=$?
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); }; }; then
8d90d2f2
VZ
26546 wx_cv_func_vsnprintf_decl=yes
26547else
e6cc62c6
VS
26548 echo "$as_me: failed program was:" >&5
26549sed 's/^/| /' conftest.$ac_ext >&5
26550
26551wx_cv_func_vsnprintf_decl=no
26552
8d90d2f2 26553fi
e6cc62c6
VS
26554rm -f conftest.$ac_objext conftest.$ac_ext
26555
8d90d2f2 26556
e6cc62c6
VS
26557fi
26558echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26559echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26560
26561 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26562 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26563#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26564_ACEOF
8d90d2f2
VZ
26565
26566 fi
26567fi
26568
247f5006 26569if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26570
26571
26572
26573for ac_func in fputwc wprintf vswprintf
d74f4b5a 26574do
e6cc62c6
VS
26575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26576echo "$as_me:$LINENO: checking for $ac_func" >&5
26577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26578if eval "test \"\${$as_ac_var+set}\" = set"; then
26579 echo $ECHO_N "(cached) $ECHO_C" >&6
26580else
26581 cat >conftest.$ac_ext <<_ACEOF
26582#line $LINENO "configure"
26583/* confdefs.h. */
26584_ACEOF
26585cat confdefs.h >>conftest.$ac_ext
26586cat >>conftest.$ac_ext <<_ACEOF
26587/* end confdefs.h. */
d74f4b5a 26588/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26589 which can conflict with char $ac_func (); below.
26590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26591 <limits.h> exists even on freestanding compilers. */
26592#ifdef __STDC__
26593# include <limits.h>
26594#else
26595# include <assert.h>
26596#endif
d74f4b5a 26597/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26598#ifdef __cplusplus
26599extern "C"
e6cc62c6 26600{
247f5006 26601#endif
d74f4b5a 26602/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26603 builtin and then its argument prototype would still apply. */
26604char $ac_func ();
d74f4b5a
VZ
26605/* The GNU C library defines this for functions which it implements
26606 to always fail with ENOSYS. Some functions are actually named
26607 something starting with __ and the normal name is an alias. */
26608#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26609choke me
26610#else
e6cc62c6
VS
26611char (*f) () = $ac_func;
26612#endif
26613#ifdef __cplusplus
26614}
d74f4b5a
VZ
26615#endif
26616
e6cc62c6
VS
26617int
26618main ()
26619{
26620return f != $ac_func;
26621 ;
26622 return 0;
26623}
26624_ACEOF
26625rm -f conftest.$ac_objext conftest$ac_exeext
26626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26627 (eval $ac_link) 2>&5
26628 ac_status=$?
26629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630 (exit $ac_status); } &&
26631 { ac_try='test -s conftest$ac_exeext'
26632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26633 (eval $ac_try) 2>&5
26634 ac_status=$?
26635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636 (exit $ac_status); }; }; then
26637 eval "$as_ac_var=yes"
26638else
26639 echo "$as_me: failed program was:" >&5
26640sed 's/^/| /' conftest.$ac_ext >&5
26641
26642eval "$as_ac_var=no"
26643fi
26644rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26645fi
26646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26648if test `eval echo '${'$as_ac_var'}'` = yes; then
26649 cat >>confdefs.h <<_ACEOF
26650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26651_ACEOF
d74f4b5a 26652
d74f4b5a
VZ
26653fi
26654done
26655
8d90d2f2 26656
e6cc62c6
VS
26657 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26658echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26659 cat >conftest.$ac_ext <<_ACEOF
26660#line $LINENO "configure"
26661/* confdefs.h. */
26662_ACEOF
26663cat confdefs.h >>conftest.$ac_ext
26664cat >>conftest.$ac_ext <<_ACEOF
26665/* end confdefs.h. */
79668cae 26666#include <wchar.h>
e6cc62c6
VS
26667int
26668main ()
26669{
79668cae 26670&_vsnwprintf;
e6cc62c6
VS
26671 ;
26672 return 0;
26673}
26674_ACEOF
26675rm -f conftest.$ac_objext
26676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26677 (eval $ac_compile) 2>&5
26678 ac_status=$?
26679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680 (exit $ac_status); } &&
26681 { ac_try='test -s conftest.$ac_objext'
26682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683 (eval $ac_try) 2>&5
26684 ac_status=$?
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); }; }; then
26687 echo "$as_me:$LINENO: result: yes" >&5
26688echo "${ECHO_T}yes" >&6
26689 cat >>confdefs.h <<\_ACEOF
79668cae 26690#define HAVE__VSNWPRINTF 1
e6cc62c6 26691_ACEOF
79668cae
MB
26692
26693else
e6cc62c6
VS
26694 echo "$as_me: failed program was:" >&5
26695sed 's/^/| /' conftest.$ac_ext >&5
26696
26697echo "$as_me:$LINENO: result: no" >&5
26698echo "${ECHO_T}no" >&6
79668cae 26699fi
e6cc62c6 26700rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26701fi
26702
247f5006
VZ
26703ac_ext=c
26704ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26707ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26708
26709
26710
26711
4f14bcd8 26712if test "$TOOLKIT" != "MSW"; then
af15babd 26713
8284b0c5
MB
26714
26715
e6cc62c6
VS
26716
26717ac_ext=cc
4f14bcd8 26718ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26722
52127426 26723
e6cc62c6
VS
26724
26725
26726# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26727if test "${with_libiconv_prefix+set}" = set; then
26728 withval="$with_libiconv_prefix"
e6cc62c6 26729
b040e242
VS
26730 for dir in `echo "$withval" | tr : ' '`; do
26731 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26732 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26733 done
b040e242 26734
e6cc62c6 26735fi;
b040e242 26736
e6cc62c6
VS
26737 echo "$as_me:$LINENO: checking for iconv" >&5
26738echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26739if test "${am_cv_func_iconv+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26741else
e6cc62c6 26742
b040e242
VS
26743 am_cv_func_iconv="no, consider installing GNU libiconv"
26744 am_cv_lib_iconv=no
e6cc62c6
VS
26745 cat >conftest.$ac_ext <<_ACEOF
26746#line $LINENO "configure"
26747/* confdefs.h. */
26748_ACEOF
26749cat confdefs.h >>conftest.$ac_ext
26750cat >>conftest.$ac_ext <<_ACEOF
26751/* end confdefs.h. */
b040e242 26752#include <stdlib.h>
4f14bcd8 26753#include <iconv.h>
e6cc62c6
VS
26754int
26755main ()
26756{
b040e242
VS
26757iconv_t cd = iconv_open("","");
26758 iconv(cd,NULL,NULL,NULL,NULL);
26759 iconv_close(cd);
e6cc62c6
VS
26760 ;
26761 return 0;
26762}
26763_ACEOF
26764rm -f conftest.$ac_objext conftest$ac_exeext
26765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26766 (eval $ac_link) 2>&5
26767 ac_status=$?
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } &&
26770 { ac_try='test -s conftest$ac_exeext'
26771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26772 (eval $ac_try) 2>&5
26773 ac_status=$?
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); }; }; then
b040e242 26776 am_cv_func_iconv=yes
af15babd 26777else
e6cc62c6
VS
26778 echo "$as_me: failed program was:" >&5
26779sed 's/^/| /' conftest.$ac_ext >&5
26780
b040e242 26781fi
e6cc62c6 26782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26783 if test "$am_cv_func_iconv" != yes; then
26784 am_save_LIBS="$LIBS"
26785 LIBS="$LIBS -liconv"
e6cc62c6
VS
26786 cat >conftest.$ac_ext <<_ACEOF
26787#line $LINENO "configure"
26788/* confdefs.h. */
26789_ACEOF
26790cat confdefs.h >>conftest.$ac_ext
26791cat >>conftest.$ac_ext <<_ACEOF
26792/* end confdefs.h. */
b040e242
VS
26793#include <stdlib.h>
26794#include <iconv.h>
e6cc62c6
VS
26795int
26796main ()
26797{
b040e242
VS
26798iconv_t cd = iconv_open("","");
26799 iconv(cd,NULL,NULL,NULL,NULL);
26800 iconv_close(cd);
e6cc62c6
VS
26801 ;
26802 return 0;
26803}
26804_ACEOF
26805rm -f conftest.$ac_objext conftest$ac_exeext
26806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26807 (eval $ac_link) 2>&5
26808 ac_status=$?
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } &&
26811 { ac_try='test -s conftest$ac_exeext'
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
b040e242
VS
26817 am_cv_lib_iconv=yes
26818 am_cv_func_iconv=yes
26819else
e6cc62c6
VS
26820 echo "$as_me: failed program was:" >&5
26821sed 's/^/| /' conftest.$ac_ext >&5
26822
af15babd 26823fi
e6cc62c6 26824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26825 LIBS="$am_save_LIBS"
26826 fi
247f5006 26827
e6cc62c6
VS
26828fi
26829echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26830echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26831 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26832
26833cat >>confdefs.h <<\_ACEOF
b040e242 26834#define HAVE_ICONV 1
e6cc62c6 26835_ACEOF
b040e242 26836
e6cc62c6
VS
26837 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26838echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26839if test "${wx_cv_func_iconv_const+set}" = set; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26841else
e6cc62c6
VS
26842 cat >conftest.$ac_ext <<_ACEOF
26843#line $LINENO "configure"
26844/* confdefs.h. */
26845_ACEOF
26846cat confdefs.h >>conftest.$ac_ext
26847cat >>conftest.$ac_ext <<_ACEOF
26848/* end confdefs.h. */
b040e242
VS
26849
26850#include <stdlib.h>
26851#include <iconv.h>
26852extern
26853#ifdef __cplusplus
26854"C"
26855#endif
26856#if defined(__STDC__) || defined(__cplusplus)
26857size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26858#else
26859size_t iconv();
26860#endif
af15babd 26861
e6cc62c6
VS
26862int
26863main ()
26864{
26865
26866 ;
26867 return 0;
26868}
26869_ACEOF
26870rm -f conftest.$ac_objext
26871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26872 (eval $ac_compile) 2>&5
26873 ac_status=$?
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } &&
26876 { ac_try='test -s conftest.$ac_objext'
26877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878 (eval $ac_try) 2>&5
26879 ac_status=$?
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; }; then
b7043674 26882 wx_cv_func_iconv_const="no"
b040e242 26883else
e6cc62c6
VS
26884 echo "$as_me: failed program was:" >&5
26885sed 's/^/| /' conftest.$ac_ext >&5
26886
26887wx_cv_func_iconv_const="yes"
26888
247f5006 26889fi
e6cc62c6 26890rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26891
e6cc62c6
VS
26892fi
26893echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26894echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26895
26896 iconv_const=
1c405bb5 26897 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26898 iconv_const="const"
26899 fi
26900
e6cc62c6
VS
26901
26902cat >>confdefs.h <<_ACEOF
f09359cf 26903#define ICONV_CONST $iconv_const
e6cc62c6 26904_ACEOF
b040e242
VS
26905
26906 fi
26907 LIBICONV=
26908 if test "$am_cv_lib_iconv" = yes; then
26909 LIBICONV="-liconv"
26910 fi
e6cc62c6 26911
b040e242
VS
26912
26913LIBS="$LIBICONV $LIBS"
4f14bcd8 26914ac_ext=c
4f14bcd8 26915ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26918ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26919
5c6fa7d2 26920
8284b0c5 26921if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26922
26923for ac_func in sigaction
af15babd 26924do
e6cc62c6
VS
26925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26926echo "$as_me:$LINENO: checking for $ac_func" >&5
26927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26928if eval "test \"\${$as_ac_var+set}\" = set"; then
26929 echo $ECHO_N "(cached) $ECHO_C" >&6
26930else
26931 cat >conftest.$ac_ext <<_ACEOF
26932#line $LINENO "configure"
26933/* confdefs.h. */
26934_ACEOF
26935cat confdefs.h >>conftest.$ac_ext
26936cat >>conftest.$ac_ext <<_ACEOF
26937/* end confdefs.h. */
af15babd 26938/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26939 which can conflict with char $ac_func (); below.
26940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26941 <limits.h> exists even on freestanding compilers. */
26942#ifdef __STDC__
26943# include <limits.h>
26944#else
26945# include <assert.h>
26946#endif
af15babd 26947/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26948#ifdef __cplusplus
26949extern "C"
26950{
26951#endif
af15babd 26952/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26953 builtin and then its argument prototype would still apply. */
26954char $ac_func ();
af15babd
VZ
26955/* The GNU C library defines this for functions which it implements
26956 to always fail with ENOSYS. Some functions are actually named
26957 something starting with __ and the normal name is an alias. */
26958#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26959choke me
26960#else
e6cc62c6
VS
26961char (*f) () = $ac_func;
26962#endif
26963#ifdef __cplusplus
26964}
af15babd
VZ
26965#endif
26966
e6cc62c6
VS
26967int
26968main ()
26969{
26970return f != $ac_func;
26971 ;
26972 return 0;
26973}
26974_ACEOF
26975rm -f conftest.$ac_objext conftest$ac_exeext
26976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26977 (eval $ac_link) 2>&5
26978 ac_status=$?
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
26981 { ac_try='test -s conftest$ac_exeext'
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; }; then
26987 eval "$as_ac_var=yes"
26988else
26989 echo "$as_me: failed program was:" >&5
26990sed 's/^/| /' conftest.$ac_ext >&5
26991
26992eval "$as_ac_var=no"
26993fi
26994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26995fi
26996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26997echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26998if test `eval echo '${'$as_ac_var'}'` = yes; then
26999 cat >>confdefs.h <<_ACEOF
27000#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27001_ACEOF
7b4a847f 27002
4f14bcd8
GD
27003fi
27004done
27005
8284b0c5 27006
4f14bcd8 27007 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27008 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27009echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27010 wxUSE_ON_FATAL_EXCEPTION=no
27011 fi
27012
27013 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27014
27015
27016 ac_ext=cc
5c6fa7d2 27017ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27021
5c6fa7d2 27022
e6cc62c6
VS
27023 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27024echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27025if test "${wx_cv_type_sa_handler+set}" = set; then
27026 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27027else
e6cc62c6
VS
27028
27029 cat >conftest.$ac_ext <<_ACEOF
27030#line $LINENO "configure"
27031/* confdefs.h. */
27032_ACEOF
27033cat confdefs.h >>conftest.$ac_ext
27034cat >>conftest.$ac_ext <<_ACEOF
27035/* end confdefs.h. */
4f14bcd8 27036#include <signal.h>
e6cc62c6
VS
27037int
27038main ()
27039{
4f14bcd8
GD
27040
27041 extern void testSigHandler(int);
27042
27043 struct sigaction sa;
27044 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27045
27046 ;
27047 return 0;
27048}
27049_ACEOF
27050rm -f conftest.$ac_objext
27051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27052 (eval $ac_compile) 2>&5
27053 ac_status=$?
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); } &&
27056 { ac_try='test -s conftest.$ac_objext'
27057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058 (eval $ac_try) 2>&5
27059 ac_status=$?
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; }; then
27062
4f14bcd8 27063 wx_cv_type_sa_handler=int
e6cc62c6 27064
af15babd 27065else
e6cc62c6
VS
27066 echo "$as_me: failed program was:" >&5
27067sed 's/^/| /' conftest.$ac_ext >&5
27068
27069
4f14bcd8 27070 wx_cv_type_sa_handler=void
e6cc62c6 27071
247f5006 27072fi
e6cc62c6 27073rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27074
e6cc62c6
VS
27075fi
27076echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27077echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27078
27079 ac_ext=c
4f14bcd8 27080ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27083ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27084
8284b0c5 27085
e6cc62c6 27086 cat >>confdefs.h <<_ACEOF
4f14bcd8 27087#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27088_ACEOF
af15babd 27089
4f14bcd8
GD
27090 fi
27091fi
af15babd 27092
e6cc62c6
VS
27093
27094
a1d22ad7 27095for ac_func in mkstemp mktemp
af15babd 27096do
e6cc62c6
VS
27097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27098echo "$as_me:$LINENO: checking for $ac_func" >&5
27099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27100if eval "test \"\${$as_ac_var+set}\" = set"; then
27101 echo $ECHO_N "(cached) $ECHO_C" >&6
27102else
27103 cat >conftest.$ac_ext <<_ACEOF
27104#line $LINENO "configure"
27105/* confdefs.h. */
27106_ACEOF
27107cat confdefs.h >>conftest.$ac_ext
27108cat >>conftest.$ac_ext <<_ACEOF
27109/* end confdefs.h. */
af15babd 27110/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27111 which can conflict with char $ac_func (); below.
27112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27113 <limits.h> exists even on freestanding compilers. */
27114#ifdef __STDC__
27115# include <limits.h>
27116#else
27117# include <assert.h>
27118#endif
af15babd 27119/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27120#ifdef __cplusplus
27121extern "C"
27122{
27123#endif
af15babd 27124/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27125 builtin and then its argument prototype would still apply. */
27126char $ac_func ();
af15babd
VZ
27127/* The GNU C library defines this for functions which it implements
27128 to always fail with ENOSYS. Some functions are actually named
27129 something starting with __ and the normal name is an alias. */
27130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27131choke me
27132#else
e6cc62c6
VS
27133char (*f) () = $ac_func;
27134#endif
27135#ifdef __cplusplus
27136}
af15babd
VZ
27137#endif
27138
e6cc62c6
VS
27139int
27140main ()
27141{
27142return f != $ac_func;
27143 ;
27144 return 0;
27145}
27146_ACEOF
27147rm -f conftest.$ac_objext conftest$ac_exeext
27148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27149 (eval $ac_link) 2>&5
27150 ac_status=$?
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); } &&
27153 { ac_try='test -s conftest$ac_exeext'
27154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155 (eval $ac_try) 2>&5
27156 ac_status=$?
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }; then
27159 eval "$as_ac_var=yes"
27160else
27161 echo "$as_me: failed program was:" >&5
27162sed 's/^/| /' conftest.$ac_ext >&5
27163
27164eval "$as_ac_var=no"
27165fi
27166rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27167fi
27168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27170if test `eval echo '${'$as_ac_var'}'` = yes; then
27171 cat >>confdefs.h <<_ACEOF
27172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27173_ACEOF
ade35f11 27174 break
ade35f11
VZ
27175fi
27176done
27177
8284b0c5 27178
e6cc62c6
VS
27179echo "$as_me:$LINENO: checking for statfs" >&5
27180echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27181if test "${wx_cv_func_statfs+set}" = set; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27183else
e6cc62c6
VS
27184 cat >conftest.$ac_ext <<_ACEOF
27185#line $LINENO "configure"
27186/* confdefs.h. */
27187_ACEOF
27188cat confdefs.h >>conftest.$ac_ext
27189cat >>conftest.$ac_ext <<_ACEOF
27190/* end confdefs.h. */
4f14bcd8
GD
27191
27192 #if defined(__BSD__)
27193 #include <sys/param.h>
27194 #include <sys/mount.h>
27195 #else
27196 #include <sys/vfs.h>
27197 #endif
e6cc62c6
VS
27198
27199int
27200main ()
27201{
4f14bcd8
GD
27202
27203 long l;
27204 struct statfs fs;
27205 statfs("/", &fs);
27206 l = fs.f_bsize;
27207 l += fs.f_blocks;
27208 l += fs.f_bavail;
e6cc62c6
VS
27209
27210 ;
27211 return 0;
27212}
27213_ACEOF
27214rm -f conftest.$ac_objext
27215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27216 (eval $ac_compile) 2>&5
27217 ac_status=$?
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); } &&
27220 { ac_try='test -s conftest.$ac_objext'
27221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27222 (eval $ac_try) 2>&5
27223 ac_status=$?
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); }; }; then
27226
4f14bcd8 27227 wx_cv_func_statfs=yes
e6cc62c6 27228
4f14bcd8 27229else
e6cc62c6
VS
27230 echo "$as_me: failed program was:" >&5
27231sed 's/^/| /' conftest.$ac_ext >&5
27232
27233
4f14bcd8 27234 wx_cv_func_statfs=no
e6cc62c6 27235
8284b0c5 27236
247f5006 27237fi
e6cc62c6 27238rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27239
e6cc62c6
VS
27240fi
27241echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27242echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27243
27244if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27245 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27246 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27247#define HAVE_STATFS 1
e6cc62c6 27248_ACEOF
4f14bcd8
GD
27249
27250else
e6cc62c6
VS
27251 echo "$as_me:$LINENO: checking for statvfs" >&5
27252echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27253if test "${wx_cv_func_statvfs+set}" = set; then
27254 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27255else
e6cc62c6
VS
27256 cat >conftest.$ac_ext <<_ACEOF
27257#line $LINENO "configure"
27258/* confdefs.h. */
27259_ACEOF
27260cat confdefs.h >>conftest.$ac_ext
27261cat >>conftest.$ac_ext <<_ACEOF
27262/* end confdefs.h. */
af15babd 27263
54ab82b3
VZ
27264 #include <stddef.h>
27265 #include <sys/statvfs.h>
e6cc62c6
VS
27266
27267int
27268main ()
27269{
af15babd 27270
54ab82b3 27271 statvfs("/", NULL);
e6cc62c6
VS
27272
27273 ;
27274 return 0;
27275}
27276_ACEOF
27277rm -f conftest.$ac_objext
27278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27279 (eval $ac_compile) 2>&5
27280 ac_status=$?
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); } &&
27283 { ac_try='test -s conftest.$ac_objext'
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
54ab82b3 27289 wx_cv_func_statvfs=yes
af15babd 27290else
e6cc62c6
VS
27291 echo "$as_me: failed program was:" >&5
27292sed 's/^/| /' conftest.$ac_ext >&5
27293
27294wx_cv_func_statvfs=no
27295
247f5006 27296fi
e6cc62c6 27297rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27298
e6cc62c6
VS
27299fi
27300echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27301echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27302
4f14bcd8 27303 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27304
27305
27306 ac_ext=cc
54ab82b3 27307ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27311
27312
e6cc62c6
VS
27313 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27314echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27315if test "${wx_cv_type_statvfs_t+set}" = set; then
27316 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27317else
e6cc62c6
VS
27318 cat >conftest.$ac_ext <<_ACEOF
27319#line $LINENO "configure"
27320/* confdefs.h. */
27321_ACEOF
27322cat confdefs.h >>conftest.$ac_ext
27323cat >>conftest.$ac_ext <<_ACEOF
27324/* end confdefs.h. */
54ab82b3
VZ
27325
27326 #include <sys/statvfs.h>
e6cc62c6
VS
27327
27328int
27329main ()
27330{
54ab82b3
VZ
27331
27332 long l;
27333 statvfs_t fs;
27334 statvfs("/", &fs);
27335 l = fs.f_bsize;
27336 l += fs.f_blocks;
27337 l += fs.f_bavail;
e6cc62c6
VS
27338
27339 ;
27340 return 0;
27341}
27342_ACEOF
27343rm -f conftest.$ac_objext
27344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27345 (eval $ac_compile) 2>&5
27346 ac_status=$?
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); } &&
27349 { ac_try='test -s conftest.$ac_objext'
27350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27351 (eval $ac_try) 2>&5
27352 ac_status=$?
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; }; then
54ab82b3
VZ
27355 wx_cv_type_statvfs_t=statvfs_t
27356else
e6cc62c6
VS
27357 echo "$as_me: failed program was:" >&5
27358sed 's/^/| /' conftest.$ac_ext >&5
27359
27360
27361 cat >conftest.$ac_ext <<_ACEOF
27362#line $LINENO "configure"
27363/* confdefs.h. */
27364_ACEOF
27365cat confdefs.h >>conftest.$ac_ext
27366cat >>conftest.$ac_ext <<_ACEOF
27367/* end confdefs.h. */
54ab82b3
VZ
27368
27369 #include <sys/statvfs.h>
e6cc62c6
VS
27370
27371int
27372main ()
27373{
54ab82b3
VZ
27374
27375 long l;
65d8ef1e 27376 struct statvfs fs;
54ab82b3
VZ
27377 statvfs("/", &fs);
27378 l = fs.f_bsize;
27379 l += fs.f_blocks;
27380 l += fs.f_bavail;
e6cc62c6
VS
27381
27382 ;
27383 return 0;
27384}
27385_ACEOF
27386rm -f conftest.$ac_objext
27387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27388 (eval $ac_compile) 2>&5
27389 ac_status=$?
27390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); } &&
27392 { ac_try='test -s conftest.$ac_objext'
27393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27394 (eval $ac_try) 2>&5
27395 ac_status=$?
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; }; then
54ab82b3
VZ
27398 wx_cv_type_statvfs_t="struct statvfs"
27399else
e6cc62c6
VS
27400 echo "$as_me: failed program was:" >&5
27401sed 's/^/| /' conftest.$ac_ext >&5
27402
27403wx_cv_type_statvfs_t="unknown"
27404
54ab82b3 27405fi
e6cc62c6
VS
27406rm -f conftest.$ac_objext conftest.$ac_ext
27407
27408
54ab82b3 27409fi
e6cc62c6 27410rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27411
e6cc62c6
VS
27412fi
27413echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27414echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27415
27416 ac_ext=c
54ab82b3 27417ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27420ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27421
27422
27423 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27424 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27425#define HAVE_STATVFS 1
e6cc62c6 27426_ACEOF
af15babd 27427
54ab82b3 27428 fi
4f14bcd8 27429 else
54ab82b3 27430 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27431 fi
27432fi
af15babd 27433
54ab82b3 27434if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27435 cat >>confdefs.h <<_ACEOF
54ab82b3 27436#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27437_ACEOF
54ab82b3
VZ
27438
27439else
e6cc62c6
VS
27440 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27441echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27442fi
27443
4f14bcd8 27444if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27445
27446
27447for ac_func in fcntl flock
af15babd 27448do
e6cc62c6
VS
27449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27450echo "$as_me:$LINENO: checking for $ac_func" >&5
27451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27452if eval "test \"\${$as_ac_var+set}\" = set"; then
27453 echo $ECHO_N "(cached) $ECHO_C" >&6
27454else
27455 cat >conftest.$ac_ext <<_ACEOF
27456#line $LINENO "configure"
27457/* confdefs.h. */
27458_ACEOF
27459cat confdefs.h >>conftest.$ac_ext
27460cat >>conftest.$ac_ext <<_ACEOF
27461/* end confdefs.h. */
af15babd 27462/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27463 which can conflict with char $ac_func (); below.
27464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27465 <limits.h> exists even on freestanding compilers. */
27466#ifdef __STDC__
27467# include <limits.h>
27468#else
27469# include <assert.h>
27470#endif
af15babd 27471/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27472#ifdef __cplusplus
27473extern "C"
27474{
27475#endif
af15babd 27476/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27477 builtin and then its argument prototype would still apply. */
27478char $ac_func ();
af15babd
VZ
27479/* The GNU C library defines this for functions which it implements
27480 to always fail with ENOSYS. Some functions are actually named
27481 something starting with __ and the normal name is an alias. */
27482#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27483choke me
27484#else
e6cc62c6
VS
27485char (*f) () = $ac_func;
27486#endif
27487#ifdef __cplusplus
27488}
af15babd
VZ
27489#endif
27490
e6cc62c6
VS
27491int
27492main ()
27493{
27494return f != $ac_func;
27495 ;
27496 return 0;
27497}
27498_ACEOF
27499rm -f conftest.$ac_objext conftest$ac_exeext
27500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27501 (eval $ac_link) 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); } &&
27505 { ac_try='test -s conftest$ac_exeext'
27506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507 (eval $ac_try) 2>&5
27508 ac_status=$?
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; }; then
27511 eval "$as_ac_var=yes"
27512else
27513 echo "$as_me: failed program was:" >&5
27514sed 's/^/| /' conftest.$ac_ext >&5
27515
27516eval "$as_ac_var=no"
27517fi
27518rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27519fi
27520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27521echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27522if test `eval echo '${'$as_ac_var'}'` = yes; then
27523 cat >>confdefs.h <<_ACEOF
27524#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27525_ACEOF
4f14bcd8 27526 break
af15babd
VZ
27527fi
27528done
27529
8284b0c5 27530
4f14bcd8 27531 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27532 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27533echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27534 wxUSE_SNGLINST_CHECKER=no
27535 fi
27536fi
af15babd 27537
e6cc62c6 27538
4f14bcd8 27539for ac_func in timegm
af15babd 27540do
e6cc62c6
VS
27541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27542echo "$as_me:$LINENO: checking for $ac_func" >&5
27543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27544if eval "test \"\${$as_ac_var+set}\" = set"; then
27545 echo $ECHO_N "(cached) $ECHO_C" >&6
27546else
27547 cat >conftest.$ac_ext <<_ACEOF
27548#line $LINENO "configure"
27549/* confdefs.h. */
27550_ACEOF
27551cat confdefs.h >>conftest.$ac_ext
27552cat >>conftest.$ac_ext <<_ACEOF
27553/* end confdefs.h. */
af15babd 27554/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27555 which can conflict with char $ac_func (); below.
27556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27557 <limits.h> exists even on freestanding compilers. */
27558#ifdef __STDC__
27559# include <limits.h>
27560#else
27561# include <assert.h>
27562#endif
af15babd 27563/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27564#ifdef __cplusplus
27565extern "C"
27566{
27567#endif
af15babd 27568/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27569 builtin and then its argument prototype would still apply. */
27570char $ac_func ();
af15babd
VZ
27571/* The GNU C library defines this for functions which it implements
27572 to always fail with ENOSYS. Some functions are actually named
27573 something starting with __ and the normal name is an alias. */
247f5006
VZ
27574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27575choke me
27576#else
e6cc62c6
VS
27577char (*f) () = $ac_func;
27578#endif
27579#ifdef __cplusplus
27580}
247f5006
VZ
27581#endif
27582
e6cc62c6
VS
27583int
27584main ()
27585{
27586return f != $ac_func;
27587 ;
27588 return 0;
27589}
27590_ACEOF
27591rm -f conftest.$ac_objext conftest$ac_exeext
27592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27593 (eval $ac_link) 2>&5
27594 ac_status=$?
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); } &&
27597 { ac_try='test -s conftest$ac_exeext'
27598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599 (eval $ac_try) 2>&5
27600 ac_status=$?
27601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); }; }; then
27603 eval "$as_ac_var=yes"
27604else
27605 echo "$as_me: failed program was:" >&5
27606sed 's/^/| /' conftest.$ac_ext >&5
27607
27608eval "$as_ac_var=no"
27609fi
27610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27611fi
27612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27614if test `eval echo '${'$as_ac_var'}'` = yes; then
27615 cat >>confdefs.h <<_ACEOF
27616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27617_ACEOF
703e0a69 27618
af15babd
VZ
27619fi
27620done
27621
8284b0c5 27622
e6cc62c6
VS
27623
27624
4f14bcd8 27625for ac_func in putenv setenv
10f2d63a 27626do
e6cc62c6
VS
27627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27628echo "$as_me:$LINENO: checking for $ac_func" >&5
27629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27630if eval "test \"\${$as_ac_var+set}\" = set"; then
27631 echo $ECHO_N "(cached) $ECHO_C" >&6
27632else
27633 cat >conftest.$ac_ext <<_ACEOF
27634#line $LINENO "configure"
27635/* confdefs.h. */
27636_ACEOF
27637cat confdefs.h >>conftest.$ac_ext
27638cat >>conftest.$ac_ext <<_ACEOF
27639/* end confdefs.h. */
af15babd 27640/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27641 which can conflict with char $ac_func (); below.
27642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27643 <limits.h> exists even on freestanding compilers. */
27644#ifdef __STDC__
27645# include <limits.h>
27646#else
27647# include <assert.h>
27648#endif
af15babd 27649/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27650#ifdef __cplusplus
27651extern "C"
27652{
27653#endif
af15babd 27654/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27655 builtin and then its argument prototype would still apply. */
27656char $ac_func ();
af15babd
VZ
27657/* The GNU C library defines this for functions which it implements
27658 to always fail with ENOSYS. Some functions are actually named
27659 something starting with __ and the normal name is an alias. */
27660#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27661choke me
27662#else
e6cc62c6
VS
27663char (*f) () = $ac_func;
27664#endif
27665#ifdef __cplusplus
27666}
af15babd
VZ
27667#endif
27668
e6cc62c6
VS
27669int
27670main ()
27671{
27672return f != $ac_func;
27673 ;
27674 return 0;
27675}
27676_ACEOF
27677rm -f conftest.$ac_objext conftest$ac_exeext
27678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27679 (eval $ac_link) 2>&5
27680 ac_status=$?
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); } &&
27683 { ac_try='test -s conftest$ac_exeext'
27684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27685 (eval $ac_try) 2>&5
27686 ac_status=$?
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); }; }; then
27689 eval "$as_ac_var=yes"
27690else
27691 echo "$as_me: failed program was:" >&5
27692sed 's/^/| /' conftest.$ac_ext >&5
27693
27694eval "$as_ac_var=no"
27695fi
27696rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27697fi
27698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27699echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27700if test `eval echo '${'$as_ac_var'}'` = yes; then
27701 cat >>confdefs.h <<_ACEOF
27702#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27703_ACEOF
4f14bcd8 27704 break
af15babd 27705fi
af15babd
VZ
27706done
27707
8284b0c5 27708
4f14bcd8
GD
27709HAVE_SOME_SLEEP_FUNC=0
27710if test "$USE_BEOS" = 1; then
e6cc62c6 27711 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27712#define HAVE_SLEEP 1
e6cc62c6 27713_ACEOF
af15babd 27714
4f14bcd8 27715 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27716fi
27717
4f14bcd8 27718if test "$USE_DARWIN" = 1; then
e6cc62c6 27719 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27720#define HAVE_USLEEP 1
e6cc62c6 27721_ACEOF
10f2d63a 27722
4f14bcd8 27723 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27724fi
27725
4f14bcd8
GD
27726if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27727 POSIX4_LINK=
e6cc62c6
VS
27728
27729for ac_func in nanosleep
4f14bcd8 27730do
e6cc62c6
VS
27731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27732echo "$as_me:$LINENO: checking for $ac_func" >&5
27733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27734if eval "test \"\${$as_ac_var+set}\" = set"; then
27735 echo $ECHO_N "(cached) $ECHO_C" >&6
27736else
27737 cat >conftest.$ac_ext <<_ACEOF
27738#line $LINENO "configure"
27739/* confdefs.h. */
27740_ACEOF
27741cat confdefs.h >>conftest.$ac_ext
27742cat >>conftest.$ac_ext <<_ACEOF
27743/* end confdefs.h. */
4f14bcd8 27744/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27745 which can conflict with char $ac_func (); below.
27746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27747 <limits.h> exists even on freestanding compilers. */
27748#ifdef __STDC__
27749# include <limits.h>
27750#else
27751# include <assert.h>
27752#endif
10f2d63a 27753/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27754#ifdef __cplusplus
27755extern "C"
27756{
27757#endif
10f2d63a 27758/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27759 builtin and then its argument prototype would still apply. */
27760char $ac_func ();
4f14bcd8
GD
27761/* The GNU C library defines this for functions which it implements
27762 to always fail with ENOSYS. Some functions are actually named
27763 something starting with __ and the normal name is an alias. */
27764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27765choke me
27766#else
e6cc62c6
VS
27767char (*f) () = $ac_func;
27768#endif
27769#ifdef __cplusplus
27770}
4f14bcd8
GD
27771#endif
27772
e6cc62c6
VS
27773int
27774main ()
27775{
27776return f != $ac_func;
27777 ;
27778 return 0;
27779}
27780_ACEOF
27781rm -f conftest.$ac_objext conftest$ac_exeext
27782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27783 (eval $ac_link) 2>&5
27784 ac_status=$?
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); } &&
27787 { ac_try='test -s conftest$ac_exeext'
27788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789 (eval $ac_try) 2>&5
27790 ac_status=$?
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
27793 eval "$as_ac_var=yes"
27794else
27795 echo "$as_me: failed program was:" >&5
27796sed 's/^/| /' conftest.$ac_ext >&5
27797
27798eval "$as_ac_var=no"
27799fi
27800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27801fi
27802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27803echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27804if test `eval echo '${'$as_ac_var'}'` = yes; then
27805 cat >>confdefs.h <<_ACEOF
27806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27807_ACEOF
27808 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27809#define HAVE_NANOSLEEP 1
e6cc62c6 27810_ACEOF
4f14bcd8 27811
10f2d63a 27812else
e6cc62c6
VS
27813
27814 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27815echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27816if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27817 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27818else
e6cc62c6 27819 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27820LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27821cat >conftest.$ac_ext <<_ACEOF
27822#line $LINENO "configure"
27823/* confdefs.h. */
27824_ACEOF
27825cat confdefs.h >>conftest.$ac_ext
27826cat >>conftest.$ac_ext <<_ACEOF
27827/* end confdefs.h. */
27828
10f2d63a 27829/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27830#ifdef __cplusplus
27831extern "C"
27832#endif
10f2d63a 27833/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27834 builtin and then its argument prototype would still apply. */
27835char nanosleep ();
27836int
27837main ()
27838{
27839nanosleep ();
27840 ;
27841 return 0;
27842}
27843_ACEOF
27844rm -f conftest.$ac_objext conftest$ac_exeext
27845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27846 (eval $ac_link) 2>&5
27847 ac_status=$?
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); } &&
27850 { ac_try='test -s conftest$ac_exeext'
27851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852 (eval $ac_try) 2>&5
27853 ac_status=$?
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; }; then
27856 ac_cv_lib_posix4_nanosleep=yes
27857else
27858 echo "$as_me: failed program was:" >&5
27859sed 's/^/| /' conftest.$ac_ext >&5
27860
27861ac_cv_lib_posix4_nanosleep=no
27862fi
27863rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27864LIBS=$ac_check_lib_save_LIBS
27865fi
27866echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27867echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27868if test $ac_cv_lib_posix4_nanosleep = yes; then
27869
27870 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27871#define HAVE_NANOSLEEP 1
e6cc62c6 27872_ACEOF
4f14bcd8 27873
3d63bc3a 27874 POSIX4_LINK=" -lposix4"
e6cc62c6 27875
10f2d63a 27876else
10f2d63a 27877
e6cc62c6
VS
27878
27879for ac_func in usleep
4f14bcd8 27880do
e6cc62c6
VS
27881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27882echo "$as_me:$LINENO: checking for $ac_func" >&5
27883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27884if eval "test \"\${$as_ac_var+set}\" = set"; then
27885 echo $ECHO_N "(cached) $ECHO_C" >&6
27886else
27887 cat >conftest.$ac_ext <<_ACEOF
27888#line $LINENO "configure"
27889/* confdefs.h. */
27890_ACEOF
27891cat confdefs.h >>conftest.$ac_ext
27892cat >>conftest.$ac_ext <<_ACEOF
27893/* end confdefs.h. */
4f14bcd8 27894/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27895 which can conflict with char $ac_func (); below.
27896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27897 <limits.h> exists even on freestanding compilers. */
27898#ifdef __STDC__
27899# include <limits.h>
27900#else
27901# include <assert.h>
27902#endif
4f14bcd8 27903/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27904#ifdef __cplusplus
27905extern "C"
27906{
27907#endif
4f14bcd8 27908/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27909 builtin and then its argument prototype would still apply. */
27910char $ac_func ();
4f14bcd8
GD
27911/* The GNU C library defines this for functions which it implements
27912 to always fail with ENOSYS. Some functions are actually named
27913 something starting with __ and the normal name is an alias. */
27914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27915choke me
27916#else
e6cc62c6
VS
27917char (*f) () = $ac_func;
27918#endif
27919#ifdef __cplusplus
27920}
4f14bcd8
GD
27921#endif
27922
e6cc62c6
VS
27923int
27924main ()
27925{
27926return f != $ac_func;
27927 ;
27928 return 0;
27929}
27930_ACEOF
27931rm -f conftest.$ac_objext conftest$ac_exeext
27932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27933 (eval $ac_link) 2>&5
27934 ac_status=$?
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); } &&
27937 { ac_try='test -s conftest$ac_exeext'
27938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939 (eval $ac_try) 2>&5
27940 ac_status=$?
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); }; }; then
27943 eval "$as_ac_var=yes"
27944else
27945 echo "$as_me: failed program was:" >&5
27946sed 's/^/| /' conftest.$ac_ext >&5
27947
27948eval "$as_ac_var=no"
27949fi
27950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27951fi
27952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27953echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27954if test `eval echo '${'$as_ac_var'}'` = yes; then
27955 cat >>confdefs.h <<_ACEOF
27956#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27957_ACEOF
27958 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27959#define HAVE_USLEEP 1
e6cc62c6 27960_ACEOF
4f14bcd8 27961
698dcdb6 27962else
e6cc62c6
VS
27963 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27964echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27965
10f2d63a 27966fi
4f14bcd8 27967done
10f2d63a 27968
e6cc62c6
VS
27969
27970
6232543b 27971fi
10f2d63a 27972
e6cc62c6
VS
27973
27974
1e487827 27975fi
4f14bcd8 27976done
703e0a69 27977
10f2d63a
VZ
27978fi
27979
e6cc62c6
VS
27980
27981
4f14bcd8 27982for ac_func in uname gethostname
70846f0a 27983do
e6cc62c6
VS
27984as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27985echo "$as_me:$LINENO: checking for $ac_func" >&5
27986echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27987if eval "test \"\${$as_ac_var+set}\" = set"; then
27988 echo $ECHO_N "(cached) $ECHO_C" >&6
27989else
27990 cat >conftest.$ac_ext <<_ACEOF
27991#line $LINENO "configure"
27992/* confdefs.h. */
27993_ACEOF
27994cat confdefs.h >>conftest.$ac_ext
27995cat >>conftest.$ac_ext <<_ACEOF
27996/* end confdefs.h. */
70846f0a 27997/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27998 which can conflict with char $ac_func (); below.
27999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28000 <limits.h> exists even on freestanding compilers. */
28001#ifdef __STDC__
28002# include <limits.h>
28003#else
28004# include <assert.h>
28005#endif
70846f0a 28006/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28007#ifdef __cplusplus
28008extern "C"
28009{
28010#endif
70846f0a 28011/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28012 builtin and then its argument prototype would still apply. */
28013char $ac_func ();
70846f0a
VZ
28014/* The GNU C library defines this for functions which it implements
28015 to always fail with ENOSYS. Some functions are actually named
28016 something starting with __ and the normal name is an alias. */
28017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28018choke me
28019#else
e6cc62c6
VS
28020char (*f) () = $ac_func;
28021#endif
28022#ifdef __cplusplus
28023}
70846f0a
VZ
28024#endif
28025
e6cc62c6
VS
28026int
28027main ()
28028{
28029return f != $ac_func;
28030 ;
28031 return 0;
28032}
28033_ACEOF
28034rm -f conftest.$ac_objext conftest$ac_exeext
28035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28036 (eval $ac_link) 2>&5
28037 ac_status=$?
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); } &&
28040 { ac_try='test -s conftest$ac_exeext'
28041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042 (eval $ac_try) 2>&5
28043 ac_status=$?
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); }; }; then
28046 eval "$as_ac_var=yes"
28047else
28048 echo "$as_me: failed program was:" >&5
28049sed 's/^/| /' conftest.$ac_ext >&5
28050
28051eval "$as_ac_var=no"
28052fi
28053rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28054fi
28055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28056echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28057if test `eval echo '${'$as_ac_var'}'` = yes; then
28058 cat >>confdefs.h <<_ACEOF
28059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28060_ACEOF
4f14bcd8 28061 break
70846f0a
VZ
28062fi
28063done
28064
8284b0c5
MB
28065
28066
e6cc62c6
VS
28067
28068ac_ext=cc
4f14bcd8 28069ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28073
8284b0c5 28074
4f14bcd8
GD
28075
28076for ac_func in strtok_r
10f2d63a 28077do
e6cc62c6
VS
28078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28079echo "$as_me:$LINENO: checking for $ac_func" >&5
28080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28081if eval "test \"\${$as_ac_var+set}\" = set"; then
28082 echo $ECHO_N "(cached) $ECHO_C" >&6
28083else
28084 cat >conftest.$ac_ext <<_ACEOF
28085#line $LINENO "configure"
28086/* confdefs.h. */
28087_ACEOF
28088cat confdefs.h >>conftest.$ac_ext
28089cat >>conftest.$ac_ext <<_ACEOF
28090/* end confdefs.h. */
4f14bcd8 28091/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28092 which can conflict with char $ac_func (); below.
28093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28094 <limits.h> exists even on freestanding compilers. */
28095#ifdef __STDC__
28096# include <limits.h>
28097#else
28098# include <assert.h>
28099#endif
4f14bcd8
GD
28100/* Override any gcc2 internal prototype to avoid an error. */
28101#ifdef __cplusplus
28102extern "C"
e6cc62c6 28103{
4f14bcd8
GD
28104#endif
28105/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28106 builtin and then its argument prototype would still apply. */
28107char $ac_func ();
4f14bcd8
GD
28108/* The GNU C library defines this for functions which it implements
28109 to always fail with ENOSYS. Some functions are actually named
28110 something starting with __ and the normal name is an alias. */
28111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28112choke me
28113#else
e6cc62c6
VS
28114char (*f) () = $ac_func;
28115#endif
28116#ifdef __cplusplus
28117}
4f14bcd8
GD
28118#endif
28119
e6cc62c6
VS
28120int
28121main ()
28122{
28123return f != $ac_func;
28124 ;
28125 return 0;
28126}
28127_ACEOF
28128rm -f conftest.$ac_objext conftest$ac_exeext
28129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28130 (eval $ac_link) 2>&5
28131 ac_status=$?
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); } &&
28134 { ac_try='test -s conftest$ac_exeext'
28135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
28140 eval "$as_ac_var=yes"
28141else
28142 echo "$as_me: failed program was:" >&5
28143sed 's/^/| /' conftest.$ac_ext >&5
28144
28145eval "$as_ac_var=no"
28146fi
28147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28148fi
28149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28150echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28151if test `eval echo '${'$as_ac_var'}'` = yes; then
28152 cat >>confdefs.h <<_ACEOF
28153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28154_ACEOF
4f14bcd8 28155
10f2d63a
VZ
28156fi
28157done
28158
8284b0c5 28159
4f14bcd8 28160ac_ext=c
4f14bcd8 28161ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28164ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28165
5c6fa7d2 28166
8284b0c5 28167INET_LINK=
e6cc62c6 28168
4f14bcd8
GD
28169for ac_func in inet_addr
28170do
e6cc62c6
VS
28171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28172echo "$as_me:$LINENO: checking for $ac_func" >&5
28173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28174if eval "test \"\${$as_ac_var+set}\" = set"; then
28175 echo $ECHO_N "(cached) $ECHO_C" >&6
28176else
28177 cat >conftest.$ac_ext <<_ACEOF
28178#line $LINENO "configure"
28179/* confdefs.h. */
28180_ACEOF
28181cat confdefs.h >>conftest.$ac_ext
28182cat >>conftest.$ac_ext <<_ACEOF
28183/* end confdefs.h. */
4f14bcd8 28184/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28185 which can conflict with char $ac_func (); below.
28186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28187 <limits.h> exists even on freestanding compilers. */
28188#ifdef __STDC__
28189# include <limits.h>
28190#else
28191# include <assert.h>
28192#endif
10f2d63a 28193/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28194#ifdef __cplusplus
28195extern "C"
28196{
28197#endif
10f2d63a 28198/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28199 builtin and then its argument prototype would still apply. */
28200char $ac_func ();
4f14bcd8
GD
28201/* The GNU C library defines this for functions which it implements
28202 to always fail with ENOSYS. Some functions are actually named
28203 something starting with __ and the normal name is an alias. */
28204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28205choke me
28206#else
e6cc62c6
VS
28207char (*f) () = $ac_func;
28208#endif
28209#ifdef __cplusplus
28210}
4f14bcd8
GD
28211#endif
28212
e6cc62c6
VS
28213int
28214main ()
28215{
28216return f != $ac_func;
28217 ;
28218 return 0;
28219}
28220_ACEOF
28221rm -f conftest.$ac_objext conftest$ac_exeext
28222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28223 (eval $ac_link) 2>&5
28224 ac_status=$?
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } &&
28227 { ac_try='test -s conftest$ac_exeext'
28228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229 (eval $ac_try) 2>&5
28230 ac_status=$?
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); }; }; then
28233 eval "$as_ac_var=yes"
28234else
28235 echo "$as_me: failed program was:" >&5
28236sed 's/^/| /' conftest.$ac_ext >&5
28237
28238eval "$as_ac_var=no"
28239fi
28240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28241fi
28242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28244if test `eval echo '${'$as_ac_var'}'` = yes; then
28245 cat >>confdefs.h <<_ACEOF
28246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28247_ACEOF
28248 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28249#define HAVE_INET_ADDR 1
e6cc62c6 28250_ACEOF
10f2d63a
VZ
28251
28252else
e6cc62c6
VS
28253
28254 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28255echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28256if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28257 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28258else
e6cc62c6 28259 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28260LIBS="-lnsl $LIBS"
e6cc62c6
VS
28261cat >conftest.$ac_ext <<_ACEOF
28262#line $LINENO "configure"
28263/* confdefs.h. */
28264_ACEOF
28265cat confdefs.h >>conftest.$ac_ext
28266cat >>conftest.$ac_ext <<_ACEOF
28267/* end confdefs.h. */
28268
10f2d63a 28269/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28270#ifdef __cplusplus
28271extern "C"
28272#endif
10f2d63a 28273/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28274 builtin and then its argument prototype would still apply. */
28275char inet_addr ();
28276int
28277main ()
28278{
28279inet_addr ();
28280 ;
28281 return 0;
28282}
28283_ACEOF
28284rm -f conftest.$ac_objext conftest$ac_exeext
28285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28286 (eval $ac_link) 2>&5
28287 ac_status=$?
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); } &&
28290 { ac_try='test -s conftest$ac_exeext'
28291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28292 (eval $ac_try) 2>&5
28293 ac_status=$?
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); }; }; then
28296 ac_cv_lib_nsl_inet_addr=yes
28297else
28298 echo "$as_me: failed program was:" >&5
28299sed 's/^/| /' conftest.$ac_ext >&5
28300
28301ac_cv_lib_nsl_inet_addr=no
28302fi
28303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28304LIBS=$ac_check_lib_save_LIBS
28305fi
28306echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28307echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28308if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28309 INET_LINK="nsl"
10f2d63a 28310else
0e012a93
VZ
28311
28312 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
28313echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28314if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28315 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28316else
e6cc62c6 28317 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28318LIBS="-lresolv $LIBS"
e6cc62c6
VS
28319cat >conftest.$ac_ext <<_ACEOF
28320#line $LINENO "configure"
28321/* confdefs.h. */
28322_ACEOF
28323cat confdefs.h >>conftest.$ac_ext
28324cat >>conftest.$ac_ext <<_ACEOF
28325/* end confdefs.h. */
28326
5c6fa7d2 28327/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28328#ifdef __cplusplus
28329extern "C"
28330#endif
5c6fa7d2 28331/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28332 builtin and then its argument prototype would still apply. */
28333char inet_addr ();
28334int
28335main ()
28336{
28337inet_addr ();
28338 ;
28339 return 0;
28340}
28341_ACEOF
28342rm -f conftest.$ac_objext conftest$ac_exeext
28343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28344 (eval $ac_link) 2>&5
28345 ac_status=$?
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); } &&
28348 { ac_try='test -s conftest$ac_exeext'
28349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350 (eval $ac_try) 2>&5
28351 ac_status=$?
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; }; then
28354 ac_cv_lib_resolv_inet_addr=yes
28355else
28356 echo "$as_me: failed program was:" >&5
28357sed 's/^/| /' conftest.$ac_ext >&5
28358
28359ac_cv_lib_resolv_inet_addr=no
28360fi
28361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28362LIBS=$ac_check_lib_save_LIBS
28363fi
28364echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28365echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28366if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28367 INET_LINK="resolv"
698dcdb6 28368else
0e012a93
VZ
28369
28370 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
28371echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28372if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28373 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28374else
e6cc62c6 28375 ac_check_lib_save_LIBS=$LIBS
3c011993 28376LIBS="-lsocket $LIBS"
e6cc62c6
VS
28377cat >conftest.$ac_ext <<_ACEOF
28378#line $LINENO "configure"
28379/* confdefs.h. */
28380_ACEOF
28381cat confdefs.h >>conftest.$ac_ext
28382cat >>conftest.$ac_ext <<_ACEOF
28383/* end confdefs.h. */
28384
3c011993 28385/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28386#ifdef __cplusplus
28387extern "C"
28388#endif
3c011993 28389/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28390 builtin and then its argument prototype would still apply. */
28391char inet_addr ();
28392int
28393main ()
28394{
28395inet_addr ();
28396 ;
28397 return 0;
28398}
28399_ACEOF
28400rm -f conftest.$ac_objext conftest$ac_exeext
28401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28402 (eval $ac_link) 2>&5
28403 ac_status=$?
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); } &&
28406 { ac_try='test -s conftest$ac_exeext'
28407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408 (eval $ac_try) 2>&5
28409 ac_status=$?
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); }; }; then
28412 ac_cv_lib_socket_inet_addr=yes
28413else
28414 echo "$as_me: failed program was:" >&5
28415sed 's/^/| /' conftest.$ac_ext >&5
28416
28417ac_cv_lib_socket_inet_addr=no
28418fi
28419rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28420LIBS=$ac_check_lib_save_LIBS
28421fi
28422echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28423echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28424if test $ac_cv_lib_socket_inet_addr = yes; then
28425 INET_LINK="socket"
4f14bcd8 28426
8284b0c5 28427fi
e6cc62c6 28428
698dcdb6 28429
0e012a93 28430
7b4a847f 28431fi
e6cc62c6
VS
28432
28433
0e012a93 28434
a0b9e27f 28435fi
579d8138 28436
e6cc62c6
VS
28437
28438
5c6fa7d2 28439fi
e6cc62c6
VS
28440done
28441
28442
28443
28444for ac_func in inet_aton
28445do
28446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28447echo "$as_me:$LINENO: checking for $ac_func" >&5
28448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28449if eval "test \"\${$as_ac_var+set}\" = set"; then
28450 echo $ECHO_N "(cached) $ECHO_C" >&6
28451else
28452 cat >conftest.$ac_ext <<_ACEOF
28453#line $LINENO "configure"
28454/* confdefs.h. */
28455_ACEOF
28456cat confdefs.h >>conftest.$ac_ext
28457cat >>conftest.$ac_ext <<_ACEOF
28458/* end confdefs.h. */
28459/* System header to define __stub macros and hopefully few prototypes,
28460 which can conflict with char $ac_func (); below.
28461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28462 <limits.h> exists even on freestanding compilers. */
28463#ifdef __STDC__
28464# include <limits.h>
28465#else
28466# include <assert.h>
28467#endif
28468/* Override any gcc2 internal prototype to avoid an error. */
28469#ifdef __cplusplus
28470extern "C"
28471{
28472#endif
28473/* We use char because int might match the return type of a gcc2
28474 builtin and then its argument prototype would still apply. */
28475char $ac_func ();
28476/* The GNU C library defines this for functions which it implements
28477 to always fail with ENOSYS. Some functions are actually named
28478 something starting with __ and the normal name is an alias. */
28479#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28480choke me
28481#else
28482char (*f) () = $ac_func;
28483#endif
28484#ifdef __cplusplus
28485}
28486#endif
28487
28488int
28489main ()
28490{
28491return f != $ac_func;
28492 ;
28493 return 0;
28494}
28495_ACEOF
28496rm -f conftest.$ac_objext conftest$ac_exeext
28497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28498 (eval $ac_link) 2>&5
28499 ac_status=$?
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); } &&
28502 { ac_try='test -s conftest$ac_exeext'
28503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504 (eval $ac_try) 2>&5
28505 ac_status=$?
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); }; }; then
28508 eval "$as_ac_var=yes"
28509else
28510 echo "$as_me: failed program was:" >&5
28511sed 's/^/| /' conftest.$ac_ext >&5
28512
28513eval "$as_ac_var=no"
28514fi
28515rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28516fi
28517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28518echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28519if test `eval echo '${'$as_ac_var'}'` = yes; then
28520 cat >>confdefs.h <<_ACEOF
28521#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28522_ACEOF
28523 cat >>confdefs.h <<\_ACEOF
28524#define HAVE_INET_ATON 1
28525_ACEOF
28526
28527else
28528
28529 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28530echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28531echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28532if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28533 echo $ECHO_N "(cached) $ECHO_C" >&6
28534else
28535 ac_check_lib_save_LIBS=$LIBS
28536LIBS="-l$INET_LINK $LIBS"
28537cat >conftest.$ac_ext <<_ACEOF
28538#line $LINENO "configure"
28539/* confdefs.h. */
28540_ACEOF
28541cat confdefs.h >>conftest.$ac_ext
28542cat >>conftest.$ac_ext <<_ACEOF
28543/* end confdefs.h. */
28544
28545/* Override any gcc2 internal prototype to avoid an error. */
28546#ifdef __cplusplus
28547extern "C"
28548#endif
28549/* We use char because int might match the return type of a gcc2
28550 builtin and then its argument prototype would still apply. */
28551char inet_aton ();
28552int
28553main ()
28554{
28555inet_aton ();
28556 ;
28557 return 0;
28558}
28559_ACEOF
28560rm -f conftest.$ac_objext conftest$ac_exeext
28561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28562 (eval $ac_link) 2>&5
28563 ac_status=$?
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } &&
28566 { ac_try='test -s conftest$ac_exeext'
28567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568 (eval $ac_try) 2>&5
28569 ac_status=$?
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; }; then
28572 eval "$as_ac_Lib=yes"
28573else
28574 echo "$as_me: failed program was:" >&5
28575sed 's/^/| /' conftest.$ac_ext >&5
28576
28577eval "$as_ac_Lib=no"
28578fi
28579rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28580LIBS=$ac_check_lib_save_LIBS
28581fi
28582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28583echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28584if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28585 cat >>confdefs.h <<\_ACEOF
28586#define HAVE_INET_ATON 1
28587_ACEOF
52127426 28588
a0b9e27f 28589fi
247f5006 28590
8284b0c5 28591
698dcdb6 28592fi
4f14bcd8
GD
28593done
28594
8284b0c5 28595
e6cc62c6
VS
28596if test "x$INET_LINK" != "x"; then
28597 cat >>confdefs.h <<\_ACEOF
28598#define HAVE_INET_ADDR 1
28599_ACEOF
28600
28601 INET_LINK=" -l$INET_LINK"
28602fi
28603
28604fi
a0b9e27f 28605
a0b9e27f 28606
4f14bcd8 28607
edd891e2
VS
28608EXTRALIBS_ESD=
28609echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28610echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28611if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28612 echo $ECHO_N "(cached) $ECHO_C" >&6
28613else
28614 ac_check_lib_save_LIBS=$LIBS
28615LIBS="-lesd $LIBS"
28616cat >conftest.$ac_ext <<_ACEOF
28617#line $LINENO "configure"
28618/* confdefs.h. */
28619_ACEOF
28620cat confdefs.h >>conftest.$ac_ext
28621cat >>conftest.$ac_ext <<_ACEOF
28622/* end confdefs.h. */
28623
28624/* Override any gcc2 internal prototype to avoid an error. */
28625#ifdef __cplusplus
28626extern "C"
28627#endif
28628/* We use char because int might match the return type of a gcc2
28629 builtin and then its argument prototype would still apply. */
28630char esd_close ();
28631int
28632main ()
28633{
28634esd_close ();
28635 ;
28636 return 0;
28637}
28638_ACEOF
28639rm -f conftest.$ac_objext conftest$ac_exeext
28640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28641 (eval $ac_link) 2>&5
28642 ac_status=$?
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); } &&
28645 { ac_try='test -s conftest$ac_exeext'
28646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28647 (eval $ac_try) 2>&5
28648 ac_status=$?
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; }; then
28651 ac_cv_lib_esd_esd_close=yes
28652else
28653 echo "$as_me: failed program was:" >&5
28654sed 's/^/| /' conftest.$ac_ext >&5
28655
28656ac_cv_lib_esd_esd_close=no
28657fi
28658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28659LIBS=$ac_check_lib_save_LIBS
28660fi
28661echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28662echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28663if test $ac_cv_lib_esd_esd_close = yes; then
28664
28665
28666for ac_header in esd.h
28667do
28668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28669if eval "test \"\${$as_ac_Header+set}\" = set"; then
28670 echo "$as_me:$LINENO: checking for $ac_header" >&5
28671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28672if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28673 echo $ECHO_N "(cached) $ECHO_C" >&6
28674fi
edd891e2
VS
28675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28677else
28678 # Is the header compilable?
edd891e2
VS
28679echo "$as_me:$LINENO: checking $ac_header usability" >&5
28680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6
VS
28681cat >conftest.$ac_ext <<_ACEOF
28682#line $LINENO "configure"
28683/* confdefs.h. */
28684_ACEOF
28685cat confdefs.h >>conftest.$ac_ext
28686cat >>conftest.$ac_ext <<_ACEOF
28687/* end confdefs.h. */
28688$ac_includes_default
edd891e2 28689#include <$ac_header>
e6cc62c6
VS
28690_ACEOF
28691rm -f conftest.$ac_objext
28692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28693 (eval $ac_compile) 2>&5
28694 ac_status=$?
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); } &&
28697 { ac_try='test -s conftest.$ac_objext'
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; }; then
28703 ac_header_compiler=yes
28704else
28705 echo "$as_me: failed program was:" >&5
28706sed 's/^/| /' conftest.$ac_ext >&5
28707
28708ac_header_compiler=no
28709fi
28710rm -f conftest.$ac_objext conftest.$ac_ext
28711echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28712echo "${ECHO_T}$ac_header_compiler" >&6
28713
28714# Is the header present?
edd891e2
VS
28715echo "$as_me:$LINENO: checking $ac_header presence" >&5
28716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6
VS
28717cat >conftest.$ac_ext <<_ACEOF
28718#line $LINENO "configure"
28719/* confdefs.h. */
28720_ACEOF
28721cat confdefs.h >>conftest.$ac_ext
28722cat >>conftest.$ac_ext <<_ACEOF
28723/* end confdefs.h. */
edd891e2 28724#include <$ac_header>
e6cc62c6
VS
28725_ACEOF
28726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28728 ac_status=$?
28729 grep -v '^ *+' conftest.er1 >conftest.err
28730 rm -f conftest.er1
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } >/dev/null; then
28734 if test -s conftest.err; then
28735 ac_cpp_err=$ac_c_preproc_warn_flag
28736 else
28737 ac_cpp_err=
28738 fi
a0b9e27f 28739else
e6cc62c6
VS
28740 ac_cpp_err=yes
28741fi
28742if test -z "$ac_cpp_err"; then
28743 ac_header_preproc=yes
28744else
28745 echo "$as_me: failed program was:" >&5
28746sed 's/^/| /' conftest.$ac_ext >&5
28747
28748 ac_header_preproc=no
28749fi
28750rm -f conftest.err conftest.$ac_ext
28751echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28752echo "${ECHO_T}$ac_header_preproc" >&6
28753
28754# So? What about this header?
28755case $ac_header_compiler:$ac_header_preproc in
28756 yes:no )
edd891e2
VS
28757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28760echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28761 (
28762 cat <<\_ASBOX
28763## ------------------------------------ ##
28764## Report this to bug-autoconf@gnu.org. ##
28765## ------------------------------------ ##
28766_ASBOX
28767 ) |
28768 sed "s/^/$as_me: WARNING: /" >&2
28769 ;;
28770 no:yes )
edd891e2
VS
28771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28777 (
28778 cat <<\_ASBOX
28779## ------------------------------------ ##
28780## Report this to bug-autoconf@gnu.org. ##
28781## ------------------------------------ ##
28782_ASBOX
28783 ) |
28784 sed "s/^/$as_me: WARNING: /" >&2
28785 ;;
28786esac
edd891e2
VS
28787echo "$as_me:$LINENO: checking for $ac_header" >&5
28788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28789if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28791else
edd891e2 28792 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 28793fi
edd891e2
VS
28794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 28796
e6cc62c6 28797fi
edd891e2
VS
28798if test `eval echo '${'$as_ac_Header'}'` = yes; then
28799 cat >>confdefs.h <<_ACEOF
28800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 28801_ACEOF
e6cc62c6 28802
edd891e2 28803 EXTRALIBS_ESD="-lesd"
4f14bcd8 28804
a0b9e27f 28805fi
247f5006 28806
edd891e2 28807done
8284b0c5 28808
4f14bcd8 28809
6232543b 28810fi
10f2d63a 28811
703e0a69 28812
8284b0c5 28813
d19d1899
MB
28814echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
28815echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
28816cat >conftest.$ac_ext <<_ACEOF
28817#line $LINENO "configure"
28818/* confdefs.h. */
28819_ACEOF
28820cat confdefs.h >>conftest.$ac_ext
28821cat >>conftest.$ac_ext <<_ACEOF
28822/* end confdefs.h. */
28823#ifdef __linux__
28824 #include <linux/cdrom.h>
28825 #else
28826 /* For Solaris */
28827 #include <sys/cdio.h>
28828 #endif
28829
28830int
28831main ()
28832{
28833struct cdrom_tocentry entry, old_entry;
28834 ;
28835 return 0;
28836}
28837_ACEOF
28838rm -f conftest.$ac_objext
28839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28840 (eval $ac_compile) 2>&5
28841 ac_status=$?
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); } &&
28844 { ac_try='test -s conftest.$ac_objext'
28845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846 (eval $ac_try) 2>&5
28847 ac_status=$?
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); }; }; then
28850 echo "$as_me:$LINENO: result: yes" >&5
28851echo "${ECHO_T}yes" >&6
28852 cat >>confdefs.h <<\_ACEOF
28853#define HAVE_KNOWN_CDROM_INTERFACE 1
28854_ACEOF
28855
28856else
28857 echo "$as_me: failed program was:" >&5
28858sed 's/^/| /' conftest.$ac_ext >&5
28859
28860echo "$as_me:$LINENO: result: no" >&5
28861echo "${ECHO_T}no" >&6
28862fi
28863rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
28864
28865
28866cat >confcache <<\_ACEOF
4f14bcd8
GD
28867# This file is a shell script that caches the results of configure
28868# tests run on this system so they can be shared between configure
e6cc62c6
VS
28869# scripts and configure runs, see configure's option --config-cache.
28870# It is not useful on other systems. If it contains results you don't
28871# want to keep, you may remove or edit it.
4f14bcd8 28872#
e6cc62c6
VS
28873# config.status only pays attention to the cache file if you give it
28874# the --recheck option to rerun configure.
4f14bcd8 28875#
e6cc62c6
VS
28876# `ac_cv_env_foo' variables (set or unset) will be overridden when
28877# loading this file, other *unset* `ac_cv_foo' will be assigned the
28878# following values.
28879
28880_ACEOF
28881
4f14bcd8
GD
28882# The following way of writing the cache mishandles newlines in values,
28883# but we know of no workaround that is simple, portable, and efficient.
28884# So, don't put newlines in cache variables' values.
28885# Ultrix sh set writes to stderr and can't be redirected directly,
28886# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28887{
28888 (set) 2>&1 |
28889 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28890 *ac_space=\ *)
28891 # `set' does not quote correctly, so add quotes (double-quote
28892 # substitution turns \\\\ into \\, and sed turns \\ into \).
28893 sed -n \
28894 "s/'/'\\\\''/g;
28895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28896 ;;
28897 *)
28898 # `set' quotes correctly as required by POSIX, so do not add quotes.
28899 sed -n \
28900 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28901 ;;
28902 esac;
28903} |
28904 sed '
28905 t clear
28906 : clear
28907 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28908 t end
28909 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28910 : end' >>confcache
28911if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28912 if test -w $cache_file; then
e6cc62c6
VS
28913 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28914 cat confcache >$cache_file
f6bcfd97 28915 else
4f14bcd8 28916 echo "not updating unwritable cache $cache_file"
f6bcfd97 28917 fi
4f14bcd8
GD
28918fi
28919rm -f confcache
f6bcfd97 28920
8284b0c5 28921
009fead0 28922CPP_MT_FLAG=
73d617c9 28923if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 28924
e6cc62c6 28925
7274f1c7 28926 THREADS_LINK=
009fead0 28927 THREADS_CFLAGS=
7274f1c7
RL
28928
28929 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28930 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28931 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28932echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28933 wxUSE_THREADS="no"
28934 fi
4f14bcd8 28935 fi
4f14bcd8 28936
7274f1c7 28937 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28938
28939
009fead0
VZ
28940 THREAD_OPTS="-pthread"
28941 case "${host}" in
28942 *-*-solaris2* | *-*-sunos4* )
28943 if test "x$GCC" = "xyes"; then
126be6b4 28944 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28945 else
28946 THREAD_OPTS="-mt $THREAD_OPTS"
28947 fi
28948 ;;
28949 *-*-freebsd*)
28950 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28951 ;;
17234b26
MB
28952 *-*-darwin* | *-*-cygwin* )
28953 THREAD_OPTS=""
4101db81 28954 ;;
8f4a9a10 28955 *-*-aix*)
009fead0
VZ
28956 THREAD_OPTS="pthreads"
28957 ;;
4f5a7f74
VZ
28958 *-hp-hpux* )
28959 if test "x$GCC" != "xyes"; then
28960 THREAD_OPTS=""
28961 fi
89e3b3e4
VZ
28962 ;;
28963
28964 *-*-irix* )
28965 if test "x$GCC" = "xyes"; then
28966 THREAD_OPTS=""
28967 fi
28968 ;;
28969
28970 *-*-*UnixWare*)
28971 if test "x$GCC" != "xyes"; then
28972 THREAD_OPTS="-Ethread"
28973 fi
28974 ;;
009fead0 28975 esac
4f14bcd8 28976
02a1dfba 28977 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 28978
009fead0
VZ
28979 THREADS_OK=no
28980 for flag in $THREAD_OPTS; do
28981 case $flag in
28982 none)
e6cc62c6
VS
28983 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28984echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 28985 ;;
698dcdb6 28986
009fead0 28987 -*)
e6cc62c6
VS
28988 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28989echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
28990 THREADS_CFLAGS="$flag"
28991 ;;
698dcdb6 28992
009fead0 28993 *)
e6cc62c6
VS
28994 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28995echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
28996 THREADS_LINK="-l$flag"
28997 ;;
28998 esac
10f2d63a 28999
009fead0
VZ
29000 save_LIBS="$LIBS"
29001 save_CFLAGS="$CFLAGS"
29002 LIBS="$THREADS_LINK $LIBS"
04727afd 29003 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29004
e6cc62c6
VS
29005 cat >conftest.$ac_ext <<_ACEOF
29006#line $LINENO "configure"
29007/* confdefs.h. */
29008_ACEOF
29009cat confdefs.h >>conftest.$ac_ext
29010cat >>conftest.$ac_ext <<_ACEOF
29011/* end confdefs.h. */
009fead0 29012#include <pthread.h>
e6cc62c6
VS
29013int
29014main ()
29015{
009fead0 29016pthread_create(0,0,0,0);
e6cc62c6
VS
29017 ;
29018 return 0;
29019}
29020_ACEOF
29021rm -f conftest.$ac_objext conftest$ac_exeext
29022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29023 (eval $ac_link) 2>&5
29024 ac_status=$?
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); } &&
29027 { ac_try='test -s conftest$ac_exeext'
29028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029 (eval $ac_try) 2>&5
29030 ac_status=$?
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); }; }; then
009fead0 29033 THREADS_OK=yes
10f2d63a 29034else
e6cc62c6
VS
29035 echo "$as_me: failed program was:" >&5
29036sed 's/^/| /' conftest.$ac_ext >&5
29037
6232543b 29038fi
e6cc62c6 29039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29040
009fead0
VZ
29041 LIBS="$save_LIBS"
29042 CFLAGS="$save_CFLAGS"
d9b9876f 29043
e6cc62c6
VS
29044 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29045echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29046 if test "x$THREADS_OK" = "xyes"; then
29047 break;
29048 fi
d9b9876f 29049
009fead0
VZ
29050 THREADS_LINK=""
29051 THREADS_CFLAGS=""
29052 done
4f14bcd8 29053
009fead0
VZ
29054 if test "x$THREADS_OK" != "xyes"; then
29055 wxUSE_THREADS=no
e6cc62c6
VS
29056 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29057echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29058 else
db82f09e
VZ
29059 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29060 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29061
e6cc62c6
VS
29062 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29063echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29064 flag=no
29065 case "${host}" in
2b5f62a0
VZ
29066 *-aix*)
29067 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29068 flag="-D_THREAD_SAFE"
29069 ;;
29070 *-freebsd*)
009fead0
VZ
29071 flag="-D_THREAD_SAFE"
29072 ;;
06313569
GD
29073 *-hp-hpux* )
29074 flag="-D_REENTRANT"
4f5a7f74
VZ
29075 if test "x$GCC" != "xyes"; then
29076 flag="$flag -D_RWSTD_MULTI_THREAD"
29077 fi
06313569 29078 ;;
009fead0
VZ
29079 *solaris* | alpha*-osf*)
29080 flag="-D_REENTRANT"
29081 ;;
29082 esac
e6cc62c6
VS
29083 echo "$as_me:$LINENO: result: ${flag}" >&5
29084echo "${ECHO_T}${flag}" >&6
009fead0 29085 if test "x$flag" != xno; then
04727afd 29086 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29087 fi
29088
009fead0 29089 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29090 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29091 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29092 fi
29093 fi
4f14bcd8 29094 fi
4f14bcd8 29095
7274f1c7 29096 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29097
29098for ac_func in thr_setconcurrency
4f14bcd8 29099do
e6cc62c6
VS
29100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29101echo "$as_me:$LINENO: checking for $ac_func" >&5
29102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29103if eval "test \"\${$as_ac_var+set}\" = set"; then
29104 echo $ECHO_N "(cached) $ECHO_C" >&6
29105else
29106 cat >conftest.$ac_ext <<_ACEOF
29107#line $LINENO "configure"
29108/* confdefs.h. */
29109_ACEOF
29110cat confdefs.h >>conftest.$ac_ext
29111cat >>conftest.$ac_ext <<_ACEOF
29112/* end confdefs.h. */
4f14bcd8 29113/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29114 which can conflict with char $ac_func (); below.
29115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29116 <limits.h> exists even on freestanding compilers. */
29117#ifdef __STDC__
29118# include <limits.h>
29119#else
29120# include <assert.h>
29121#endif
4f14bcd8 29122/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29123#ifdef __cplusplus
29124extern "C"
29125{
29126#endif
4f14bcd8 29127/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29128 builtin and then its argument prototype would still apply. */
29129char $ac_func ();
4f14bcd8
GD
29130/* The GNU C library defines this for functions which it implements
29131 to always fail with ENOSYS. Some functions are actually named
29132 something starting with __ and the normal name is an alias. */
29133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29134choke me
29135#else
e6cc62c6
VS
29136char (*f) () = $ac_func;
29137#endif
29138#ifdef __cplusplus
29139}
4f14bcd8
GD
29140#endif
29141
e6cc62c6
VS
29142int
29143main ()
29144{
29145return f != $ac_func;
29146 ;
29147 return 0;
29148}
29149_ACEOF
29150rm -f conftest.$ac_objext conftest$ac_exeext
29151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29152 (eval $ac_link) 2>&5
29153 ac_status=$?
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); } &&
29156 { ac_try='test -s conftest$ac_exeext'
29157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158 (eval $ac_try) 2>&5
29159 ac_status=$?
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; }; then
29162 eval "$as_ac_var=yes"
29163else
29164 echo "$as_me: failed program was:" >&5
29165sed 's/^/| /' conftest.$ac_ext >&5
29166
29167eval "$as_ac_var=no"
29168fi
29169rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29170fi
29171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29172echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29173if test `eval echo '${'$as_ac_var'}'` = yes; then
29174 cat >>confdefs.h <<_ACEOF
29175#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29176_ACEOF
698dcdb6 29177
10f2d63a 29178fi
4f14bcd8 29179done
10f2d63a 29180
8284b0c5 29181
e6cc62c6
VS
29182
29183for ac_header in sched.h
4f14bcd8 29184do
e6cc62c6
VS
29185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29186if eval "test \"\${$as_ac_Header+set}\" = set"; then
29187 echo "$as_me:$LINENO: checking for $ac_header" >&5
29188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29189if eval "test \"\${$as_ac_Header+set}\" = set"; then
29190 echo $ECHO_N "(cached) $ECHO_C" >&6
29191fi
29192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29194else
29195 # Is the header compilable?
29196echo "$as_me:$LINENO: checking $ac_header usability" >&5
29197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29198cat >conftest.$ac_ext <<_ACEOF
29199#line $LINENO "configure"
29200/* confdefs.h. */
29201_ACEOF
29202cat confdefs.h >>conftest.$ac_ext
29203cat >>conftest.$ac_ext <<_ACEOF
29204/* end confdefs.h. */
29205$ac_includes_default
29206#include <$ac_header>
29207_ACEOF
29208rm -f conftest.$ac_objext
29209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29210 (eval $ac_compile) 2>&5
29211 ac_status=$?
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); } &&
29214 { ac_try='test -s conftest.$ac_objext'
29215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29217 ac_status=$?
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 ac_header_compiler=yes
29221else
29222 echo "$as_me: failed program was:" >&5
29223sed 's/^/| /' conftest.$ac_ext >&5
29224
29225ac_header_compiler=no
29226fi
29227rm -f conftest.$ac_objext conftest.$ac_ext
29228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29229echo "${ECHO_T}$ac_header_compiler" >&6
29230
29231# Is the header present?
29232echo "$as_me:$LINENO: checking $ac_header presence" >&5
29233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29234cat >conftest.$ac_ext <<_ACEOF
29235#line $LINENO "configure"
29236/* confdefs.h. */
29237_ACEOF
29238cat confdefs.h >>conftest.$ac_ext
29239cat >>conftest.$ac_ext <<_ACEOF
29240/* end confdefs.h. */
29241#include <$ac_header>
29242_ACEOF
29243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29245 ac_status=$?
29246 grep -v '^ *+' conftest.er1 >conftest.err
29247 rm -f conftest.er1
29248 cat conftest.err >&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } >/dev/null; then
29251 if test -s conftest.err; then
29252 ac_cpp_err=$ac_c_preproc_warn_flag
29253 else
29254 ac_cpp_err=
29255 fi
29256else
29257 ac_cpp_err=yes
29258fi
29259if test -z "$ac_cpp_err"; then
29260 ac_header_preproc=yes
29261else
29262 echo "$as_me: failed program was:" >&5
29263sed 's/^/| /' conftest.$ac_ext >&5
29264
29265 ac_header_preproc=no
29266fi
29267rm -f conftest.err conftest.$ac_ext
29268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29269echo "${ECHO_T}$ac_header_preproc" >&6
29270
29271# So? What about this header?
29272case $ac_header_compiler:$ac_header_preproc in
29273 yes:no )
29274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29277echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29278 (
29279 cat <<\_ASBOX
29280## ------------------------------------ ##
29281## Report this to bug-autoconf@gnu.org. ##
29282## ------------------------------------ ##
29283_ASBOX
29284 ) |
29285 sed "s/^/$as_me: WARNING: /" >&2
29286 ;;
29287 no:yes )
29288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29293echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29294 (
29295 cat <<\_ASBOX
29296## ------------------------------------ ##
29297## Report this to bug-autoconf@gnu.org. ##
29298## ------------------------------------ ##
29299_ASBOX
29300 ) |
29301 sed "s/^/$as_me: WARNING: /" >&2
29302 ;;
29303esac
29304echo "$as_me:$LINENO: checking for $ac_header" >&5
29305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29306if eval "test \"\${$as_ac_Header+set}\" = set"; then
29307 echo $ECHO_N "(cached) $ECHO_C" >&6
29308else
29309 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29310fi
e6cc62c6
VS
29311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29313
10f2d63a 29314fi
e6cc62c6
VS
29315if test `eval echo '${'$as_ac_Header'}'` = yes; then
29316 cat >>confdefs.h <<_ACEOF
29317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29318_ACEOF
29319
f6bcfd97 29320fi
e6cc62c6 29321
4f14bcd8 29322done
f6bcfd97 29323
009fead0 29324 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29325 echo "$as_me:$LINENO: checking for sched_yield" >&5
29326echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29327if test "${ac_cv_func_sched_yield+set}" = set; then
29328 echo $ECHO_N "(cached) $ECHO_C" >&6
29329else
29330 cat >conftest.$ac_ext <<_ACEOF
29331#line $LINENO "configure"
29332/* confdefs.h. */
29333_ACEOF
29334cat confdefs.h >>conftest.$ac_ext
29335cat >>conftest.$ac_ext <<_ACEOF
29336/* end confdefs.h. */
009fead0 29337/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29338 which can conflict with char sched_yield (); below.
29339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29340 <limits.h> exists even on freestanding compilers. */
29341#ifdef __STDC__
29342# include <limits.h>
29343#else
29344# include <assert.h>
29345#endif
4f14bcd8 29346/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29347#ifdef __cplusplus
29348extern "C"
29349{
29350#endif
4f14bcd8 29351/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29352 builtin and then its argument prototype would still apply. */
29353char sched_yield ();
009fead0
VZ
29354/* The GNU C library defines this for functions which it implements
29355 to always fail with ENOSYS. Some functions are actually named
29356 something starting with __ and the normal name is an alias. */
29357#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29358choke me
29359#else
e6cc62c6
VS
29360char (*f) () = sched_yield;
29361#endif
29362#ifdef __cplusplus
29363}
009fead0
VZ
29364#endif
29365
e6cc62c6
VS
29366int
29367main ()
29368{
29369return f != sched_yield;
29370 ;
29371 return 0;
29372}
29373_ACEOF
29374rm -f conftest.$ac_objext conftest$ac_exeext
29375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29376 (eval $ac_link) 2>&5
29377 ac_status=$?
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); } &&
29380 { ac_try='test -s conftest$ac_exeext'
29381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382 (eval $ac_try) 2>&5
29383 ac_status=$?
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); }; }; then
29386 ac_cv_func_sched_yield=yes
29387else
29388 echo "$as_me: failed program was:" >&5
29389sed 's/^/| /' conftest.$ac_ext >&5
29390
29391ac_cv_func_sched_yield=no
29392fi
29393rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29394fi
29395echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29396echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29397if test $ac_cv_func_sched_yield = yes; then
29398 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29399#define HAVE_SCHED_YIELD 1
e6cc62c6 29400_ACEOF
10f2d63a 29401
4f14bcd8 29402else
009fead0 29403
e6cc62c6
VS
29404 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29405echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29406if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29407 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29408else
e6cc62c6 29409 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29410LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29411cat >conftest.$ac_ext <<_ACEOF
29412#line $LINENO "configure"
29413/* confdefs.h. */
29414_ACEOF
29415cat confdefs.h >>conftest.$ac_ext
29416cat >>conftest.$ac_ext <<_ACEOF
29417/* end confdefs.h. */
29418
4f14bcd8 29419/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29420#ifdef __cplusplus
29421extern "C"
29422#endif
4f14bcd8 29423/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29424 builtin and then its argument prototype would still apply. */
29425char sched_yield ();
29426int
29427main ()
29428{
29429sched_yield ();
29430 ;
29431 return 0;
29432}
29433_ACEOF
29434rm -f conftest.$ac_objext conftest$ac_exeext
29435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29436 (eval $ac_link) 2>&5
29437 ac_status=$?
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); } &&
29440 { ac_try='test -s conftest$ac_exeext'
29441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29442 (eval $ac_try) 2>&5
29443 ac_status=$?
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); }; }; then
29446 ac_cv_lib_posix4_sched_yield=yes
29447else
29448 echo "$as_me: failed program was:" >&5
29449sed 's/^/| /' conftest.$ac_ext >&5
29450
29451ac_cv_lib_posix4_sched_yield=no
29452fi
29453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29454LIBS=$ac_check_lib_save_LIBS
29455fi
29456echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29457echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29458if test $ac_cv_lib_posix4_sched_yield = yes; then
29459 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29460#define HAVE_SCHED_YIELD 1
e6cc62c6 29461_ACEOF
3d63bc3a 29462 POSIX4_LINK=" -lposix4"
4f14bcd8 29463else
e6cc62c6
VS
29464 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29465echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29466
54276ccf
VZ
29467fi
29468
e6cc62c6
VS
29469
29470
4f14bcd8 29471fi
698dcdb6 29472
009fead0 29473 fi
10f2d63a 29474
7274f1c7 29475 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29476 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29477echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29478if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29479 echo $ECHO_N "(cached) $ECHO_C" >&6
29480else
29481 cat >conftest.$ac_ext <<_ACEOF
29482#line $LINENO "configure"
29483/* confdefs.h. */
29484_ACEOF
29485cat confdefs.h >>conftest.$ac_ext
29486cat >>conftest.$ac_ext <<_ACEOF
29487/* end confdefs.h. */
009fead0 29488/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29489 which can conflict with char pthread_attr_getschedpolicy (); below.
29490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29491 <limits.h> exists even on freestanding compilers. */
29492#ifdef __STDC__
29493# include <limits.h>
29494#else
29495# include <assert.h>
29496#endif
4f14bcd8 29497/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29498#ifdef __cplusplus
29499extern "C"
29500{
29501#endif
4f14bcd8 29502/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29503 builtin and then its argument prototype would still apply. */
29504char pthread_attr_getschedpolicy ();
009fead0
VZ
29505/* The GNU C library defines this for functions which it implements
29506 to always fail with ENOSYS. Some functions are actually named
29507 something starting with __ and the normal name is an alias. */
29508#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29509choke me
29510#else
e6cc62c6
VS
29511char (*f) () = pthread_attr_getschedpolicy;
29512#endif
29513#ifdef __cplusplus
29514}
009fead0
VZ
29515#endif
29516
e6cc62c6
VS
29517int
29518main ()
29519{
29520return f != pthread_attr_getschedpolicy;
29521 ;
29522 return 0;
29523}
29524_ACEOF
29525rm -f conftest.$ac_objext conftest$ac_exeext
29526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29527 (eval $ac_link) 2>&5
29528 ac_status=$?
29529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530 (exit $ac_status); } &&
29531 { ac_try='test -s conftest$ac_exeext'
29532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29533 (eval $ac_try) 2>&5
29534 ac_status=$?
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); }; }; then
29537 ac_cv_func_pthread_attr_getschedpolicy=yes
29538else
29539 echo "$as_me: failed program was:" >&5
29540sed 's/^/| /' conftest.$ac_ext >&5
29541
29542ac_cv_func_pthread_attr_getschedpolicy=no
29543fi
29544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29545fi
29546echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29547echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29548if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29549 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29550echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29551if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29552 echo $ECHO_N "(cached) $ECHO_C" >&6
29553else
29554 cat >conftest.$ac_ext <<_ACEOF
29555#line $LINENO "configure"
29556/* confdefs.h. */
29557_ACEOF
29558cat confdefs.h >>conftest.$ac_ext
29559cat >>conftest.$ac_ext <<_ACEOF
29560/* end confdefs.h. */
a0b9e27f 29561/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29562 which can conflict with char pthread_attr_setschedparam (); below.
29563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29564 <limits.h> exists even on freestanding compilers. */
29565#ifdef __STDC__
29566# include <limits.h>
29567#else
29568# include <assert.h>
29569#endif
422107f9 29570/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29571#ifdef __cplusplus
29572extern "C"
29573{
29574#endif
422107f9 29575/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29576 builtin and then its argument prototype would still apply. */
29577char pthread_attr_setschedparam ();
009fead0
VZ
29578/* The GNU C library defines this for functions which it implements
29579 to always fail with ENOSYS. Some functions are actually named
29580 something starting with __ and the normal name is an alias. */
29581#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29582choke me
29583#else
e6cc62c6
VS
29584char (*f) () = pthread_attr_setschedparam;
29585#endif
29586#ifdef __cplusplus
29587}
009fead0
VZ
29588#endif
29589
e6cc62c6
VS
29590int
29591main ()
29592{
29593return f != pthread_attr_setschedparam;
29594 ;
29595 return 0;
29596}
29597_ACEOF
29598rm -f conftest.$ac_objext conftest$ac_exeext
29599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29600 (eval $ac_link) 2>&5
29601 ac_status=$?
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); } &&
29604 { ac_try='test -s conftest$ac_exeext'
29605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29606 (eval $ac_try) 2>&5
29607 ac_status=$?
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); }; }; then
29610 ac_cv_func_pthread_attr_setschedparam=yes
29611else
29612 echo "$as_me: failed program was:" >&5
29613sed 's/^/| /' conftest.$ac_ext >&5
29614
29615ac_cv_func_pthread_attr_setschedparam=no
29616fi
29617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29618fi
29619echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29620echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29621if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29622 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29623echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29624if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29625 echo $ECHO_N "(cached) $ECHO_C" >&6
29626else
29627 cat >conftest.$ac_ext <<_ACEOF
29628#line $LINENO "configure"
29629/* confdefs.h. */
29630_ACEOF
29631cat confdefs.h >>conftest.$ac_ext
29632cat >>conftest.$ac_ext <<_ACEOF
29633/* end confdefs.h. */
ef33c576 29634/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29635 which can conflict with char sched_get_priority_max (); below.
29636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29637 <limits.h> exists even on freestanding compilers. */
29638#ifdef __STDC__
29639# include <limits.h>
29640#else
29641# include <assert.h>
29642#endif
4f14bcd8 29643/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29644#ifdef __cplusplus
29645extern "C"
29646{
29647#endif
4f14bcd8 29648/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29649 builtin and then its argument prototype would still apply. */
29650char sched_get_priority_max ();
009fead0
VZ
29651/* The GNU C library defines this for functions which it implements
29652 to always fail with ENOSYS. Some functions are actually named
29653 something starting with __ and the normal name is an alias. */
29654#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29655choke me
29656#else
e6cc62c6
VS
29657char (*f) () = sched_get_priority_max;
29658#endif
29659#ifdef __cplusplus
29660}
009fead0
VZ
29661#endif
29662
e6cc62c6
VS
29663int
29664main ()
29665{
29666return f != sched_get_priority_max;
29667 ;
29668 return 0;
29669}
29670_ACEOF
29671rm -f conftest.$ac_objext conftest$ac_exeext
29672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29673 (eval $ac_link) 2>&5
29674 ac_status=$?
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } &&
29677 { ac_try='test -s conftest$ac_exeext'
29678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29679 (eval $ac_try) 2>&5
29680 ac_status=$?
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682 (exit $ac_status); }; }; then
29683 ac_cv_func_sched_get_priority_max=yes
29684else
29685 echo "$as_me: failed program was:" >&5
29686sed 's/^/| /' conftest.$ac_ext >&5
29687
29688ac_cv_func_sched_get_priority_max=no
29689fi
29690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29691fi
29692echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29693echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29694if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29695 HAVE_PRIOR_FUNCS=1
29696else
e6cc62c6
VS
29697 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29698echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29699if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29700 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29701else
e6cc62c6 29702 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29703LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29704cat >conftest.$ac_ext <<_ACEOF
29705#line $LINENO "configure"
29706/* confdefs.h. */
29707_ACEOF
29708cat confdefs.h >>conftest.$ac_ext
29709cat >>conftest.$ac_ext <<_ACEOF
29710/* end confdefs.h. */
29711
422107f9 29712/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29713#ifdef __cplusplus
29714extern "C"
29715#endif
422107f9 29716/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29717 builtin and then its argument prototype would still apply. */
29718char sched_get_priority_max ();
29719int
29720main ()
29721{
29722sched_get_priority_max ();
29723 ;
29724 return 0;
29725}
29726_ACEOF
29727rm -f conftest.$ac_objext conftest$ac_exeext
29728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29729 (eval $ac_link) 2>&5
29730 ac_status=$?
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); } &&
29733 { ac_try='test -s conftest$ac_exeext'
29734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29735 (eval $ac_try) 2>&5
29736 ac_status=$?
29737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738 (exit $ac_status); }; }; then
29739 ac_cv_lib_posix4_sched_get_priority_max=yes
29740else
29741 echo "$as_me: failed program was:" >&5
29742sed 's/^/| /' conftest.$ac_ext >&5
29743
29744ac_cv_lib_posix4_sched_get_priority_max=no
29745fi
29746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29747LIBS=$ac_check_lib_save_LIBS
29748fi
29749echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29750echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29751if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29752
7274f1c7
RL
29753 HAVE_PRIOR_FUNCS=1
29754 POSIX4_LINK=" -lposix4"
e6cc62c6 29755
4f14bcd8 29756fi
463abc64 29757
e6cc62c6 29758
328a083c 29759fi
463abc64 29760
e6cc62c6 29761
7b4a847f 29762fi
579d8138 29763
e6cc62c6 29764
5c6fa7d2 29765fi
52127426 29766
8284b0c5 29767
7274f1c7 29768 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29769 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29770#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29771_ACEOF
463abc64 29772
7274f1c7 29773 else
e6cc62c6
VS
29774 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29775echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29776 fi
463abc64 29777
e6cc62c6
VS
29778 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29779echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29780if test "${ac_cv_func_pthread_cancel+set}" = set; then
29781 echo $ECHO_N "(cached) $ECHO_C" >&6
29782else
29783 cat >conftest.$ac_ext <<_ACEOF
29784#line $LINENO "configure"
29785/* confdefs.h. */
29786_ACEOF
29787cat confdefs.h >>conftest.$ac_ext
29788cat >>conftest.$ac_ext <<_ACEOF
29789/* end confdefs.h. */
009fead0 29790/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29791 which can conflict with char pthread_cancel (); below.
29792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29793 <limits.h> exists even on freestanding compilers. */
29794#ifdef __STDC__
29795# include <limits.h>
29796#else
29797# include <assert.h>
29798#endif
422107f9 29799/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29800#ifdef __cplusplus
29801extern "C"
29802{
29803#endif
422107f9 29804/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29805 builtin and then its argument prototype would still apply. */
29806char pthread_cancel ();
009fead0
VZ
29807/* The GNU C library defines this for functions which it implements
29808 to always fail with ENOSYS. Some functions are actually named
29809 something starting with __ and the normal name is an alias. */
29810#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29811choke me
29812#else
e6cc62c6
VS
29813char (*f) () = pthread_cancel;
29814#endif
29815#ifdef __cplusplus
29816}
009fead0
VZ
29817#endif
29818
e6cc62c6
VS
29819int
29820main ()
29821{
29822return f != pthread_cancel;
29823 ;
29824 return 0;
29825}
29826_ACEOF
29827rm -f conftest.$ac_objext conftest$ac_exeext
29828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29829 (eval $ac_link) 2>&5
29830 ac_status=$?
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); } &&
29833 { ac_try='test -s conftest$ac_exeext'
29834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29835 (eval $ac_try) 2>&5
29836 ac_status=$?
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); }; }; then
29839 ac_cv_func_pthread_cancel=yes
29840else
29841 echo "$as_me: failed program was:" >&5
29842sed 's/^/| /' conftest.$ac_ext >&5
29843
29844ac_cv_func_pthread_cancel=no
29845fi
29846rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29847fi
29848echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29849echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29850if test $ac_cv_func_pthread_cancel = yes; then
29851 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29852#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29853_ACEOF
4f14bcd8 29854
698dcdb6 29855else
e6cc62c6
VS
29856 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29857echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29858fi
29859
5c6fa7d2 29860
e6cc62c6
VS
29861 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29862echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29863if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29864 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29865else
e6cc62c6
VS
29866
29867 cat >conftest.$ac_ext <<_ACEOF
29868#line $LINENO "configure"
29869/* confdefs.h. */
29870_ACEOF
29871cat confdefs.h >>conftest.$ac_ext
29872cat >>conftest.$ac_ext <<_ACEOF
29873/* end confdefs.h. */
4f14bcd8 29874#include <pthread.h>
e6cc62c6
VS
29875int
29876main ()
29877{
4f14bcd8 29878
7274f1c7
RL
29879 pthread_cleanup_push(NULL, NULL);
29880 pthread_cleanup_pop(0);
e6cc62c6
VS
29881
29882 ;
29883 return 0;
29884}
29885_ACEOF
29886rm -f conftest.$ac_objext
29887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29888 (eval $ac_compile) 2>&5
29889 ac_status=$?
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); } &&
29892 { ac_try='test -s conftest.$ac_objext'
29893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894 (eval $ac_try) 2>&5
29895 ac_status=$?
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; }; then
29898
7274f1c7 29899 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29900
4f14bcd8 29901else
e6cc62c6
VS
29902 echo "$as_me: failed program was:" >&5
29903sed 's/^/| /' conftest.$ac_ext >&5
29904
29905
7274f1c7 29906 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29907
247f5006 29908fi
e6cc62c6 29909rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29910
e6cc62c6
VS
29911fi
29912echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29913echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29914
7274f1c7 29915 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29916 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29917#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29918_ACEOF
c7a2bf27 29919
7274f1c7 29920 fi
4f14bcd8 29921
e6cc62c6
VS
29922
29923 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29924echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29925if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29926 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29927else
e6cc62c6
VS
29928
29929 cat >conftest.$ac_ext <<_ACEOF
29930#line $LINENO "configure"
29931/* confdefs.h. */
29932_ACEOF
29933cat confdefs.h >>conftest.$ac_ext
29934cat >>conftest.$ac_ext <<_ACEOF
29935/* end confdefs.h. */
4f14bcd8 29936#include <pthread.h>
e6cc62c6
VS
29937int
29938main ()
29939{
4f14bcd8 29940
7274f1c7
RL
29941 pthread_mutexattr_t attr;
29942 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29943
29944 ;
29945 return 0;
29946}
29947_ACEOF
29948rm -f conftest.$ac_objext
29949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29950 (eval $ac_compile) 2>&5
29951 ac_status=$?
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); } &&
29954 { ac_try='test -s conftest.$ac_objext'
29955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29956 (eval $ac_try) 2>&5
29957 ac_status=$?
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); }; }; then
29960
7274f1c7 29961 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29962
3fed1840 29963else
e6cc62c6
VS
29964 echo "$as_me: failed program was:" >&5
29965sed 's/^/| /' conftest.$ac_ext >&5
29966
29967
7274f1c7 29968 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29969
29970
247f5006 29971fi
e6cc62c6 29972rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29973
e6cc62c6
VS
29974fi
29975echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29976echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29977
7274f1c7 29978 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29979 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29980#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29981_ACEOF
4f14bcd8 29982
7274f1c7 29983 else
e6cc62c6
VS
29984 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29985echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29986if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29987 echo $ECHO_N "(cached) $ECHO_C" >&6
29988else
29989
29990 cat >conftest.$ac_ext <<_ACEOF
29991#line $LINENO "configure"
29992/* confdefs.h. */
29993_ACEOF
29994cat confdefs.h >>conftest.$ac_ext
29995cat >>conftest.$ac_ext <<_ACEOF
29996/* end confdefs.h. */
4f14bcd8 29997#include <pthread.h>
e6cc62c6
VS
29998int
29999main ()
30000{
4f14bcd8 30001
7274f1c7 30002 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
30003
30004 ;
30005 return 0;
30006}
30007_ACEOF
30008rm -f conftest.$ac_objext
30009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30010 (eval $ac_compile) 2>&5
30011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); } &&
30014 { ac_try='test -s conftest.$ac_objext'
30015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30016 (eval $ac_try) 2>&5
30017 ac_status=$?
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); }; }; then
30020
7274f1c7 30021 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30022
698dcdb6 30023else
e6cc62c6
VS
30024 echo "$as_me: failed program was:" >&5
30025sed 's/^/| /' conftest.$ac_ext >&5
30026
30027
7274f1c7 30028 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30029
30030
247f5006 30031fi
e6cc62c6 30032rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30033
e6cc62c6
VS
30034fi
30035echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30036echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30037 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30038 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30039#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30040_ACEOF
3fed1840 30041
7274f1c7 30042 else
e6cc62c6
VS
30043 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30044echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30045 fi
30046 fi
7274f1c7 30047 fi
3fed1840 30048
a0b9e27f
MB
30049else
30050 if test "$wxUSE_THREADS" = "yes" ; then
30051 case "${host}" in
30052 *-*-mingw32* )
e6cc62c6
VS
30053 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30054echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30055if test "${wx_cv_cflags_mthread+set}" = set; then
30056 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30057else
e6cc62c6 30058
ca8e52b3
VZ
30059 CFLAGS_OLD="$CFLAGS"
30060 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
30061 cat >conftest.$ac_ext <<_ACEOF
30062#line $LINENO "configure"
30063/* confdefs.h. */
30064_ACEOF
30065cat confdefs.h >>conftest.$ac_ext
30066cat >>conftest.$ac_ext <<_ACEOF
30067/* end confdefs.h. */
30068
30069int
30070main ()
30071{
ca8e52b3 30072
e6cc62c6
VS
30073 ;
30074 return 0;
30075}
30076_ACEOF
30077rm -f conftest.$ac_objext
30078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30079 (eval $ac_compile) 2>&5
30080 ac_status=$?
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } &&
30083 { ac_try='test -s conftest.$ac_objext'
30084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30085 (eval $ac_try) 2>&5
30086 ac_status=$?
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); }; }; then
ca8e52b3
VZ
30089 wx_cv_cflags_mthread=yes
30090else
e6cc62c6
VS
30091 echo "$as_me: failed program was:" >&5
30092sed 's/^/| /' conftest.$ac_ext >&5
30093
30094wx_cv_cflags_mthread=no
30095
ca8e52b3 30096fi
e6cc62c6
VS
30097rm -f conftest.$ac_objext conftest.$ac_ext
30098
ca8e52b3 30099
e6cc62c6
VS
30100fi
30101echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30102echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30103
30104 if test "$wx_cv_cflags_mthread" = "yes"; then
30105 CXXFLAGS="$CXXFLAGS -mthreads"
30106 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30107 LDFLAGS="$LDFLAGS -mthreads"
30108 else
30109 CFLAGS="$CFLAGS_OLD"
30110 fi
a0b9e27f 30111 ;;
73d617c9
MB
30112 *-pc-os2*emx )
30113 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
30114 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
30115 LDFLAGS="$LDFLAGS -Zmt"
30116 ;;
a0b9e27f
MB
30117 esac
30118 fi
4f14bcd8
GD
30119fi
30120
30121if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30122 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30123#define wxUSE_THREADS 1
e6cc62c6 30124_ACEOF
7b6058cd 30125
8284b0c5 30126
4f14bcd8 30127 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30128else
4f14bcd8 30129 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30130 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30131echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30132 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30133 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30134 echo "$as_me:$LINENO: result: yes" >&5
30135echo "${ECHO_T}yes" >&6
4f14bcd8 30136 else
e6cc62c6
VS
30137 echo "$as_me:$LINENO: result: no" >&5
30138echo "${ECHO_T}no" >&6
4f14bcd8
GD
30139 fi
30140 fi
30141fi
30142
30143if test "$WXGTK20" = 1 ; then
e6cc62c6 30144 cat >>confdefs.h <<_ACEOF
4f14bcd8 30145#define __WXGTK20__ $WXGTK20
e6cc62c6 30146_ACEOF
4f14bcd8
GD
30147
30148 WXGTK12=1
10f2d63a 30149fi
4f14bcd8
GD
30150
30151if test "$WXGTK12" = 1 ; then
e6cc62c6 30152 cat >>confdefs.h <<_ACEOF
4f14bcd8 30153#define __WXGTK12__ $WXGTK12
e6cc62c6 30154_ACEOF
4f14bcd8 30155
10f2d63a 30156fi
698dcdb6 30157
4f14bcd8 30158if test "$WXGTK127" = 1 ; then
e6cc62c6 30159 cat >>confdefs.h <<_ACEOF
4f14bcd8 30160#define __WXGTK127__ $WXGTK127
e6cc62c6 30161_ACEOF
4f14bcd8 30162
698dcdb6 30163fi
10f2d63a 30164
4f14bcd8
GD
30165WXDEBUG=
30166
30167if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30168 WXDEBUG="-g"
30169 wxUSE_OPTIMISE=no
698dcdb6 30170fi
4f14bcd8
GD
30171
30172if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30173 wxUSE_DEBUG_INFO=yes
30174 WXDEBUG="-ggdb"
10f2d63a
VZ
30175fi
30176
4f14bcd8 30177if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30178 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30179#define WXDEBUG 1
e6cc62c6 30180_ACEOF
4f14bcd8
GD
30181
30182 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30183else
4f14bcd8
GD
30184 if test "$wxUSE_GTK" = 1 ; then
30185 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30186 fi
30187fi
30188
30189if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30190 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30191#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30192_ACEOF
4f14bcd8 30193
e6cc62c6 30194 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30195#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30196_ACEOF
4f14bcd8 30197
e6cc62c6 30198 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30199#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30200_ACEOF
4f14bcd8
GD
30201
30202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30203fi
30204
30205if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30206 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30207fi
30208
30209PROFILE=
30210if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30211 PROFILE=" -pg"
10f2d63a
VZ
30212fi
30213
009fead0
VZ
30214CODE_GEN_FLAGS=
30215CODE_GEN_FLAGS_CXX=
88e30f2b 30216if test "$GCC" = "yes" ; then
4f14bcd8
GD
30217 if test "$wxUSE_NO_RTTI" = "yes" ; then
30218 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30219 fi
4f14bcd8
GD
30220 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30221 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30222 fi
30223 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30224 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30225 fi
1d1b75ac 30226
2b5f62a0 30227 case "${host}" in
1d1b75ac
VZ
30228 powerpc*-*-aix* )
30229 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30230 ;;
2b5f62a0
VZ
30231 *-hppa* )
30232 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30233 ;;
1d1b75ac 30234 esac
4f14bcd8
GD
30235fi
30236
af7b5345 30237OPTIMISE=
4f14bcd8 30238if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30239 if test "$GCC" = yes ; then
30240 OPTIMISE="-O0"
30241 fi
4f14bcd8
GD
30242else
30243 if test "$GCC" = yes ; then
30244 OPTIMISE="-O2"
af7b5345
VZ
30245
30246 case "${host}" in
4f14bcd8
GD
30247 i586-*-*|i686-*-* )
30248 OPTIMISE="${OPTIMISE} "
30249 ;;
30250 esac
30251 else
30252 OPTIMISE="-O"
30253 fi
30254fi
30255
8d90d2f2 30256
65d8ef1e 30257if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30258 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30259#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30260_ACEOF
4f14bcd8 30261
8d90d2f2
VZ
30262
30263 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30264fi
30265
65d8ef1e 30266if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30267 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30268#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30269_ACEOF
65d8ef1e
VS
30270
30271fi
30272
8284b0c5 30273
10f2d63a 30274if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30275 cat >>confdefs.h <<\_ACEOF
10f2d63a 30276#define wxUSE_GUI 1
e6cc62c6 30277_ACEOF
10f2d63a 30278
8284b0c5 30279
10f2d63a 30280 else
e6cc62c6 30281 cat >>confdefs.h <<\_ACEOF
10f2d63a 30282#define wxUSE_NOGUI 1
e6cc62c6 30283_ACEOF
10f2d63a
VZ
30284
30285fi
30286
8284b0c5 30287
10f2d63a 30288if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30289 cat >>confdefs.h <<\_ACEOF
10f2d63a 30290#define wxUSE_UNIX 1
e6cc62c6 30291_ACEOF
10f2d63a
VZ
30292
30293fi
30294
8284b0c5 30295
df5168c4
MB
30296if test "$wxUSE_STL" = "yes"; then
30297 cat >>confdefs.h <<\_ACEOF
30298#define wxUSE_STL 1
30299_ACEOF
30300
30301fi
30302
10f2d63a 30303if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30304 cat >>confdefs.h <<\_ACEOF
10f2d63a 30305#define wxUSE_APPLE_IEEE 1
e6cc62c6 30306_ACEOF
10f2d63a
VZ
30307
30308fi
30309
1e6feb95 30310if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30311 cat >>confdefs.h <<\_ACEOF
1e6feb95 30312#define wxUSE_TIMER 1
e6cc62c6 30313_ACEOF
1e6feb95
VZ
30314
30315fi
30316
10f2d63a 30317if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30318 cat >>confdefs.h <<\_ACEOF
10f2d63a 30319#define wxUSE_WAVE 1
e6cc62c6 30320_ACEOF
10f2d63a
VZ
30321
30322fi
30323
1e6feb95 30324if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30325 cat >>confdefs.h <<\_ACEOF
1e6feb95 30326#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30327_ACEOF
1e6feb95
VZ
30328
30329fi
30330
30331if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30332 cat >>confdefs.h <<\_ACEOF
1e6feb95 30333#define wxUSE_STOPWATCH 1
e6cc62c6 30334_ACEOF
1e6feb95
VZ
30335
30336fi
30337
30338if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30339 cat >>confdefs.h <<\_ACEOF
1e6feb95 30340#define wxUSE_DATETIME 1
e6cc62c6 30341_ACEOF
1e6feb95
VZ
30342
30343fi
30344
10f2d63a 30345if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30346 cat >>confdefs.h <<\_ACEOF
10f2d63a 30347#define wxUSE_FILE 1
e6cc62c6 30348_ACEOF
10f2d63a
VZ
30349
30350fi
30351
1e6feb95 30352if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30353 cat >>confdefs.h <<\_ACEOF
1e6feb95 30354#define wxUSE_FFILE 1
e6cc62c6 30355_ACEOF
1e6feb95
VZ
30356
30357fi
30358
24528b0c 30359if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30360 cat >>confdefs.h <<\_ACEOF
24528b0c 30361#define wxUSE_FILESYSTEM 1
e6cc62c6 30362_ACEOF
24528b0c
VS
30363
30364fi
30365
10f2d63a 30366if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30367 cat >>confdefs.h <<\_ACEOF
10f2d63a 30368#define wxUSE_FS_ZIP 1
e6cc62c6 30369_ACEOF
10f2d63a
VZ
30370
30371fi
30372
30373if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30374 cat >>confdefs.h <<\_ACEOF
10f2d63a 30375#define wxUSE_ZIPSTREAM 1
e6cc62c6 30376_ACEOF
10f2d63a
VZ
30377
30378fi
30379
eb4efbdc 30380if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30381 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30382#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30383_ACEOF
eb4efbdc
VZ
30384
30385fi
30386
4f3c5f06 30387if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30388 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30389#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30390_ACEOF
4f3c5f06
VZ
30391
30392fi
30393
10f2d63a 30394if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30395 cat >>confdefs.h <<\_ACEOF
10f2d63a 30396#define wxUSE_BUSYINFO 1
e6cc62c6 30397_ACEOF
10f2d63a
VZ
30398
30399fi
30400
30401if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30402 cat >>confdefs.h <<\_ACEOF
10f2d63a 30403#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30404_ACEOF
10f2d63a
VZ
30405
30406fi
30407
a3a584a7 30408if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30409 cat >>confdefs.h <<\_ACEOF
a3a584a7 30410#define wxUSE_TEXTBUFFER 1
e6cc62c6 30411_ACEOF
a3a584a7
VZ
30412
30413fi
30414
10f2d63a 30415if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30416 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30417 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30418echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30419 else
e6cc62c6 30420 cat >>confdefs.h <<\_ACEOF
10f2d63a 30421#define wxUSE_TEXTFILE 1
e6cc62c6 30422_ACEOF
10f2d63a
VZ
30423
30424 fi
30425fi
30426
30427if test "$wxUSE_CONFIG" = "yes" ; then
30428 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30429 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30430echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30431 else
e6cc62c6 30432 cat >>confdefs.h <<\_ACEOF
10f2d63a 30433#define wxUSE_CONFIG 1
e6cc62c6 30434_ACEOF
10f2d63a
VZ
30435
30436 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30437 fi
30438fi
30439
30440if test "$wxUSE_INTL" = "yes" ; then
30441 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30442 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30443echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30444 else
e6cc62c6 30445 cat >>confdefs.h <<\_ACEOF
10f2d63a 30446#define wxUSE_INTL 1
e6cc62c6 30447_ACEOF
10f2d63a
VZ
30448
30449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30450 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30451 fi
30452fi
30453
30454if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30455 cat >>confdefs.h <<\_ACEOF
10f2d63a 30456#define wxUSE_LOG 1
e6cc62c6 30457_ACEOF
10f2d63a 30458
8284b0c5 30459
d73be714 30460 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30461 cat >>confdefs.h <<\_ACEOF
d73be714 30462#define wxUSE_LOGGUI 1
e6cc62c6 30463_ACEOF
d73be714
VZ
30464
30465 fi
30466
30467 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30468 cat >>confdefs.h <<\_ACEOF
d73be714 30469#define wxUSE_LOGWINDOW 1
e6cc62c6 30470_ACEOF
69d27ff7
MB
30471
30472 fi
30473
30474 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30475 cat >>confdefs.h <<\_ACEOF
69d27ff7 30476#define wxUSE_LOG_DIALOG 1
e6cc62c6 30477_ACEOF
d73be714
VZ
30478
30479 fi
10f2d63a
VZ
30480fi
30481
30482if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30483 cat >>confdefs.h <<\_ACEOF
10f2d63a 30484#define wxUSE_LONGLONG 1
e6cc62c6 30485_ACEOF
10f2d63a
VZ
30486
30487fi
30488
e8f65ba6 30489if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30490 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30491#define wxUSE_GEOMETRY 1
e6cc62c6 30492_ACEOF
e8f65ba6
RR
30493
30494fi
30495
10f2d63a 30496if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30497 cat >>confdefs.h <<\_ACEOF
10f2d63a 30498#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30499_ACEOF
10f2d63a 30500
70f7a477 30501 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30502fi
30503
30504if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30505 cat >>confdefs.h <<\_ACEOF
10f2d63a 30506#define wxUSE_STREAMS 1
e6cc62c6 30507_ACEOF
10f2d63a
VZ
30508
30509fi
30510
5c6fa7d2 30511
8284b0c5 30512if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30513
30514for ac_func in strptime
83307f33 30515do
e6cc62c6
VS
30516as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30517echo "$as_me:$LINENO: checking for $ac_func" >&5
30518echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30519if eval "test \"\${$as_ac_var+set}\" = set"; then
30520 echo $ECHO_N "(cached) $ECHO_C" >&6
30521else
30522 cat >conftest.$ac_ext <<_ACEOF
30523#line $LINENO "configure"
30524/* confdefs.h. */
30525_ACEOF
30526cat confdefs.h >>conftest.$ac_ext
30527cat >>conftest.$ac_ext <<_ACEOF
30528/* end confdefs.h. */
83307f33 30529/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30530 which can conflict with char $ac_func (); below.
30531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30532 <limits.h> exists even on freestanding compilers. */
30533#ifdef __STDC__
30534# include <limits.h>
30535#else
30536# include <assert.h>
30537#endif
83307f33 30538/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30539#ifdef __cplusplus
30540extern "C"
30541{
30542#endif
83307f33 30543/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30544 builtin and then its argument prototype would still apply. */
30545char $ac_func ();
83307f33
VZ
30546/* The GNU C library defines this for functions which it implements
30547 to always fail with ENOSYS. Some functions are actually named
30548 something starting with __ and the normal name is an alias. */
30549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30550choke me
30551#else
e6cc62c6
VS
30552char (*f) () = $ac_func;
30553#endif
30554#ifdef __cplusplus
30555}
83307f33
VZ
30556#endif
30557
e6cc62c6
VS
30558int
30559main ()
30560{
30561return f != $ac_func;
30562 ;
30563 return 0;
30564}
30565_ACEOF
30566rm -f conftest.$ac_objext conftest$ac_exeext
30567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30568 (eval $ac_link) 2>&5
30569 ac_status=$?
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); } &&
30572 { ac_try='test -s conftest$ac_exeext'
30573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30574 (eval $ac_try) 2>&5
30575 ac_status=$?
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); }; }; then
30578 eval "$as_ac_var=yes"
30579else
30580 echo "$as_me: failed program was:" >&5
30581sed 's/^/| /' conftest.$ac_ext >&5
30582
30583eval "$as_ac_var=no"
30584fi
30585rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30586fi
30587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30588echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30589if test `eval echo '${'$as_ac_var'}'` = yes; then
30590 cat >>confdefs.h <<_ACEOF
30591#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30592_ACEOF
83307f33 30593
83307f33
VZ
30594fi
30595done
30596
5c6fa7d2 30597
e6cc62c6
VS
30598 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30599echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30600if test "${wx_cv_var_timezone+set}" = set; then
30601 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30602else
e6cc62c6
VS
30603
30604 cat >conftest.$ac_ext <<_ACEOF
30605#line $LINENO "configure"
30606/* confdefs.h. */
30607_ACEOF
30608cat confdefs.h >>conftest.$ac_ext
30609cat >>conftest.$ac_ext <<_ACEOF
30610/* end confdefs.h. */
360d6699 30611
b4085ce6 30612 #include <time.h>
e6cc62c6
VS
30613
30614int
30615main ()
30616{
360d6699
VZ
30617
30618 int tz;
4f11a343 30619 tz = timezone;
e6cc62c6
VS
30620
30621 ;
30622 return 0;
30623}
30624_ACEOF
30625rm -f conftest.$ac_objext
30626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30627 (eval $ac_compile) 2>&5
30628 ac_status=$?
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); } &&
30631 { ac_try='test -s conftest.$ac_objext'
30632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30633 (eval $ac_try) 2>&5
30634 ac_status=$?
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; }; then
30637
4f11a343 30638 wx_cv_var_timezone=timezone
e6cc62c6 30639
360d6699 30640else
e6cc62c6
VS
30641 echo "$as_me: failed program was:" >&5
30642sed 's/^/| /' conftest.$ac_ext >&5
30643
30644
30645 cat >conftest.$ac_ext <<_ACEOF
30646#line $LINENO "configure"
30647/* confdefs.h. */
30648_ACEOF
30649cat confdefs.h >>conftest.$ac_ext
30650cat >>conftest.$ac_ext <<_ACEOF
30651/* end confdefs.h. */
360d6699 30652
b4085ce6 30653 #include <time.h>
e6cc62c6
VS
30654
30655int
30656main ()
30657{
360d6699
VZ
30658
30659 int tz;
30660 tz = _timezone;
e6cc62c6
VS
30661
30662 ;
30663 return 0;
30664}
30665_ACEOF
30666rm -f conftest.$ac_objext
30667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30668 (eval $ac_compile) 2>&5
30669 ac_status=$?
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); } &&
30672 { ac_try='test -s conftest.$ac_objext'
30673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30674 (eval $ac_try) 2>&5
30675 ac_status=$?
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); }; }; then
30678
360d6699 30679 wx_cv_var_timezone=_timezone
e6cc62c6 30680
5357c8e8 30681else
e6cc62c6
VS
30682 echo "$as_me: failed program was:" >&5
30683sed 's/^/| /' conftest.$ac_ext >&5
30684
30685
30686 cat >conftest.$ac_ext <<_ACEOF
30687#line $LINENO "configure"
30688/* confdefs.h. */
30689_ACEOF
30690cat confdefs.h >>conftest.$ac_ext
30691cat >>conftest.$ac_ext <<_ACEOF
30692/* end confdefs.h. */
5357c8e8 30693
b4085ce6 30694 #include <time.h>
e6cc62c6
VS
30695
30696int
30697main ()
30698{
5357c8e8
VZ
30699
30700 int tz;
4f11a343 30701 tz = __timezone;
e6cc62c6
VS
30702
30703 ;
30704 return 0;
30705}
30706_ACEOF
30707rm -f conftest.$ac_objext
30708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30709 (eval $ac_compile) 2>&5
30710 ac_status=$?
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); } &&
30713 { ac_try='test -s conftest.$ac_objext'
30714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30715 (eval $ac_try) 2>&5
30716 ac_status=$?
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); }; }; then
30719
4f11a343 30720 wx_cv_var_timezone=__timezone
e6cc62c6 30721
360d6699 30722else
e6cc62c6
VS
30723 echo "$as_me: failed program was:" >&5
30724sed 's/^/| /' conftest.$ac_ext >&5
30725
30726
f9bc1684 30727 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30728 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30729echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30730 fi
e6cc62c6
VS
30731
30732
7b4a847f 30733fi
e6cc62c6
VS
30734rm -f conftest.$ac_objext conftest.$ac_ext
30735
30736
5c6fa7d2 30737fi
e6cc62c6
VS
30738rm -f conftest.$ac_objext conftest.$ac_ext
30739
30740
247f5006 30741fi
e6cc62c6 30742rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30743
e6cc62c6
VS
30744
30745fi
30746echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30747echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30748
f9bc1684 30749 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30750 cat >>confdefs.h <<_ACEOF
360d6699 30751#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30752_ACEOF
360d6699 30753
f9bc1684 30754 fi
698dcdb6 30755
e6cc62c6
VS
30756
30757for ac_func in localtime
afc31813 30758do
e6cc62c6
VS
30759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30760echo "$as_me:$LINENO: checking for $ac_func" >&5
30761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30762if eval "test \"\${$as_ac_var+set}\" = set"; then
30763 echo $ECHO_N "(cached) $ECHO_C" >&6
30764else
30765 cat >conftest.$ac_ext <<_ACEOF
30766#line $LINENO "configure"
30767/* confdefs.h. */
30768_ACEOF
30769cat confdefs.h >>conftest.$ac_ext
30770cat >>conftest.$ac_ext <<_ACEOF
30771/* end confdefs.h. */
afc31813 30772/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30773 which can conflict with char $ac_func (); below.
30774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30775 <limits.h> exists even on freestanding compilers. */
30776#ifdef __STDC__
30777# include <limits.h>
30778#else
30779# include <assert.h>
30780#endif
afc31813 30781/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30782#ifdef __cplusplus
30783extern "C"
30784{
30785#endif
afc31813 30786/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30787 builtin and then its argument prototype would still apply. */
30788char $ac_func ();
afc31813
VZ
30789/* The GNU C library defines this for functions which it implements
30790 to always fail with ENOSYS. Some functions are actually named
30791 something starting with __ and the normal name is an alias. */
30792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30793choke me
30794#else
e6cc62c6
VS
30795char (*f) () = $ac_func;
30796#endif
30797#ifdef __cplusplus
30798}
afc31813
VZ
30799#endif
30800
e6cc62c6
VS
30801int
30802main ()
30803{
30804return f != $ac_func;
30805 ;
30806 return 0;
30807}
30808_ACEOF
30809rm -f conftest.$ac_objext conftest$ac_exeext
30810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30811 (eval $ac_link) 2>&5
30812 ac_status=$?
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); } &&
30815 { ac_try='test -s conftest$ac_exeext'
30816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30817 (eval $ac_try) 2>&5
30818 ac_status=$?
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); }; }; then
30821 eval "$as_ac_var=yes"
30822else
30823 echo "$as_me: failed program was:" >&5
30824sed 's/^/| /' conftest.$ac_ext >&5
30825
30826eval "$as_ac_var=no"
30827fi
30828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30829fi
30830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30832if test `eval echo '${'$as_ac_var'}'` = yes; then
30833 cat >>confdefs.h <<_ACEOF
30834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30835_ACEOF
afc31813 30836
afc31813
VZ
30837fi
30838done
30839
5c6fa7d2 30840
8284b0c5 30841 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30842 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30843echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30844if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30845 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30846else
e6cc62c6
VS
30847
30848 cat >conftest.$ac_ext <<_ACEOF
30849#line $LINENO "configure"
30850/* confdefs.h. */
30851_ACEOF
30852cat confdefs.h >>conftest.$ac_ext
30853cat >>conftest.$ac_ext <<_ACEOF
30854/* end confdefs.h. */
0470b1e6 30855
b4085ce6 30856 #include <time.h>
e6cc62c6
VS
30857
30858int
30859main ()
30860{
0470b1e6
VZ
30861
30862 struct tm tm;
30863 tm.tm_gmtoff++;
e6cc62c6
VS
30864
30865 ;
30866 return 0;
30867}
30868_ACEOF
30869rm -f conftest.$ac_objext
30870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30871 (eval $ac_compile) 2>&5
30872 ac_status=$?
30873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874 (exit $ac_status); } &&
30875 { ac_try='test -s conftest.$ac_objext'
30876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30877 (eval $ac_try) 2>&5
30878 ac_status=$?
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); }; }; then
30881
f03a98d8 30882 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30883
0470b1e6 30884else
e6cc62c6
VS
30885 echo "$as_me: failed program was:" >&5
30886sed 's/^/| /' conftest.$ac_ext >&5
30887
30888wx_cv_struct_tm_has_gmtoff=no
30889
247f5006 30890fi
e6cc62c6 30891rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30892
e6cc62c6
VS
30893fi
30894echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30895echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30896 fi
30897
30898 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30899 cat >>confdefs.h <<\_ACEOF
6232543b 30900#define WX_GMTOFF_IN_TM 1
e6cc62c6 30901_ACEOF
0470b1e6 30902
3fcdd07b
VZ
30903 fi
30904
e6cc62c6
VS
30905
30906
30907for ac_func in gettimeofday ftime
3fcdd07b 30908do
e6cc62c6
VS
30909as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30910echo "$as_me:$LINENO: checking for $ac_func" >&5
30911echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30912if eval "test \"\${$as_ac_var+set}\" = set"; then
30913 echo $ECHO_N "(cached) $ECHO_C" >&6
30914else
30915 cat >conftest.$ac_ext <<_ACEOF
30916#line $LINENO "configure"
30917/* confdefs.h. */
30918_ACEOF
30919cat confdefs.h >>conftest.$ac_ext
30920cat >>conftest.$ac_ext <<_ACEOF
30921/* end confdefs.h. */
3fcdd07b 30922/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30923 which can conflict with char $ac_func (); below.
30924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30925 <limits.h> exists even on freestanding compilers. */
30926#ifdef __STDC__
30927# include <limits.h>
30928#else
30929# include <assert.h>
30930#endif
3fcdd07b 30931/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30932#ifdef __cplusplus
30933extern "C"
30934{
30935#endif
3fcdd07b 30936/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30937 builtin and then its argument prototype would still apply. */
30938char $ac_func ();
3fcdd07b
VZ
30939/* The GNU C library defines this for functions which it implements
30940 to always fail with ENOSYS. Some functions are actually named
30941 something starting with __ and the normal name is an alias. */
30942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30943choke me
30944#else
e6cc62c6
VS
30945char (*f) () = $ac_func;
30946#endif
30947#ifdef __cplusplus
30948}
3fcdd07b
VZ
30949#endif
30950
e6cc62c6
VS
30951int
30952main ()
30953{
30954return f != $ac_func;
30955 ;
30956 return 0;
30957}
30958_ACEOF
30959rm -f conftest.$ac_objext conftest$ac_exeext
30960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30961 (eval $ac_link) 2>&5
30962 ac_status=$?
30963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964 (exit $ac_status); } &&
30965 { ac_try='test -s conftest$ac_exeext'
30966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30967 (eval $ac_try) 2>&5
30968 ac_status=$?
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); }; }; then
30971 eval "$as_ac_var=yes"
30972else
30973 echo "$as_me: failed program was:" >&5
30974sed 's/^/| /' conftest.$ac_ext >&5
30975
30976eval "$as_ac_var=no"
30977fi
30978rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30979fi
30980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30981echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30982if test `eval echo '${'$as_ac_var'}'` = yes; then
30983 cat >>confdefs.h <<_ACEOF
30984#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30985_ACEOF
3fcdd07b 30986 break
3fcdd07b
VZ
30987fi
30988done
30989
698dcdb6 30990
8284b0c5 30991 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30992 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30993echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30994if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
30996else
30997
30998
30999
31000 ac_ext=cc
5c6fa7d2 31001ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
31002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 31005
8284b0c5 31006
e6cc62c6
VS
31007 cat >conftest.$ac_ext <<_ACEOF
31008#line $LINENO "configure"
31009/* confdefs.h. */
31010_ACEOF
31011cat confdefs.h >>conftest.$ac_ext
31012cat >>conftest.$ac_ext <<_ACEOF
31013/* end confdefs.h. */
afc31813
VZ
31014
31015 #include <sys/time.h>
31016 #include <unistd.h>
e6cc62c6
VS
31017
31018int
31019main ()
31020{
afc31813
VZ
31021
31022 struct timeval tv;
776862b4 31023 gettimeofday(&tv, NULL);
e6cc62c6
VS
31024
31025 ;
31026 return 0;
31027}
31028_ACEOF
31029rm -f conftest.$ac_objext
31030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31031 (eval $ac_compile) 2>&5
31032 ac_status=$?
31033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); } &&
31035 { ac_try='test -s conftest.$ac_objext'
31036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31037 (eval $ac_try) 2>&5
31038 ac_status=$?
31039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040 (exit $ac_status); }; }; then
afc31813 31041 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 31042else
e6cc62c6
VS
31043 echo "$as_me: failed program was:" >&5
31044sed 's/^/| /' conftest.$ac_ext >&5
31045
31046cat >conftest.$ac_ext <<_ACEOF
31047#line $LINENO "configure"
31048/* confdefs.h. */
31049_ACEOF
31050cat confdefs.h >>conftest.$ac_ext
31051cat >>conftest.$ac_ext <<_ACEOF
31052/* end confdefs.h. */
afc31813
VZ
31053
31054 #include <sys/time.h>
31055 #include <unistd.h>
e6cc62c6
VS
31056
31057int
31058main ()
31059{
afc31813
VZ
31060
31061 struct timeval tv;
31062 gettimeofday(&tv);
e6cc62c6
VS
31063
31064 ;
31065 return 0;
31066}
31067_ACEOF
31068rm -f conftest.$ac_objext
31069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31070 (eval $ac_compile) 2>&5
31071 ac_status=$?
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); } &&
31074 { ac_try='test -s conftest.$ac_objext'
31075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31076 (eval $ac_try) 2>&5
31077 ac_status=$?
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; }; then
afc31813 31080 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 31081else
e6cc62c6
VS
31082 echo "$as_me: failed program was:" >&5
31083sed 's/^/| /' conftest.$ac_ext >&5
31084
31085
31086 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31087echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 31088 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
31089
31090
10f2d63a 31091fi
e6cc62c6
VS
31092rm -f conftest.$ac_objext conftest.$ac_ext
31093
10f2d63a 31094fi
e6cc62c6 31095rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 31096 ac_ext=c
10f2d63a 31097ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31100ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 31101
a0b9e27f 31102
e6cc62c6
VS
31103fi
31104echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31105echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 31106
afc31813 31107 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 31108 cat >>confdefs.h <<\_ACEOF
afc31813 31109#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 31110_ACEOF
afc31813
VZ
31111
31112 fi
31113 fi
31114
afc31813
VZ
31115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31116fi
31117
8284b0c5 31118
52127426 31119if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 31120 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
31121 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31122echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
31123 wxUSE_SOCKETS="no"
31124 fi
3879ecda
VZ
31125 if test "$wxUSE_COCOA" = "1"; then
31126 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
31127echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
31128 wxUSE_SOCKETS="no"
31129 fi
0feee163 31130fi
b089607b 31131
0feee163
VZ
31132if test "$wxUSE_SOCKETS" = "yes"; then
31133 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31134 echo "$as_me:$LINENO: checking for socket" >&5
31135echo $ECHO_N "checking for socket... $ECHO_C" >&6
31136if test "${ac_cv_func_socket+set}" = set; then
31137 echo $ECHO_N "(cached) $ECHO_C" >&6
31138else
31139 cat >conftest.$ac_ext <<_ACEOF
31140#line $LINENO "configure"
31141/* confdefs.h. */
31142_ACEOF
31143cat confdefs.h >>conftest.$ac_ext
31144cat >>conftest.$ac_ext <<_ACEOF
31145/* end confdefs.h. */
c63c7106 31146/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31147 which can conflict with char socket (); below.
31148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31149 <limits.h> exists even on freestanding compilers. */
31150#ifdef __STDC__
31151# include <limits.h>
31152#else
31153# include <assert.h>
31154#endif
c63c7106 31155/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31156#ifdef __cplusplus
31157extern "C"
31158{
31159#endif
c63c7106 31160/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31161 builtin and then its argument prototype would still apply. */
31162char socket ();
c63c7106
VZ
31163/* The GNU C library defines this for functions which it implements
31164 to always fail with ENOSYS. Some functions are actually named
31165 something starting with __ and the normal name is an alias. */
31166#if defined (__stub_socket) || defined (__stub___socket)
31167choke me
31168#else
e6cc62c6
VS
31169char (*f) () = socket;
31170#endif
31171#ifdef __cplusplus
31172}
c63c7106
VZ
31173#endif
31174
e6cc62c6
VS
31175int
31176main ()
31177{
31178return f != socket;
31179 ;
31180 return 0;
31181}
31182_ACEOF
31183rm -f conftest.$ac_objext conftest$ac_exeext
31184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31185 (eval $ac_link) 2>&5
31186 ac_status=$?
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } &&
31189 { ac_try='test -s conftest$ac_exeext'
31190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31191 (eval $ac_try) 2>&5
31192 ac_status=$?
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; }; then
31195 ac_cv_func_socket=yes
31196else
31197 echo "$as_me: failed program was:" >&5
31198sed 's/^/| /' conftest.$ac_ext >&5
31199
31200ac_cv_func_socket=no
31201fi
31202rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31203fi
31204echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31205echo "${ECHO_T}$ac_cv_func_socket" >&6
31206if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31207 :
31208else
0e012a93
VZ
31209
31210 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
e6cc62c6
VS
31211echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31212if test "${ac_cv_lib_socket_socket+set}" = set; then
31213 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31214else
e6cc62c6 31215 ac_check_lib_save_LIBS=$LIBS
c63c7106 31216LIBS="-lsocket $LIBS"
e6cc62c6
VS
31217cat >conftest.$ac_ext <<_ACEOF
31218#line $LINENO "configure"
31219/* confdefs.h. */
31220_ACEOF
31221cat confdefs.h >>conftest.$ac_ext
31222cat >>conftest.$ac_ext <<_ACEOF
31223/* end confdefs.h. */
31224
c63c7106 31225/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31226#ifdef __cplusplus
31227extern "C"
31228#endif
c63c7106 31229/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31230 builtin and then its argument prototype would still apply. */
31231char socket ();
31232int
31233main ()
31234{
31235socket ();
31236 ;
31237 return 0;
31238}
31239_ACEOF
31240rm -f conftest.$ac_objext conftest$ac_exeext
31241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31242 (eval $ac_link) 2>&5
31243 ac_status=$?
31244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245 (exit $ac_status); } &&
31246 { ac_try='test -s conftest$ac_exeext'
31247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31248 (eval $ac_try) 2>&5
31249 ac_status=$?
31250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31251 (exit $ac_status); }; }; then
31252 ac_cv_lib_socket_socket=yes
31253else
31254 echo "$as_me: failed program was:" >&5
31255sed 's/^/| /' conftest.$ac_ext >&5
31256
31257ac_cv_lib_socket_socket=no
31258fi
31259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31260LIBS=$ac_check_lib_save_LIBS
31261fi
31262echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31263echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31264if test $ac_cv_lib_socket_socket = yes; then
d558c907 31265 if test "$INET_LINK" != " -lsocket"; then
0e012a93
VZ
31266 INET_LINK="$INET_LINK -lsocket"
31267 fi
c63c7106 31268else
afc31813 31269
0e012a93 31270 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
e6cc62c6 31271echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
0e012a93 31272 wxUSE_SOCKETS=no
e6cc62c6
VS
31273
31274
6232543b 31275fi
b089607b 31276
e6cc62c6 31277
0e012a93 31278
1e487827 31279fi
afc31813 31280
3a922bb4 31281 fi
0feee163 31282fi
51a9faba 31283
0feee163
VZ
31284if test "$wxUSE_SOCKETS" = "yes" ; then
31285 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31286 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31287echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31288if test "${wx_cv_type_getsockname3+set}" = set; then
31289 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31290else
e6cc62c6
VS
31291
31292 cat >conftest.$ac_ext <<_ACEOF
31293#line $LINENO "configure"
31294/* confdefs.h. */
31295_ACEOF
31296cat confdefs.h >>conftest.$ac_ext
31297cat >>conftest.$ac_ext <<_ACEOF
31298/* end confdefs.h. */
51a9faba 31299
3a922bb4
RL
31300 #include <sys/types.h>
31301 #include <sys/socket.h>
e6cc62c6
VS
31302
31303int
31304main ()
31305{
51a9faba 31306
3a922bb4
RL
31307 socklen_t len;
31308 getsockname(0, 0, &len);
e6cc62c6
VS
31309
31310 ;
31311 return 0;
31312}
31313_ACEOF
31314rm -f conftest.$ac_objext
31315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31316 (eval $ac_compile) 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); } &&
31320 { ac_try='test -s conftest.$ac_objext'
31321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31322 (eval $ac_try) 2>&5
31323 ac_status=$?
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); }; }; then
51a9faba 31326 wx_cv_type_getsockname3=socklen_t
afc31813 31327else
e6cc62c6
VS
31328 echo "$as_me: failed program was:" >&5
31329sed 's/^/| /' conftest.$ac_ext >&5
31330
31331
9711d31e
GD
31332 CFLAGS_OLD="$CFLAGS"
31333 if test "$GCC" = yes ; then
31334 CFLAGS="$CFLAGS -Werror"
31335 fi
31336
e6cc62c6
VS
31337 cat >conftest.$ac_ext <<_ACEOF
31338#line $LINENO "configure"
31339/* confdefs.h. */
31340_ACEOF
31341cat confdefs.h >>conftest.$ac_ext
31342cat >>conftest.$ac_ext <<_ACEOF
31343/* end confdefs.h. */
51a9faba 31344
9711d31e
GD
31345 #include <sys/types.h>
31346 #include <sys/socket.h>
e6cc62c6
VS
31347
31348int
31349main ()
31350{
51a9faba 31351
9711d31e
GD
31352 size_t len;
31353 getsockname(0, 0, &len);
e6cc62c6
VS
31354
31355 ;
31356 return 0;
31357}
31358_ACEOF
31359rm -f conftest.$ac_objext
31360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31361 (eval $ac_compile) 2>&5
31362 ac_status=$?
31363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364 (exit $ac_status); } &&
31365 { ac_try='test -s conftest.$ac_objext'
31366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31367 (eval $ac_try) 2>&5
31368 ac_status=$?
31369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370 (exit $ac_status); }; }; then
51a9faba 31371 wx_cv_type_getsockname3=size_t
afc31813 31372else
e6cc62c6
VS
31373 echo "$as_me: failed program was:" >&5
31374sed 's/^/| /' conftest.$ac_ext >&5
31375
31376cat >conftest.$ac_ext <<_ACEOF
31377#line $LINENO "configure"
31378/* confdefs.h. */
31379_ACEOF
31380cat confdefs.h >>conftest.$ac_ext
31381cat >>conftest.$ac_ext <<_ACEOF
31382/* end confdefs.h. */
51a9faba 31383
9711d31e
GD
31384 #include <sys/types.h>
31385 #include <sys/socket.h>
e6cc62c6
VS
31386
31387int
31388main ()
31389{
51a9faba 31390
9711d31e
GD
31391 int len;
31392 getsockname(0, 0, &len);
e6cc62c6
VS
31393
31394 ;
31395 return 0;
31396}
31397_ACEOF
31398rm -f conftest.$ac_objext
31399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31400 (eval $ac_compile) 2>&5
31401 ac_status=$?
31402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31403 (exit $ac_status); } &&
31404 { ac_try='test -s conftest.$ac_objext'
31405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31406 (eval $ac_try) 2>&5
31407 ac_status=$?
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); }; }; then
51a9faba 31410 wx_cv_type_getsockname3=int
afc31813 31411else
e6cc62c6
VS
31412 echo "$as_me: failed program was:" >&5
31413sed 's/^/| /' conftest.$ac_ext >&5
31414
31415wx_cv_type_getsockname3=unknown
31416
afc31813 31417fi
e6cc62c6
VS
31418rm -f conftest.$ac_objext conftest.$ac_ext
31419
afc31813 31420fi
e6cc62c6 31421rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31422
31423 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31424
31425
247f5006 31426fi
e6cc62c6 31427rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31428
e6cc62c6
VS
31429fi
31430echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31431echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31432
3a922bb4
RL
31433 if test "$wx_cv_type_getsockname3" = "unknown"; then
31434 wxUSE_SOCKETS=no
e6cc62c6
VS
31435 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31436echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31437 else
e6cc62c6 31438 cat >>confdefs.h <<_ACEOF
51a9faba 31439#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31440_ACEOF
51a9faba 31441
3a922bb4 31442 fi
51a9faba
VZ
31443 fi
31444fi
afc31813 31445
51a9faba 31446if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31447 cat >>confdefs.h <<\_ACEOF
afc31813 31448#define wxUSE_SOCKETS 1
e6cc62c6 31449_ACEOF
afc31813 31450
70f7a477 31451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31452fi
31453
3879ecda
VZ
31454if test "$wxUSE_PROTOCOL" = "yes"; then
31455 if test "$wxUSE_SOCKETS" != "yes"; then
31456 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31457echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31458 wxUSE_PROTOCOL=no
31459 fi
31460fi
31461
31462if test "$wxUSE_PROTOCOL" = "yes"; then
31463 cat >>confdefs.h <<\_ACEOF
31464#define wxUSE_PROTOCOL 1
31465_ACEOF
31466
31467
31468 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31469 cat >>confdefs.h <<\_ACEOF
31470#define wxUSE_PROTOCOL_HTTP 1
31471_ACEOF
31472
31473 fi
31474 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31475 cat >>confdefs.h <<\_ACEOF
31476#define wxUSE_PROTOCOL_FTP 1
31477_ACEOF
31478
31479 fi
31480 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31481 cat >>confdefs.h <<\_ACEOF
31482#define wxUSE_PROTOCOL_FILE 1
31483_ACEOF
31484
31485 fi
31486else
31487 if test "$wxUSE_FS_INET" = "yes"; then
31488 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31489echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31490 wxUSE_FS_INET="no"
31491 fi
31492fi
31493
31494if test "$wxUSE_URL" = "yes"; then
31495 if test "$wxUSE_PROTOCOL" != "yes"; then
31496 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31497echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31498 wxUSE_URL=no
31499 fi
31500 if test "$wxUSE_URL" = "yes"; then
31501 cat >>confdefs.h <<\_ACEOF
31502#define wxUSE_URL 1
31503_ACEOF
31504
31505 fi
31506fi
31507
31508if test "$wxUSE_FS_INET" = "yes"; then
31509 cat >>confdefs.h <<\_ACEOF
31510#define wxUSE_FS_INET 1
31511_ACEOF
31512
31513fi
31514
8284b0c5 31515
dc3d889d
VZ
31516if test "$wxUSE_GUI" = "yes"; then
31517
ac0c4cc3 31518 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31519 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31520echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31521 wxUSE_JOYSTICK=no
156b2523
GD
31522 fi
31523
131f235d 31524 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31525 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31526
31527for ac_header in linux/joystick.h
10f2d63a 31528do
e6cc62c6
VS
31529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31530if eval "test \"\${$as_ac_Header+set}\" = set"; then
31531 echo "$as_me:$LINENO: checking for $ac_header" >&5
31532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31533if eval "test \"\${$as_ac_Header+set}\" = set"; then
31534 echo $ECHO_N "(cached) $ECHO_C" >&6
31535fi
31536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31538else
31539 # Is the header compilable?
31540echo "$as_me:$LINENO: checking $ac_header usability" >&5
31541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31542cat >conftest.$ac_ext <<_ACEOF
31543#line $LINENO "configure"
31544/* confdefs.h. */
31545_ACEOF
31546cat confdefs.h >>conftest.$ac_ext
31547cat >>conftest.$ac_ext <<_ACEOF
31548/* end confdefs.h. */
31549$ac_includes_default
31550#include <$ac_header>
31551_ACEOF
31552rm -f conftest.$ac_objext
31553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31554 (eval $ac_compile) 2>&5
31555 ac_status=$?
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); } &&
31558 { ac_try='test -s conftest.$ac_objext'
31559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31560 (eval $ac_try) 2>&5
31561 ac_status=$?
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); }; }; then
31564 ac_header_compiler=yes
31565else
31566 echo "$as_me: failed program was:" >&5
31567sed 's/^/| /' conftest.$ac_ext >&5
31568
31569ac_header_compiler=no
31570fi
31571rm -f conftest.$ac_objext conftest.$ac_ext
31572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31573echo "${ECHO_T}$ac_header_compiler" >&6
31574
31575# Is the header present?
31576echo "$as_me:$LINENO: checking $ac_header presence" >&5
31577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31578cat >conftest.$ac_ext <<_ACEOF
31579#line $LINENO "configure"
31580/* confdefs.h. */
31581_ACEOF
31582cat confdefs.h >>conftest.$ac_ext
31583cat >>conftest.$ac_ext <<_ACEOF
31584/* end confdefs.h. */
31585#include <$ac_header>
31586_ACEOF
31587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31589 ac_status=$?
31590 grep -v '^ *+' conftest.er1 >conftest.err
31591 rm -f conftest.er1
31592 cat conftest.err >&5
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); } >/dev/null; then
31595 if test -s conftest.err; then
31596 ac_cpp_err=$ac_c_preproc_warn_flag
31597 else
31598 ac_cpp_err=
31599 fi
31600else
31601 ac_cpp_err=yes
31602fi
31603if test -z "$ac_cpp_err"; then
31604 ac_header_preproc=yes
31605else
31606 echo "$as_me: failed program was:" >&5
31607sed 's/^/| /' conftest.$ac_ext >&5
31608
31609 ac_header_preproc=no
31610fi
31611rm -f conftest.err conftest.$ac_ext
31612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31613echo "${ECHO_T}$ac_header_preproc" >&6
31614
31615# So? What about this header?
31616case $ac_header_compiler:$ac_header_preproc in
31617 yes:no )
31618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31622 (
31623 cat <<\_ASBOX
31624## ------------------------------------ ##
31625## Report this to bug-autoconf@gnu.org. ##
31626## ------------------------------------ ##
31627_ASBOX
31628 ) |
31629 sed "s/^/$as_me: WARNING: /" >&2
31630 ;;
31631 no:yes )
31632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31635echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31638 (
31639 cat <<\_ASBOX
31640## ------------------------------------ ##
31641## Report this to bug-autoconf@gnu.org. ##
31642## ------------------------------------ ##
31643_ASBOX
31644 ) |
31645 sed "s/^/$as_me: WARNING: /" >&2
31646 ;;
31647esac
31648echo "$as_me:$LINENO: checking for $ac_header" >&5
31649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31650if eval "test \"\${$as_ac_Header+set}\" = set"; then
31651 echo $ECHO_N "(cached) $ECHO_C" >&6
31652else
31653 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31654fi
e6cc62c6
VS
31655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31657
10f2d63a 31658fi
e6cc62c6
VS
31659if test `eval echo '${'$as_ac_Header'}'` = yes; then
31660 cat >>confdefs.h <<_ACEOF
31661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31662_ACEOF
31663
247f5006 31664fi
e6cc62c6 31665
10f2d63a
VZ
31666done
31667
3a922bb4
RL
31668 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31669 wxUSE_JOYSTICK=no
e6cc62c6
VS
31670 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31671echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31672 fi
31673 fi
31674 fi
b089607b 31675
3a922bb4 31676 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31677 cat >>confdefs.h <<\_ACEOF
10f2d63a 31678#define wxUSE_JOYSTICK 1
e6cc62c6 31679_ACEOF
10f2d63a 31680
3a922bb4
RL
31681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31682 fi
dc3d889d
VZ
31683fi
31684
8284b0c5 31685
73d617c9 31686if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
b089607b 31687
3a922bb4
RL
31688 HAVE_DL_FUNCS=0
31689 HAVE_SHL_FUNCS=0
0b9ab0bd 31690 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31691 if test "$USE_DARWIN" = 1; then
31692 HAVE_DL_FUNCS=1
31693 else
e6cc62c6
VS
31694
31695for ac_func in dlopen
10f2d63a 31696do
e6cc62c6
VS
31697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31698echo "$as_me:$LINENO: checking for $ac_func" >&5
31699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31700if eval "test \"\${$as_ac_var+set}\" = set"; then
31701 echo $ECHO_N "(cached) $ECHO_C" >&6
31702else
31703 cat >conftest.$ac_ext <<_ACEOF
31704#line $LINENO "configure"
31705/* confdefs.h. */
31706_ACEOF
31707cat confdefs.h >>conftest.$ac_ext
31708cat >>conftest.$ac_ext <<_ACEOF
31709/* end confdefs.h. */
10f2d63a 31710/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31711 which can conflict with char $ac_func (); below.
31712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31713 <limits.h> exists even on freestanding compilers. */
31714#ifdef __STDC__
31715# include <limits.h>
31716#else
31717# include <assert.h>
31718#endif
10f2d63a 31719/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31720#ifdef __cplusplus
31721extern "C"
31722{
31723#endif
10f2d63a 31724/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31725 builtin and then its argument prototype would still apply. */
31726char $ac_func ();
10f2d63a
VZ
31727/* The GNU C library defines this for functions which it implements
31728 to always fail with ENOSYS. Some functions are actually named
31729 something starting with __ and the normal name is an alias. */
31730#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31731choke me
31732#else
e6cc62c6
VS
31733char (*f) () = $ac_func;
31734#endif
31735#ifdef __cplusplus
31736}
10f2d63a
VZ
31737#endif
31738
e6cc62c6
VS
31739int
31740main ()
31741{
31742return f != $ac_func;
31743 ;
31744 return 0;
31745}
31746_ACEOF
31747rm -f conftest.$ac_objext conftest$ac_exeext
31748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31749 (eval $ac_link) 2>&5
31750 ac_status=$?
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); } &&
31753 { ac_try='test -s conftest$ac_exeext'
31754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31755 (eval $ac_try) 2>&5
31756 ac_status=$?
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); }; }; then
31759 eval "$as_ac_var=yes"
31760else
31761 echo "$as_me: failed program was:" >&5
31762sed 's/^/| /' conftest.$ac_ext >&5
31763
31764eval "$as_ac_var=no"
31765fi
31766rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31767fi
31768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31769echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31770if test `eval echo '${'$as_ac_var'}'` = yes; then
31771 cat >>confdefs.h <<_ACEOF
31772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31773_ACEOF
31774
31775 cat >>confdefs.h <<\_ACEOF
10f2d63a 31776#define HAVE_DLOPEN 1
e6cc62c6 31777_ACEOF
10f2d63a 31778
3a922bb4 31779 HAVE_DL_FUNCS=1
e6cc62c6 31780
10f2d63a 31781else
e6cc62c6
VS
31782
31783 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31784echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31785if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31786 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31787else
e6cc62c6 31788 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31789LIBS="-ldl $LIBS"
e6cc62c6
VS
31790cat >conftest.$ac_ext <<_ACEOF
31791#line $LINENO "configure"
31792/* confdefs.h. */
31793_ACEOF
31794cat confdefs.h >>conftest.$ac_ext
31795cat >>conftest.$ac_ext <<_ACEOF
31796/* end confdefs.h. */
31797
10f2d63a 31798/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31799#ifdef __cplusplus
31800extern "C"
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 dlopen ();
31805int
31806main ()
31807{
31808dlopen ();
31809 ;
31810 return 0;
31811}
31812_ACEOF
31813rm -f conftest.$ac_objext conftest$ac_exeext
31814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31815 (eval $ac_link) 2>&5
31816 ac_status=$?
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); } &&
31819 { ac_try='test -s conftest$ac_exeext'
31820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31821 (eval $ac_try) 2>&5
31822 ac_status=$?
31823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824 (exit $ac_status); }; }; then
31825 ac_cv_lib_dl_dlopen=yes
31826else
31827 echo "$as_me: failed program was:" >&5
31828sed 's/^/| /' conftest.$ac_ext >&5
31829
31830ac_cv_lib_dl_dlopen=no
31831fi
31832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31833LIBS=$ac_check_lib_save_LIBS
31834fi
31835echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31836echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31837if test $ac_cv_lib_dl_dlopen = yes; then
31838
31839 cat >>confdefs.h <<\_ACEOF
10f2d63a 31840#define HAVE_DLOPEN 1
e6cc62c6 31841_ACEOF
10f2d63a 31842
3a922bb4 31843 HAVE_DL_FUNCS=1
3d63bc3a 31844 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31845
10f2d63a 31846else
10f2d63a 31847
e6cc62c6
VS
31848
31849for ac_func in shl_load
10f2d63a 31850do
e6cc62c6
VS
31851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31852echo "$as_me:$LINENO: checking for $ac_func" >&5
31853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31854if eval "test \"\${$as_ac_var+set}\" = set"; then
31855 echo $ECHO_N "(cached) $ECHO_C" >&6
31856else
31857 cat >conftest.$ac_ext <<_ACEOF
31858#line $LINENO "configure"
31859/* confdefs.h. */
31860_ACEOF
31861cat confdefs.h >>conftest.$ac_ext
31862cat >>conftest.$ac_ext <<_ACEOF
31863/* end confdefs.h. */
10f2d63a 31864/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31865 which can conflict with char $ac_func (); below.
31866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31867 <limits.h> exists even on freestanding compilers. */
31868#ifdef __STDC__
31869# include <limits.h>
31870#else
31871# include <assert.h>
31872#endif
10f2d63a 31873/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31874#ifdef __cplusplus
31875extern "C"
31876{
31877#endif
10f2d63a 31878/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31879 builtin and then its argument prototype would still apply. */
31880char $ac_func ();
10f2d63a
VZ
31881/* The GNU C library defines this for functions which it implements
31882 to always fail with ENOSYS. Some functions are actually named
31883 something starting with __ and the normal name is an alias. */
31884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31885choke me
31886#else
e6cc62c6
VS
31887char (*f) () = $ac_func;
31888#endif
31889#ifdef __cplusplus
31890}
10f2d63a
VZ
31891#endif
31892
e6cc62c6
VS
31893int
31894main ()
31895{
31896return f != $ac_func;
31897 ;
31898 return 0;
31899}
31900_ACEOF
31901rm -f conftest.$ac_objext conftest$ac_exeext
31902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31903 (eval $ac_link) 2>&5
31904 ac_status=$?
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); } &&
31907 { ac_try='test -s conftest$ac_exeext'
31908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909 (eval $ac_try) 2>&5
31910 ac_status=$?
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; }; then
31913 eval "$as_ac_var=yes"
31914else
31915 echo "$as_me: failed program was:" >&5
31916sed 's/^/| /' conftest.$ac_ext >&5
31917
31918eval "$as_ac_var=no"
31919fi
31920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31921fi
31922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31923echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31924if test `eval echo '${'$as_ac_var'}'` = yes; then
31925 cat >>confdefs.h <<_ACEOF
31926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31927_ACEOF
31928
31929 cat >>confdefs.h <<\_ACEOF
10f2d63a 31930#define HAVE_SHL_LOAD 1
e6cc62c6 31931_ACEOF
10f2d63a 31932
3a922bb4 31933 HAVE_SHL_FUNCS=1
e6cc62c6 31934
10f2d63a 31935else
e6cc62c6
VS
31936
31937 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31938echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31939if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31940 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31941else
e6cc62c6 31942 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31943LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31944cat >conftest.$ac_ext <<_ACEOF
31945#line $LINENO "configure"
31946/* confdefs.h. */
31947_ACEOF
31948cat confdefs.h >>conftest.$ac_ext
31949cat >>conftest.$ac_ext <<_ACEOF
31950/* end confdefs.h. */
31951
8284b0c5 31952/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31953#ifdef __cplusplus
31954extern "C"
31955#endif
f6bcfd97 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 dld ();
31959int
31960main ()
31961{
31962dld ();
31963 ;
31964 return 0;
31965}
31966_ACEOF
31967rm -f conftest.$ac_objext conftest$ac_exeext
31968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31969 (eval $ac_link) 2>&5
31970 ac_status=$?
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); } &&
31973 { ac_try='test -s conftest$ac_exeext'
31974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31975 (eval $ac_try) 2>&5
31976 ac_status=$?
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; }; then
31979 ac_cv_lib_shl_load_dld=yes
31980else
31981 echo "$as_me: failed program was:" >&5
31982sed 's/^/| /' conftest.$ac_ext >&5
31983
31984ac_cv_lib_shl_load_dld=no
31985fi
31986rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31987LIBS=$ac_check_lib_save_LIBS
31988fi
31989echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31990echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31991if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31992
3a922bb4 31993 HAVE_SHL_FUNCS=1
3d63bc3a 31994 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31995
f6bcfd97
BP
31996fi
31997
e6cc62c6 31998
10f2d63a
VZ
31999fi
32000done
32001
e6cc62c6 32002
10f2d63a
VZ
32003fi
32004
e6cc62c6 32005
10f2d63a
VZ
32006fi
32007done
32008
5c6fa7d2 32009
8284b0c5 32010 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
32011
32012for ac_func in dlerror
f6bcfd97 32013do
e6cc62c6
VS
32014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32015echo "$as_me:$LINENO: checking for $ac_func" >&5
32016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32017if eval "test \"\${$as_ac_var+set}\" = set"; then
32018 echo $ECHO_N "(cached) $ECHO_C" >&6
32019else
32020 cat >conftest.$ac_ext <<_ACEOF
32021#line $LINENO "configure"
32022/* confdefs.h. */
32023_ACEOF
32024cat confdefs.h >>conftest.$ac_ext
32025cat >>conftest.$ac_ext <<_ACEOF
32026/* end confdefs.h. */
f6bcfd97 32027/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32028 which can conflict with char $ac_func (); below.
32029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32030 <limits.h> exists even on freestanding compilers. */
32031#ifdef __STDC__
32032# include <limits.h>
32033#else
32034# include <assert.h>
32035#endif
f6bcfd97 32036/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32037#ifdef __cplusplus
32038extern "C"
32039{
32040#endif
f6bcfd97 32041/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32042 builtin and then its argument prototype would still apply. */
32043char $ac_func ();
f6bcfd97
BP
32044/* The GNU C library defines this for functions which it implements
32045 to always fail with ENOSYS. Some functions are actually named
32046 something starting with __ and the normal name is an alias. */
32047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32048choke me
32049#else
e6cc62c6
VS
32050char (*f) () = $ac_func;
32051#endif
32052#ifdef __cplusplus
32053}
f6bcfd97
BP
32054#endif
32055
e6cc62c6
VS
32056int
32057main ()
32058{
32059return f != $ac_func;
32060 ;
32061 return 0;
32062}
32063_ACEOF
32064rm -f conftest.$ac_objext conftest$ac_exeext
32065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32066 (eval $ac_link) 2>&5
32067 ac_status=$?
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); } &&
32070 { ac_try='test -s conftest$ac_exeext'
32071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32072 (eval $ac_try) 2>&5
32073 ac_status=$?
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); }; }; then
32076 eval "$as_ac_var=yes"
32077else
32078 echo "$as_me: failed program was:" >&5
32079sed 's/^/| /' conftest.$ac_ext >&5
32080
32081eval "$as_ac_var=no"
32082fi
32083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32084fi
32085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32087if test `eval echo '${'$as_ac_var'}'` = yes; then
32088 cat >>confdefs.h <<_ACEOF
32089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32090_ACEOF
32091 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32092#define HAVE_DLERROR 1
e6cc62c6 32093_ACEOF
f6bcfd97
BP
32094
32095else
0e012a93
VZ
32096
32097 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
e6cc62c6
VS
32098echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32099if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32100 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32101else
e6cc62c6 32102 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32103LIBS="-ldl $LIBS"
e6cc62c6
VS
32104cat >conftest.$ac_ext <<_ACEOF
32105#line $LINENO "configure"
32106/* confdefs.h. */
32107_ACEOF
32108cat confdefs.h >>conftest.$ac_ext
32109cat >>conftest.$ac_ext <<_ACEOF
32110/* end confdefs.h. */
32111
f6bcfd97 32112/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32113#ifdef __cplusplus
32114extern "C"
32115#endif
f6bcfd97 32116/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32117 builtin and then its argument prototype would still apply. */
32118char dlerror ();
32119int
32120main ()
32121{
32122dlerror ();
32123 ;
32124 return 0;
32125}
32126_ACEOF
32127rm -f conftest.$ac_objext conftest$ac_exeext
32128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32129 (eval $ac_link) 2>&5
32130 ac_status=$?
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); } &&
32133 { ac_try='test -s conftest$ac_exeext'
32134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32135 (eval $ac_try) 2>&5
32136 ac_status=$?
32137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138 (exit $ac_status); }; }; then
32139 ac_cv_lib_dl_dlerror=yes
32140else
32141 echo "$as_me: failed program was:" >&5
32142sed 's/^/| /' conftest.$ac_ext >&5
32143
32144ac_cv_lib_dl_dlerror=no
32145fi
32146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32147LIBS=$ac_check_lib_save_LIBS
32148fi
32149echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32150echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32151if test $ac_cv_lib_dl_dlerror = yes; then
32152 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32153#define HAVE_DLERROR 1
e6cc62c6 32154_ACEOF
f6bcfd97 32155
f6bcfd97
BP
32156fi
32157
0e012a93
VZ
32158
32159
f6bcfd97
BP
32160fi
32161done
32162
3a922bb4
RL
32163 fi
32164 fi
f6bcfd97 32165
3a922bb4
RL
32166 if test "$HAVE_DL_FUNCS" = 0; then
32167 if test "$HAVE_SHL_FUNCS" = 0; then
32168 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
32169 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32170echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 32171 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
32172 wxUSE_DYNLIB_CLASS=no
32173 else
e6cc62c6
VS
32174 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32175echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
32176 fi
32177 fi
10f2d63a
VZ
32178 fi
32179 fi
32180fi
32181
0b9ab0bd 32182if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 32183 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 32184#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 32185_ACEOF
0b9ab0bd 32186
1948bb32
VS
32187fi
32188if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 32189 cat >>confdefs.h <<\_ACEOF
10f2d63a 32190#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 32191_ACEOF
10f2d63a
VZ
32192
32193fi
32194
8284b0c5 32195
1e6feb95 32196if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32197 cat >>confdefs.h <<\_ACEOF
1e6feb95 32198#define wxUSE_FONTMAP 1
e6cc62c6 32199_ACEOF
1e6feb95
VZ
32200
32201fi
32202
10f2d63a 32203if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32204 cat >>confdefs.h <<\_ACEOF
10f2d63a 32205#define wxUSE_UNICODE 1
e6cc62c6 32206_ACEOF
10f2d63a 32207
8284b0c5 32208
eb854003 32209 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32210 wxUSE_UNICODE_MSLU=no
32211 fi
a72a4bfa 32212
eb854003 32213 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32214 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32215echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32216if test "${ac_cv_lib_unicows_main+set}" = set; then
32217 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32218else
e6cc62c6 32219 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32220LIBS="-lunicows $LIBS"
e6cc62c6
VS
32221cat >conftest.$ac_ext <<_ACEOF
32222#line $LINENO "configure"
32223/* confdefs.h. */
32224_ACEOF
32225cat confdefs.h >>conftest.$ac_ext
32226cat >>conftest.$ac_ext <<_ACEOF
32227/* end confdefs.h. */
a72a4bfa 32228
8284b0c5 32229
e6cc62c6
VS
32230int
32231main ()
32232{
32233main ();
32234 ;
32235 return 0;
32236}
32237_ACEOF
32238rm -f conftest.$ac_objext conftest$ac_exeext
32239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32240 (eval $ac_link) 2>&5
32241 ac_status=$?
32242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243 (exit $ac_status); } &&
32244 { ac_try='test -s conftest$ac_exeext'
32245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32246 (eval $ac_try) 2>&5
32247 ac_status=$?
32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); }; }; then
32250 ac_cv_lib_unicows_main=yes
32251else
32252 echo "$as_me: failed program was:" >&5
32253sed 's/^/| /' conftest.$ac_ext >&5
32254
32255ac_cv_lib_unicows_main=no
32256fi
32257rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32258LIBS=$ac_check_lib_save_LIBS
32259fi
32260echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32261echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32262if test $ac_cv_lib_unicows_main = yes; then
32263
32264 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32265#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32266_ACEOF
32267
a72a4bfa 32268
a72a4bfa 32269else
a72a4bfa 32270
e6cc62c6
VS
32271 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32272 Applications will only run on Windows NT/2000/XP!" >&5
32273echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32274 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32275 wxUSE_UNICODE_MSLU=no
e6cc62c6 32276
a72a4bfa
VS
32277fi
32278
32279 fi
10f2d63a
VZ
32280fi
32281
10f2d63a 32282if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32283 cat >>confdefs.h <<\_ACEOF
10f2d63a 32284#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32285_ACEOF
10f2d63a
VZ
32286
32287fi
32288
8284b0c5 32289
10f2d63a 32290if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32291 cat >>confdefs.h <<\_ACEOF
10f2d63a 32292#define wxUSE_POSTSCRIPT 1
e6cc62c6 32293_ACEOF
10f2d63a
VZ
32294
32295fi
32296
e6cc62c6 32297cat >>confdefs.h <<\_ACEOF
10f2d63a 32298#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32299_ACEOF
10f2d63a 32300
8284b0c5 32301
e6cc62c6 32302cat >>confdefs.h <<\_ACEOF
10f2d63a 32303#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32304_ACEOF
10f2d63a 32305
8284b0c5
MB
32306
32307
10f2d63a 32308if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32309 cat >>confdefs.h <<\_ACEOF
10f2d63a 32310#define wxUSE_CONSTRAINTS 1
e6cc62c6 32311_ACEOF
10f2d63a
VZ
32312
32313 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32314fi
32315
3879ecda 32316if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32317 cat >>confdefs.h <<\_ACEOF
10f2d63a 32318#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32319_ACEOF
10f2d63a 32320
1772d20c 32321 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32322fi
32323
32324if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32325 cat >>confdefs.h <<\_ACEOF
10f2d63a 32326#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32327_ACEOF
10f2d63a
VZ
32328
32329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32330 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32332 fi
32333fi
32334
32335if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32336 cat >>confdefs.h <<\_ACEOF
10f2d63a 32337#define wxUSE_HELP 1
e6cc62c6 32338_ACEOF
10f2d63a
VZ
32339
32340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32341
77e13408 32342 if test "$wxUSE_MSW" = 1; then
031d8228 32343 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32344 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32345#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32346_ACEOF
29fd3c0c 32347
3e44f09d 32348 fi
3379ed37 32349 fi
031d8228
VS
32350
32351 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32352 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32353 cat >>confdefs.h <<\_ACEOF
031d8228 32354#define wxUSE_WXHTML_HELP 1
e6cc62c6 32355_ACEOF
031d8228
VS
32356
32357 else
e6cc62c6
VS
32358 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32359echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32360 wxUSE_WXHTML_HELP=no
32361 fi
32362 fi
10f2d63a
VZ
32363fi
32364
32365if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32366 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32367 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32368echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32369 else
e6cc62c6 32370 cat >>confdefs.h <<\_ACEOF
10f2d63a 32371#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32372_ACEOF
10f2d63a
VZ
32373
32374 fi
32375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32376fi
32377
e6cc62c6
VS
32378if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32379 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32380echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32381 { (exit 1); exit 1; }; }
32382fi
32383
32384
32385if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32386 -o "$wxUSE_CLIPBOARD" = "yes" \
32387 -o "$wxUSE_OLE" = "yes" \
32388 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32389
32390for ac_header in ole2.h
32391do
32392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32393if eval "test \"\${$as_ac_Header+set}\" = set"; then
32394 echo "$as_me:$LINENO: checking for $ac_header" >&5
32395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32396if eval "test \"\${$as_ac_Header+set}\" = set"; then
32397 echo $ECHO_N "(cached) $ECHO_C" >&6
32398fi
32399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32401else
32402 # Is the header compilable?
32403echo "$as_me:$LINENO: checking $ac_header usability" >&5
32404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32405cat >conftest.$ac_ext <<_ACEOF
32406#line $LINENO "configure"
32407/* confdefs.h. */
32408_ACEOF
32409cat confdefs.h >>conftest.$ac_ext
32410cat >>conftest.$ac_ext <<_ACEOF
32411/* end confdefs.h. */
32412$ac_includes_default
32413#include <$ac_header>
32414_ACEOF
32415rm -f conftest.$ac_objext
32416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32417 (eval $ac_compile) 2>&5
32418 ac_status=$?
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); } &&
32421 { ac_try='test -s conftest.$ac_objext'
32422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32423 (eval $ac_try) 2>&5
32424 ac_status=$?
32425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426 (exit $ac_status); }; }; then
32427 ac_header_compiler=yes
32428else
32429 echo "$as_me: failed program was:" >&5
32430sed 's/^/| /' conftest.$ac_ext >&5
32431
32432ac_header_compiler=no
32433fi
32434rm -f conftest.$ac_objext conftest.$ac_ext
32435echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32436echo "${ECHO_T}$ac_header_compiler" >&6
32437
32438# Is the header present?
32439echo "$as_me:$LINENO: checking $ac_header presence" >&5
32440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32441cat >conftest.$ac_ext <<_ACEOF
32442#line $LINENO "configure"
32443/* confdefs.h. */
32444_ACEOF
32445cat confdefs.h >>conftest.$ac_ext
32446cat >>conftest.$ac_ext <<_ACEOF
32447/* end confdefs.h. */
32448#include <$ac_header>
32449_ACEOF
32450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32452 ac_status=$?
32453 grep -v '^ *+' conftest.er1 >conftest.err
32454 rm -f conftest.er1
32455 cat conftest.err >&5
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); } >/dev/null; then
32458 if test -s conftest.err; then
32459 ac_cpp_err=$ac_c_preproc_warn_flag
32460 else
32461 ac_cpp_err=
32462 fi
32463else
32464 ac_cpp_err=yes
32465fi
32466if test -z "$ac_cpp_err"; then
32467 ac_header_preproc=yes
32468else
32469 echo "$as_me: failed program was:" >&5
32470sed 's/^/| /' conftest.$ac_ext >&5
32471
32472 ac_header_preproc=no
32473fi
32474rm -f conftest.err conftest.$ac_ext
32475echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32476echo "${ECHO_T}$ac_header_preproc" >&6
32477
32478# So? What about this header?
32479case $ac_header_compiler:$ac_header_preproc in
32480 yes:no )
32481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32482echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32485 (
32486 cat <<\_ASBOX
32487## ------------------------------------ ##
32488## Report this to bug-autoconf@gnu.org. ##
32489## ------------------------------------ ##
32490_ASBOX
32491 ) |
32492 sed "s/^/$as_me: WARNING: /" >&2
32493 ;;
32494 no:yes )
32495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32501 (
32502 cat <<\_ASBOX
32503## ------------------------------------ ##
32504## Report this to bug-autoconf@gnu.org. ##
32505## ------------------------------------ ##
32506_ASBOX
32507 ) |
32508 sed "s/^/$as_me: WARNING: /" >&2
32509 ;;
32510esac
32511echo "$as_me:$LINENO: checking for $ac_header" >&5
32512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32513if eval "test \"\${$as_ac_Header+set}\" = set"; then
32514 echo $ECHO_N "(cached) $ECHO_C" >&6
32515else
32516 eval "$as_ac_Header=$ac_header_preproc"
32517fi
32518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32520
10f2d63a 32521fi
e6cc62c6
VS
32522if test `eval echo '${'$as_ac_Header'}'` = yes; then
32523 cat >>confdefs.h <<_ACEOF
32524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32525_ACEOF
10f2d63a 32526
10f2d63a 32527fi
e6cc62c6 32528
10f2d63a
VZ
32529done
32530
8284b0c5 32531
2b9bdf71
VZ
32532 if test "$ac_cv_header_ole2_h" = "yes" ; then
32533 if test "$GCC" = yes ; then
8284b0c5
MB
32534
32535
e6cc62c6
VS
32536 ac_ext=cc
32537ac_cpp='$CXXCPP $CPPFLAGS'
32538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32541
32542
32543 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32544echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32545 cat >conftest.$ac_ext <<_ACEOF
32546#line $LINENO "configure"
32547/* confdefs.h. */
32548_ACEOF
32549cat confdefs.h >>conftest.$ac_ext
32550cat >>conftest.$ac_ext <<_ACEOF
32551/* end confdefs.h. */
8284b0c5
MB
32552#include <windows.h>
32553 #include <ole2.h>
e6cc62c6
VS
32554int
32555main ()
32556{
8284b0c5 32557
e6cc62c6
VS
32558 ;
32559 return 0;
32560}
32561_ACEOF
32562rm -f conftest.$ac_objext
32563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32564 (eval $ac_compile) 2>&5
32565 ac_status=$?
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); } &&
32568 { ac_try='test -s conftest.$ac_objext'
32569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32570 (eval $ac_try) 2>&5
32571 ac_status=$?
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); }; }; then
32574 echo "$as_me:$LINENO: result: no" >&5
32575echo "${ECHO_T}no" >&6
32576else
32577 echo "$as_me: failed program was:" >&5
32578sed 's/^/| /' conftest.$ac_ext >&5
32579
32580echo "$as_me:$LINENO: result: yes" >&5
32581echo "${ECHO_T}yes" >&6
8284b0c5
MB
32582 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32583fi
e6cc62c6 32584rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32585 ac_ext=c
8284b0c5 32586ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32589ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32590
2b9bdf71 32591 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32592 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32593 cat >>confdefs.h <<\_ACEOF
4f11a343 32594#define wxUSE_OLE 1
e6cc62c6 32595_ACEOF
4f11a343 32596
8284b0c5 32597
2b9bdf71
VZ
32598 fi
32599
e6cc62c6 32600 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32601#define wxUSE_DATAOBJ 1
e6cc62c6 32602_ACEOF
2b9bdf71
VZ
32603
32604 else
e6cc62c6
VS
32605 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32606echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32607
32608 wxUSE_CLIPBOARD=no
32609 wxUSE_DRAG_AND_DROP=no
32610 wxUSE_DATAOBJ=no
3bce6687
JS
32611 wxUSE_OLE=no
32612 fi
32613
32614 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32615 cat >>confdefs.h <<\_ACEOF
3bce6687 32616#define wxUSE_METAFILE 1
e6cc62c6 32617_ACEOF
3bce6687
JS
32618
32619
e6cc62c6 32620 cat >>confdefs.h <<\_ACEOF
3bce6687 32621#define wxUSE_ENH_METAFILE 1
e6cc62c6 32622_ACEOF
3bce6687
JS
32623
32624 fi
32625fi
32626
2b9bdf71
VZ
32627if test "$wxUSE_IPC" = "yes"; then
32628 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32629 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32630echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32631 fi
32632
e6cc62c6 32633 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32634#define wxUSE_IPC 1
e6cc62c6 32635_ACEOF
2b9bdf71
VZ
32636
32637fi
32638
32639if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32640 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32641 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32642echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32643 wxUSE_CLIPBOARD=no
32644 fi
32645
32646 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32647 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32648#define wxUSE_CLIPBOARD 1
e6cc62c6 32649_ACEOF
2b9bdf71 32650
8284b0c5 32651
e6cc62c6 32652 cat >>confdefs.h <<\_ACEOF
673f4220 32653#define wxUSE_DATAOBJ 1
e6cc62c6 32654_ACEOF
673f4220 32655
6c657b52 32656 fi
2b9bdf71
VZ
32657fi
32658
32659if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32660 if test "$wxUSE_GTK" = 1; then
32661 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32662 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32663echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32664 wxUSE_DRAG_AND_DROP=no
32665 fi
32666 fi
32667
2b9bdf71 32668 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32669 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32670echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32671 wxUSE_DRAG_AND_DROP=no
32672 fi
32673
f79bd02d 32674 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32675 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32676echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32677 wxUSE_DRAG_AND_DROP=no
32678 fi
32679
6c657b52 32680 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32681 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32682echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32683 wxUSE_DRAG_AND_DROP=no
32684 fi
32685
10f2d63a 32686 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32687 cat >>confdefs.h <<\_ACEOF
10f2d63a 32688#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32689_ACEOF
10f2d63a
VZ
32690
32691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32692 fi
32693
32694fi
32695
32696if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32697 cat >>confdefs.h <<\_ACEOF
10f2d63a 32698#define wxUSE_SPLINES 1
e6cc62c6 32699_ACEOF
10f2d63a
VZ
32700
32701fi
32702
8284b0c5 32703
1e6feb95
VZ
32704USES_CONTROLS=0
32705if test "$wxUSE_CONTROLS" = "yes"; then
32706 USES_CONTROLS=1
32707fi
32708
10f2d63a 32709if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32710 cat >>confdefs.h <<\_ACEOF
10f2d63a 32711#define wxUSE_ACCEL 1
e6cc62c6 32712_ACEOF
10f2d63a 32713
1e6feb95
VZ
32714 USES_CONTROLS=1
32715fi
32716
32717if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32718 cat >>confdefs.h <<\_ACEOF
1e6feb95 32719#define wxUSE_BUTTON 1
e6cc62c6 32720_ACEOF
1e6feb95
VZ
32721
32722 USES_CONTROLS=1
32723fi
32724
32725if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32726 cat >>confdefs.h <<\_ACEOF
1e6feb95 32727#define wxUSE_BMPBUTTON 1
e6cc62c6 32728_ACEOF
1e6feb95
VZ
32729
32730 USES_CONTROLS=1
32731fi
32732
32733if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32734 cat >>confdefs.h <<\_ACEOF
1e6feb95 32735#define wxUSE_CALENDARCTRL 1
e6cc62c6 32736_ACEOF
1e6feb95
VZ
32737
32738 USES_CONTROLS=1
32739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32740fi
32741
32742if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32743 cat >>confdefs.h <<\_ACEOF
10f2d63a 32744#define wxUSE_CARET 1
e6cc62c6 32745_ACEOF
10f2d63a 32746
1e6feb95 32747 USES_CONTROLS=1
10f2d63a
VZ
32748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32749fi
32750
32751if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32752 cat >>confdefs.h <<\_ACEOF
10f2d63a 32753#define wxUSE_COMBOBOX 1
e6cc62c6 32754_ACEOF
10f2d63a 32755
1e6feb95 32756 USES_CONTROLS=1
10f2d63a
VZ
32757fi
32758
32759if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32760 cat >>confdefs.h <<\_ACEOF
10f2d63a 32761#define wxUSE_CHOICE 1
e6cc62c6 32762_ACEOF
10f2d63a 32763
1e6feb95 32764 USES_CONTROLS=1
10f2d63a
VZ
32765fi
32766
32767if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32768 cat >>confdefs.h <<\_ACEOF
10f2d63a 32769#define wxUSE_CHECKBOX 1
e6cc62c6 32770_ACEOF
10f2d63a 32771
1e6feb95 32772 USES_CONTROLS=1
10f2d63a
VZ
32773fi
32774
32775if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32776 cat >>confdefs.h <<\_ACEOF
10f2d63a 32777#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32778_ACEOF
10f2d63a 32779
1e6feb95 32780 USES_CONTROLS=1
10f2d63a
VZ
32781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32782fi
32783
da494b40 32784if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32785 cat >>confdefs.h <<\_ACEOF
da494b40 32786#define wxUSE_DISPLAY 1
e6cc62c6 32787_ACEOF
da494b40
MB
32788
32789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32790fi
32791
10f2d63a 32792if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32793 cat >>confdefs.h <<\_ACEOF
10f2d63a 32794#define wxUSE_GAUGE 1
e6cc62c6 32795_ACEOF
10f2d63a 32796
1e6feb95 32797 USES_CONTROLS=1
10f2d63a
VZ
32798fi
32799
d6a55c4b 32800if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32801 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32802#define wxUSE_GRID 1
e6cc62c6 32803_ACEOF
10f2d63a 32804
1e6feb95 32805 USES_CONTROLS=1
d6a55c4b 32806 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32807fi
32808
32809if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32810 cat >>confdefs.h <<\_ACEOF
10f2d63a 32811#define wxUSE_IMAGLIST 1
e6cc62c6 32812_ACEOF
10f2d63a
VZ
32813
32814fi
32815
0e012a93
VZ
32816if test "$wxUSE_LISTBOOK" = "yes"; then
32817 cat >>confdefs.h <<\_ACEOF
32818#define wxUSE_LISTBOOK 1
32819_ACEOF
32820
32821 USES_CONTROLS=1
32822fi
32823
10f2d63a 32824if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32825 cat >>confdefs.h <<\_ACEOF
10f2d63a 32826#define wxUSE_LISTBOX 1
e6cc62c6 32827_ACEOF
10f2d63a 32828
1e6feb95 32829 USES_CONTROLS=1
10f2d63a
VZ
32830fi
32831
32832if test "$wxUSE_LISTCTRL" = "yes"; then
32833 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32834 cat >>confdefs.h <<\_ACEOF
10f2d63a 32835#define wxUSE_LISTCTRL 1
e6cc62c6 32836_ACEOF
10f2d63a 32837
1e6feb95 32838 USES_CONTROLS=1
10f2d63a
VZ
32839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32840 else
e6cc62c6
VS
32841 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32842echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32843 fi
32844fi
32845
32846if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32847 cat >>confdefs.h <<\_ACEOF
10f2d63a 32848#define wxUSE_NOTEBOOK 1
e6cc62c6 32849_ACEOF
10f2d63a 32850
1e6feb95 32851 USES_CONTROLS=1
10f2d63a
VZ
32852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32853fi
32854
24176f2c 32855
10f2d63a 32856if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32857 cat >>confdefs.h <<\_ACEOF
10f2d63a 32858#define wxUSE_RADIOBOX 1
e6cc62c6 32859_ACEOF
10f2d63a 32860
1e6feb95 32861 USES_CONTROLS=1
10f2d63a
VZ
32862fi
32863
32864if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32865 cat >>confdefs.h <<\_ACEOF
10f2d63a 32866#define wxUSE_RADIOBTN 1
e6cc62c6 32867_ACEOF
10f2d63a 32868
1e6feb95 32869 USES_CONTROLS=1
10f2d63a
VZ
32870fi
32871
32872if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32873 cat >>confdefs.h <<\_ACEOF
10f2d63a 32874#define wxUSE_SASH 1
e6cc62c6 32875_ACEOF
10f2d63a
VZ
32876
32877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32878fi
32879
32880if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32881 cat >>confdefs.h <<\_ACEOF
10f2d63a 32882#define wxUSE_SCROLLBAR 1
e6cc62c6 32883_ACEOF
10f2d63a 32884
1e6feb95 32885 USES_CONTROLS=1
741a9306 32886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32887fi
32888
32889if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32890 cat >>confdefs.h <<\_ACEOF
10f2d63a 32891#define wxUSE_SLIDER 1
e6cc62c6 32892_ACEOF
10f2d63a 32893
1e6feb95 32894 USES_CONTROLS=1
10f2d63a
VZ
32895fi
32896
32897if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32898 cat >>confdefs.h <<\_ACEOF
10f2d63a 32899#define wxUSE_SPINBTN 1
e6cc62c6 32900_ACEOF
10f2d63a 32901
1e6feb95 32902 USES_CONTROLS=1
10f2d63a
VZ
32903fi
32904
56cfaa52 32905if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32906 cat >>confdefs.h <<\_ACEOF
56cfaa52 32907#define wxUSE_SPINCTRL 1
e6cc62c6 32908_ACEOF
56cfaa52 32909
1e6feb95 32910 USES_CONTROLS=1
56cfaa52
RR
32911fi
32912
10f2d63a 32913if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32914 cat >>confdefs.h <<\_ACEOF
10f2d63a 32915#define wxUSE_SPLITTER 1
e6cc62c6 32916_ACEOF
10f2d63a
VZ
32917
32918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32919fi
32920
32921if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32922 cat >>confdefs.h <<\_ACEOF
10f2d63a 32923#define wxUSE_STATBMP 1
e6cc62c6 32924_ACEOF
10f2d63a 32925
1e6feb95 32926 USES_CONTROLS=1
10f2d63a
VZ
32927fi
32928
32929if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32930 cat >>confdefs.h <<\_ACEOF
10f2d63a 32931#define wxUSE_STATBOX 1
e6cc62c6 32932_ACEOF
10f2d63a 32933
1e6feb95
VZ
32934 USES_CONTROLS=1
32935fi
32936
32937if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32938 cat >>confdefs.h <<\_ACEOF
1e6feb95 32939#define wxUSE_STATTEXT 1
e6cc62c6 32940_ACEOF
1e6feb95
VZ
32941
32942 USES_CONTROLS=1
10f2d63a
VZ
32943fi
32944
32945if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32946 cat >>confdefs.h <<\_ACEOF
10f2d63a 32947#define wxUSE_STATLINE 1
e6cc62c6 32948_ACEOF
10f2d63a 32949
89e6bf6d 32950 USES_CONTROLS=1
10f2d63a
VZ
32951fi
32952
32953if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32954 cat >>confdefs.h <<\_ACEOF
10f2d63a 32955#define wxUSE_STATUSBAR 1
e6cc62c6 32956_ACEOF
10f2d63a 32957
1e6feb95 32958 USES_CONTROLS=1
698dcdb6 32959
2286341c 32960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32961fi
32962
32963if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32964 cat >>confdefs.h <<\_ACEOF
10f2d63a 32965#define wxUSE_TAB_DIALOG 1
e6cc62c6 32966_ACEOF
10f2d63a
VZ
32967
32968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32969fi
32970
1e6feb95 32971if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32972 cat >>confdefs.h <<\_ACEOF
1e6feb95 32973#define wxUSE_TEXTCTRL 1
e6cc62c6 32974_ACEOF
1e6feb95
VZ
32975
32976 USES_CONTROLS=1
32977 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32978fi
32979
1db8dc4a 32980if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32981 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32982 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32983echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32984 wxUSE_TOGGLEBTN=no
32985 fi
32986 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32987 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32988echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32989 wxUSE_TOGGLEBTN=no
32990 fi
32991
32992 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32993 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32994#define wxUSE_TOGGLEBTN 1
e6cc62c6 32995_ACEOF
1db8dc4a 32996
1e6feb95 32997 USES_CONTROLS=1
a45d7ab7 32998 fi
1db8dc4a
VZ
32999fi
33000
360d6699 33001if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 33002 cat >>confdefs.h <<\_ACEOF
360d6699 33003#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 33004_ACEOF
360d6699
VZ
33005
33006 wxUSE_TOOLBAR="yes"
1e6feb95 33007 USES_CONTROLS=1
360d6699
VZ
33008fi
33009
10f2d63a 33010if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 33011 cat >>confdefs.h <<\_ACEOF
10f2d63a 33012#define wxUSE_TOOLBAR 1
e6cc62c6 33013_ACEOF
10f2d63a 33014
1e6feb95 33015 USES_CONTROLS=1
698dcdb6 33016
360d6699
VZ
33017 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33018 wxUSE_TOOLBAR_NATIVE="yes"
33019 fi
33020
1e6feb95 33021 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 33022 cat >>confdefs.h <<\_ACEOF
360d6699 33023#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 33024_ACEOF
360d6699 33025
1e6feb95
VZ
33026 USES_CONTROLS=1
33027 fi
33028
33029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
33030fi
33031
10f2d63a
VZ
33032if test "$wxUSE_TOOLTIPS" = "yes"; then
33033 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33034 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33035echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 33036 else
89e6bf6d 33037 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33038 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33039echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 33040 else
e6cc62c6 33041 cat >>confdefs.h <<\_ACEOF
10f2d63a 33042#define wxUSE_TOOLTIPS 1
e6cc62c6 33043_ACEOF
10f2d63a
VZ
33044
33045 fi
33046 fi
33047fi
33048
33049if test "$wxUSE_TREECTRL" = "yes"; then
33050 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33051 cat >>confdefs.h <<\_ACEOF
10f2d63a 33052#define wxUSE_TREECTRL 1
e6cc62c6 33053_ACEOF
10f2d63a 33054
1e6feb95 33055 USES_CONTROLS=1
10f2d63a
VZ
33056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33057 else
e6cc62c6
VS
33058 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33059echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33060 fi
33061fi
33062
9f41d601 33063if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 33064 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33065 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33066echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 33067 else
485cf710 33068 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33069 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
33070echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 33071 else
3c011993 33072 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33073 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
33074echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33075 else
e6cc62c6 33076 cat >>confdefs.h <<\_ACEOF
9f41d601 33077#define wxUSE_POPUPWIN 1
e6cc62c6 33078_ACEOF
9f41d601 33079
8284b0c5 33080
3c011993
VZ
33081 USES_CONTROLS=1
33082 fi
485cf710 33083 fi
6abe4b65 33084 fi
9f41d601
RR
33085fi
33086
dd964dcc 33087if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 33088 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33089 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33090echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33091 else
e6cc62c6 33092 cat >>confdefs.h <<\_ACEOF
dd964dcc 33093#define wxUSE_TIPWINDOW 1
e6cc62c6 33094_ACEOF
dd964dcc 33095
3c011993 33096 fi
dd964dcc
VZ
33097fi
33098
1e6feb95 33099if test "$USES_CONTROLS" = 1; then
e6cc62c6 33100 cat >>confdefs.h <<\_ACEOF
1e6feb95 33101#define wxUSE_CONTROLS 1
e6cc62c6 33102_ACEOF
10f2d63a 33103
10f2d63a
VZ
33104fi
33105
8284b0c5 33106
e46d2a18
VS
33107if test "$wxUSE_ACCESSIBILITY" = "yes"; then
33108 cat >>confdefs.h <<\_ACEOF
33109#define wxUSE_ACCESSIBILITY 1
33110_ACEOF
33111
33112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33113fi
1e6feb95 33114
24fd6d87 33115if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 33116 cat >>confdefs.h <<\_ACEOF
24fd6d87 33117#define wxUSE_DRAGIMAGE 1
e6cc62c6 33118_ACEOF
24fd6d87
VZ
33119
33120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33121fi
33122
e46d2a18 33123if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 33124 cat >>confdefs.h <<\_ACEOF
e46d2a18 33125#define wxUSE_EXCEPTIONS 1
e6cc62c6 33126_ACEOF
7bb2947d 33127
e46d2a18
VS
33128fi
33129
33130USE_HTML=0
33131if test "$wxUSE_HTML" = "yes"; then
33132 cat >>confdefs.h <<\_ACEOF
33133#define wxUSE_HTML 1
33134_ACEOF
33135
33136 USE_HTML=1
33137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
33138fi
33139
1e6feb95 33140if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 33141 cat >>confdefs.h <<\_ACEOF
1e6feb95 33142#define wxUSE_MENUS 1
e6cc62c6 33143_ACEOF
10f2d63a 33144
1e6feb95 33145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33146fi
33147
1e6feb95 33148if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33149 cat >>confdefs.h <<\_ACEOF
1e6feb95 33150#define wxUSE_METAFILE 1
e6cc62c6 33151_ACEOF
10f2d63a 33152
10f2d63a
VZ
33153fi
33154
1e6feb95 33155if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33156 cat >>confdefs.h <<\_ACEOF
1e6feb95 33157#define wxUSE_MIMETYPE 1
e6cc62c6 33158_ACEOF
10f2d63a 33159
10f2d63a
VZ
33160fi
33161
33162if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33163 cat >>confdefs.h <<\_ACEOF
10f2d63a 33164#define wxUSE_MINIFRAME 1
e6cc62c6 33165_ACEOF
10f2d63a
VZ
33166
33167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33168fi
33169
e46d2a18 33170if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33171 cat >>confdefs.h <<\_ACEOF
e46d2a18 33172#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33173_ACEOF
10f2d63a 33174
e46d2a18
VS
33175 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33176 "$TOOLKIT" = "MOTIF"; then
33177 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33178 fi
10f2d63a
VZ
33179fi
33180
e46d2a18 33181
10f2d63a 33182if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33183 cat >>confdefs.h <<\_ACEOF
1e487827 33184#define wxUSE_VALIDATORS 1
e6cc62c6 33185_ACEOF
703e0a69 33186
698dcdb6
VZ
33187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33188fi
33189
edae8572 33190if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33191 cat >>confdefs.h <<\_ACEOF
edae8572 33192#define wxUSE_PALETTE 1
e6cc62c6 33193_ACEOF
edae8572
VZ
33194
33195fi
33196
e46d2a18
VS
33197if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33198 LIBS=" -lunicows $LIBS"
33199fi
33200
33201
698dcdb6 33202if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 33203 cat >>confdefs.h <<\_ACEOF
698dcdb6 33204#define wxUSE_IMAGE 1
e6cc62c6 33205_ACEOF
698dcdb6 33206
698dcdb6 33207
e46d2a18
VS
33208 if test "$wxUSE_GIF" = "yes" ; then
33209 cat >>confdefs.h <<\_ACEOF
698dcdb6 33210#define wxUSE_GIF 1
e6cc62c6 33211_ACEOF
698dcdb6 33212
e46d2a18 33213 fi
698dcdb6 33214
e46d2a18
VS
33215 if test "$wxUSE_PCX" = "yes" ; then
33216 cat >>confdefs.h <<\_ACEOF
698dcdb6 33217#define wxUSE_PCX 1
e6cc62c6 33218_ACEOF
698dcdb6 33219
e46d2a18 33220 fi
698dcdb6 33221
e46d2a18
VS
33222 if test "$wxUSE_IFF" = "yes" ; then
33223 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33224#define wxUSE_IFF 1
e6cc62c6 33225_ACEOF
4b6b4dfc 33226
e46d2a18 33227 fi
4b6b4dfc 33228
e46d2a18
VS
33229 if test "$wxUSE_PNM" = "yes" ; then
33230 cat >>confdefs.h <<\_ACEOF
698dcdb6 33231#define wxUSE_PNM 1
e6cc62c6 33232_ACEOF
698dcdb6 33233
e46d2a18 33234 fi
698dcdb6 33235
e46d2a18
VS
33236 if test "$wxUSE_XPM" = "yes" ; then
33237 cat >>confdefs.h <<\_ACEOF
698dcdb6 33238#define wxUSE_XPM 1
e6cc62c6 33239_ACEOF
698dcdb6 33240
e46d2a18 33241 fi
698dcdb6 33242
e46d2a18
VS
33243 if test "$wxUSE_ICO_CUR" = "yes" ; then
33244 cat >>confdefs.h <<\_ACEOF
658974ae 33245#define wxUSE_ICO_CUR 1
e6cc62c6 33246_ACEOF
658974ae 33247
e46d2a18 33248 fi
a72a4bfa
VS
33249fi
33250
8284b0c5 33251
1e6feb95 33252if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33253 cat >>confdefs.h <<\_ACEOF
1e6feb95 33254#define wxUSE_CHOICEDLG 1
e6cc62c6 33255_ACEOF
1e6feb95
VZ
33256
33257fi
33258
33259if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33260 cat >>confdefs.h <<\_ACEOF
1e6feb95 33261#define wxUSE_COLOURDLG 1
e6cc62c6 33262_ACEOF
1e6feb95
VZ
33263
33264fi
33265
33266if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33267 cat >>confdefs.h <<\_ACEOF
1e6feb95 33268#define wxUSE_FILEDLG 1
e6cc62c6 33269_ACEOF
1e6feb95
VZ
33270
33271fi
33272
8db37e06 33273if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33274 cat >>confdefs.h <<\_ACEOF
8db37e06 33275#define wxUSE_FINDREPLDLG 1
e6cc62c6 33276_ACEOF
8db37e06
VZ
33277
33278fi
33279
1e6feb95 33280if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33281 cat >>confdefs.h <<\_ACEOF
1e6feb95 33282#define wxUSE_FONTDLG 1
e6cc62c6 33283_ACEOF
1e6feb95
VZ
33284
33285fi
33286
33287if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33288 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33289 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33290echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33291 else
e6cc62c6 33292 cat >>confdefs.h <<\_ACEOF
1e6feb95 33293#define wxUSE_DIRDLG 1
e6cc62c6 33294_ACEOF
1e6feb95 33295
1e6feb95
VZ
33296 fi
33297fi
33298
33299if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33300 cat >>confdefs.h <<\_ACEOF
1e6feb95 33301#define wxUSE_MSGDLG 1
e6cc62c6 33302_ACEOF
1e6feb95
VZ
33303
33304fi
33305
33306if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33307 cat >>confdefs.h <<\_ACEOF
1e6feb95 33308#define wxUSE_NUMBERDLG 1
e6cc62c6 33309_ACEOF
1e6feb95
VZ
33310
33311fi
33312
33313if test "$wxUSE_PROGRESSDLG" = "yes"; then
33314 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33315 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33316echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33317 else
e6cc62c6 33318 cat >>confdefs.h <<\_ACEOF
1e6feb95 33319#define wxUSE_PROGRESSDLG 1
e6cc62c6 33320_ACEOF
1e6feb95
VZ
33321
33322 fi
33323fi
33324
cbca9943 33325if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33326 cat >>confdefs.h <<\_ACEOF
cbca9943 33327#define wxUSE_SPLASH 1
e6cc62c6 33328_ACEOF
cbca9943
VZ
33329
33330fi
33331
1e6feb95
VZ
33332if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33333 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33334 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33335echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33336 else
e6cc62c6 33337 cat >>confdefs.h <<\_ACEOF
1e6feb95 33338#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33339_ACEOF
1e6feb95 33340
7b4a847f
RR
33341 fi
33342fi
579d8138 33343
8284b0c5 33344if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33345 cat >>confdefs.h <<\_ACEOF
8284b0c5 33346#define wxUSE_TEXTDLG 1
e6cc62c6 33347_ACEOF
8284b0c5
MB
33348
33349fi
33350
33351if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33352 cat >>confdefs.h <<\_ACEOF
8284b0c5 33353#define wxUSE_WIZARDDLG 1
e6cc62c6 33354_ACEOF
8284b0c5
MB
33355
33356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33357fi
33358
33359
33360if test "$cross_compiling" = "yes"; then
33361 OSINFO="\"$host\""
33362else
33363 OSINFO=`uname -s -r -m`
33364 OSINFO="\"$OSINFO\""
33365fi
33366
e6cc62c6 33367cat >>confdefs.h <<_ACEOF
8284b0c5 33368#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33369_ACEOF
8284b0c5
MB
33370
33371
33372
33373if test "x$prefix" != "xNONE"; then
33374 wxPREFIX=$prefix
33375else
33376 wxPREFIX=$ac_default_prefix
33377fi
33378
e6cc62c6 33379cat >>confdefs.h <<_ACEOF
8284b0c5 33380#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33381_ACEOF
8284b0c5
MB
33382
33383
e6cc62c6 33384top_builddir_wxconfig=`pwd`
52c71b80 33385
8284b0c5
MB
33386
33387
edd891e2
VS
33388CORE_BASE_LIBS="net base"
33389CORE_GUI_LIBS="adv core"
33390
33391if test "$wxUSE_XML" = "yes" ; then
33392 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33393fi
45293562
VS
33394if test "$wxUSE_ODBC" != "no" ; then
33395 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33396 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33397fi
33398if test "$wxUSE_HTML" = "yes" ; then
33399 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33400fi
33401
33402
33403
33404
33405
33406
33407
8284b0c5
MB
33408
33409if test "$wxUSE_MAC" = 1 ; then
33410 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33411fi
ac0c4cc3
DE
33412if test "$wxUSE_COCOA" = 1 ; then
33413 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33414fi
8284b0c5
MB
33415
33416
2b5f62a0
VZ
33417LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33418
33419have_cos=0
33420have_floor=0
e6cc62c6 33421
2b5f62a0
VZ
33422for ac_func in cos
33423do
e6cc62c6
VS
33424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33425echo "$as_me:$LINENO: checking for $ac_func" >&5
33426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33427if eval "test \"\${$as_ac_var+set}\" = set"; then
33428 echo $ECHO_N "(cached) $ECHO_C" >&6
33429else
33430 cat >conftest.$ac_ext <<_ACEOF
33431#line $LINENO "configure"
33432/* confdefs.h. */
33433_ACEOF
33434cat confdefs.h >>conftest.$ac_ext
33435cat >>conftest.$ac_ext <<_ACEOF
33436/* end confdefs.h. */
2b5f62a0 33437/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33438 which can conflict with char $ac_func (); below.
33439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33440 <limits.h> exists even on freestanding compilers. */
33441#ifdef __STDC__
33442# include <limits.h>
33443#else
33444# include <assert.h>
33445#endif
2b5f62a0 33446/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33447#ifdef __cplusplus
33448extern "C"
33449{
33450#endif
2b5f62a0 33451/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33452 builtin and then its argument prototype would still apply. */
33453char $ac_func ();
2b5f62a0
VZ
33454/* The GNU C library defines this for functions which it implements
33455 to always fail with ENOSYS. Some functions are actually named
33456 something starting with __ and the normal name is an alias. */
33457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33458choke me
33459#else
e6cc62c6
VS
33460char (*f) () = $ac_func;
33461#endif
33462#ifdef __cplusplus
33463}
2b5f62a0
VZ
33464#endif
33465
e6cc62c6
VS
33466int
33467main ()
33468{
33469return f != $ac_func;
33470 ;
33471 return 0;
33472}
33473_ACEOF
33474rm -f conftest.$ac_objext conftest$ac_exeext
33475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33476 (eval $ac_link) 2>&5
33477 ac_status=$?
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); } &&
33480 { ac_try='test -s conftest$ac_exeext'
33481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33482 (eval $ac_try) 2>&5
33483 ac_status=$?
33484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33485 (exit $ac_status); }; }; then
33486 eval "$as_ac_var=yes"
33487else
33488 echo "$as_me: failed program was:" >&5
33489sed 's/^/| /' conftest.$ac_ext >&5
33490
33491eval "$as_ac_var=no"
33492fi
33493rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33494fi
33495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33496echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33497if test `eval echo '${'$as_ac_var'}'` = yes; then
33498 cat >>confdefs.h <<_ACEOF
33499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33500_ACEOF
2b5f62a0 33501 have_cos=1
2b5f62a0
VZ
33502fi
33503done
33504
e6cc62c6 33505
2b5f62a0
VZ
33506for ac_func in floor
33507do
e6cc62c6
VS
33508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33509echo "$as_me:$LINENO: checking for $ac_func" >&5
33510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33511if eval "test \"\${$as_ac_var+set}\" = set"; then
33512 echo $ECHO_N "(cached) $ECHO_C" >&6
33513else
33514 cat >conftest.$ac_ext <<_ACEOF
33515#line $LINENO "configure"
33516/* confdefs.h. */
33517_ACEOF
33518cat confdefs.h >>conftest.$ac_ext
33519cat >>conftest.$ac_ext <<_ACEOF
33520/* end confdefs.h. */
2b5f62a0 33521/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33522 which can conflict with char $ac_func (); below.
33523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33524 <limits.h> exists even on freestanding compilers. */
33525#ifdef __STDC__
33526# include <limits.h>
33527#else
33528# include <assert.h>
33529#endif
2b5f62a0 33530/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33531#ifdef __cplusplus
33532extern "C"
33533{
33534#endif
2b5f62a0 33535/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33536 builtin and then its argument prototype would still apply. */
33537char $ac_func ();
2b5f62a0
VZ
33538/* The GNU C library defines this for functions which it implements
33539 to always fail with ENOSYS. Some functions are actually named
33540 something starting with __ and the normal name is an alias. */
33541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33542choke me
33543#else
e6cc62c6
VS
33544char (*f) () = $ac_func;
33545#endif
33546#ifdef __cplusplus
33547}
2b5f62a0
VZ
33548#endif
33549
e6cc62c6
VS
33550int
33551main ()
33552{
33553return f != $ac_func;
33554 ;
33555 return 0;
33556}
33557_ACEOF
33558rm -f conftest.$ac_objext conftest$ac_exeext
33559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33560 (eval $ac_link) 2>&5
33561 ac_status=$?
33562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563 (exit $ac_status); } &&
33564 { ac_try='test -s conftest$ac_exeext'
33565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33566 (eval $ac_try) 2>&5
33567 ac_status=$?
33568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569 (exit $ac_status); }; }; then
33570 eval "$as_ac_var=yes"
33571else
33572 echo "$as_me: failed program was:" >&5
33573sed 's/^/| /' conftest.$ac_ext >&5
33574
33575eval "$as_ac_var=no"
33576fi
33577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33578fi
33579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33581if test `eval echo '${'$as_ac_var'}'` = yes; then
33582 cat >>confdefs.h <<_ACEOF
33583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33584_ACEOF
2b5f62a0 33585 have_floor=1
2b5f62a0
VZ
33586fi
33587done
33588
e6cc62c6
VS
33589echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33590echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33591if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33592 echo "$as_me:$LINENO: result: yes" >&5
33593echo "${ECHO_T}yes" >&6
2b5f62a0 33594else
e6cc62c6
VS
33595 echo "$as_me:$LINENO: result: no" >&5
33596echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33597 LIBS="$LIBS -lm"
33598 # use different functions to avoid configure caching
33599 have_sin=0
33600 have_ceil=0
e6cc62c6
VS
33601
33602for ac_func in sin
2b5f62a0 33603do
e6cc62c6
VS
33604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33605echo "$as_me:$LINENO: checking for $ac_func" >&5
33606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33607if eval "test \"\${$as_ac_var+set}\" = set"; then
33608 echo $ECHO_N "(cached) $ECHO_C" >&6
33609else
33610 cat >conftest.$ac_ext <<_ACEOF
33611#line $LINENO "configure"
33612/* confdefs.h. */
33613_ACEOF
33614cat confdefs.h >>conftest.$ac_ext
33615cat >>conftest.$ac_ext <<_ACEOF
33616/* end confdefs.h. */
2b5f62a0 33617/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33618 which can conflict with char $ac_func (); below.
33619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33620 <limits.h> exists even on freestanding compilers. */
33621#ifdef __STDC__
33622# include <limits.h>
33623#else
33624# include <assert.h>
33625#endif
2b5f62a0 33626/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33627#ifdef __cplusplus
33628extern "C"
33629{
33630#endif
2b5f62a0 33631/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33632 builtin and then its argument prototype would still apply. */
33633char $ac_func ();
2b5f62a0
VZ
33634/* The GNU C library defines this for functions which it implements
33635 to always fail with ENOSYS. Some functions are actually named
33636 something starting with __ and the normal name is an alias. */
33637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33638choke me
33639#else
e6cc62c6
VS
33640char (*f) () = $ac_func;
33641#endif
33642#ifdef __cplusplus
33643}
2b5f62a0
VZ
33644#endif
33645
e6cc62c6
VS
33646int
33647main ()
33648{
33649return f != $ac_func;
33650 ;
33651 return 0;
33652}
33653_ACEOF
33654rm -f conftest.$ac_objext conftest$ac_exeext
33655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33656 (eval $ac_link) 2>&5
33657 ac_status=$?
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); } &&
33660 { ac_try='test -s conftest$ac_exeext'
33661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33662 (eval $ac_try) 2>&5
33663 ac_status=$?
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); }; }; then
33666 eval "$as_ac_var=yes"
33667else
33668 echo "$as_me: failed program was:" >&5
33669sed 's/^/| /' conftest.$ac_ext >&5
33670
33671eval "$as_ac_var=no"
33672fi
33673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33674fi
33675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33677if test `eval echo '${'$as_ac_var'}'` = yes; then
33678 cat >>confdefs.h <<_ACEOF
33679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33680_ACEOF
2b5f62a0 33681 have_sin=1
2b5f62a0
VZ
33682fi
33683done
33684
e6cc62c6
VS
33685
33686for ac_func in ceil
2b5f62a0 33687do
e6cc62c6
VS
33688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33689echo "$as_me:$LINENO: checking for $ac_func" >&5
33690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33691if eval "test \"\${$as_ac_var+set}\" = set"; then
33692 echo $ECHO_N "(cached) $ECHO_C" >&6
33693else
33694 cat >conftest.$ac_ext <<_ACEOF
33695#line $LINENO "configure"
33696/* confdefs.h. */
33697_ACEOF
33698cat confdefs.h >>conftest.$ac_ext
33699cat >>conftest.$ac_ext <<_ACEOF
33700/* end confdefs.h. */
2b5f62a0 33701/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33702 which can conflict with char $ac_func (); below.
33703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33704 <limits.h> exists even on freestanding compilers. */
33705#ifdef __STDC__
33706# include <limits.h>
33707#else
33708# include <assert.h>
33709#endif
2b5f62a0 33710/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33711#ifdef __cplusplus
33712extern "C"
33713{
33714#endif
2b5f62a0 33715/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33716 builtin and then its argument prototype would still apply. */
33717char $ac_func ();
2b5f62a0
VZ
33718/* The GNU C library defines this for functions which it implements
33719 to always fail with ENOSYS. Some functions are actually named
33720 something starting with __ and the normal name is an alias. */
33721#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33722choke me
33723#else
e6cc62c6
VS
33724char (*f) () = $ac_func;
33725#endif
33726#ifdef __cplusplus
33727}
2b5f62a0
VZ
33728#endif
33729
e6cc62c6
VS
33730int
33731main ()
33732{
33733return f != $ac_func;
33734 ;
33735 return 0;
33736}
33737_ACEOF
33738rm -f conftest.$ac_objext conftest$ac_exeext
33739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33740 (eval $ac_link) 2>&5
33741 ac_status=$?
33742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33743 (exit $ac_status); } &&
33744 { ac_try='test -s conftest$ac_exeext'
33745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33746 (eval $ac_try) 2>&5
33747 ac_status=$?
33748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749 (exit $ac_status); }; }; then
33750 eval "$as_ac_var=yes"
33751else
33752 echo "$as_me: failed program was:" >&5
33753sed 's/^/| /' conftest.$ac_ext >&5
33754
33755eval "$as_ac_var=no"
33756fi
33757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33758fi
33759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33760echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33761if test `eval echo '${'$as_ac_var'}'` = yes; then
33762 cat >>confdefs.h <<_ACEOF
33763#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33764_ACEOF
2b5f62a0 33765 have_ceil=1
2b5f62a0
VZ
33766fi
33767done
33768
e6cc62c6
VS
33769 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33770echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33771 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33772 echo "$as_me:$LINENO: result: yes" >&5
33773echo "${ECHO_T}yes" >&6
2b5f62a0 33774 else
e6cc62c6
VS
33775 echo "$as_me:$LINENO: result: no" >&5
33776echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33777 # not sure we should warn the user, crash, etc.
33778 fi
33779fi
8284b0c5
MB
33780
33781if test "$wxUSE_GUI" = "yes"; then
33782
e6cc62c6 33783
8284b0c5
MB
33784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33785 drawing dynamic erase event exec font image \
1dd02ac0 33786 minimal propsize rotate shaped widgets render"
b625909c
VS
33787
33788 if test "$wxUSE_MONOLITHIC" != "yes"; then
33789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33790 fi
8284b0c5
MB
33791else
33792 SAMPLES_SUBDIRS="console"
33793fi
33794
33795
e6cc62c6 33796INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33797-I\${top_srcdir}/include \
33798$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33799$TOOLKIT_INCLUDE"
33800
fddeb06b
VS
33801if test "$GXX" = yes ; then
33802 CXXWARNINGS="-Wall"
33803 fi
33804
33805EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33806
95318f7d 33807CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33808CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33809CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33810
33811
fddeb06b 33812LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33813EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33814EXTRALIBS_XML="$EXPAT_LINK"
bb41dcbe 33815EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
33816if test "$wxUSE_GUI" = "yes"; then
33817 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33818fi
34b08d2c
VS
33819if test "$wxUSE_OPENGL" = "yes"; then
33820 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33821fi
fddeb06b
VS
33822
33823LDFLAGS="$LDFLAGS $PROFILE"
33824
8284b0c5
MB
33825if test "$wxUSE_GTK" = 1; then
33826 WXCONFIG_INCLUDE=
33827else
33828 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33829fi
33830
67c13b6c
VS
33831WXCONFIG_EXTRALIBS="$LIBS"
33832
33833if test "$wxUSE_REGEX" = "builtin" ; then
33834 wxconfig_3rdparty="$wxconfig_3rdparty regex"
33835fi
33836if test "$wxUSE_EXPAT" = "builtin" ; then
33837 wxconfig_3rdparty="$wxconfig_3rdparty expat"
33838fi
33839if test "$wxUSE_ODBC" = "builtin" ; then
33840 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33841fi
33842if test "$wxUSE_LIBTIFF" = "builtin" ; then
33843 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33844fi
33845if test "$wxUSE_LIBJPEG" = "builtin" ; then
33846 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33847fi
33848if test "$wxUSE_LIBPNG" = "builtin" ; then
33849 wxconfig_3rdparty="$wxconfig_3rdparty png"
33850fi
33851if test "$wxUSE_ZLIB" = "builtin" ; then
33852 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33853fi
bb41dcbe
VS
33854if test "$wxUSE_ODBC" = "builtin" ; then
33855 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33856fi
67c13b6c
VS
33857
33858for i in $wxconfig_3rdparty ; do
33859 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33860done
33861
33862
fe0895cf
VS
33863if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33864 WXUNIV=1
33865else
33866 WXUNIV=0
8284b0c5
MB
33867fi
33868
8284b0c5
MB
33869
33870
33871
33872
33873
33874
33875
672abd7a 33876
9747f85d
VS
33877if test $wxUSE_MONOLITHIC = "yes" ; then
33878 MONOLITHIC=1
33879else
33880 MONOLITHIC=0
33881fi
8284b0c5 33882
bb41dcbe
VS
33883if test $wxUSE_ODBC != "no" ; then
33884 USE_ODBC=1
33885else
33886 USE_ODBC=0
33887fi
33888
029b47ad
VS
33889if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33890 OFFICIAL_BUILD=1
33891else
33892 OFFICIAL_BUILD=0
33893fi
33894
8ee2dd05
VS
33895
33896
33897
8284b0c5
MB
33898
33899
33900
33901
33902
33903
c74dc163 33904
34b08d2c 33905
672abd7a 33906
cf615ebb 33907
6c67131a
VS
33908
33909
bb41dcbe 33910
fe0895cf 33911TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33912
33913
33914
33915
33916
ea66c762 33917
0f1bc9c2 33918
fe0895cf 33919 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33920
33921 if test -n "$ac_tool_prefix"; then
33922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33923set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33924echo "$as_me:$LINENO: checking for $ac_word" >&5
33925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33926if test "${ac_cv_prog_RANLIB+set}" = set; then
33927 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33928else
fe0895cf
VS
33929 if test -n "$RANLIB"; then
33930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33931else
e6cc62c6
VS
33932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33933for as_dir in $PATH
33934do
33935 IFS=$as_save_IFS
33936 test -z "$as_dir" && as_dir=.
33937 for ac_exec_ext in '' $ac_executable_extensions; do
33938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33941 break 2
33942 fi
33943done
33944done
33945
10f2d63a 33946fi
10f2d63a 33947fi
e6cc62c6 33948RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33949if test -n "$RANLIB"; then
e6cc62c6
VS
33950 echo "$as_me:$LINENO: result: $RANLIB" >&5
33951echo "${ECHO_T}$RANLIB" >&6
33952else
33953 echo "$as_me:$LINENO: result: no" >&5
33954echo "${ECHO_T}no" >&6
33955fi
33956
33957fi
33958if test -z "$ac_cv_prog_RANLIB"; then
33959 ac_ct_RANLIB=$RANLIB
33960 # Extract the first word of "ranlib", so it can be a program name with args.
33961set dummy ranlib; ac_word=$2
33962echo "$as_me:$LINENO: checking for $ac_word" >&5
33963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33964if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33965 echo $ECHO_N "(cached) $ECHO_C" >&6
33966else
33967 if test -n "$ac_ct_RANLIB"; then
33968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33969else
33970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33971for as_dir in $PATH
33972do
33973 IFS=$as_save_IFS
33974 test -z "$as_dir" && as_dir=.
33975 for ac_exec_ext in '' $ac_executable_extensions; do
33976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33977 ac_cv_prog_ac_ct_RANLIB="ranlib"
33978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33979 break 2
33980 fi
33981done
33982done
33983
33984 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33985fi
33986fi
33987ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33988if test -n "$ac_ct_RANLIB"; then
33989 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33990echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33991else
e6cc62c6
VS
33992 echo "$as_me:$LINENO: result: no" >&5
33993echo "${ECHO_T}no" >&6
33994fi
33995
33996 RANLIB=$ac_ct_RANLIB
33997else
33998 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33999fi
665bbe97 34000
fe0895cf
VS
34001 # Find a good install program. We prefer a C program (faster),
34002# so one script is as good as another. But avoid the broken or
34003# incompatible versions:
34004# SysV /etc/install, /usr/sbin/install
34005# SunOS /usr/etc/install
34006# IRIX /sbin/install
34007# AIX /bin/install
e6cc62c6 34008# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
34009# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34010# AFS /usr/afsws/bin/install, which mishandles nonexistent args
34011# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34012# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
34013echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34014echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 34015if test -z "$INSTALL"; then
e6cc62c6
VS
34016if test "${ac_cv_path_install+set}" = set; then
34017 echo $ECHO_N "(cached) $ECHO_C" >&6
34018else
34019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34020for as_dir in $PATH
34021do
34022 IFS=$as_save_IFS
34023 test -z "$as_dir" && as_dir=.
34024 # Account for people who put trailing slashes in PATH elements.
34025case $as_dir/ in
34026 ./ | .// | /cC/* | \
34027 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34028 /usr/ucb/* ) ;;
34029 *)
34030 # OSF1 and SCO ODT 3.0 have their own names for install.
34031 # Don't use installbsd from OSF since it installs stuff as root
34032 # by default.
34033 for ac_prog in ginstall scoinst install; do
34034 for ac_exec_ext in '' $ac_executable_extensions; do
34035 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34036 if test $ac_prog = install &&
34037 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34038 # AIX install. It has an incompatible calling convention.
34039 :
34040 elif test $ac_prog = install &&
34041 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34042 # program-specific install script used by HP pwplus--don't use.
34043 :
34044 else
34045 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34046 break 3
34047 fi
34048 fi
fe0895cf 34049 done
e6cc62c6
VS
34050 done
34051 ;;
34052esac
34053done
34054
fe0895cf
VS
34055
34056fi
34057 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 34058 INSTALL=$ac_cv_path_install
fe0895cf
VS
34059 else
34060 # As a last resort, use the slow shell script. We don't cache a
34061 # path for INSTALL within a source directory, because that will
34062 # break other packages using the cache if that directory is
34063 # removed, or if the path is relative.
e6cc62c6 34064 INSTALL=$ac_install_sh
fe0895cf
VS
34065 fi
34066fi
e6cc62c6
VS
34067echo "$as_me:$LINENO: result: $INSTALL" >&5
34068echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
34069
34070# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34071# It thinks the first close brace ends the variable substitution.
34072test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34073
e6cc62c6 34074test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
34075
34076test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34077
e6cc62c6
VS
34078 echo "$as_me:$LINENO: checking whether ln -s works" >&5
34079echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34080LN_S=$as_ln_s
34081if test "$LN_S" = "ln -s"; then
34082 echo "$as_me:$LINENO: result: yes" >&5
34083echo "${ECHO_T}yes" >&6
fe0895cf 34084else
e6cc62c6
VS
34085 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34086echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
34087fi
34088
34089
e6cc62c6
VS
34090 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34091echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34092set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34093if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34094 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34095else
e6cc62c6 34096 cat >conftest.make <<\_ACEOF
fe0895cf 34097all:
e6cc62c6
VS
34098 @echo 'ac_maketemp="$(MAKE)"'
34099_ACEOF
fe0895cf 34100# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 34101eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
34102if test -n "$ac_maketemp"; then
34103 eval ac_cv_prog_make_${ac_make}_set=yes
34104else
34105 eval ac_cv_prog_make_${ac_make}_set=no
34106fi
e6cc62c6 34107rm -f conftest.make
fe0895cf
VS
34108fi
34109if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
34110 echo "$as_me:$LINENO: result: yes" >&5
34111echo "${ECHO_T}yes" >&6
fe0895cf
VS
34112 SET_MAKE=
34113else
e6cc62c6
VS
34114 echo "$as_me:$LINENO: result: no" >&5
34115echo "${ECHO_T}no" >&6
fe0895cf
VS
34116 SET_MAKE="MAKE=${MAKE-make}"
34117fi
34118
e6cc62c6
VS
34119
34120
874d12cf
VS
34121 if test -n "$ac_tool_prefix"; then
34122 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
34123set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
34124echo "$as_me:$LINENO: checking for $ac_word" >&5
34125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34126if test "${ac_cv_prog_AR+set}" = set; then
34127 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34128else
34129 if test -n "$AR"; then
34130 ac_cv_prog_AR="$AR" # Let the user override the test.
34131else
e6cc62c6
VS
34132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34133for as_dir in $PATH
34134do
34135 IFS=$as_save_IFS
34136 test -z "$as_dir" && as_dir=.
34137 for ac_exec_ext in '' $ac_executable_extensions; do
34138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 34139 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
34140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34141 break 2
34142 fi
34143done
34144done
34145
fe0895cf
VS
34146fi
34147fi
e6cc62c6 34148AR=$ac_cv_prog_AR
fe0895cf 34149if test -n "$AR"; then
e6cc62c6
VS
34150 echo "$as_me:$LINENO: result: $AR" >&5
34151echo "${ECHO_T}$AR" >&6
fe0895cf 34152else
e6cc62c6
VS
34153 echo "$as_me:$LINENO: result: no" >&5
34154echo "${ECHO_T}no" >&6
fe0895cf
VS
34155fi
34156
874d12cf
VS
34157fi
34158if test -z "$ac_cv_prog_AR"; then
34159 ac_ct_AR=$AR
34160 # Extract the first word of "ar", so it can be a program name with args.
34161set dummy ar; ac_word=$2
34162echo "$as_me:$LINENO: checking for $ac_word" >&5
34163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34164if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
34165 echo $ECHO_N "(cached) $ECHO_C" >&6
34166else
34167 if test -n "$ac_ct_AR"; then
34168 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
34169else
34170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34171for as_dir in $PATH
34172do
34173 IFS=$as_save_IFS
34174 test -z "$as_dir" && as_dir=.
34175 for ac_exec_ext in '' $ac_executable_extensions; do
34176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34177 ac_cv_prog_ac_ct_AR="ar"
34178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34179 break 2
34180 fi
34181done
34182done
34183
34184 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
34185fi
34186fi
34187ac_ct_AR=$ac_cv_prog_ac_ct_AR
34188if test -n "$ac_ct_AR"; then
34189 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
34190echo "${ECHO_T}$ac_ct_AR" >&6
34191else
34192 echo "$as_me:$LINENO: result: no" >&5
34193echo "${ECHO_T}no" >&6
34194fi
34195
34196 AR=$ac_ct_AR
34197else
34198 AR="$ac_cv_prog_AR"
34199fi
34200
34201 if test -n "$ac_tool_prefix"; then
34202 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
34203set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
34204echo "$as_me:$LINENO: checking for $ac_word" >&5
34205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34206if test "${ac_cv_prog_STRIP+set}" = set; then
34207 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34208else
34209 if test -n "$STRIP"; then
34210 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34211else
e6cc62c6
VS
34212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34213for as_dir in $PATH
34214do
34215 IFS=$as_save_IFS
34216 test -z "$as_dir" && as_dir=.
34217 for ac_exec_ext in '' $ac_executable_extensions; do
34218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 34219 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
34220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34221 break 2
34222 fi
34223done
34224done
34225
fe0895cf
VS
34226fi
34227fi
e6cc62c6 34228STRIP=$ac_cv_prog_STRIP
fe0895cf 34229if test -n "$STRIP"; then
e6cc62c6
VS
34230 echo "$as_me:$LINENO: result: $STRIP" >&5
34231echo "${ECHO_T}$STRIP" >&6
fe0895cf 34232else
e6cc62c6
VS
34233 echo "$as_me:$LINENO: result: no" >&5
34234echo "${ECHO_T}no" >&6
fe0895cf
VS
34235fi
34236
874d12cf
VS
34237fi
34238if test -z "$ac_cv_prog_STRIP"; then
34239 ac_ct_STRIP=$STRIP
34240 # Extract the first word of "strip", so it can be a program name with args.
34241set dummy strip; ac_word=$2
34242echo "$as_me:$LINENO: checking for $ac_word" >&5
34243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34244if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
34245 echo $ECHO_N "(cached) $ECHO_C" >&6
34246else
34247 if test -n "$ac_ct_STRIP"; then
34248 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
34249else
34250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34251for as_dir in $PATH
34252do
34253 IFS=$as_save_IFS
34254 test -z "$as_dir" && as_dir=.
34255 for ac_exec_ext in '' $ac_executable_extensions; do
34256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34257 ac_cv_prog_ac_ct_STRIP="strip"
34258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34259 break 2
34260 fi
34261done
34262done
34263
34264 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
34265fi
34266fi
34267ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
34268if test -n "$ac_ct_STRIP"; then
34269 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
34270echo "${ECHO_T}$ac_ct_STRIP" >&6
34271else
34272 echo "$as_me:$LINENO: result: no" >&5
34273echo "${ECHO_T}no" >&6
34274fi
34275
34276 STRIP=$ac_ct_STRIP
34277else
34278 STRIP="$ac_cv_prog_STRIP"
34279fi
34280
34281 if test -n "$ac_tool_prefix"; then
34282 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
34283set dummy ${ac_tool_prefix}nm; ac_word=$2
34284echo "$as_me:$LINENO: checking for $ac_word" >&5
34285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34286if test "${ac_cv_prog_NM+set}" = set; then
34287 echo $ECHO_N "(cached) $ECHO_C" >&6
34288else
34289 if test -n "$NM"; then
34290 ac_cv_prog_NM="$NM" # Let the user override the test.
34291else
34292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34293for as_dir in $PATH
34294do
34295 IFS=$as_save_IFS
34296 test -z "$as_dir" && as_dir=.
34297 for ac_exec_ext in '' $ac_executable_extensions; do
34298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34299 ac_cv_prog_NM="${ac_tool_prefix}nm"
34300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34301 break 2
34302 fi
34303done
34304done
34305
34306fi
34307fi
34308NM=$ac_cv_prog_NM
34309if test -n "$NM"; then
34310 echo "$as_me:$LINENO: result: $NM" >&5
34311echo "${ECHO_T}$NM" >&6
34312else
34313 echo "$as_me:$LINENO: result: no" >&5
34314echo "${ECHO_T}no" >&6
34315fi
34316
34317fi
34318if test -z "$ac_cv_prog_NM"; then
34319 ac_ct_NM=$NM
34320 # Extract the first word of "nm", so it can be a program name with args.
34321set dummy nm; ac_word=$2
34322echo "$as_me:$LINENO: checking for $ac_word" >&5
34323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34324if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
34325 echo $ECHO_N "(cached) $ECHO_C" >&6
34326else
34327 if test -n "$ac_ct_NM"; then
34328 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
34329else
34330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34331for as_dir in $PATH
34332do
34333 IFS=$as_save_IFS
34334 test -z "$as_dir" && as_dir=.
34335 for ac_exec_ext in '' $ac_executable_extensions; do
34336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34337 ac_cv_prog_ac_ct_NM="nm"
34338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34339 break 2
34340 fi
34341done
34342done
34343
34344 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
34345fi
34346fi
34347ac_ct_NM=$ac_cv_prog_ac_ct_NM
34348if test -n "$ac_ct_NM"; then
34349 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
34350echo "${ECHO_T}$ac_ct_NM" >&6
34351else
34352 echo "$as_me:$LINENO: result: no" >&5
34353echo "${ECHO_T}no" >&6
34354fi
34355
34356 NM=$ac_ct_NM
34357else
34358 NM="$ac_cv_prog_NM"
34359fi
34360
fe0895cf
VS
34361
34362 case ${host} in
34363 *-hp-hpux* )
34364 INSTALL_DIR="mkdir"
34365 ;;
34366 *) INSTALL_DIR="$INSTALL -d"
34367 ;;
34368 esac
e6cc62c6 34369
fe0895cf 34370
6b9d41a5
VS
34371 LDFLAGS_GUI=
34372 case ${host} in
34373 *-*-cygwin* | *-*-mingw32* )
34374 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34375 esac
34376
34377
fe0895cf 34378 fi
e6cc62c6
VS
34379
34380 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34381echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34382if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34383 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34384else
e6cc62c6 34385
fe0895cf
VS
34386 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34387 egrep -s GNU > /dev/null); then
34388 bakefile_cv_prog_makeisgnu="yes"
34389 else
34390 bakefile_cv_prog_makeisgnu="no"
34391 fi
fe0895cf 34392
e6cc62c6 34393fi
49b0a3aa
VS
34394echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34395echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34396
34397 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34398 IF_GNU_MAKE=""
34399 else
34400 IF_GNU_MAKE="#"
34401 fi
fe0895cf 34402
e6cc62c6
VS
34403
34404
fe0895cf
VS
34405 PLATFORM_UNIX=0
34406 PLATFORM_WIN32=0
34407 PLATFORM_MSDOS=0
34408 PLATFORM_MAC=0
34409 PLATFORM_MACOSX=0
96c1699d 34410 PLATFORM_OS2=0
e6cc62c6 34411
fe0895cf
VS
34412 case "${host}" in
34413 *-*-cygwin* | *-*-mingw32* )
34414 PLATFORM_WIN32=1
34415 ;;
96c1699d 34416 *-pc-msdosdjgpp )
fe0895cf
VS
34417 PLATFORM_MSDOS=1
34418 ;;
96c1699d
VS
34419 *-pc-os2_emx | *-pc-os2-emx )
34420 PLATFORM_OS2=1
34421 ;;
fe0895cf
VS
34422 powerpc-*-darwin* )
34423 PLATFORM_MAC=1
34424 PLATFORM_MACOSX=1
34425 ;;
34426 * )
34427 PLATFORM_UNIX=1
34428 ;;
34429 esac
34430
fe0895cf 34431
e6cc62c6
VS
34432
34433
34434
34435
34436
34437
96c1699d 34438
fe0895cf 34439 SO_SUFFIX="so"
131f235d 34440 SO_SUFFIX_MODULE="so"
fe0895cf 34441 EXEEXT=""
4b1f6360 34442 LIBPREFIX=lib
fe0895cf 34443 DLLPREFIX=lib
131f235d 34444 DLLPREFIX_MODULE=
e6cc62c6 34445
fe0895cf
VS
34446 case "${host}" in
34447 *-hp-hpux* )
34448 SO_SUFFIX="sl"
131f235d 34449 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34450 ;;
34451 *-*-aix* )
34452 SO_SUFFIX="a"
131f235d 34453 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34454 ;;
34455 *-*-cygwin* | *-*-mingw32* )
34456 SO_SUFFIX="dll"
131f235d 34457 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34458 EXEEXT=".exe"
34459 DLLPREFIX=""
34460 ;;
4b1f6360
VS
34461 *-pc-msdosdjgpp )
34462 EXEEXT=".exe"
34463 DLLPREFIX=""
34464 ;;
34465 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
34466 EXEEXT=".exe"
34467 DLLPREFIX=""
4b1f6360 34468 LIBPREFIX=""
fe0895cf
VS
34469 ;;
34470 powerpc-*-darwin* )
34471 SO_SUFFIX="dylib"
131f235d 34472 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34473 ;;
34474 esac
34475
fe0895cf 34476
e6cc62c6
VS
34477
34478
34479
34480
131f235d
VS
34481
34482
4b1f6360 34483
fe0895cf
VS
34484 SHARED_LD_CC="\$(CC) -shared -o"
34485 SHARED_LD_CXX="\$(CXX) -shared -o"
34486
34487 if test "x$GCC" = "xyes"; then
34488 PIC_FLAG="-fPIC"
34489 fi
34490
34491 case "${host}" in
34492 *-hp-hpux* )
34493 if test "x$GCC" = "xyes"; then
34494 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34495 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34496 else
34497 LDFLAGS="$LDFLAGS -L/usr/lib"
34498
34499 SHARED_LD_CC="${CC} -b -o"
34500 SHARED_LD_CXX="${CXX} -b -o"
34501 PIC_FLAG="+Z"
34502 fi
34503 ;;
34504
34505 *-*-linux* )
34506 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34507 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34508echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34509if test "${bakefile_cv_prog_icc+set}" = set; then
34510 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34511else
fe0895cf 34512
e6cc62c6
VS
34513 cat >conftest.$ac_ext <<_ACEOF
34514#line $LINENO "configure"
34515/* confdefs.h. */
34516_ACEOF
34517cat confdefs.h >>conftest.$ac_ext
34518cat >>conftest.$ac_ext <<_ACEOF
34519/* end confdefs.h. */
34520
34521int
34522main ()
34523{
fe0895cf
VS
34524
34525 #ifndef __INTEL_COMPILER
34526 #error Not icc
34527 #endif
e6cc62c6
VS
34528
34529 ;
34530 return 0;
34531}
34532_ACEOF
34533rm -f conftest.$ac_objext
34534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34535 (eval $ac_compile) 2>&5
34536 ac_status=$?
34537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34538 (exit $ac_status); } &&
34539 { ac_try='test -s conftest.$ac_objext'
34540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34541 (eval $ac_try) 2>&5
34542 ac_status=$?
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); }; }; then
fe0895cf
VS
34545 bakefile_cv_prog_icc=yes
34546else
e6cc62c6
VS
34547 echo "$as_me: failed program was:" >&5
34548sed 's/^/| /' conftest.$ac_ext >&5
34549
34550bakefile_cv_prog_icc=no
34551
fe0895cf 34552fi
e6cc62c6 34553rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34554
e6cc62c6
VS
34555fi
34556echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34557echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34558 if test "$bakefile_cv_prog_icc" = "yes"; then
34559 PIC_FLAG="-KPIC"
34560 fi
34561 fi
34562 ;;
34563
34564 *-*-solaris2* )
34565 if test "x$GCC" != xyes ; then
34566 SHARED_LD_CC="${CC} -G -o"
34567 SHARED_LD_CXX="${CXX} -G -o"
34568 PIC_FLAG="-KPIC"
34569 fi
34570 ;;
34571
34572 *-*-darwin* )
34573 CFLAGS="$CFLAGS -fno-common"
34574 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34575
34576
2a879853 34577 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
34578echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
34579if test "${wx_cv_gcc31+set}" = set; then
34580 echo $ECHO_N "(cached) $ECHO_C" >&6
34581else
34582
2a879853 34583 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
34584#line $LINENO "configure"
34585/* confdefs.h. */
34586_ACEOF
34587cat confdefs.h >>conftest.$ac_ext
34588cat >>conftest.$ac_ext <<_ACEOF
34589/* end confdefs.h. */
34590
34591int
34592main ()
34593{
34594
2a879853
VS
34595 #if (__GNUC__ < 3) || \
34596 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
34597 #error old gcc
34598 #endif
43948499
RD
34599
34600 ;
34601 return 0;
34602}
34603_ACEOF
34604rm -f conftest.$ac_objext
34605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34606 (eval $ac_compile) 2>&5
34607 ac_status=$?
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); } &&
34610 { ac_try='test -s conftest.$ac_objext'
34611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34612 (eval $ac_try) 2>&5
34613 ac_status=$?
34614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615 (exit $ac_status); }; }; then
34616
2a879853 34617 wx_cv_gcc31=yes
43948499
RD
34618
34619else
34620 echo "$as_me: failed program was:" >&5
34621sed 's/^/| /' conftest.$ac_ext >&5
34622
34623
2a879853 34624 wx_cv_gcc31=no
43948499
RD
34625
34626
34627fi
34628rm -f conftest.$ac_objext conftest.$ac_ext
34629
34630fi
34631echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
34632echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 34633 if test "$wx_cv_gcc31" = "no"; then
43948499 34634 cat <<EOF >shared-ld-sh
fe0895cf
VS
34635#!/bin/sh
34636#-----------------------------------------------------------------------------
34637#-- Name: distrib/mac/shared-ld-sh
34638#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34639#-- Author: Gilles Depeyrot
34640#-- Copyright: (c) 2002 Gilles Depeyrot
34641#-- Licence: any use permitted
34642#-----------------------------------------------------------------------------
34643
34644verbose=0
34645args=""
34646objects=""
131f235d 34647linking_flag="-dynamiclib"
fe0895cf
VS
34648
34649while test \${#} -gt 0; do
34650 case \${1} in
34651
34652 -v)
34653 verbose=1
34654 ;;
34655
34656 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34657 # collect these options and values
34658 args="\${args} \${1} \${2}"
34659 shift
34660 ;;
34661
34662 -l*|-L*|-flat_namespace)
34663 # collect these options
34664 args="\${args} \${1}"
34665 ;;
34666
131f235d
VS
34667 -dynamiclib|-bundle)
34668 linking_flag="\${1}"
fe0895cf
VS
34669 ;;
34670
34671 -*)
34672 echo "shared-ld: unhandled option '\${1}'"
34673 exit 1
34674 ;;
34675
4d264332 34676 *.o | *.a | *.dylib)
fe0895cf
VS
34677 # collect object files
34678 objects="\${objects} \${1}"
34679 ;;
34680
34681 *)
34682 echo "shared-ld: unhandled argument '\${1}'"
34683 exit 1
34684 ;;
34685
34686 esac
34687 shift
34688done
34689
34690#
34691# Link one module containing all the others
34692#
34693if test \${verbose} = 1; then
34694 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34695fi
34696c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34697status=\$?
34698if test \${status} != 0; then
34699 exit \${status}
34700fi
34701
34702#
34703# Link the shared library from the single module created
34704#
34705if test \${verbose} = 1; then
2a879853 34706 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34707fi
131f235d 34708c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34709status=\$?
34710if test \${status} != 0; then
34711 exit \${status}
34712fi
34713
34714#
34715# Remove intermediate module
34716#
34717rm -f master.\$\$.o
34718
34719exit 0
34720EOF
43948499 34721 chmod +x shared-ld-sh
fe0895cf 34722
2a879853
VS
34723 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -o"
34724 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -o"
34725 SHARED_LD_CXX="$SHARED_LD_CC"
34726 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
34727 else
34728 SHARED_LD_CC="\${CC} -dynamiclib -single_module -o"
34729 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -o"
34730 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -o"
34731 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -o"
34732 fi
34733
fe0895cf 34734 PIC_FLAG="-dynamic -fPIC"
2a879853 34735 ;;
fe0895cf
VS
34736
34737 *-*-aix* )
34738 if test "x$GCC" != "xyes"; then
34739 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34740set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34741echo "$as_me:$LINENO: checking for $ac_word" >&5
34742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34743if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34744 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34745else
34746 if test -n "$AIX_CXX_LD"; then
34747 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34748else
e6cc62c6
VS
34749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34750for as_dir in $PATH
34751do
34752 IFS=$as_save_IFS
34753 test -z "$as_dir" && as_dir=.
34754 for ac_exec_ext in '' $ac_executable_extensions; do
34755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34756 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34758 break 2
34759 fi
34760done
34761done
34762
fe0895cf
VS
34763 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34764fi
34765fi
e6cc62c6 34766AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34767if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34768 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34769echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34770else
e6cc62c6
VS
34771 echo "$as_me:$LINENO: result: no" >&5
34772echo "${ECHO_T}no" >&6
fe0895cf
VS
34773fi
34774
34775 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34776 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34777 fi
34778 ;;
34779
34780 *-*-beos* )
34781 SHARED_LD_CC="${LD} -shared -o"
34782 SHARED_LD_CXX="${LD} -shared -o"
34783 ;;
34784
34785 *-*-irix* )
34786 if test "x$GCC" != "xyes"; then
34787 PIC_FLAG="-KPIC"
34788 fi
34789 ;;
e6cc62c6 34790
fe0895cf
VS
34791 *-*-cygwin* | *-*-mingw32* )
34792 PIC_FLAG=""
34793 ;;
e6cc62c6 34794
fe0895cf
VS
34795 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34796 *-*-sunos4* | \
34797 *-*-osf* | \
34798 *-*-dgux5* | \
4b1f6360 34799 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
34800 *-*-sysv5* )
34801 ;;
34802
34803 *)
e6cc62c6
VS
34804 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34805echo "$as_me: error: unknown system type $host." >&2;}
34806 { (exit 1); exit 1; }; }
fe0895cf
VS
34807 esac
34808
131f235d
VS
34809 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34810 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34811 fi
34812 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 34813 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
34814 fi
34815
34816
34817
fe0895cf 34818
e6cc62c6
VS
34819
34820
34821
34822
fe0895cf
VS
34823 USE_SOVERSION=0
34824 USE_SOVERLINUX=0
34825 USE_SOVERSOLARIS=0
34826 USE_SOSYMLINKS=0
34827 USE_MACVERSION=0
34828 SONAME_FLAG=
34829
34830 case "${host}" in
34831 *-*-linux* )
34832 SONAME_FLAG="-Wl,-soname,"
34833 USE_SOVERSION=1
34834 USE_SOVERLINUX=1
34835 USE_SOSYMLINKS=1
34836 ;;
34837
34838 *-*-solaris2* )
34839 SONAME_FLAG="-h "
34840 USE_SOVERSION=1
34841 USE_SOVERSOLARIS=1
34842 USE_SOSYMLINKS=1
34843 ;;
34844
34845 *-*-darwin* )
34846 USE_MACVERSION=1
34847 USE_SOVERSION=1
34848 USE_SOSYMLINKS=1
e6cc62c6 34849 ;;
fe0895cf
VS
34850 esac
34851
fe0895cf 34852
e6cc62c6
VS
34853
34854
34855
34856
34857
34858
34859
49b0a3aa
VS
34860 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34861echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34862 DEPS_TRACKING=0
34863
fe0895cf 34864 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34865 DEPSMODE=gcc
34866 DEPS_TRACKING=1
3e5c3c83
VS
34867 case "${host}" in
34868 powerpc-*-darwin* )
34869 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34870 ;;
34871 * )
34872 DEPSFLAG_GCC="-MMD"
34873 ;;
34874 esac
49b0a3aa
VS
34875 echo "$as_me:$LINENO: result: gcc" >&5
34876echo "${ECHO_T}gcc" >&6
34877 else
34878 echo "$as_me:$LINENO: result: none" >&5
34879echo "${ECHO_T}none" >&6
34880 fi
34881
34882 if test $DEPS_TRACKING = 1 ; then
34883 cat <<EOF >bk-deps
34884#!/bin/sh
34885
45842500
VS
34886# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34887# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
34888#
34889# Permission is given to use this file in any way.
34890
34891DEPSMODE=$DEPSMODE
34892DEPSDIR=.deps
3e5c3c83 34893DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34894
34895mkdir -p \$DEPSDIR
34896
34897if test \$DEPSMODE = gcc ; then
3e5c3c83 34898 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34899 status=\${?}
34900 if test \${status} != 0 ; then
34901 exit \${status}
34902 fi
34903 # move created file to the location we want it in:
34904 while test \${#} -gt 0; do
34905 case "\${1}" in
34906 -o )
34907 shift
34908 objfile=\${1}
34909 ;;
34910 -* )
34911 ;;
34912 * )
34913 srcfile=\${1}
34914 ;;
34915 esac
34916 shift
34917 done
34918 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34919 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34920 if test -f \$depfile ; then
34921 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34922 rm -f \$depfile
34923 else
34924 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34925 if test -f \$depfile ; then
4c8b7f4b 34926 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34927 rm -f \$depfile
34928 fi
34929 fi
49b0a3aa
VS
34930 exit 0
34931else
34932 \${*}
34933 exit \${?}
34934fi
34935EOF
34936 chmod +x bk-deps
fe0895cf 34937 fi
fe0895cf 34938
e6cc62c6
VS
34939
34940
34941
fe0895cf
VS
34942 RESCOMP=
34943 SETFILE=
34944
e6cc62c6 34945 case ${host} in
fe0895cf
VS
34946 *-*-cygwin* | *-*-mingw32* )
34947 if test "$build" != "$host" ; then
34948 RESCOMP=$host_alias-windres
34949 else
34950 # Extract the first word of "windres", so it can be a program name with args.
34951set dummy windres; ac_word=$2
e6cc62c6
VS
34952echo "$as_me:$LINENO: checking for $ac_word" >&5
34953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34954if test "${ac_cv_prog_RESCOMP+set}" = set; then
34955 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34956else
34957 if test -n "$RESCOMP"; then
34958 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34959else
e6cc62c6
VS
34960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34961for as_dir in $PATH
34962do
34963 IFS=$as_save_IFS
34964 test -z "$as_dir" && as_dir=.
34965 for ac_exec_ext in '' $ac_executable_extensions; do
34966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34967 ac_cv_prog_RESCOMP="windres"
34968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34969 break 2
34970 fi
34971done
34972done
34973
fe0895cf
VS
34974 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34975fi
34976fi
e6cc62c6 34977RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34978if test -n "$RESCOMP"; then
e6cc62c6
VS
34979 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34980echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34981else
e6cc62c6
VS
34982 echo "$as_me:$LINENO: result: no" >&5
34983echo "${ECHO_T}no" >&6
fe0895cf
VS
34984fi
34985
34986 fi
34987 ;;
e6cc62c6 34988
fe0895cf
VS
34989 *-*-darwin* )
34990 # Extract the first word of "Rez", so it can be a program name with args.
34991set dummy Rez; ac_word=$2
e6cc62c6
VS
34992echo "$as_me:$LINENO: checking for $ac_word" >&5
34993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34994if test "${ac_cv_prog_RESCOMP+set}" = set; then
34995 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34996else
34997 if test -n "$RESCOMP"; then
34998 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34999else
e6cc62c6
VS
35000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35001for as_dir in $PATH
35002do
35003 IFS=$as_save_IFS
35004 test -z "$as_dir" && as_dir=.
35005 for ac_exec_ext in '' $ac_executable_extensions; do
35006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35007 ac_cv_prog_RESCOMP="Rez"
35008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35009 break 2
35010 fi
35011done
35012done
35013
fe0895cf
VS
35014 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
35015fi
35016fi
e6cc62c6 35017RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 35018if test -n "$RESCOMP"; then
e6cc62c6
VS
35019 echo "$as_me:$LINENO: result: $RESCOMP" >&5
35020echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 35021else
e6cc62c6
VS
35022 echo "$as_me:$LINENO: result: no" >&5
35023echo "${ECHO_T}no" >&6
fe0895cf
VS
35024fi
35025
35026 # Extract the first word of "SetFile", so it can be a program name with args.
35027set dummy SetFile; ac_word=$2
e6cc62c6
VS
35028echo "$as_me:$LINENO: checking for $ac_word" >&5
35029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35030if test "${ac_cv_prog_SETFILE+set}" = set; then
35031 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35032else
35033 if test -n "$SETFILE"; then
35034 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
35035else
e6cc62c6
VS
35036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35037for as_dir in $PATH
35038do
35039 IFS=$as_save_IFS
35040 test -z "$as_dir" && as_dir=.
35041 for ac_exec_ext in '' $ac_executable_extensions; do
35042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35043 ac_cv_prog_SETFILE="SetFile"
35044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35045 break 2
35046 fi
35047done
35048done
35049
fe0895cf
VS
35050 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
35051fi
35052fi
e6cc62c6 35053SETFILE=$ac_cv_prog_SETFILE
fe0895cf 35054if test -n "$SETFILE"; then
e6cc62c6
VS
35055 echo "$as_me:$LINENO: result: $SETFILE" >&5
35056echo "${ECHO_T}$SETFILE" >&6
fe0895cf 35057else
e6cc62c6
VS
35058 echo "$as_me:$LINENO: result: no" >&5
35059echo "${ECHO_T}no" >&6
fe0895cf
VS
35060fi
35061
35062 ;;
35063 esac
35064
fe0895cf
VS
35065
35066
e6cc62c6
VS
35067
35068
35069
35070
45842500 35071
45842500
VS
35072 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
35073if test "${enable_precomp_headers+set}" = set; then
35074 enableval="$enable_precomp_headers"
35075 bk_use_pch="$enableval"
35076fi;
35077
35078 GCC_PCH=0
35079
35080 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
35081 if test "x$GCC" = "xyes"; then
35082 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
35083echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
35084 cat >conftest.$ac_ext <<_ACEOF
35085#line $LINENO "configure"
35086/* confdefs.h. */
35087_ACEOF
35088cat confdefs.h >>conftest.$ac_ext
35089cat >>conftest.$ac_ext <<_ACEOF
35090/* end confdefs.h. */
35091
35092int
35093main ()
35094{
35095
8bcf2d20
VS
35096 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
35097 #error "no pch support"
35098 #endif
35099 #if (__GNUC__ < 3)
35100 #error "no pch support"
35101 #endif
35102 #if (__GNUC__ == 3) && \
35103 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
35104 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
35105 #error "no pch support"
45842500
VS
35106 #endif
35107
35108 ;
35109 return 0;
35110}
35111_ACEOF
35112rm -f conftest.$ac_objext
35113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35114 (eval $ac_compile) 2>&5
35115 ac_status=$?
35116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); } &&
35118 { ac_try='test -s conftest.$ac_objext'
35119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35120 (eval $ac_try) 2>&5
35121 ac_status=$?
35122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35123 (exit $ac_status); }; }; then
35124
35125 echo "$as_me:$LINENO: result: yes" >&5
35126echo "${ECHO_T}yes" >&6
35127 CPPFLAGS="-fpch-deps $CPPFLAGS"
35128 GCC_PCH=1
35129
35130else
35131 echo "$as_me: failed program was:" >&5
35132sed 's/^/| /' conftest.$ac_ext >&5
35133
35134
35135 echo "$as_me:$LINENO: result: no" >&5
35136echo "${ECHO_T}no" >&6
35137
35138fi
35139rm -f conftest.$ac_objext conftest.$ac_ext
35140 if test $GCC_PCH = 1 ; then
35141 cat <<EOF >bk-make-pch
35142#!/bin/sh
35143
35144# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
35145# script. It is used to generated precompiled headers.
35146#
35147# Permission is given to use this file in any way.
35148
35149outfile="\${1}"
35150header="\${2}"
35151shift
35152shift
35153
35154compiler=
35155headerfile=
35156while test \${#} -gt 0; do
35157 case "\${1}" in
35158 -I* )
35159 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
35160 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
35161 headerfile="\${incdir}/\${header}"
35162 fi
35163 ;;
35164 esac
35165 compiler="\${compiler} \${1}"
35166 shift
35167done
35168
35169if test "x\${headerfile}" = "x" ; then
35170 echo "error: can't find header \${header} in include paths" >2
35171else
35172 if test -f \${outfile} ; then
35173 rm -f \${outfile}
35174 else
35175 mkdir -p \`dirname \${outfile}\`
35176 fi
35177 depsfile=".deps/\`basename \${outfile}\`.d"
35178 mkdir -p .deps
35179 # can do this because gcc is >= 3.4:
35180 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
35181 exit \${?}
35182fi
35183EOF
35184 chmod +x bk-make-pch
35185 fi
35186 fi
35187 fi
35188
35189
35190
35191
35192
d78c94f2 35193 COND_BUILD_DEBUG="#"
6f628073 35194 if test "x$BUILD" = "xdebug" ; then
d78c94f2 35195 COND_BUILD_DEBUG=""
6f628073
VS
35196 fi
35197
6c67131a
VS
35198 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
35199 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
35200 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
35201 fi
35202
35203 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
35204 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
35205 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
35206 fi
35207
d78c94f2 35208 COND_BUILD_RELEASE="#"
6f628073 35209 if test "x$BUILD" = "xrelease" ; then
d78c94f2 35210 COND_BUILD_RELEASE=""
6b9d41a5
VS
35211 fi
35212
6c67131a
VS
35213 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
35214 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
35215 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
35216 fi
35217
35218 COND_DEBUG_FLAG_1="#"
35219 if test "x$DEBUG_FLAG" = "x1" ; then
35220 COND_DEBUG_FLAG_1=""
35221 fi
35222
35223 COND_DEBUG_INFO_0="#"
35224 if test "x$DEBUG_INFO" = "x0" ; then
35225 COND_DEBUG_INFO_0=""
35226 fi
35227
35228 COND_DEBUG_INFO_1="#"
35229 if test "x$DEBUG_INFO" = "x1" ; then
35230 COND_DEBUG_INFO_1=""
35231 fi
35232
f95cd8fa
VS
35233 COND_DEPS_TRACKING_0="#"
35234 if test "x$DEPS_TRACKING" = "x0" ; then
35235 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
35236 fi
35237
8ee2dd05
VS
35238 COND_DEPS_TRACKING_1="#"
35239 if test "x$DEPS_TRACKING" = "x1" ; then
35240 COND_DEPS_TRACKING_1=""
35241 fi
35242
45842500
VS
35243 COND_GCC_PCH_1="#"
35244 if test "x$GCC_PCH" = "x1" ; then
35245 COND_GCC_PCH_1=""
35246 fi
35247
6f628073
VS
35248 COND_MONOLITHIC_0="#"
35249 if test "x$MONOLITHIC" = "x0" ; then
35250 COND_MONOLITHIC_0=""
6b9d41a5
VS
35251 fi
35252
6f628073
VS
35253 COND_MONOLITHIC_0_SHARED_0="#"
35254 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
35255 COND_MONOLITHIC_0_SHARED_0=""
35256 fi
35257
35258 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
35259 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
35260 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 35261 fi
e6cc62c6 35262
8772a1a7
VS
35263 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
35264 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35265 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
35266 fi
35267
250700e4
RD
35268 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
35269 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
35270 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
35271 fi
35272
eb69fda5
VS
35273 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
35274 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
35275 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
35276 fi
35277
8ee2dd05
VS
35278 COND_MONOLITHIC_0_SHARED_1="#"
35279 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
35280 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 35281 fi
e6cc62c6 35282
6f628073
VS
35283 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
35284 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
35285 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
35286 fi
35287
8772a1a7
VS
35288 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
35289 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35290 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
35291 fi
35292
250700e4
RD
35293 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
35294 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
35295 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
35296 fi
35297
eb69fda5
VS
35298 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
35299 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
35300 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
35301 fi
35302
3af038c0
VS
35303 COND_MONOLITHIC_1="#"
35304 if test "x$MONOLITHIC" = "x1" ; then
35305 COND_MONOLITHIC_1=""
35306 fi
35307
6f628073
VS
35308 COND_MONOLITHIC_1_SHARED_0="#"
35309 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
35310 COND_MONOLITHIC_1_SHARED_0=""
35311 fi
35312
35313 COND_MONOLITHIC_1_SHARED_1="#"
35314 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
35315 COND_MONOLITHIC_1_SHARED_1=""
35316 fi
35317
3af038c0
VS
35318 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
35319 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
35320 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
35321 fi
35322
35323 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
35324 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
35325 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
35326 fi
35327
6f628073
VS
35328 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
35329 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
35330 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
35331 fi
35332
3af038c0
VS
35333 COND_PLATFORM_MACOSX_1="#"
35334 if test "x$PLATFORM_MACOSX" = "x1" ; then
35335 COND_PLATFORM_MACOSX_1=""
35336 fi
35337
250700e4
RD
35338 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
35339 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
35340 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
35341 fi
35342
35343 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
35344 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
35345 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
35346 fi
35347
35348 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
35349 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
35350 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
35351 fi
35352
8ee2dd05
VS
35353 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
35354 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
35355 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
35356 fi
35357
45842500
VS
35358 COND_PLATFORM_MAC_1="#"
35359 if test "x$PLATFORM_MAC" = "x1" ; then
35360 COND_PLATFORM_MAC_1=""
35361 fi
35362
3d8c1de0
VS
35363 COND_PLATFORM_OS2_1="#"
35364 if test "x$PLATFORM_OS2" = "x1" ; then
35365 COND_PLATFORM_OS2_1=""
35366 fi
35367
8772a1a7
VS
35368 COND_PLATFORM_UNIX_0="#"
35369 if test "x$PLATFORM_UNIX" = "x0" ; then
35370 COND_PLATFORM_UNIX_0=""
35371 fi
35372
3af038c0
VS
35373 COND_PLATFORM_UNIX_1="#"
35374 if test "x$PLATFORM_UNIX" = "x1" ; then
35375 COND_PLATFORM_UNIX_1=""
35376 fi
35377
35378 COND_PLATFORM_WIN32_0="#"
35379 if test "x$PLATFORM_WIN32" = "x0" ; then
35380 COND_PLATFORM_WIN32_0=""
35381 fi
35382
35383 COND_PLATFORM_WIN32_1="#"
35384 if test "x$PLATFORM_WIN32" = "x1" ; then
35385 COND_PLATFORM_WIN32_1=""
35386 fi
35387
45842500
VS
35388 COND_SHARED_0="#"
35389 if test "x$SHARED" = "x0" ; then
35390 COND_SHARED_0=""
35391 fi
35392
250700e4
RD
35393 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35394 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35395 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35396 fi
35397
52a5a009
VS
35398 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35399 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35400 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35401 fi
35402
35403 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35404 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35405 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35406 fi
35407
35408 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35409 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35410 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35411 fi
35412
35413 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35414 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35415 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35416 fi
35417
35418 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35419 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35420 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35421 fi
35422
35423 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35424 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35425 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35426 fi
35427
35428 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35429 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35430 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35431 fi
35432
45842500
VS
35433 COND_SHARED_1="#"
35434 if test "x$SHARED" = "x1" ; then
35435 COND_SHARED_1=""
35436 fi
35437
250700e4
RD
35438 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35439 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35440 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35441 fi
35442
6f628073
VS
35443 COND_TOOLKIT_COCOA="#"
35444 if test "x$TOOLKIT" = "xCOCOA" ; then
35445 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
35446 fi
35447
6f628073
VS
35448 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35449 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35450 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35451 fi
35452
6f628073
VS
35453 COND_TOOLKIT_GTK="#"
35454 if test "x$TOOLKIT" = "xGTK" ; then
35455 COND_TOOLKIT_GTK=""
f95cd8fa
VS
35456 fi
35457
6f628073
VS
35458 COND_TOOLKIT_GTK_USE_GUI_1="#"
35459 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35460 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
35461 fi
35462
6f628073
VS
35463 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35464 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35465 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35466 fi
35467
3af038c0
VS
35468 COND_TOOLKIT_MAC="#"
35469 if test "x$TOOLKIT" = "xMAC" ; then
35470 COND_TOOLKIT_MAC=""
35471 fi
35472
8772a1a7
VS
35473 COND_TOOLKIT_MAC_USE_GUI_1="#"
35474 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35475 COND_TOOLKIT_MAC_USE_GUI_1=""
35476 fi
35477
6f628073
VS
35478 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35479 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35480 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35481 fi
35482
6f628073
VS
35483 COND_TOOLKIT_MGL="#"
35484 if test "x$TOOLKIT" = "xMGL" ; then
35485 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35486 fi
35487
6f628073
VS
35488 COND_TOOLKIT_MGL_USE_GUI_1="#"
35489 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35490 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35491 fi
35492
6f628073
VS
35493 COND_TOOLKIT_MOTIF="#"
35494 if test "x$TOOLKIT" = "xMOTIF" ; then
35495 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35496 fi
35497
6f628073
VS
35498 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35499 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35500 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35501 fi
e6cc62c6 35502
6f628073
VS
35503 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35504 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35505 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35506 fi
35507
6f628073
VS
35508 COND_TOOLKIT_MSW="#"
35509 if test "x$TOOLKIT" = "xMSW" ; then
35510 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35511 fi
35512
6f628073
VS
35513 COND_TOOLKIT_MSW_USE_GUI_1="#"
35514 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35515 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35516 fi
e6cc62c6 35517
6f628073
VS
35518 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35519 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35520 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35521 fi
e6cc62c6 35522
96c1699d
VS
35523 COND_TOOLKIT_PM="#"
35524 if test "x$TOOLKIT" = "xPM" ; then
35525 COND_TOOLKIT_PM=""
35526 fi
35527
35528 COND_TOOLKIT_PM_USE_GUI_1="#"
35529 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
35530 COND_TOOLKIT_PM_USE_GUI_1=""
35531 fi
35532
35533 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
35534 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35535 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
35536 fi
35537
6f628073
VS
35538 COND_TOOLKIT_X11="#"
35539 if test "x$TOOLKIT" = "xX11" ; then
35540 COND_TOOLKIT_X11=""
9747f85d
VS
35541 fi
35542
6f628073
VS
35543 COND_TOOLKIT_X11_USE_GUI_1="#"
35544 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35545 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35546 fi
35547
3af038c0
VS
35548 COND_UNICODE_1="#"
35549 if test "x$UNICODE" = "x1" ; then
35550 COND_UNICODE_1=""
35551 fi
35552
35553 COND_USE_GUI_0="#"
35554 if test "x$USE_GUI" = "x0" ; then
35555 COND_USE_GUI_0=""
35556 fi
35557
35558 COND_USE_GUI_1="#"
35559 if test "x$USE_GUI" = "x1" ; then
35560 COND_USE_GUI_1=""
35561 fi
35562
e6cc62c6 35563 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35564 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35565 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35566 fi
e6cc62c6
VS
35567
35568 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35569 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35570 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35571 fi
35572
66a96744
VS
35573 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35574 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35575 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35576 fi
35577
35578 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35579 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35580 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35581 fi
35582
35583 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35584 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35585 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35586 fi
35587
6f628073
VS
35588 COND_USE_SOSYMLINKS_1="#"
35589 if test "x$USE_SOSYMLINKS" = "x1" ; then
35590 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35591 fi
35592
6f628073
VS
35593 COND_USE_SOVERLINUX_1="#"
35594 if test "x$USE_SOVERLINUX" = "x1" ; then
35595 COND_USE_SOVERLINUX_1=""
b625909c
VS
35596 fi
35597
6f628073
VS
35598 COND_USE_SOVERSION_0="#"
35599 if test "x$USE_SOVERSION" = "x0" ; then
35600 COND_USE_SOVERSION_0=""
fddeb06b 35601 fi
fe0895cf 35602
6f628073
VS
35603 COND_USE_SOVERSOLARIS_1="#"
35604 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35605 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35606 fi
fe0895cf 35607
3af038c0
VS
35608 COND_WXUNIV_1="#"
35609 if test "x$WXUNIV" = "x1" ; then
35610 COND_WXUNIV_1=""
35611 fi
35612
66a96744
VS
35613 COND_WXUSE_EXPAT_BUILTIN="#"
35614 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35615 COND_WXUSE_EXPAT_BUILTIN=""
35616 fi
35617
02980527
VS
35618 COND_WXUSE_LIBJPEG_BUILTIN="#"
35619 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35620 COND_WXUSE_LIBJPEG_BUILTIN=""
35621 fi
35622
35623 COND_WXUSE_LIBPNG_BUILTIN="#"
35624 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35625 COND_WXUSE_LIBPNG_BUILTIN=""
35626 fi
35627
35628 COND_WXUSE_LIBTIFF_BUILTIN="#"
35629 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35630 COND_WXUSE_LIBTIFF_BUILTIN=""
35631 fi
35632
35633 COND_WXUSE_ODBC_BUILTIN="#"
35634 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35635 COND_WXUSE_ODBC_BUILTIN=""
35636 fi
35637
35638 COND_WXUSE_REGEX_BUILTIN="#"
35639 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35640 COND_WXUSE_REGEX_BUILTIN=""
35641 fi
35642
35643 COND_WXUSE_ZLIB_BUILTIN="#"
35644 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35645 COND_WXUSE_ZLIB_BUILTIN=""
35646 fi
35647
1772d20c 35648
fe0895cf 35649
fe0895cf 35650
fe0895cf 35651
45842500
VS
35652if test $GCC_PCH = 1 ; then
35653 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35654else
35655 case "${host}" in
35656 powerpc-*-darwin* )
35657 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35658 ;;
45842500
VS
35659 esac
35660fi
2c6f14e1
VS
35661case "${host}" in
35662 powerpc-*-darwin* )
35663 CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35664 ;;
35665esac
fe0895cf
VS
35666
35667
fddeb06b 35668SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35669
35670
35671
35672
35673
35674
35675
35676
35677
35678
35679
35680
35681
35682
35683
35684
35685
35686
35687
35688
35689
35690
35691
35692
35693
35694
35695
35696
35697
35698
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730
35731
35732
35733
35734
35735
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
fe0895cf 35763
f0290fca
VS
35764
35765
67c13b6c 35766
e6cc62c6
VS
35767
35768
35769echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35770echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35771set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35772if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35773 echo $ECHO_N "(cached) $ECHO_C" >&6
35774else
35775 cat >conftest.make <<\_ACEOF
35776all:
35777 @echo 'ac_maketemp="$(MAKE)"'
35778_ACEOF
35779# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35780eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35781if test -n "$ac_maketemp"; then
35782 eval ac_cv_prog_make_${ac_make}_set=yes
35783else
35784 eval ac_cv_prog_make_${ac_make}_set=no
35785fi
35786rm -f conftest.make
35787fi
35788if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35789 echo "$as_me:$LINENO: result: yes" >&5
35790echo "${ECHO_T}yes" >&6
35791 SET_MAKE=
35792else
35793 echo "$as_me:$LINENO: result: no" >&5
35794echo "${ECHO_T}no" >&6
35795 SET_MAKE="MAKE=${MAKE-make}"
35796fi
35797
35798
35799if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35800 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35801fi
35802
35803 ac_config_headers="$ac_config_headers setup.h"
35804
35805
81345eef 35806 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
35807
35808
35809 ac_config_commands="$ac_config_commands default"
35810
35811
9de9b8f0 35812
6c3e36af
VZ
35813if test "$wxUSE_GUI" = "yes"; then
35814 SUBDIRS="samples demos utils contrib"
35815else SUBDIRS="samples utils"
35816fi
e6cc62c6 35817
166263e6 35818for subdir in `echo $SUBDIRS`; do
9747f85d 35819 if test -d ${srcdir}/${subdir} ; then
6c3e36af 35820 if test "$wxUSE_GUI" = "yes"; then
166263e6 35821 if test ${subdir} = "samples"; then
8772a1a7
VS
35822 makefiles="samples/Makefile.in $makefiles"
35823 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
35824 if test -d $srcdir/samples/$sample; then
35825 makefiles="samples/$sample/Makefile.in $makefiles"
35826 fi
35827 done
35828 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35829 fi
6c3e36af 35830 else if test ${subdir} = "samples"; then
8772a1a7 35831 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 35832 else makefiles="utils/HelpGen/Makefile.in \
73d617c9 35833 utils/HelpGen/src/Makefile.in"
6c3e36af
VZ
35834 fi
35835 fi
35836
9747f85d
VS
35837 for mkin in $makefiles ; do
35838 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35839 ac_config_files="$ac_config_files $mk"
e6cc62c6 35840
9747f85d
VS
35841 done
35842 fi
35843done
e6cc62c6 35844
9de9b8f0 35845
e6cc62c6
VS
35846cat >confcache <<\_ACEOF
35847# This file is a shell script that caches the results of configure
35848# tests run on this system so they can be shared between configure
35849# scripts and configure runs, see configure's option --config-cache.
35850# It is not useful on other systems. If it contains results you don't
35851# want to keep, you may remove or edit it.
35852#
35853# config.status only pays attention to the cache file if you give it
35854# the --recheck option to rerun configure.
35855#
35856# `ac_cv_env_foo' variables (set or unset) will be overridden when
35857# loading this file, other *unset* `ac_cv_foo' will be assigned the
35858# following values.
35859
35860_ACEOF
35861
35862# The following way of writing the cache mishandles newlines in values,
35863# but we know of no workaround that is simple, portable, and efficient.
35864# So, don't put newlines in cache variables' values.
35865# Ultrix sh set writes to stderr and can't be redirected directly,
35866# and sets the high bit in the cache file unless we assign to the vars.
35867{
35868 (set) 2>&1 |
35869 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35870 *ac_space=\ *)
35871 # `set' does not quote correctly, so add quotes (double-quote
35872 # substitution turns \\\\ into \\, and sed turns \\ into \).
35873 sed -n \
35874 "s/'/'\\\\''/g;
35875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35876 ;;
35877 *)
35878 # `set' quotes correctly as required by POSIX, so do not add quotes.
35879 sed -n \
35880 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35881 ;;
35882 esac;
35883} |
35884 sed '
35885 t clear
35886 : clear
35887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35888 t end
35889 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35890 : end' >>confcache
35891if diff $cache_file confcache >/dev/null 2>&1; then :; else
35892 if test -w $cache_file; then
35893 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35894 cat confcache >$cache_file
35895 else
35896 echo "not updating unwritable cache $cache_file"
35897 fi
35898fi
35899rm -f confcache
35900
35901test "x$prefix" = xNONE && prefix=$ac_default_prefix
35902# Let make expand exec_prefix.
35903test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35904
35905# VPATH may cause trouble with some makes, so we remove $(srcdir),
35906# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35907# trailing colons and then remove the whole line if VPATH becomes empty
35908# (actually we leave an empty line to preserve line numbers).
35909if test "x$srcdir" = x.; then
35910 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35911s/:*\$(srcdir):*/:/;
35912s/:*\${srcdir}:*/:/;
35913s/:*@srcdir@:*/:/;
35914s/^\([^=]*=[ ]*\):*/\1/;
35915s/:*$//;
35916s/^[^=]*=[ ]*$//;
35917}'
35918fi
35919
35920DEFS=-DHAVE_CONFIG_H
35921
35922ac_libobjs=
35923ac_ltlibobjs=
35924for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35925 # 1. Remove the extension, and $U if already installed.
35926 ac_i=`echo "$ac_i" |
35927 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35928 # 2. Add them.
35929 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35930 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35931done
35932LIBOBJS=$ac_libobjs
35933
35934LTLIBOBJS=$ac_ltlibobjs
35935
35936
35937
35938: ${CONFIG_STATUS=./config.status}
35939ac_clean_files_save=$ac_clean_files
35940ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35941{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35942echo "$as_me: creating $CONFIG_STATUS" >&6;}
35943cat >$CONFIG_STATUS <<_ACEOF
35944#! $SHELL
35945# Generated by $as_me.
35946# Run this file to recreate the current configuration.
35947# Compiler output produced by configure, useful for debugging
35948# configure, is in config.log if it exists.
35949
35950debug=false
35951ac_cs_recheck=false
35952ac_cs_silent=false
35953SHELL=\${CONFIG_SHELL-$SHELL}
35954_ACEOF
35955
35956cat >>$CONFIG_STATUS <<\_ACEOF
35957## --------------------- ##
35958## M4sh Initialization. ##
35959## --------------------- ##
35960
35961# Be Bourne compatible
35962if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35963 emulate sh
35964 NULLCMD=:
35965 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35966 # is contrary to our usage. Disable this feature.
35967 alias -g '${1+"$@"}'='"$@"'
35968elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35969 set -o posix
35970fi
35971
35972# Support unset when possible.
35973if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35974 as_unset=unset
35975else
35976 as_unset=false
35977fi
35978
35979
35980# Work around bugs in pre-3.0 UWIN ksh.
35981$as_unset ENV MAIL MAILPATH
35982PS1='$ '
35983PS2='> '
35984PS4='+ '
35985
35986# NLS nuisances.
35987for as_var in \
35988 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35989 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35990 LC_TELEPHONE LC_TIME
35991do
35992 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35993 eval $as_var=C; export $as_var
35994 else
35995 $as_unset $as_var
35996 fi
35997done
35998
35999# Required to use basename.
36000if expr a : '\(a\)' >/dev/null 2>&1; then
36001 as_expr=expr
36002else
36003 as_expr=false
36004fi
36005
36006if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
36007 as_basename=basename
36008else
36009 as_basename=false
36010fi
36011
36012
36013# Name of the executable.
36014as_me=`$as_basename "$0" ||
36015$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36016 X"$0" : 'X\(//\)$' \| \
36017 X"$0" : 'X\(/\)$' \| \
36018 . : '\(.\)' 2>/dev/null ||
36019echo X/"$0" |
36020 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36021 /^X\/\(\/\/\)$/{ s//\1/; q; }
36022 /^X\/\(\/\).*/{ s//\1/; q; }
36023 s/.*/./; q'`
36024
36025
36026# PATH needs CR, and LINENO needs CR and PATH.
36027# Avoid depending upon Character Ranges.
36028as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36030as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36031as_cr_digits='0123456789'
36032as_cr_alnum=$as_cr_Letters$as_cr_digits
36033
36034# The user is always right.
36035if test "${PATH_SEPARATOR+set}" != set; then
36036 echo "#! /bin/sh" >conf$$.sh
36037 echo "exit 0" >>conf$$.sh
36038 chmod +x conf$$.sh
36039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36040 PATH_SEPARATOR=';'
36041 else
36042 PATH_SEPARATOR=:
36043 fi
36044 rm -f conf$$.sh
36045fi
36046
36047
36048 as_lineno_1=$LINENO
36049 as_lineno_2=$LINENO
36050 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36051 test "x$as_lineno_1" != "x$as_lineno_2" &&
36052 test "x$as_lineno_3" = "x$as_lineno_2" || {
36053 # Find who we are. Look in the path if we contain no path at all
36054 # relative or not.
36055 case $0 in
36056 *[\\/]* ) as_myself=$0 ;;
36057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36058for as_dir in $PATH
36059do
36060 IFS=$as_save_IFS
36061 test -z "$as_dir" && as_dir=.
36062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36063done
36064
36065 ;;
36066 esac
36067 # We did not find ourselves, most probably we were run as `sh COMMAND'
36068 # in which case we are not to be found in the path.
36069 if test "x$as_myself" = x; then
36070 as_myself=$0
36071 fi
36072 if test ! -f "$as_myself"; then
36073 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36074echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36075 { (exit 1); exit 1; }; }
36076 fi
36077 case $CONFIG_SHELL in
36078 '')
36079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36080for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36081do
36082 IFS=$as_save_IFS
36083 test -z "$as_dir" && as_dir=.
36084 for as_base in sh bash ksh sh5; do
36085 case $as_dir in
36086 /*)
36087 if ("$as_dir/$as_base" -c '
36088 as_lineno_1=$LINENO
36089 as_lineno_2=$LINENO
36090 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36091 test "x$as_lineno_1" != "x$as_lineno_2" &&
36092 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36093 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
36094 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
36095 CONFIG_SHELL=$as_dir/$as_base
36096 export CONFIG_SHELL
36097 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36098 fi;;
36099 esac
36100 done
36101done
36102;;
36103 esac
36104
36105 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36106 # uniformly replaced by the line number. The first 'sed' inserts a
36107 # line-number line before each line; the second 'sed' does the real
36108 # work. The second script uses 'N' to pair each line-number line
36109 # with the numbered line, and appends trailing '-' during
36110 # substitution so that $LINENO is not a special case at line end.
36111 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36112 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
36113 sed '=' <$as_myself |
36114 sed '
36115 N
36116 s,$,-,
36117 : loop
36118 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36119 t loop
36120 s,-$,,
36121 s,^['$as_cr_digits']*\n,,
36122 ' >$as_me.lineno &&
36123 chmod +x $as_me.lineno ||
36124 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36125echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36126 { (exit 1); exit 1; }; }
36127
36128 # Don't try to exec as it changes $[0], causing all sort of problems
36129 # (the dirname of $[0] is not the place where we might find the
36130 # original and so on. Autoconf is especially sensible to this).
36131 . ./$as_me.lineno
36132 # Exit status is that of the last command.
36133 exit
36134}
36135
36136
36137case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36138 *c*,-n*) ECHO_N= ECHO_C='
36139' ECHO_T=' ' ;;
36140 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36141 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
36142esac
36143
36144if expr a : '\(a\)' >/dev/null 2>&1; then
36145 as_expr=expr
36146else
36147 as_expr=false
36148fi
36149
36150rm -f conf$$ conf$$.exe conf$$.file
36151echo >conf$$.file
36152if ln -s conf$$.file conf$$ 2>/dev/null; then
36153 # We could just check for DJGPP; but this test a) works b) is more generic
36154 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36155 if test -f conf$$.exe; then
36156 # Don't use ln at all; we don't have any links
36157 as_ln_s='cp -p'
36158 else
36159 as_ln_s='ln -s'
36160 fi
36161elif ln conf$$.file conf$$ 2>/dev/null; then
36162 as_ln_s=ln
36163else
36164 as_ln_s='cp -p'
36165fi
36166rm -f conf$$ conf$$.exe conf$$.file
36167
36168if mkdir -p . 2>/dev/null; then
36169 as_mkdir_p=:
36170else
36171 as_mkdir_p=false
36172fi
36173
36174as_executable_p="test -f"
36175
36176# Sed expression to map a string onto a valid CPP name.
36177as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
36178
36179# Sed expression to map a string onto a valid variable name.
36180as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
36181
36182
36183# IFS
36184# We need space, tab and new line, in precisely that order.
36185as_nl='
36186'
36187IFS=" $as_nl"
36188
36189# CDPATH.
36190$as_unset CDPATH
36191
36192exec 6>&1
36193
36194# Open the log real soon, to keep \$[0] and so on meaningful, and to
36195# report actual input values of CONFIG_FILES etc. instead of their
36196# values after options handling. Logging --version etc. is OK.
36197exec 5>>config.log
36198{
36199 echo
36200 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36201## Running $as_me. ##
36202_ASBOX
36203} >&5
36204cat >&5 <<_CSEOF
36205
e46d2a18 36206This file was extended by wxWindows $as_me 2.5.1, which was
e6cc62c6
VS
36207generated by GNU Autoconf 2.57. Invocation command line was
36208
36209 CONFIG_FILES = $CONFIG_FILES
36210 CONFIG_HEADERS = $CONFIG_HEADERS
36211 CONFIG_LINKS = $CONFIG_LINKS
36212 CONFIG_COMMANDS = $CONFIG_COMMANDS
36213 $ $0 $@
36214
36215_CSEOF
36216echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36217echo >&5
36218_ACEOF
36219
36220# Files that config.status was made for.
36221if test -n "$ac_config_files"; then
36222 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36223fi
36224
36225if test -n "$ac_config_headers"; then
36226 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36227fi
36228
36229if test -n "$ac_config_links"; then
36230 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36231fi
36232
36233if test -n "$ac_config_commands"; then
36234 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36235fi
36236
36237cat >>$CONFIG_STATUS <<\_ACEOF
36238
36239ac_cs_usage="\
36240\`$as_me' instantiates files from templates according to the
36241current configuration.
36242
36243Usage: $0 [OPTIONS] [FILE]...
36244
36245 -h, --help print this help, then exit
36246 -V, --version print version number, then exit
36247 -q, --quiet do not print progress messages
36248 -d, --debug don't remove temporary files
36249 --recheck update $as_me by reconfiguring in the same conditions
36250 --file=FILE[:TEMPLATE]
36251 instantiate the configuration file FILE
36252 --header=FILE[:TEMPLATE]
36253 instantiate the configuration header FILE
36254
36255Configuration files:
36256$config_files
36257
36258Configuration headers:
36259$config_headers
36260
36261Configuration commands:
36262$config_commands
36263
36264Report bugs to <bug-autoconf@gnu.org>."
36265_ACEOF
36266
36267cat >>$CONFIG_STATUS <<_ACEOF
36268ac_cs_version="\\
e46d2a18 36269wxWindows config.status 2.5.1
e6cc62c6
VS
36270configured by $0, generated by GNU Autoconf 2.57,
36271 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36272
36273Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36274Free Software Foundation, Inc.
36275This config.status script is free software; the Free Software Foundation
36276gives unlimited permission to copy, distribute and modify it."
36277srcdir=$srcdir
36278INSTALL="$INSTALL"
36279_ACEOF
36280
36281cat >>$CONFIG_STATUS <<\_ACEOF
36282# If no file are specified by the user, then we need to provide default
36283# value. By we need to know if files were specified by the user.
36284ac_need_defaults=:
36285while test $# != 0
36286do
36287 case $1 in
36288 --*=*)
36289 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36290 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36291 ac_shift=:
36292 ;;
36293 -*)
36294 ac_option=$1
36295 ac_optarg=$2
36296 ac_shift=shift
36297 ;;
36298 *) # This is not an option, so the user has probably given explicit
36299 # arguments.
36300 ac_option=$1
36301 ac_need_defaults=false;;
36302 esac
36303
36304 case $ac_option in
36305 # Handling of the options.
36306_ACEOF
36307cat >>$CONFIG_STATUS <<\_ACEOF
36308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36309 ac_cs_recheck=: ;;
36310 --version | --vers* | -V )
36311 echo "$ac_cs_version"; exit 0 ;;
36312 --he | --h)
36313 # Conflict between --help and --header
36314 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36315Try \`$0 --help' for more information." >&5
36316echo "$as_me: error: ambiguous option: $1
36317Try \`$0 --help' for more information." >&2;}
36318 { (exit 1); exit 1; }; };;
36319 --help | --hel | -h )
36320 echo "$ac_cs_usage"; exit 0 ;;
36321 --debug | --d* | -d )
36322 debug=: ;;
36323 --file | --fil | --fi | --f )
36324 $ac_shift
36325 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36326 ac_need_defaults=false;;
36327 --header | --heade | --head | --hea )
36328 $ac_shift
36329 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36330 ac_need_defaults=false;;
36331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36332 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36333 ac_cs_silent=: ;;
36334
36335 # This is an error.
36336 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36337Try \`$0 --help' for more information." >&5
36338echo "$as_me: error: unrecognized option: $1
36339Try \`$0 --help' for more information." >&2;}
36340 { (exit 1); exit 1; }; } ;;
36341
36342 *) ac_config_targets="$ac_config_targets $1" ;;
36343
36344 esac
36345 shift
36346done
36347
36348ac_configure_extra_args=
36349
36350if $ac_cs_silent; then
36351 exec 6>/dev/null
36352 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
36353fi
36354
e6cc62c6
VS
36355_ACEOF
36356cat >>$CONFIG_STATUS <<_ACEOF
36357if \$ac_cs_recheck; then
36358 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36359 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
36360fi
36361
e6cc62c6 36362_ACEOF
fe0895cf 36363
e6cc62c6 36364cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 36365#
e6cc62c6 36366# INIT-COMMANDS section.
10f2d63a 36367#
10f2d63a 36368
a0b9e27f 36369
e6cc62c6
VS
36370 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36371 LN_S="${LN_S}"
10f2d63a 36372
10f2d63a 36373
10f2d63a 36374
e6cc62c6 36375_ACEOF
8284b0c5 36376
52127426 36377
247f5006 36378
e6cc62c6
VS
36379cat >>$CONFIG_STATUS <<\_ACEOF
36380for ac_config_target in $ac_config_targets
247f5006 36381do
e6cc62c6
VS
36382 case "$ac_config_target" in
36383 # Handling of arguments.
81345eef
VZ
36384 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36385 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36386 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 36387 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
36388 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36389 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36390 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36391echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36392 { (exit 1); exit 1; }; };;
247f5006
VZ
36393 esac
36394done
36395
e6cc62c6
VS
36396# If the user did not use the arguments to specify the items to instantiate,
36397# then the envvar interface is used. Set only those that are not.
36398# We use the long form for the default assignment because of an extremely
36399# bizarre bug on SunOS 4.1.3.
36400if $ac_need_defaults; then
36401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36403 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36404fi
36405
36406# Have a temporary directory for convenience. Make it in the build tree
36407# simply because there is no reason to put it here, and in addition,
36408# creating and moving files from /tmp can sometimes cause problems.
36409# Create a temporary directory, and hook for its removal unless debugging.
36410$debug ||
36411{
36412 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36413 trap '{ (exit 1); exit 1; }' 1 2 13 15
36414}
247f5006 36415
e6cc62c6 36416# Create a (secure) tmp directory for tmp files.
247f5006 36417
e6cc62c6
VS
36418{
36419 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36420 test -n "$tmp" && test -d "$tmp"
36421} ||
36422{
36423 tmp=./confstat$$-$RANDOM
36424 (umask 077 && mkdir $tmp)
36425} ||
36426{
36427 echo "$me: cannot create a temporary directory in ." >&2
36428 { (exit 1); exit 1; }
36429}
36430
36431_ACEOF
36432
36433cat >>$CONFIG_STATUS <<_ACEOF
36434
36435#
36436# CONFIG_FILES section.
36437#
247f5006 36438
e6cc62c6
VS
36439# No need to generate the scripts if there are no CONFIG_FILES.
36440# This happens for instance when ./config.status config.h
36441if test -n "\$CONFIG_FILES"; then
36442 # Protect against being on the right side of a sed subst in config.status.
36443 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36444 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36445s,@SHELL@,$SHELL,;t t
36446s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36447s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36448s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36449s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36450s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36451s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36452s,@exec_prefix@,$exec_prefix,;t t
36453s,@prefix@,$prefix,;t t
36454s,@program_transform_name@,$program_transform_name,;t t
36455s,@bindir@,$bindir,;t t
36456s,@sbindir@,$sbindir,;t t
36457s,@libexecdir@,$libexecdir,;t t
36458s,@datadir@,$datadir,;t t
36459s,@sysconfdir@,$sysconfdir,;t t
36460s,@sharedstatedir@,$sharedstatedir,;t t
36461s,@localstatedir@,$localstatedir,;t t
36462s,@libdir@,$libdir,;t t
36463s,@includedir@,$includedir,;t t
36464s,@oldincludedir@,$oldincludedir,;t t
36465s,@infodir@,$infodir,;t t
36466s,@mandir@,$mandir,;t t
36467s,@build_alias@,$build_alias,;t t
36468s,@host_alias@,$host_alias,;t t
36469s,@target_alias@,$target_alias,;t t
36470s,@DEFS@,$DEFS,;t t
36471s,@ECHO_C@,$ECHO_C,;t t
36472s,@ECHO_N@,$ECHO_N,;t t
36473s,@ECHO_T@,$ECHO_T,;t t
36474s,@LIBS@,$LIBS,;t t
36475s,@build@,$build,;t t
36476s,@build_cpu@,$build_cpu,;t t
36477s,@build_vendor@,$build_vendor,;t t
36478s,@build_os@,$build_os,;t t
36479s,@host@,$host,;t t
36480s,@host_cpu@,$host_cpu,;t t
36481s,@host_vendor@,$host_vendor,;t t
36482s,@host_os@,$host_os,;t t
36483s,@target@,$target,;t t
36484s,@target_cpu@,$target_cpu,;t t
36485s,@target_vendor@,$target_vendor,;t t
36486s,@target_os@,$target_os,;t t
36487s,@CC@,$CC,;t t
36488s,@CFLAGS@,$CFLAGS,;t t
36489s,@LDFLAGS@,$LDFLAGS,;t t
36490s,@CPPFLAGS@,$CPPFLAGS,;t t
36491s,@ac_ct_CC@,$ac_ct_CC,;t t
36492s,@EXEEXT@,$EXEEXT,;t t
36493s,@OBJEXT@,$OBJEXT,;t t
36494s,@CPP@,$CPP,;t t
36495s,@EGREP@,$EGREP,;t t
36496s,@CXX@,$CXX,;t t
36497s,@CXXFLAGS@,$CXXFLAGS,;t t
36498s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36499s,@RANLIB@,$RANLIB,;t t
36500s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36501s,@AR@,$AR,;t t
36502s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36503s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36504s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36505s,@STRIP@,$STRIP,;t t
36506s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
36507s,@LN_S@,$LN_S,;t t
36508s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36509s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36510s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36511s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36512s,@GTK_LIBS@,$GTK_LIBS,;t t
36513s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36514s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36515s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36516s,@X_CFLAGS@,$X_CFLAGS,;t t
36517s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36518s,@X_LIBS@,$X_LIBS,;t t
36519s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36520s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36521s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36522s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36523s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36524s,@RESCOMP@,$RESCOMP,;t t
36525s,@DEREZ@,$DEREZ,;t t
36526s,@SETFILE@,$SETFILE,;t t
36527s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36528s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36529s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36530s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36531s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36532s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36533s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36534s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36535s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36536s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36537s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36538s,@VENDOR@,$VENDOR,;t t
36539s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36540s,@WXUNIV@,$WXUNIV,;t t
36541s,@MONOLITHIC@,$MONOLITHIC,;t t
36542s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36543s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
bb41dcbe 36544s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36545s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36546s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36547s,@UNICODE@,$UNICODE,;t t
36548s,@BUILD@,$BUILD,;t t
6c67131a
VS
36549s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36550s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36551s,@SHARED@,$SHARED,;t t
36552s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36553s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36554s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 36555s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 36556s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36557s,@SET_MAKE@,$SET_MAKE,;t t
36558s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
36559s,@ac_ct_AR@,$ac_ct_AR,;t t
36560s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36561s,@NM@,$NM,;t t
36562s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 36563s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36564s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36565s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36566s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36567s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36568s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36569s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 36570s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 36571s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36572s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 36573s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 36574s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36575s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36576s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36577s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36578s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36579s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36580s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36581s,@PIC_FLAG@,$PIC_FLAG,;t t
36582s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36583s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36584s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36585s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36586s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36587s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36588s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36589s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36590s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36591s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36592s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36593s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36594s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36595s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36596s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36597s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36598s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36599s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36600s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36601s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36602s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36603s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36604s,@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 36605s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 36606s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 36607s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36608s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36609s,@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 36610s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 36611s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 36612s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36613s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36614s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36615s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36616s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36617s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36618s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36619s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36620s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36621s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 36622s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36623s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 36624s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 36625s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0
VS
36626s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36627s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36628s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36629s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36630s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
36631s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36632s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36633s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36634s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36635s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36636s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36637s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 36638s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36639s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36640s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36641s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36642s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36643s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36644s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36645s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36646s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36647s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36648s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36649s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36650s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36651s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36652s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36653s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36654s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36655s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
36656s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
36657s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
36658s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
36659s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36660s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0
VS
36661s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36662s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36663s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36664s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36665s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36666s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36667s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36668s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
6f628073
VS
36669s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36670s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36671s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36672s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36673s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36674s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36675s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36676s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36677s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36678s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36679s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36680s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36681s,@PATH_IFS@,$PATH_IFS,;t t
36682s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36683s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36684s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36685s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36686s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36687s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36688s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36689s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36690s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36691s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36692s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36693s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36694s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36695s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36696s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36697s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36698s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36699s,@WX_ALL@,$WX_ALL,;t t
36700s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36701s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36702s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36703s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36704s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36705s,@USE_GUI@,$USE_GUI,;t t
36706s,@AFMINSTALL@,$AFMINSTALL,;t t
36707s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36708s,@TOOLKIT@,$TOOLKIT,;t t
36709s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36710s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36711s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36712s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36713s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36714s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36715s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36716s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36717s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36718s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36719s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36720s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36721s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36722s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 36723s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 36724s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36725s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36726s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36727s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36728s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36729s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36730s,@GUIDIST@,$GUIDIST,;t t
36731s,@PORT_FILES@,$PORT_FILES,;t t
36732s,@DISTDIR@,$DISTDIR,;t t
36733s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36734s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36735s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36736s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36737s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36738s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36739s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36740s,@RESFLAGS@,$RESFLAGS,;t t
36741s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36742s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36743s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36744s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36745s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36746s,@MACRESCOMP@,$MACRESCOMP,;t t
36747s,@MACSETFILE@,$MACSETFILE,;t t
36748s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36749s,@GCC@,$GCC,;t t
36750s,@DLLTOOL@,$DLLTOOL,;t t
36751s,@AS@,$AS,;t t
e6cc62c6
VS
36752s,@LD@,$LD,;t t
36753s,@MAKEINFO@,$MAKEINFO,;t t
36754s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
36755s,@LIBOBJS@,$LIBOBJS,;t t
36756s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
36757CEOF
36758
e6cc62c6
VS
36759_ACEOF
36760
36761 cat >>$CONFIG_STATUS <<\_ACEOF
36762 # Split the substitutions into bite-sized pieces for seds with
36763 # small command number limits, like on Digital OSF/1 and HP-UX.
36764 ac_max_sed_lines=48
36765 ac_sed_frag=1 # Number of current file.
36766 ac_beg=1 # First line for current file.
36767 ac_end=$ac_max_sed_lines # Line after last line for current file.
36768 ac_more_lines=:
36769 ac_sed_cmds=
36770 while $ac_more_lines; do
36771 if test $ac_beg -gt 1; then
36772 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 36773 else
e6cc62c6
VS
36774 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36775 fi
36776 if test ! -s $tmp/subs.frag; then
36777 ac_more_lines=false
36778 else
36779 # The purpose of the label and of the branching condition is to
36780 # speed up the sed processing (if there are no `@' at all, there
36781 # is no need to browse any of the substitutions).
36782 # These are the two extra sed commands mentioned above.
36783 (echo ':t
36784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36785 if test -z "$ac_sed_cmds"; then
36786 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36787 else
36788 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36789 fi
36790 ac_sed_frag=`expr $ac_sed_frag + 1`
36791 ac_beg=$ac_end
36792 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 36793 fi
e6cc62c6
VS
36794 done
36795 if test -z "$ac_sed_cmds"; then
36796 ac_sed_cmds=cat
10f2d63a 36797 fi
e6cc62c6 36798fi # test -n "$CONFIG_FILES"
10f2d63a 36799
e6cc62c6
VS
36800_ACEOF
36801cat >>$CONFIG_STATUS <<\_ACEOF
36802for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 36803 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36804 case $ac_file in
36805 - | *:- | *:-:* ) # input from stdin
36806 cat >$tmp/stdin
36807 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36808 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36809 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36811 * ) ac_file_in=$ac_file.in ;;
10f2d63a 36812 esac
247f5006 36813
e6cc62c6
VS
36814 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36815 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36816$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36817 X"$ac_file" : 'X\(//\)[^/]' \| \
36818 X"$ac_file" : 'X\(//\)$' \| \
36819 X"$ac_file" : 'X\(/\)' \| \
36820 . : '\(.\)' 2>/dev/null ||
36821echo X"$ac_file" |
36822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36824 /^X\(\/\/\)$/{ s//\1/; q; }
36825 /^X\(\/\).*/{ s//\1/; q; }
36826 s/.*/./; q'`
36827 { if $as_mkdir_p; then
36828 mkdir -p "$ac_dir"
a0b9e27f 36829 else
e6cc62c6
VS
36830 as_dir="$ac_dir"
36831 as_dirs=
36832 while test ! -d "$as_dir"; do
36833 as_dirs="$as_dir $as_dirs"
36834 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36835$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36836 X"$as_dir" : 'X\(//\)[^/]' \| \
36837 X"$as_dir" : 'X\(//\)$' \| \
36838 X"$as_dir" : 'X\(/\)' \| \
36839 . : '\(.\)' 2>/dev/null ||
36840echo X"$as_dir" |
36841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36843 /^X\(\/\/\)$/{ s//\1/; q; }
36844 /^X\(\/\).*/{ s//\1/; q; }
36845 s/.*/./; q'`
36846 done
36847 test ! -n "$as_dirs" || mkdir $as_dirs
36848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36849echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36850 { (exit 1); exit 1; }; }; }
36851
36852 ac_builddir=.
36853
36854if test "$ac_dir" != .; then
36855 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36856 # A "../" for each directory in $ac_dir_suffix.
36857 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36858else
36859 ac_dir_suffix= ac_top_builddir=
36860fi
247f5006 36861
e6cc62c6
VS
36862case $srcdir in
36863 .) # No --srcdir option. We are building in place.
36864 ac_srcdir=.
36865 if test -z "$ac_top_builddir"; then
36866 ac_top_srcdir=.
36867 else
36868 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36869 fi ;;
36870 [\\/]* | ?:[\\/]* ) # Absolute path.
36871 ac_srcdir=$srcdir$ac_dir_suffix;
36872 ac_top_srcdir=$srcdir ;;
247f5006 36873 *) # Relative path.
e6cc62c6
VS
36874 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36875 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36876esac
36877# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36878# absolute.
36879ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36880ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36881ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36882ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36883
247f5006 36884
e6cc62c6
VS
36885 case $INSTALL in
36886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36887 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36888 esac
247f5006 36889
e6cc62c6
VS
36890 if test x"$ac_file" != x-; then
36891 { echo "$as_me:$LINENO: creating $ac_file" >&5
36892echo "$as_me: creating $ac_file" >&6;}
36893 rm -f "$ac_file"
36894 fi
36895 # Let's still pretend it is `configure' which instantiates (i.e., don't
36896 # use $as_me), people would be surprised to read:
36897 # /* config.h. Generated by config.status. */
36898 if test x"$ac_file" = x-; then
36899 configure_input=
36900 else
36901 configure_input="$ac_file. "
36902 fi
36903 configure_input=$configure_input"Generated from `echo $ac_file_in |
36904 sed 's,.*/,,'` by configure."
36905
36906 # First look for the input files in the build tree, otherwise in the
36907 # src tree.
36908 ac_file_inputs=`IFS=:
36909 for f in $ac_file_in; do
36910 case $f in
36911 -) echo $tmp/stdin ;;
36912 [\\/$]*)
36913 # Absolute (can't be DOS-style, as IFS=:)
36914 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36915echo "$as_me: error: cannot find input file: $f" >&2;}
36916 { (exit 1); exit 1; }; }
36917 echo $f;;
36918 *) # Relative
36919 if test -f "$f"; then
36920 # Build tree
36921 echo $f
36922 elif test -f "$srcdir/$f"; then
36923 # Source tree
36924 echo $srcdir/$f
36925 else
36926 # /dev/null tree
36927 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36928echo "$as_me: error: cannot find input file: $f" >&2;}
36929 { (exit 1); exit 1; }; }
36930 fi;;
36931 esac
36932 done` || { (exit 1); exit 1; }
36933_ACEOF
36934cat >>$CONFIG_STATUS <<_ACEOF
36935 sed "$ac_vpsub
36936$extrasub
36937_ACEOF
36938cat >>$CONFIG_STATUS <<\_ACEOF
36939:t
36940/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36941s,@configure_input@,$configure_input,;t t
36942s,@srcdir@,$ac_srcdir,;t t
36943s,@abs_srcdir@,$ac_abs_srcdir,;t t
36944s,@top_srcdir@,$ac_top_srcdir,;t t
36945s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36946s,@builddir@,$ac_builddir,;t t
36947s,@abs_builddir@,$ac_abs_builddir,;t t
36948s,@top_builddir@,$ac_top_builddir,;t t
36949s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36950s,@INSTALL@,$ac_INSTALL,;t t
36951" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36952 rm -f $tmp/stdin
36953 if test x"$ac_file" != x-; then
36954 mv $tmp/out $ac_file
36955 else
36956 cat $tmp/out
36957 rm -f $tmp/out
36958 fi
36959
36960done
36961_ACEOF
36962cat >>$CONFIG_STATUS <<\_ACEOF
36963
36964#
36965# CONFIG_HEADER section.
36966#
10f2d63a
VZ
36967
36968# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36969# NAME is the cpp macro being defined and VALUE is the value it is being given.
36970#
36971# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36972ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36973ac_dB='[ ].*$,\1#\2'
36974ac_dC=' '
36975ac_dD=',;t'
36976# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36977ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36978ac_uB='$,\1#\2define\3'
10f2d63a 36979ac_uC=' '
e6cc62c6
VS
36980ac_uD=',;t'
36981
36982for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 36983 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36984 case $ac_file in
36985 - | *:- | *:-:* ) # input from stdin
36986 cat >$tmp/stdin
36987 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36989 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36991 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
36992 esac
36993
e6cc62c6
VS
36994 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36995echo "$as_me: creating $ac_file" >&6;}
36996
36997 # First look for the input files in the build tree, otherwise in the
36998 # src tree.
36999 ac_file_inputs=`IFS=:
37000 for f in $ac_file_in; do
37001 case $f in
37002 -) echo $tmp/stdin ;;
37003 [\\/$]*)
37004 # Absolute (can't be DOS-style, as IFS=:)
37005 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37006echo "$as_me: error: cannot find input file: $f" >&2;}
37007 { (exit 1); exit 1; }; }
37008 echo $f;;
37009 *) # Relative
37010 if test -f "$f"; then
37011 # Build tree
37012 echo $f
37013 elif test -f "$srcdir/$f"; then
37014 # Source tree
37015 echo $srcdir/$f
37016 else
37017 # /dev/null tree
37018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37019echo "$as_me: error: cannot find input file: $f" >&2;}
37020 { (exit 1); exit 1; }; }
37021 fi;;
37022 esac
37023 done` || { (exit 1); exit 1; }
37024 # Remove the trailing spaces.
37025 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
37026
37027_ACEOF
37028
37029# Transform confdefs.h into two sed scripts, `conftest.defines' and
37030# `conftest.undefs', that substitutes the proper values into
37031# config.h.in to produce config.h. The first handles `#define'
37032# templates, and the second `#undef' templates.
37033# And first: Protect against being on the right side of a sed subst in
37034# config.status. Protect against being in an unquoted here document
37035# in config.status.
37036rm -f conftest.defines conftest.undefs
37037# Using a here document instead of a string reduces the quoting nightmare.
37038# Putting comments in sed scripts is not portable.
37039#
37040# `end' is used to avoid that the second main sed command (meant for
37041# 0-ary CPP macros) applies to n-ary macro definitions.
37042# See the Autoconf documentation for `clear'.
37043cat >confdef2sed.sed <<\_ACEOF
37044s/[\\&,]/\\&/g
37045s,[\\$`],\\&,g
37046t clear
37047: clear
37048s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
37049t end
37050s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
37051: end
37052_ACEOF
37053# If some macros were called several times there might be several times
37054# the same #defines, which is useless. Nevertheless, we may not want to
37055# sort them, since we want the *last* AC-DEFINE to be honored.
37056uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
37057sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
37058rm -f confdef2sed.sed
10f2d63a
VZ
37059
37060# This sed command replaces #undef with comments. This is necessary, for
37061# example, in the case of _POSIX_SOURCE, which is predefined and required
37062# on some systems where configure will not decide to define it.
e6cc62c6
VS
37063cat >>conftest.undefs <<\_ACEOF
37064s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
37065_ACEOF
37066
37067# Break up conftest.defines because some shells have a limit on the size
37068# of here documents, and old seds have small limits too (100 cmds).
37069echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
37070echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
37071echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
37072echo ' :' >>$CONFIG_STATUS
37073rm -f conftest.tail
37074while grep . conftest.defines >/dev/null
37075do
37076 # Write a limited-size here document to $tmp/defines.sed.
37077 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
37078 # Speed up: don't consider the non `#define' lines.
37079 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
37080 # Work around the forget-to-reset-the-flag bug.
37081 echo 't clr' >>$CONFIG_STATUS
37082 echo ': clr' >>$CONFIG_STATUS
37083 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
37084 echo 'CEOF
37085 sed -f $tmp/defines.sed $tmp/in >$tmp/out
37086 rm -f $tmp/in
37087 mv $tmp/out $tmp/in
37088' >>$CONFIG_STATUS
37089 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
37090 rm -f conftest.defines
37091 mv conftest.tail conftest.defines
37092done
37093rm -f conftest.defines
37094echo ' fi # grep' >>$CONFIG_STATUS
37095echo >>$CONFIG_STATUS
10f2d63a 37096
e6cc62c6
VS
37097# Break up conftest.undefs because some shells have a limit on the size
37098# of here documents, and old seds have small limits too (100 cmds).
37099echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 37100rm -f conftest.tail
e6cc62c6 37101while grep . conftest.undefs >/dev/null
10f2d63a 37102do
e6cc62c6
VS
37103 # Write a limited-size here document to $tmp/undefs.sed.
37104 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
37105 # Speed up: don't consider the non `#undef'
37106 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
37107 # Work around the forget-to-reset-the-flag bug.
37108 echo 't clr' >>$CONFIG_STATUS
37109 echo ': clr' >>$CONFIG_STATUS
37110 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 37111 echo 'CEOF
e6cc62c6
VS
37112 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37113 rm -f $tmp/in
37114 mv $tmp/out $tmp/in
37115' >>$CONFIG_STATUS
37116 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37117 rm -f conftest.undefs
37118 mv conftest.tail conftest.undefs
10f2d63a 37119done
e6cc62c6
VS
37120rm -f conftest.undefs
37121
37122cat >>$CONFIG_STATUS <<\_ACEOF
37123 # Let's still pretend it is `configure' which instantiates (i.e., don't
37124 # use $as_me), people would be surprised to read:
37125 # /* config.h. Generated by config.status. */
37126 if test x"$ac_file" = x-; then
37127 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 37128 else
e6cc62c6 37129 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 37130 fi
e6cc62c6
VS
37131 cat $tmp/in >>$tmp/config.h
37132 rm -f $tmp/in
37133 if test x"$ac_file" != x-; then
37134 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
37135 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37136echo "$as_me: $ac_file is unchanged" >&6;}
37137 else
37138 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37139$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37140 X"$ac_file" : 'X\(//\)[^/]' \| \
37141 X"$ac_file" : 'X\(//\)$' \| \
37142 X"$ac_file" : 'X\(/\)' \| \
37143 . : '\(.\)' 2>/dev/null ||
37144echo X"$ac_file" |
37145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37147 /^X\(\/\/\)$/{ s//\1/; q; }
37148 /^X\(\/\).*/{ s//\1/; q; }
37149 s/.*/./; q'`
37150 { if $as_mkdir_p; then
37151 mkdir -p "$ac_dir"
37152 else
37153 as_dir="$ac_dir"
37154 as_dirs=
37155 while test ! -d "$as_dir"; do
37156 as_dirs="$as_dir $as_dirs"
37157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37158$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37159 X"$as_dir" : 'X\(//\)[^/]' \| \
37160 X"$as_dir" : 'X\(//\)$' \| \
37161 X"$as_dir" : 'X\(/\)' \| \
37162 . : '\(.\)' 2>/dev/null ||
37163echo X"$as_dir" |
37164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37166 /^X\(\/\/\)$/{ s//\1/; q; }
37167 /^X\(\/\).*/{ s//\1/; q; }
37168 s/.*/./; q'`
37169 done
37170 test ! -n "$as_dirs" || mkdir $as_dirs
37171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37172echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37173 { (exit 1); exit 1; }; }; }
a0b9e27f 37174
e6cc62c6
VS
37175 rm -f $ac_file
37176 mv $tmp/config.h $ac_file
37177 fi
37178 else
37179 cat $tmp/config.h
37180 rm -f $tmp/config.h
37181 fi
37182done
37183_ACEOF
37184cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 37185
e6cc62c6
VS
37186#
37187# CONFIG_COMMANDS section.
37188#
37189for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37190 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37191 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37192 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37193$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37194 X"$ac_dest" : 'X\(//\)[^/]' \| \
37195 X"$ac_dest" : 'X\(//\)$' \| \
37196 X"$ac_dest" : 'X\(/\)' \| \
37197 . : '\(.\)' 2>/dev/null ||
37198echo X"$ac_dest" |
37199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37201 /^X\(\/\/\)$/{ s//\1/; q; }
37202 /^X\(\/\).*/{ s//\1/; q; }
37203 s/.*/./; q'`
37204 ac_builddir=.
37205
37206if test "$ac_dir" != .; then
37207 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37208 # A "../" for each directory in $ac_dir_suffix.
37209 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37210else
37211 ac_dir_suffix= ac_top_builddir=
37212fi
37213
37214case $srcdir in
37215 .) # No --srcdir option. We are building in place.
37216 ac_srcdir=.
37217 if test -z "$ac_top_builddir"; then
37218 ac_top_srcdir=.
37219 else
37220 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37221 fi ;;
37222 [\\/]* | ?:[\\/]* ) # Absolute path.
37223 ac_srcdir=$srcdir$ac_dir_suffix;
37224 ac_top_srcdir=$srcdir ;;
37225 *) # Relative path.
37226 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37227 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37228esac
37229# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37230# absolute.
37231ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37232ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37233ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37234ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37235
37236
37237 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37238echo "$as_me: executing $ac_dest commands" >&6;}
37239 case $ac_dest in
37240 default )
652d930d 37241 if test ! -h wx-config; then
991a5759 37242 chmod +x wx-config
3a922bb4
RL
37243 mv wx-config wx${TOOLCHAIN_NAME}-config
37244 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 37245 fi
665bbe97 37246
00cf1208
RR
37247 if test ! -d lib; then
37248 mkdir lib
37249 fi
37250 if test ! -d lib/wx; then
37251 mkdir lib/wx
37252 fi
37253 if test ! -d lib/wx/include; then
37254 mkdir lib/wx/include
37255 fi
3a922bb4
RL
37256 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
37257 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 37258 fi
3a922bb4
RL
37259 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
37260 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
37261 fi
37262 if test -f setup.h; then
3a922bb4 37263 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 37264 fi
e6cc62c6
VS
37265 ;;
37266 esac
37267done
37268_ACEOF
2224580a 37269
e6cc62c6 37270cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 37271
e6cc62c6
VS
37272{ (exit 0); exit 0; }
37273_ACEOF
37274chmod +x $CONFIG_STATUS
37275ac_clean_files=$ac_clean_files_save
37276
37277
37278# configure is writing to config.log, and then calls config.status.
37279# config.status does its own redirection, appending to config.log.
37280# Unfortunately, on DOS this fails, as config.log is still kept open
37281# by configure, so config.status won't be able to write to it; its
37282# output is simply discarded. So we exec the FD to /dev/null,
37283# effectively closing config.log, so it can be properly (re)opened and
37284# appended to by config.status. When coming back to configure, we
37285# need to make the FD available again.
37286if test "$no_create" != yes; then
37287 ac_cs_success=:
37288 ac_config_status_args=
37289 test "$silent" = yes &&
37290 ac_config_status_args="$ac_config_status_args --quiet"
37291 exec 5>/dev/null
37292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37293 exec 5>>config.log
37294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37295 # would make configure fail if this is the last instruction.
37296 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
37297fi
37298
672abd7a
VS
37299#
37300# CONFIG_SUBDIRS section.
37301#
37302if test "$no_recursion" != yes; then
37303
37304 # Remove --cache-file and --srcdir arguments so they do not pile up.
37305 ac_sub_configure_args=
37306 ac_prev=
37307 for ac_arg in $ac_configure_args; do
37308 if test -n "$ac_prev"; then
37309 ac_prev=
37310 continue
37311 fi
37312 case $ac_arg in
37313 -cache-file | --cache-file | --cache-fil | --cache-fi \
37314 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37315 ac_prev=cache_file ;;
37316 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37317 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37318 | --c=*)
37319 ;;
37320 --config-cache | -C)
37321 ;;
37322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37323 ac_prev=srcdir ;;
37324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37325 ;;
37326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37327 ac_prev=prefix ;;
37328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37329 ;;
37330 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
37331 esac
37332 done
37333
37334 # Always prepend --prefix to ensure using the same prefix
37335 # in subdir configurations.
37336 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
37337
37338 ac_popdir=`pwd`
37339 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37340
37341 # Do not complain, so a configure script can configure whichever
37342 # parts of a large source tree are present.
37343 test -d $srcdir/$ac_dir || continue
37344
37345 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
37346echo "$as_me: configuring in $ac_dir" >&6;}
37347 { if $as_mkdir_p; then
37348 mkdir -p "$ac_dir"
37349 else
37350 as_dir="$ac_dir"
37351 as_dirs=
37352 while test ! -d "$as_dir"; do
37353 as_dirs="$as_dir $as_dirs"
37354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37355$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37356 X"$as_dir" : 'X\(//\)[^/]' \| \
37357 X"$as_dir" : 'X\(//\)$' \| \
37358 X"$as_dir" : 'X\(/\)' \| \
37359 . : '\(.\)' 2>/dev/null ||
37360echo X"$as_dir" |
37361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37363 /^X\(\/\/\)$/{ s//\1/; q; }
37364 /^X\(\/\).*/{ s//\1/; q; }
37365 s/.*/./; q'`
37366 done
37367 test ! -n "$as_dirs" || mkdir $as_dirs
37368 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37369echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37370 { (exit 1); exit 1; }; }; }
37371
37372 ac_builddir=.
37373
37374if test "$ac_dir" != .; then
37375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37376 # A "../" for each directory in $ac_dir_suffix.
37377 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37378else
37379 ac_dir_suffix= ac_top_builddir=
37380fi
37381
37382case $srcdir in
37383 .) # No --srcdir option. We are building in place.
37384 ac_srcdir=.
37385 if test -z "$ac_top_builddir"; then
37386 ac_top_srcdir=.
37387 else
37388 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37389 fi ;;
37390 [\\/]* | ?:[\\/]* ) # Absolute path.
37391 ac_srcdir=$srcdir$ac_dir_suffix;
37392 ac_top_srcdir=$srcdir ;;
37393 *) # Relative path.
37394 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37395 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37396esac
37397# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37398# absolute.
37399ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37400ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37401ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37402ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37403
37404
37405 cd $ac_dir
37406
37407 # Check for guested configure; otherwise get Cygnus style configure.
37408 if test -f $ac_srcdir/configure.gnu; then
37409 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37410 elif test -f $ac_srcdir/configure; then
37411 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37412 elif test -f $ac_srcdir/configure.in; then
37413 ac_sub_configure=$ac_configure
37414 else
37415 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37416echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37417 ac_sub_configure=
37418 fi
37419
37420 # The recursion is here.
37421 if test -n "$ac_sub_configure"; then
37422 # Make the cache file name correct relative to the subdirectory.
37423 case $cache_file in
37424 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37425 *) # Relative path.
37426 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37427 esac
37428
37429 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37430echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37431 # The eval makes quoting arguments work.
37432 eval $ac_sub_configure $ac_sub_configure_args \
37433 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37434 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37435echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37436 { (exit 1); exit 1; }; }
37437 fi
37438
37439 cd $ac_popdir
37440 done
37441fi
37442
8284b0c5 37443
2b5f62a0
VZ
37444echo
37445echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37446echo ""
37447echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 37448echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
37449
37450echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
37451echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
37452echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
37453
0c98a14e 37454echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
37455echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
37456echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 37457
2b5f62a0
VZ
37458echo " Which libraries should wxWindows use?"
37459echo " jpeg ${wxUSE_LIBJPEG-none}"
37460echo " png ${wxUSE_LIBPNG-none}"
37461echo " regex ${wxUSE_REGEX}"
37462echo " tiff ${wxUSE_LIBTIFF-none}"
37463echo " zlib ${wxUSE_ZLIB}"
fd3d7534 37464echo " odbc ${wxUSE_ODBC}"
5f0b6dff 37465echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
37466
37467echo ""
37468